Automate

 View Only
  • 1.  Error in Creatign BoM using CS01 for item category L, T & D

    Posted 01-20-2021 03:06
      |   view attached
    ​Hello,

    I am working on creating a script which can upload BoM using tcode CS01. The script should support item category L, T, & D.
    I have developed a script using Transaction Method and have recorded all scenarios for all 3 item categories. I have also adjusted the script with loops & if's condition around item category . but when I run, it works fine only with 2 components. As soon as I enter the 3rd item line, It gives me an error that field xxx is not an input field .
    Can somebody please look into it and advise the corrective steps .?
    Additionally , is there any bapi(or rfm) as well which could support bom creation or transaction method is the best way forward .?

    ------------------------------
    Aaksnha Gupta | SAP data migration
    Moog GmbH | +918130780074
    ------------------------------

    Attachment(s)

    Txr
    Create Bom_CS01.Txr   644 KB 1 version


  • 2.  RE: Error in Creatign BoM using CS01 for item category L, T & D

    Employee
    Posted 01-20-2021 09:33
    Hi Aaksnha 

    Great effort to get the script correct.  I believe you're missing the insert OK code on your last IF statement. 
    The first 2 end this way:
    the last one - if item category is D
    You can just copy and paste the line and/or edit the OK code to set it.

    There are BAPI's to create, read and update BOMs as well.  I'll post an example.

    Best Regards,
    Sigrid
    See if that makes a difference.


    ------------------------------
    Sigrid Kok
    PSE | Winshuttle NA
    ------------------------------



  • 3.  RE: Error in Creatign BoM using CS01 for item category L, T & D

    Employee
    Posted 01-20-2021 11:21
    Just created a quick Create BOM BAPI example using BAPI:  CSAP_MAT_BOM_CREATE, which is attached.

    A quick note on this BAPI - there is not alternative bom number field, so that's not possible via the BAPI.

    HTH
    Sigrid


    ------------------------------
    Sigrid Kok
    PSE | Winshuttle NA
    ------------------------------

    Attachment(s)



  • 4.  RE: Error in Creatign BoM using CS01 for item category L, T & D

    Posted 01-21-2021 04:46
    Thanks for the quick revert Sigrid. I will check on the ok code​ and repeat the test.
    Regarding the BAPI"CSAP_MAT_BOM_CREATE", unfortunately I couldn't use it for our requirement as we upload alternative bom's as well.

    ------------------------------
    Aaksnha Gupta | SAP data migration
    Moog GmbH | +918130780074
    ------------------------------