Skip to Content
0
Jan 28, 2016 at 02:41 PM

Batch input MB26 transaction does not work

78 Views

Hi experts,

I need implement a batch input to MB26 transaction, I make a recording in SM35 transaction and use the following code:

PERFORM add_bdc USING :

'X' 'PP_PICK_LIST' '5000',

' ' 'BDC_CURSOR' 'S_AUFNRA-LOW',

' ' 'BDC_OKCODE' '=ONLI',

' ' 'S_AUFNRA-LOW' PRODUCTION_ORDER,

'X' 'SAPLCOWB' '0130',

' ' 'BDC_OKCODE' '=MALL',

' ' 'BDC_SUBSCR' 'SAPLCOWB 0001HEADER',

' ' 'BDC_SUBSCR' 'SAPLCOWB 0580TABLE',

' ' 'BDC_CURSOR' 'COWB_COMP-MAKTX(01)',

'X' 'SAPLCOWB' '0130',

' ' 'BDC_OKCODE' '=WEIT',

' ' 'BDC_SUBSCR' 'SAPLCOWB 0001HEADER',

' ' 'BDC_SUBSCR' 'SAPLCOWB 0580TABLE',

' ' 'BDC_CURSOR' 'COWB_COMP-MAKTX(01)'.

CALL FUNCTION 'ABAP4_CALL_TRANSACTION'

EXPORTING

tcode = 'MB26'

mode_val = 'E'

update_val = 'S'

TABLES

using_tab = t_bdc

spagpa_tab = itab_spa

MESS_TAB = imsg_tab.

But it don´t work, please you can help me.

Best regards,

Robert