04-19-2007 10:30 PM
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.
04-20-2007 12:55 PM
Hi,
i will give you one suggestion please record the T-code through SHDB by your own that fine than this.
Reg,
Hariharan Natarajan