Skip to Content
0
Former Member
Jul 28, 2007 at 07:03 AM

BDC call trasaction

16 Views

HI Experts,

I am trying to pass data manually using call transaction method. When I am debugging the code, I am able to get the data into internal table as well as bdctab and I have used this syntax. "CALL TRANSACTION 'XD01' USING BDCDATA_IT MODE 'A' UPDATE 'S'.", but when I am executing the program, the data is not getting posted on the screen. Can any body help in this matter, please.

Here is the code, I have written.

LOOP AT IT INTO WA.

bdcdata_wa-program = 'SAPMF02D'.

bdcdata_wa-dynpro = '0100'.

bdcdata_wa-dynbegin = 'X'.

APPEND BDCDATA_WA TO BDCDATA_IT.

bdcdata_wa-FNAM = 'BDC_CURSOR'.

bdcdata_wa-FVAL = 'RF02D-KTOKD'.

APPEND BDCDATA_WA TO BDCDATA_IT.

bdcdata_wa-FNAM = 'BDC_OKCODE'.

bdcdata_wa-FVAL = '/00'.

APPEND BDCDATA_WA TO BDCDATA_IT.

bdcdata_wa-FNAM = 'RF02D-KUNNR'.

bdcdata_wa-FVAL = WA-KUNNR.

APPEND BDCDATA_WA TO BDCDATA_IT.

bdcdata_wa-FNAM = 'RF02D-KTOKD'.

bdcdata_wa-FVAL = WA-KTOKD.

APPEND BDCDATA_WA TO BDCDATA_IT.

bdcdata_wa-program = 'SAPMF02D'.

bdcdata_wa-dynpro = '0110'.

bdcdata_wa-dynbegin = 'X'.

APPEND BDCDATA_WA TO BDCDATA_IT.

bdcdata_wa-FNAM = 'BDC_CURSOR'.

bdcdata_wa-FVAL = 'KNA1-SPRAS'.

APPEND BDCDATA_WA TO BDCDATA_IT.

Regards,

Rajesh.