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

CS01 : Create BOM with BAPI CSAP_MAT_BOM_CREATE

Former Member
0 Likes
13,568

Hi ,

Our ABAP er is using the above BAPI to create BOM for certain material numbers .

However if there is any error on a given line item the FM is unable to show in which line item the error has actually occured .

Is there any way that the FM can throw an error with the exact line item where the error is .

<removed by moderator>

**       BAPI for creating PO.
          CALL FUNCTION 'CSAP_MAT_BOM_CREATE'
            EXPORTING
              MATERIAL                 = LWA_UPLOAD-MATNR
              PLANT                    = LWA_UPLOAD-WERKS
              BOM_USAGE                = LWA_UPLOAD-USAGE
              VALID_FROM               = LWA_UPLOAD-VDATE
              I_STKO                   = LI_STKO
            TABLES
              T_STPO                   = LI_STPO
*            T_DEP_DATA               =
*            T_DEP_DESCR              =
*            T_DEP_ORDER              =
*            T_DEP_SOURCE             =
*            T_DEP_DOC                =
*            T_LTX_LINE               =
*            T_STPU                   =
            EXCEPTIONS
              ERROR                    = 1
              OTHERS                   = 2

Edited by: Thomas Zloch on Feb 6, 2012

1 ACCEPTED SOLUTION
Read only

former_member404244
Active Contributor
0 Likes
7,106

Hi,

You can use CSAP_MAT_BOM_MAINTAIN.

In the importing parameter "O_STKO " , you will come to know if there is any issue while uploading.

Please try and check.

Regards,

Nagaraj

Hi,

You can use CSAP_MAT_BOM_MAINTAIN.

In the importing parameter "O_STKO " , you will come to know if there is any issue while uploading.

Please try and check.

Regards,

Nagaraj

2 REPLIES 2
Read only

Former Member
0 Likes
7,106

Hi,

Check the bellow link which is some what related to your post.

Regards,

Goutam Kolluru.

Read only

former_member404244
Active Contributor
0 Likes
7,107

Hi,

You can use CSAP_MAT_BOM_MAINTAIN.

In the importing parameter "O_STKO " , you will come to know if there is any issue while uploading.

Please try and check.

Regards,

Nagaraj