Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

BDC Recording

Former Member
0 Kudos

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??

3 REPLIES 3

naimesh_patel
Active Contributor
0 Kudos

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

former_member194669
Active Contributor
0 Kudos

Hi,

This program internally call REUSE fm to display ALV. you will not get a okcode to while doing BDC on this.

Former Member
0 Kudos

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.