‎2006 Nov 14 5:58 AM
hi. I'm having problem with my batch input. here is my code:
PERFORM BDC_DYNPRO TABLES BDCDATA USING 'SAPMM06I' '0100'.
PERFORM BDC_FIELD TABLES BDCDATA USING:
'BDC_OKCODE' '=ENTR',
'EINA-LIFNR' I_REC-VENDOR,
'EINA-MATNR' I_REC-MATNR,
'EINE-EKORG' 'BE01',
'EINE-WERKS' P_WERKS.
PERFORM BDC_DYNPRO TABLES BDCDATA USING 'SAPMM06I' '0102'.
PERFORM BDC_FIELD TABLES BDCDATA USING:
'BDC_OKCODE' '=ENTR',
'EINE-APLFZ' I_REC-PLADEL,
'EINE-NETPR' I_REC-NETPR.
PERFORM BDC_DYNPRO TABLES BDCDATA USING 'SAPLSPO1' '0100'.
PERFORM BDC_FIELD TABLES BDCDATA USING:
'BDC_OKCODE' '=YES'.
CALL TRANSACTION 'ME11' USING BDCDATA
MODE 'E'
UPDATE 'S'
MESSAGES INTO ITAB_MSG.
but when i run my program the screen shows up and needs to press enter to continue.
I need to create info record thru batch input but the 2nd screen shows up everytime i run the program. Please let me know what i did wrong.
thanx.
‎2006 Nov 14 6:01 AM
mostly the OK-CODE is different from what u have specified in ur program....Do a SHDB once again and check it and modify the code accordingly...
‎2006 Nov 14 6:03 AM
There may be probelm in recarding.....
u can also test that recording in SHBD...(check it weather it is properly recorded or not)...
Ramesh.
‎2006 Nov 14 7:28 AM