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 'CSAP_MAT_BOM_CREATE' adding two custom fields

Former Member
0 Likes
1,696

Dear Experts,

I am using 'CSAP_MAT_BOM_CREATE' to upload BOM to upload BOM and it is working fine.

Using modifications we have added 2 more fields in CS01, which you can see in the screenshot. The fields are Allocation and Other BOM Item number.

Now the issue is I want to update those 2 fields also when I am uploading the BOM.

How can I achieve the same. Should I copy CSAP_MAT_BOM_CREATE to Z and do the modifications ?

2 REPLIES 2
Read only

Former Member
0 Likes
1,145

Dear All,

Anyone please help me on the same !!

Thanks,

Harish

Read only

0 Likes
1,145

I just saw this thread, but here is the answer in case someone else looking for it.

Table STPO (BOM items) has an inactive include CI_STPO, Just add the custom fields to it, and there is nothing else that needs to be done. The values populated in BAPI call will be updated, for example:

data: begin of tstp3 occurs 0.

           include structure stpo_api03.

data: end of tstp3.

.....

    clear tstp3.

    tstp3-id_item_no = '0010'.                    "Item identification

    tstp3-ZTEST = 'abc'.

    append tstp3.

I am using BAPI  - CSAP_MAT_BOM_MAINTAIN

For further details refer to OSS Note 425032 - ALE: Customer-specific BOM fields