Quantcast
Channel: SCN : Unanswered Discussions - ABAP Development
Viewing all 8768 articles
Browse latest View live

I need to join requests.

$
0
0

Good morning guys.

 

 

I need to join requests.

When the object is the same in different requests it will consider the last request?

 

 

example:

dupk1 object X1

dupk9

dupk7

dupk3 object X1

 

 

When I join requests it will consider as a last change to the object X1 dupk1 or request dupk2?

 

 

Thanks .


customization Archiving solution

$
0
0

Dear Colleagues

 

i would like to know if i have  documents which i want to make archiving to it , but this document not related to sap business , for example to upload employee photo i should make a link between document type HRICOLFOTO must linked to PREL and IT0002 this is simple but my question is how to create customzed archiving document from A to Z for a business scenario which not exist on SAP System . simply i want to use the archiving of sap System to archive all the document in my organization using reference numbers  and number ranges for each and so on .

Tree status

$
0
0

Hi Experts,

 

I have create a BSP Application based on the MVC. The main application consists of a search (subcontroller) & Result List (subcontroller), which is based on a Tree Result.

 

The result tree has some levels and initially is totally collapsed: At the last node, it allows yo to download a document.  The problem is when I click this last node because of the tree it is collpased again (status closed). I am not able to find the solution, it seems that all is correct, however the tree forgets all openned nodes every time.

 

Thanks in advance

 

Regards.

How to update BKPF-BUDAT through BAPI or FM

$
0
0

Dear All,

 

Request you to let me know if there is any BAPI or FM to update BKPF-BUDAT (Posting date).

 

Thanks & Regards

Akshay

How can I save internal table data to an imp/exp parameter of a BAdI method?

$
0
0

Hi experts,

I am implementing customer_add_data_cs BAdI; here have a method IF_EX_CUSTOMER_ADD_DATA_CS~GET_DATA.

The i/o  parameters for this method are s_kna1 and s_knvv and so on.

In my scenario I have to save only one customer data which i did as:

s_kna1-kunnr = '1000'.

s_kna1_name1 = 'my_name1'.

Then this will be automatically saved in kna1 table by the transaction as:

KUNNR      NAME1

1000           MY_NAME1

 

No prob!!

Now, for the same customer 1000 I have to store multiple records into knvv table like:

 

KUNNR     BRAND

1000         AR

1000         AS

so on.....

 

To do this I have to store two records' data in s_knvv parameter. But s_knvv can hold single record data.

 

How can I store?

 

Help PLS... Refer the Snap shot attached..

MIRO Enhancement to modify/prepone Due Date

$
0
0

Hello SAP Colleagues,

 

I have a requirement to modify the MIRO Transaction

 

When creating an incoming invoice through MIRO, after populating Base Line date and Payment Terms, the Due date is calculated and dislayed in the field.

 

The requirement is when the due on date falls on weekends(Saturday or Sunday) it should be Preponed to previous Friday.

 

Issue: The exits/BADI's available for MIRO can be used to change baseline date and terms of payment and not the due on date.

 

This requirement is on SAP 4.7 version.

 

Any experience from other projects/suggestions/documentation with regards to this issue would be highly appreciated.

catch classification in the transaction MSC2n

$
0
0

Good day guys,

 

I'm having a problem that I have to get the values ​​of the classification of the transaction MSC2N to put on a form, but I'm not getting the tables find that these values ​​are recorded.

 

if someone can give me a hand I'll be really grateful.

SPAU and SPDD Help Required

$
0
0

Dear All,

 

I am facing an issue when I am trying to execute transaction SPAU at the time of patching activity from SAP Basis side. Here I will make it clear that we are doing patching activity for SAP-HRCIN component and increasing the patch level of SAP-HRCIN component from 32 to 60.

 

I am from ABAP side and helping basis consultant for checking and keeping the changes or retrieving the objects including (Notes,With Modification Assistant and Without Modification Assistant) to original state with the help of SAPU and SPDD transactions.

 

I found a PDF document on SAP site, where in I have read whole overview related to SPAU and SPDD transactions and another senior ABAPER also helped me in this regards at the time of patching activity in development server.

 

But unfortunately we followed the wrong steps, we have completed patching in development server and in the mean time as and when in between system is asking us to check the SPAU transactions, we checked all the programs and enhancements and other notes and all and after comparing those with production system, we have proceeded further by putting those changes in a transport requests. Then in between patching if system is again asking for lock objects, then we will release those TRs from development system.

 

Now, patching activity is over in development system, and SAP-HRCIN component is at level 60 in development system.

 

Now we are starting the patching activity in quality system but unknowingly we have imported those TRs of development system to quality system initially and then we started doing the patching activity. Here initially system is asking to check SPDD and I followed the same steps as i did in development system by creating the TR in quality system. After that moving forward in patching, system stops to check SPAU, at this time system is showing few SAP Notes in yellow color (partially implemented). I have tried to implement those SAP notes by clicking on those yellow icons in SPAU transaction against the SAP Note and system displays a green message 'Changes can be copied successfully.' so I clicked on OK button, system did some processing in background and opens a pop up of activating the object but now when I am trying to activate it in quality system it is displaying errors.

 

I think these errors system is showing because we wrongly imported the TRs at initial level which we have created in development system but now the problem is those objects are not in sync and I activated those objects anyway because I don't have any other option. If I left those objects inactive then system is not allowing me to activate that object in quality system.

 

Right now still in quality system SAP-HRCIN component is at 33 level and to take it upto 60 level system will stop many times in SPAU corrections because the quality system is inconsistent.

 

Please somebody who was involved as an ABAPer along with the Basis team in  help me how to correct the problems.

 

Note : Dear moderator sir, please let my contact details be there so that any kind person can contact me through those contact details. I am in a very big trouble sir.

 

Thanks and Regards,

Prameet Gopal Verma

Mo - 9810408794

email- prameetgverma.sap1@gmail.com


How to read in abap program the dialog available

$
0
0

Hi expert, i've a need,

in a abap report i have to get how many dialog are available (not busy from other application) in the application server.

Usually you can chek this in transaction SM51, but in that case I need to calculate it in a abap program.

Anybody know if exist any function module to do this ?

Thank you in advance,

 

Davide Grosso

fetching values from HRP1001 and pass the value to another HRP1000

$
0
0

Hello Nation ,

My requirement is ,i need to fetch all the positions,reported to positions , position text(HRP1000) and then again i pass the value of positions to another statement to get the job id related to that id and the text of the job id. but it gives me only one line of value ....please just check my code

 

DATA: begin of t_out OCCURS 12,

        sobid type HRP1000-stext,

        objid type objid,

        report TYPE objid,

       end of t_out.

TYPES: begin of f_out ,

        jobtxt type HRP1000-stext,

        objid1 type objid,

        jobid TYPE objid,

        sobid type HRP1000-stext,

        objid type objid,

        report TYPE objid,

       end of f_out.

 

DATA : itab_fout TYPE TABLE OF f_out WITH HEADER LINE.

 

 

select a~stext b~objid b~sobid into table t_out

                        from hrp1000 as a

                       INNER JOIN hrp1001 as b on a~objid = b~objid

                        where  a~otype = 'S'

                          and a~plvar = '01'

                          and a~endda = '99991231'

                          and a~istat = 1

                          and a~langu = sy-langu

                          and b~otype = 'S'

                          and b~endda = '99991231'

                          and b~subty = 'A002'

                          and b~plvar = '01'

                          and b~istat = 1

                          and b~sclas = 'S'.

 

   loop at t_out.

   select a~stext b~objid b~sobid into table itab_fout

                        from hrp1000 as a

                   INNER JOIN hrp1001 as b on a~objid = b~sobid

                        where  a~otype = 'C'

                          and a~plvar = '01'

                          and a~endda = '99991231'

                          and a~istat = 1

                          and a~langu = sy-langu

                          and b~objid = t_out-report

                          and b~otype = 'S'

                          and b~endda = '99991231'

                          and b~subty = 'B007'

                          and b~plvar = '01'

                          and b~istat = 1

                          and b~sclas = 'C'.

 


 

endloop.

 

 

 

   IF sy-subrc eq 0.

   loop at itab_fout.

   write:/ itab_fout-objid1     ,itab_fout-jobid        ,itab_fout-jobtxt         ,itab_fout-objid        ,itab_fout-sobid      ,itab_fout-report.

   ENDLOOP.

endif.

 

 


Open dataset with smart linefeed doesn't work

$
0
0

Hello Experts,

 

I've been given a requirement of adding linefeed (LF) at the end of each line. I've written the following code but client is complaining that LF is missing. Am I making any mistake? Can somebody please rectify my issue. For reference here is my code.

 

Data: p_etc_path(75)   TYPE c.

"Default path

p_etc_path = '/pt/PTdata//interface_2150/archive/ETC.txt'.

 

OPEN DATASET p_etc_path FOR INPUT IN TEXT MODE ENCODING DEFAULT WITH SMART LINEFEED.

     IF sy-subrc eq 0.

          "further processing

     ENDIF.

 

CLOSE DATASET p_etc_path

 

Many thanks in advance.

parameters query

$
0
0

     Hi good day everybody,  i have a issue, i am creating a a abap report, using the table fmbdt,  this report has some parameters to ask and use with the query where statement.   When the user type all parameter all is right,  but when the user does not give any value to parameters,  the report not retrieve nothing.   I would like the report:  show the records according the values user,  if the user does not give anything value, the report must retrieve all records. 

 

 

I have done it asking if the parameter is initial then create the query according the values,  but now i have ask with 10 parameters, so the program would be with lots of lines!

 

is there another way to do it?  how?

 

thank you for all your advices.

Name of table SE16 uses to save table fields for selection?

$
0
0

Does anyone know the table or tables SE16 uses to store the fields for selection and fields for display?  I know it stores them by table name and user Id.  I have tried to find it using runtime analysis, but just can't seem to find it.  Also, I would prefer finding a FM that reads and update it as well, but just knowing the table name would really help me.

 

Thanks,

 

Larry

inbound idoc not uploading data with status 64

$
0
0

Hi Friends

 

Inbound idoc not uploading data   backend job failing and in log  its  showing  job abend  when   prog

RBDAPP01  trying  to update  Table  ' OIJNOMI '  

at last while execution it  show this error ... 

ARRAY error   DB table =  OIJNOMI    op =  update    rc = 4   lines = 1.    :-(

 

in debug  saw  few fields like  ACTDAT and ACTTME  , ACTUALUOM     return  message giving msg

 

like  :  "  Input field ACTDAT of structure OIJNOMI was skipped as not allowed for update "

 

what does it mean    does it mean  data not provided for this field or   incorrect data provided 

as  there are huge entries  so  not getting that place where excatly  for these fields  some data values  i can catch ..

 

any idea ?

 

Regards

Meeta

ALV output with one field Editable and search f4

$
0
0

Hi Experts,

I have a requirement where alv output is displayed and in that one editable field is there, now my requirement is editable field is to enter a mail id for which the user will enter a valid mail id, but at the time of entering some string he should find the related mail ids which are stored in custom table and he can select that.

is this requirement can be possible ?  if not then what is the possibel way to get it.

 

regards,

Raghava


Movement Type in VL09

$
0
0

Hi Everybody,

I've been working with User Exit V50PSTAT for the Transaction Codes VL02N and VL09. Based on the Movement Types in both the Transaction Codes, I need to update a Custom Table. When Posting Goods Issue in VL02N, I need to check the Movement Type, if it is 601, I need add the Quantity to the existing Quantity in Custom Table and update. When Reversal in VL09, I need to check the Movement Type, if it is 602, I need to subtract the Quantity from the existing Quantity in Custom Table and update. But when I debug both the Transaction Codes, in VL02 I get all the line items with Movement Type 601, which is good. But in the Transaction Code VL09, I didn't get any line item with Movement Type 602, which should be the Reversal Movement Type. Can anybody tell me what is the way to identify the Reversal Movement Type in VL09.

how to validate either processing view is already exist or not?

$
0
0

Hi Everyone,

 

How to validate either processing view is already exist or not?

Refresh problem in the ALV

$
0
0

HELLO

 

I developeda dynamicALVusingclass 'cl_gui_alv_grid'. Thisallows me todisplay theGantt diagramby selectingrows fromALV, my problemis thatafterdoingthesortsand filtersin theALV,internaltable that contains thedata of ALVdoes not takeinto account the sort and filters!

 

Someonehas an idea

Thank you.

How can we differentiate subroutine in report and subroutine in script

$
0
0

Hi,

 

In reports, we use subroutines as a modularization Technique.

In scripts, we use Subroutine pool programs to add extra functionality to the standard Driver program.

 

If i am wrong , plz correct me and brief me about this.

 

Thanx in advance.

Hi every one! I am getting my SAP ABAP academy. Kindly suggest me that should I attempt for certification just after the completion of my academy or should I wait to gain some experience of project?

$
0
0

Hi every one! I am getting my SAP ABAP academy. Kindly suggest me that should I attempt for certification just after the completion of my academy or should I wait to gain some experience of project?

Viewing all 8768 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>