Skip to Content
0
Former Member
Apr 19, 2007 at 09:30 PM

BDC failure

64 Views

Hi ,

I am working on standard SAP Program PPBICOR8. This is for collective orders. Its working fine with COR7. The above standard program is wrapping of COR7 transaction.

When I am executing the program it gives problem for collective orders only. The error is

S 00 344 No batch input data for screen SAPLCOKO 5115.

Check the attached code for details

<<<<

ct_bdcdata-program = 'SAPLCOKO'. "Process order

ct_bdcdata-dynpro = '5150'.

ct_bdcdata-dynbegin = yx.

APPEND ct_bdcdata.

CLEAR ct_bdcdata.

ct_bdcdata-fnam ='AFPOD-PLNUM'.

ct_bdcdata-fval = i_plnum.

APPEND ct_bdcdata.

CLEAR ct_bdcdata.

ct_bdcdata-fnam = 'AUFPAR-PI_AUFART'.

ct_bdcdata-fval = i_ord_type.

APPEND ct_bdcdata.

CLEAR ct_bdcdata.

IF i_prnkz = 'X'.

ct_bdcdata-program = 'SAPMSSY0'.

ct_bdcdata-dynpro = '0120'.

ct_bdcdata-dynbegin = yx.

APPEND ct_bdcdata.

CLEAR ct_bdcdata.

ct_bdcdata-fnam = 'BDC_OKCODE'.

ct_bdcdata-fval = '/11'.

APPEND ct_bdcdata.

CLEAR ct_bdcdata.

ENDIF.

ct_bdcdata-program = 'SAPLCOKO'. "Process order

ct_bdcdata-dynpro = '5115'.

ct_bdcdata-dynbegin = yx.

APPEND ct_bdcdata.

CLEAR ct_bdcdata.

ct_bdcdata-fnam = 'BDC_OKCODE'.

ct_bdcdata-fval = '/11'.

APPEND ct_bdcdata.

>>>>

'i_prnkz' this is for collective order indicator. When I clear this variable at debugging mode the code works fine.