‎2006 Jun 10 5:17 AM
how can i use
CALL FUNCTION 'BAPI_BOM_UPLOAD_SAVE'
EXPORTING
IS_MAST =
IS_STZU =
IMPORTING
ES_RETURN =
TABLES
IT_STKO =
IT_STPO =
IT_STAS =
.
as i am new for bapi.
‎2006 Jun 10 3:05 PM
Hi Pawan,
Do the following:
1a. Fill IS_MAST structure and assign the OPERATION field with a value:
003 = Message contains removing items
004 = Message contains changes
005 = Message replaces previous message
009 = First message of operation
018 = Retransmit
023 = Wait: Data may not be read
1b. OR Fill IS_STZU structure and assign OPERATION field (see under 1a).
2. Fill the tables IT_STKO, IT_STPO and IT_STAS as per your requirements.
3. Do the CALL (CALL FUNCTION 'BAPI_BOM_UPLOAD_SAVE')
4. Check the ES_RETURN table for errors TYPE = 'A' or 'E'.
5. If NO ERRORS commit your work (command = COMMIT WORK AND WAIT).
6. If ERRORS rollback your work (command = ROLLBACK WORK).
Hope this helps you a bit.
Regards,
Rob.