Skip to Content

How to change values after using CS_BOM_EXPL_MAT_V2

Hi Experts,

I have a problem with my BOM. After using CS_BOM_EXPL_MAT_V2 i'm sending my subitems of BOM to a function. In this function users can edit subitems of BOM. My problem starts here. I used several function modules to save changed subitems of BOM but i didnt have any result yet. I trıed to use CS_BC_BOM_CHANGE_BATCH_INPUT and CSAP_MAT_BOM_MAINTAIN but both failed. Can anyone help me with the function modules? Helps will be rewarded.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Jan 02, 2014 at 08:41 AM

    Did you use in the below mentioned order as mentioned in documentation..? What was the error you were getting?

    CSAP_MAT_BOM_OPEN
    CSAP_BOM_ITEM_MAINTAIN
    CSAP_MAT_BOM_CLOSE

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 02, 2014 at 09:23 AM

    I defined another matnr as MATNR_BI. Copied original matnr's value into new matnr and send this field to CSAP_MAT_BOM_OPEN. When i debug the code my sy-subrc is returning 1.

    READ TABLE gt_itab INTO gs_itab INDEX 1.

    gs_itab-matnr2 = gs_itab-matnr.

    CALL FUNCTION 'CSAP_MAT_BOM_OPEN'

    EXPORTING

    material = gs_itab-matnr2

    plant = gs_itab-werks

    bom_usage = gs_itab-stlan

    * ALTERNATIVE =

    * VALID_FROM =

    * CHANGE_NO =

    * REVISION_LEVEL =

    * FL_NO_CHANGE_DOC = ' '

    * IMPORTING

    * O_STKO =

    * FL_WARNING =

    * TABLES

    * T_STPO =

    * T_DEP_DATA =

    * T_DEP_DESCR =

    * T_DEP_ORDER =

    * T_DEP_SOURCE =

    * T_DEP_DOC =

    EXCEPTIONS

    error = 1

    OTHERS = 2

    .

    IF sy-subrc <> 0.

    * MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

    * WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

    ENDIF.

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Ismail

      Can you please the documentation of this FM.. Please pass the date and other parameters. The documentation also has an example of how to call it.

      Please check what values is returned in below parameters to understand the error.

      * MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

      * WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

      Nabheet

  • Posted on Jan 02, 2014 at 11:47 AM

    Hi again Nabheet,

    I entered valid_from parameter as todays date and entered change no as 001. When i enter this values my msgid is 29 and msgno is 853. When i comment both lines and try to debug it i'm getting error again. This time msgno is 061.

    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.