Skip to Content
0
Former Member
Oct 20, 2007 at 03:15 PM

learning BDC

28 Views

hi i am learning BDC call transaction,

i went through SHDB, ran the transaction XK01, with minimum most data,

got the recording, and after selecting this recording, and pressing the create program button, i got the following code, can any one tell me where to make changes to make this program a call transaction program,

or am i in a wrong way, do i need to go in a different approach:

*******************************

report ZHW01

no standard page heading line-size 255.

include bdcrecx1.

start-of-selection.

perform open_group.

perform bdc_dynpro using 'SAPMF02K' '0100'.

perform bdc_field using 'BDC_CURSOR'

'RF02K-REF_EKORG'.

perform bdc_field using 'BDC_OKCODE'

'/00'.

perform bdc_field using 'RF02K-REF_LIFNR'

'3950000'.

perform bdc_field using 'RF02K-REF_BUKRS'

'zz01'.

perform bdc_field using 'RF02K-REF_EKORG'

'0001'.

perform bdc_dynpro using 'SAPMF02K' '0110'.

perform bdc_field using 'BDC_CURSOR'

'LFA1-ANRED'.

perform bdc_field using 'BDC_OKCODE'

'/00'.

perform bdc_field using 'LFA1-LAND1'

'US'.

perform bdc_field using 'LFA1-SPRAS'

'EN'.

perform bdc_dynpro using 'SAPMF02K' '0120'.

perform bdc_field using 'BDC_CURSOR'

'LFA1-KUNNR'.

perform bdc_field using 'BDC_OKCODE'

'/00'.

perform bdc_dynpro using 'SAPMF02K' '0130'.

perform bdc_field using 'BDC_CURSOR'

'LFBK-BANKS(01)'.

perform bdc_field using 'BDC_OKCODE'

'=ENTR'.

perform bdc_dynpro using 'SAPLSPO1' '0300'.

perform bdc_field using 'BDC_OKCODE'

'=YES'.

perform bdc_transaction using 'XK01'.

perform close_group.

**********************************

i posted this in Data transfer section also, but i didnot get any response there so, i had to post in general section.

thank you