Skip to Content
author's profile photo Former Member
Former Member

CS01 : Create BOM with BAPI CSAP_MAT_BOM_CREATE

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Feb 06, 2012 at 05:44 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 06, 2012 at 05:35 AM

    Hi,

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

    Regards,

    Goutam Kolluru.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.