11-07-2007 4:59 PM
I want to call a transaction with BDC recording,
like
CALL TRANSACTION 'VL74' USING T_bdcdata
MODE 'N'
UPDATE c_syn
MESSAGES INTO T_messtab.
After processing from the first screen of VL74,
it goes to the next screen which is a ALV display.
In this ALV display a record is to be selected, by the checkbox which is displayed
in front of it.
While doing the recording in SHDB for the same process as described above,
I am not getting the name of the checkbox which is to be marked as 'X',
to fill my T_bdcdata.
Can anyone help me in getting the name of the checkbox which I can use in filling the
bdc data??
11-07-2007 5:08 PM
Actually this VL74 is a report, So, I would suggest you to use the
SUBMIT SD70AV6A with the selection criteria.
Try to minize the output of the slection to only one reocrd in your ALV. So, may be it generate what ever you want directly without goint to ALV.
Regards,
Naimesh Patel
11-07-2007 5:13 PM
Hi,
This program internally call REUSE fm to display ALV. you will not get a okcode to while doing BDC on this.
a®
07-22-2010 10:42 PM
I ran into the same problem when trying to execute VL74 by setting up BDC data and calling the transaction.
The recording does not give any field name for the check box, so the transacton stops at that point.
I got around the problem by choosing the menu path Edit -> Select -> Select all (F5), which results in two occurrences of the screen SAPMSSY0 0120:
My BDC code looked something like this:
REFRESH BDCDATA.
PERFORM DYNPRO USING: "FILL BDC TABLE
'X' 'SD70AV6A' '1000', "First Screen
' ' 'RG_KSCHL-LOW' 'Z001', "Output Type
' ' 'RG_NACHA-LOW' '1', "Transmission Medium
' ' 'PM_NSORT' '01', "Sort order
' ' 'PM_VERMO' '1', "Processing Mode
' ' 'RG_EXIDV-LOW' VEKP-EXIDV, "External Handling Unit
' ' 'RG_OBDLV-LOW' ZHULINK-VBELN, "Delivery Number
' ' 'BDC_OKCODE' '=ONLI', "Execute
'X' 'SAPMSSY0' '0120', "Second Screen
' ' 'BDC_CURSOR' '04/03', "Select line
' ' 'BDC_OKCODE' '=&ALL', "Select all items (one)
'X' 'SAPMSSY0' '0120', "Second Screen
' ' 'BDC_CURSOR' '04/03', "Select line
' ' 'BDC_OKCODE' '=PROC'. "Execute
CALL TRANSACTION 'VL74' USING BDCDATA MODE 'N'.
This may not be a perfect solution for all situations. In our case, there will always only be one Handling Unit to be selected where this code appears, so Select All is a convenient way to select it without having a field name for the check box.