CSAP_MAT_BOM_MAINTAIN to create a BOM

Hi,
i have to use the FM CSAP_MAT_BOM_MAINTAIN to create a BOM but it doesn't work...
Any suggest?
Thanks
Salvatore

See Function Module M CSAP_MAT_BOM_CREATE

Similar Messages

  • Error in Creating a BOM / CSAP_MAT_BOM_MAINTAIN

    hi,
    i need to create multiple bom alternatives in my development. i try using CSAP_MAT_BOM_MAINTAIN for this purpose.
    even after i give all the inputs and flags necessary for creating a new bom, i am getting an error stating that bom already exist for....when i go and check MAST table, for the same material, plant and bom usage... no such alternative exist.
    i am unable to proceed further. can anyone help me in this regard? thanks in advance.

    friend... you are right.
    CSAP_MAT_BOM_MAINTAIN is used to create only one alternative bom. but this can be any number from 01 to 99. if any alternative bom exist for the same combination of material, plant and bom usage... then you cannot create any more alternative bom for the above mentioned combination. this is because... this function module checks MAST table before proceeding with creation. while checking MAST, it considers only material, plant and bom usage. alternative bom is left out here. but the real fact is... alternative bom should be also considered for uniqueness of bom while checking MAST. all these issues are only during bom creation, but the same function module works perfect during bom maintenance.
    CSAP_MAT_BOM_CREATE is also used to create only one alternative bom. but this can be only one number - 01 (default). but, you cannot maintain a bom using this function module. you need to use CSAP_MAT_BOM_MAINTAIN for bom maintenance.
    to create any number of alternative bom for a material, plant and bom usage combination... you need to use the function module BAPI_MATERIAL_BOM_GROUP_CREATE. but... you cannot maintain any bom or create object dependencies for line items using this function module.
    summary:
    to create a bom.. use BAPI_MATERIAL_BOM_GROUP_CREATE
    to read a bom.. use CSAP_MAT_BOM_READ
    to maintain a bom.. use CSAP_MAT_BOM_MAINTAIN.
    to create object dependency.. use CSAP_MAT_BOM_OPEN , CSAP_BOM_ITEM_MAINTAIN , CSAP_MAT_BOM_CLOSE.

  • Error in creating Alternative BOM using IDOC_INPUT_BOMMAT

    Hi all,
    I am trying to create an Alternative BOM using IDoc BOMMAT03.I have checked this IDoc will use FM IDOC_INPUT_BOMMAT inside.
    In this function module, it is using FM CSAP_MAT_BOM_CREATE and CSAP_MAT_BOM_MAINTAIN to create and change.
    This FM is allowing to create an Alterative BOM = '01' but it is not creating for Alt BOM = '02'.
    Can anyone provide inputs on this .
    Regards
    Sathibabu

    Hai Guy,
    use below code for Alternate BOM with sub item .
    Part 1.
    DATA: bom_header     LIKE cad_bicsk,
          bom_item       type table of  cad_bom_item WITH HEADER LINE,
          bom_sub_item   type table of cssubitem WITH HEADER LINE,
          dms_class_data type table of cls_charac  WITH HEADER LINE,
          sap_field_data type table of rfcdmsdata  WITH HEADER LINE,
          e_return       LIKE cad_return-value,
          e_message      LIKE message-msgtx,
          e_message_len  LIKE cad_return-message_len.
    DATA v_ITEM  TYPE I.
    TYPES : BEGIN OF ty_data,
            level TYPE i,
            matnr TYPE cad_bicsk-matnr,
            werks TYPE werks_d,
            usage TYPE stlan,
            qty   TYPE cad_bom_item-menge,
            fqty type fmeng, " Quantity is Fixed
            sub_upmng type upmng,
            text type cad_bicsk-ztext,
            END OF ty_data.
    DATA : it_data TYPE TABLE OF ty_data ,
           wa_data TYPE ty_data.
    **---selection screen
    PARAMETERS:p_file TYPE ibipparms-path OBLIGATORY.
    **---f4 help for the file from PC
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      PERFORM get_f4help.
    *--start-of-selection .
    START-OF-SELECTION.
    PERFORM upload_file_itab.
    CLEAR: bom_header, bom_item, bom_sub_item.
    REFRESH: bom_item, bom_sub_item.
    data : v_lineitem type SPOSN value '0000',
           v_slineitem type SPOSN value '0'.
      LOOP AT it_data INTO wa_data.
      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
        EXPORTING
          input  = wa_data-matnr
        IMPORTING
          output = wa_data-matnr.
      IF wa_data-level = 0.
    * fill BOM header
    clear  bom_header.
          bom_header-matnr = wa_data-matnr. "'000000000200000016'.
    *      bom_header-stlal = '1'. " Alternative Bom
          bom_header-werks = wa_data-werks. "'1000'.
          bom_header-stlan = wa_data-usage."'3'.
          bom_header-bmeng = wa_data-qty.
          bom_header-cadkz = 'X'.
          bom_header-stktx = wa_data-text.
    *      bom_header-ztext = wa_data-text.
          bom_header-datuv = '01.10.2010'.
    ELSEIF wa_data-level = 1.
    * fill item
    v_lineitem = v_lineitem + 10.
        CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
        EXPORTING
          input  = v_lineitem
        IMPORTING
          output = v_lineitem.
    *    bom_item-upskz     = 'X'.     " If We hav the Sub items Enable it.
        bom_item-idnrk     = wa_data-matnr. "'000000000200000017'.
        bom_item-posnr     = v_lineitem.
        bom_item-postp     = 'L'.
        bom_item-menge     = wa_data-qty. "'1'.
        bom_item-fmeng     = wa_data-fqty.
        APPEND bom_item.
        CLEAR: bom_item.
    *** fill sub item
    CLEAR V_ITEM .
    v_slineitem = v_slineitem + 1.
    ELSEIF wa_data-level = 2.
    *  V_ITEM =  V_ITEM + 1.
    *  bom_sub_item-posid = v_slineitem.
    *  bom_sub_item-ebort = 'test'.
    *  bom_sub_item-upmng = wa_data-sub_upmng.
    *  bom_sub_item-uposz =  V_ITEM.
    *  bom_sub_item-uptxt = 'test'.
    *  append bom_sub_item.
    *  clear bom_sub_item.
    ENDIF.
    if wa_data-level = 0.
    else.
    at END OF LEVEL.
    * Call function
      CALL FUNCTION 'CAD_CREATE_BOM_WITH_SUB_ITEMS'
           EXPORTING
                i_bom_header   = bom_header
                i_auto_posnr   = ''
           IMPORTING
                e_return       = e_return
                e_message      = e_message
                e_message_len  = e_message_len
                e_bom_header   = bom_header
           TABLES
                bom_item       = bom_item
                bom_sub_item   = bom_sub_item
                dms_class_data = dms_class_data
                sap_field_data = sap_field_data
           EXCEPTIONS
                 OTHERS         = 1.
      refresh bom_item.
      write : e_message.
      ENDAT.
    ENDIF.
    CLEAR wa_data.
    endloop.

  • Is it possible for creating draft BOM and fix approvals in SAP BI

    Can we create draft BOM and set approval for BOM ? If any changes are made in BOM after approval this can be set as amendment to the original BOM.

    Actually to which of the infocpackage it will give priority. 3.5 or 7.3?
    Also I just want to ask that , as in your first reply you said that the cubes cannot be upgraded .... but why?
    And if I am doing new fresh implementation ...........will there be any prerequisites?

  • Error while creating equipment BOM (IB01)

    hi guys,
    while creating equipment BOM (IB01) i am getting this error, while adding components.
    'Material type NLAG cannot be used with item category (plant 1000)'.
    regards
    chinta

    HI Chinta,
                                   I understood ur problem IB01-give the equipment number which is generated by the system and give plant name in which you have created the equipment and bom usage as 4 (plant maintenance) and press enter.
    Then you will get the components list give the description,quantity and item category as:
               as you gave it as L it is throwing an error give it as N(Non stock item), then you wont get the error.while selecting the item cat. you will get differnet components and you select the appropriate one based on you equipment.Hope you issue is resolved.
    Regards,
    Bharat

  • Creating material bom with reference to Sales order bom.

    How to create material bom by coping Sales order bom.?

    Mayur,
    Just go to T code: CS01 use BOm  usage 1 & then select the copy from icon in the menu bar.
    On the popup screen enter material no, plat , bom usage =5 (sales bom).
    System will then allow you to select items from Sales bom. Select the items you need copied to Material BOM. Then save.
    Hope this helps.
    Thanks,
    Ram

  • How to Create a BOM in an E-Business Suite

    Hi,
    I need help, how to create BOM in an E-Business Suite in a step wise or send me any related links
    Regards
    Srini

    Hello Srini,
    Prerequisite for creating a BOM is that Assembly and Components item should be created in your master organization and associated to your organization.
    Responsibility Bills of materials > Bills > Bills : in the header block, you enter the assembly, in the detail block, you enter components and quantity of components to build the assembly.
    You have to create you BOM levle by level .

  • How to create  the BOM for co product

    Dear friends,
    How to create the BOM for Co product  and How the production will create and  how the costing will capture for that.
    Regards,
    Sabhapathy R

    Dear Umesh,
    How Bom created for co product
    By product
    Header
    xxx
    101
    mvt
    mvt
    qty
    item
    yyy
    261
    1
    zzz
    531
    0.5-
    By product
    Same way how we create co product for BOM. pl explain with simple example.
    Thanks &regards,
    Sabhapathy R

  • Which CZ-Schema tables get affected when we create Non BOM items in OCD?

    Hi,
    Please LIST ALL the CZ tables which gets affected when we create Non BOM structure.
    Or Else Atleast suggest a means where I can get which tables are getting affected(i.e, In which CZ tables rows are being inserted).
    Thanks.
    Edited by: 1008308 on May 28, 2013 2:03 AM

    I cannot speak for Murali, but from my experience...this information is not available in particular manual or documentation. These table names are known over the course of working with the product over a period of time, seeing SQL statements inside working code, working on bugs alongside Oracle Support and Development, etc. However, there is some information available in the following locations to help you out:
    * CZ Implementation Guide - Section D - CZ Subschemas (http://docs.oracle.com/cd/E18727_01/doc.121/e14322/T440679CHDJBBFB.htm). This part of the manual lists the key tables used for various activities (product structure, publishing, UI, etc.)
    * ETRM (http://etrm.oracle.com) also has some useful information. Not every table is described, but many of them are. As an example, here is what you might find as a description of the CZ_PS_NODES table:
    +"The CZ_PS_NODES table contains the entire structure of a product model. Data can be imported from Oracle Bill of Materials. Each project has a root (product) node. When the project structure is imported, project structure nodes mirror the imported BOM structure. Nodes of type REFERENCE are used to include a separate project ("model") into another psnode project tree."+
    Thanks,
    Jason

  • How to create group bom for multiple plants with different company codes

    Dear all,
    In my current scenario we have 5 Company codes with a plant with each company. The same kind of materials exist in all the 5 plants, so what i want is when i create any BOM, that BOM has to extend in all the company codes, as with GROUP BOM i can able to extend the same in only one company code.
    So how to do this?
    Thanks in Advance
    Bhushan

    For that first extend all the materials to all the plants... In one plant create a BOM for the material..
    In all other polants in CS01,   click COpy from .. There you mention the matreial and the plant in which the BOm is alerady available..
    karthick

  • BAPI to Create a BOM .

    Hi All,
    my requirement is i wll be getting the BOM data through a file interface and we need to create BOM using the data in the file.
    we are planning to use BAPI to create BOM.
    Can some one plz tell me is there any BAPI available to create BOM by coping from existing BOM.
    can we use BDC if there is no BAPI available.
    thanks
    Chindam.

    thanks for your response but unfortunately did not solve my issue.
    Yes the above 2 FM can be used to create a BOM but i want to know what are the various fields used to create BOM by copying from the existing BOM (Copy as).
    thanks

  • LSMW for create Equipment BOM

    Hi Experts,
    I have created a LSMW through "Batch Input Recording" method to upload materials to Equipment BOM.
    It caters to upload 5 materials per equipment. However if input data contains only 3 materils for a equipment then LSMW gives an Error. Have to enter 2 more materials to the BOM.
    How can i overcome the matter?
    Is there any other method that i can follow to upload the Equipment BOM?
    Thanks in Advance

    Hi,
    Use standard Object
    0030 Object
    0001Method
    main Structure  : BOMHEADER
    Sub Structure : BOM item
    BOMHEADER                 BOM header
        EQUNR                          C(018)    Equipment
        WERKS                          C(004)    Plant
        STLAN                          C(001)    BOM Usage
    BOMITEM                   BOM item
         EQUNR                          C(018)    Equipment
         POSNR                          C(004)    Item (SD)
         POSTP                          C(001)    Item Category
         IDNRK                          C(018)    Component
         MENGE                          C(013)    Quantity
         MEINS                          C(003)    Base Unit of Measure
    In Field mapping and conversion rule Maintean TCODE as constant IB01.
    Create Logical and Physical path during specify files under Converted Data.
    It will create Equipment BOM
    Regards,
    SandeepV

  • General task list with component : creating standard BOM

    Hello,
    When adding a component to a general task list , i get a "create standard BOM" screen , see below for example :
    Standard object PA00000212            
    Plant                                 
    BOM Usage       4                                                          
    Change Number                        
    Valid From           07.09.2009      
    Can someone explain to me the relation between standard BOM and component within a general task list ?
    Thanks,
    P.

    Hi,
    Pls find some of the points below for your referece
    Standard BOM:
    Can used for assigning the material from the BOM to Task list operation
    That is, BOM  components for the object (Equipment, Functional Location , Assembly) can be retrived and assigned to maintenance Task list of the operation
    Condition: BOM corresponds exactly to the content of the structure list
    Free Material Assignment:
    Assigning Stock Material (Material number) those are not listed in the BOM of maintenance object directly to the maintenance task list
    Condition:  Setting to be done as BOM usage for Plant Maintenance (4)
    Path: Maintenance plans, work centers, Tasl Lists and PRTs>>>>>Tasl Lists>>>>>Control Data>>>>Define Presetting for Free Assignment of Material-----BOM Usage as 4
    Pls note that, while making free assignment, system creates an internal BOM  and this can not be processed from application.
    Hope this may useful
    Thanks
    Siva

  • How to create Alternative Bom by given inputs

    Hi to all,
    I need to create BOM with alternative number.
    my inputs are
    BOM Header
    Material, plant, BOM usage, Alternate BOM, BOM status, Base Qty, Valid From, valid to
    BOM Item
    Item number, item category, component, component description, UOM, valid from, valid to, item ID, QTY
    if i use CSAP_MAT_BOM_CREATE to create BOM , it will not create alternative number
    if i use BAPI_MATERIAL_BOM_GROUP_CREATE , does my input value are enough to create alternative bom.
    please can any one, put some light on it, i search SDN ,but i dont know how to create alternative bom with input provided.
    i shall be thankful to you for this.
    Regards
    Pavneet Rana

    Try the program-RCSBI010

  • Is it possible to create a BOM  for ROH material for Subcontracting

    Dear Guru's
    As per my knowledge BOM is needed only for HALB & FERT material even if for subcontracting purpose. So is it possible to create a BOM for ROH material for Subcontracting?. Pls help me to get a soln ?
    Regards
    Ragesh

    Ragesh,
    When you are subcontracting the material, the Std SAP says that the material type should be HALB and not ROH.
    But if client requires for any reason that the material should be ROH only, there is no problem in chaning the settings.
    Sumeet

Maybe you are looking for

  • Help required for importing a repository data file in the B2B console

    I am trying to import a repository data file with the delivery-channel element and attributes as below. <delivery-channel name="GM_DC" syncReplyMode="none" nonrepudiation-of-origin="false" nonrepudiation-of-receipt="false" secure-transport="true" con

  • Chipmunk audio in classic

    quicktime version currently is 7.04, have not updated to 7.1 yet and in classic it is 6.5. Running any classic apps causes the audio to be sped up and it is impossible to make any of it out. starting up the classic version of qt and manually having i

  • I can't turn my IPad on

    I can't turn my IPad on. I have tried restarting it and the Apple Icon will show up but it is still not working. What should I do?

  • Stuck In Synch Screen after 2.1 / IT8 Update

    After IT8 and 2.1 update together my IPOD Touch will not function at all. When switched on it has an I Tunes Logo and a Ipod Synch cable screen both on screen all the time and this is immovable, nothing else, even trying all the resets. It seems to b

  • Catalyst 2980 IOS upgrade

    Hi: Can I upgrade the Cat2980/2948 from CatOS to IOS?