Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

'BAPI_BOM_UPLOAD_SAVE'

Former Member
0 Likes
681

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.

1 REPLY 1
Read only

Former Member
0 Likes
446

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.