BAPI  for Order BOM

Hi All,
Is there any BAPI for Order BOM
PLS can you help me
thanks
mars

Hi,
Check ds BAPI..
BAPI_MATERIAL_BOM_GROUP_CREATE Creation of a material BOM group
BAPI_MAT_BOM_EXISTENCE_CHECK   Check whether BOM for material exists
CSUL                           CRM Upload of BOM Data
BAPI_BOM_UPLOAD_SAVE           Main Module for BOM Update (Upload from CRM)
Code_
DATA: BEGIN OF i_bom OCCURS 0,
      matnr(18),
      werks(4),
      stlan(1),
      stlal(2),
      stktx(40),
      bmeng(16),
      menge(16),
      posnr(4),
      postp(1),
      meins(3),
      datuv(10),
      fmeng(1),
      idnrk(18),
      potx1(40),
      ausch(7),
      END OF i_bom.
Extracting Document and Doc type for POSTP = D.
DATA : BEGIN OF i_stpo OCCURS 1,
       doknr(25),
       dokar(3),
       posnr(4),
       stlnr LIKE mast-stlnr,
       END   OF i_stpo.
Local work area
DATA:  g_my_rec_in   LIKE i_bom.
Declare internal table for Call Transaction and BDC Session
DATA: i_bdc_table LIKE bdcdata OCCURS 0 WITH HEADER LINE.
                     Global Variables                                *
DATA: g_counter(2) TYPE n,
      g_field_name(18) TYPE c,
      zc_yes  TYPE syftype VALUE 'X'.
                     Selection Screen                                *
SELECTION-SCREEN BEGIN OF BLOCK a WITH FRAME TITLE text-001.
PARAMETERS: p_fname1 TYPE localfile .
SELECTION-SCREEN SKIP 1.
SELECTION-SCREEN BEGIN OF BLOCK b WITH FRAME TITLE text-002.
PARAMETERS: p_rloc1 AS CHECKBOX  DEFAULT 'X'.
SELECTION-SCREEN BEGIN OF BLOCK c WITH FRAME TITLE text-005.
PARAMETERS p_group(12) OBLIGATORY DEFAULT 'ZBOM'.
SELECTION-SCREEN END OF BLOCK c.
SELECTION-SCREEN END OF BLOCK b.
SELECTION-SCREEN END OF BLOCK a.
**WRITE the report header
TOP-OF-PAGE.
  INCLUDE zheading.
                     Start of selection                              *
START-OF-SELECTION.
Load Input file
  PERFORM f_load_input_file.
Create BDC records.
  PERFORM create_bdc_records .
*&      Form  Create_BDC_records
      text:* perform the BDC for the records in the internal table
-->  p1        text
<--  p2        text
FORM create_bdc_records .
  DATA: v_stlnr LIKE mast-stlnr.
  DATA: v_postp(1) VALUE 'D'.
  IF NOT i_bom[] IS INITIAL.
Open BDC session
    PERFORM open_bdc_session.
    SORT i_bom BY matnr werks posnr.
    SELECT  SINGLE stlnr  INTO v_stlnr
    FROM mast
    WHERE    matnr = i_bom-matnr
     AND     werks = i_bom-werks.
    SELECT doknr dokar posnr stlnr
                INTO TABLE i_stpo
                FROM stpo
                FOR ALL ENTRIES IN i_bom
                WHERE postp = v_postp
                AND   posnr = i_bom-posnr
                AND   stlnr = v_stlnr.
    SORT i_stpo BY posnr stlnr.
    LOOP AT i_bom.
      g_my_rec_in = i_bom.
      READ TABLE i_stpo WITH KEY posnr = i_bom-posnr
                                 stlnr = v_stlnr
                                 BINARY SEARCH.
      AT NEW matnr.
        CLEAR i_bdc_table[].
        PERFORM insert_screen_header.
      ENDAT.
Setting up counter for 20 line items
      IF g_counter = 20.
        g_counter = 1.
      ENDIF.
      PERFORM bdc_field  USING 'BDC_OKCODE'
                                    '/00'.
*next screen
      PERFORM bdc_dynpro USING 'SAPLCSDI' '0140'.
      PERFORM bdc_field  USING 'BDC_CURSOR' 'RC29P-FMENG(01)'.
      PERFORM bdc_field  USING 'BDC_OKCODE' '/00'.
      CONCATENATE 'RC29P-POSNR('  g_counter  ')' INTO g_field_name.
      PERFORM bdc_field USING g_field_name i_bom-posnr.
      CONCATENATE 'RC29P-IDNRK('  g_counter  ')' INTO g_field_name.
      PERFORM bdc_field USING g_field_name i_bom-idnrk.
      CONCATENATE 'RC29P-MENGE('  g_counter  ')' INTO g_field_name.
      PERFORM bdc_field USING g_field_name i_bom-menge.
      CONCATENATE 'RC29P-MEINS('  g_counter  ')' INTO g_field_name.
      PERFORM bdc_field USING g_field_name i_bom-meins.
      CONCATENATE 'RC29P-POSTP('  g_counter  ')' INTO g_field_name.
      PERFORM bdc_field USING g_field_name i_bom-postp.
      CONCATENATE 'RC29P-FMENG('  g_counter  ')' INTO g_field_name.
      PERFORM bdc_field USING g_field_name i_bom-fmeng.
*next screen
      PERFORM bdc_dynpro USING 'SAPLCSDI' '0130'.
      PERFORM bdc_field  USING 'BDC_OKCODE' '/00'.
Check the Item category to direct the screen flow accordingly.
      CASE i_bom-postp.
        WHEN 'B'.
          PERFORM item_text_insert.
        WHEN 'Z'.
          PERFORM item_text_insert.
        WHEN 'T'.
          PERFORM item_text_insert.
        WHEN 'N'.
          PERFORM bdc_field   USING 'BDC_CURSOR' 'RC29P-AUSCH'.
          PERFORM bdc_field   USING 'RC29P-AUSCH' i_bom-ausch.
next screen
          PERFORM item_text_insert.
*next screen
          PERFORM bdc_dynpro  USING 'SAPLCSDI' '0133'.
          PERFORM bdc_field   USING 'BDC_OKCODE' '/00'.
          PERFORM bdc_field   USING 'RC29P-EKORG' ' '.
        WHEN 'D'.
          PERFORM bdc_field   USING 'RC29P-DOKNR' i_stpo-doknr.
          PERFORM bdc_field   USING 'RC29P-DOKAR' i_stpo-dokar.
next screen
          PERFORM item_text_insert.
When POSTP = X, L.
        WHEN OTHERS.
          PERFORM bdc_field   USING 'BDC_CURSOR' 'RC29P-AUSCH'.
          PERFORM bdc_field   USING 'RC29P-AUSCH' i_bom-ausch.
next screen
          PERFORM item_text_insert.
      ENDCASE.
      g_counter = g_counter + 1.
next screen
      PERFORM bdc_dynpro      USING 'SAPLCSDI' '0140'.
      PERFORM bdc_field       USING 'BDC_CURSOR' 'RC29P-POSNR(01)'.
      PERFORM bdc_field       USING 'BDC_OKCODE' '=FCBU'.
      AT END OF matnr.
        PERFORM insert_bdc_new.
      ENDAT.
    ENDLOOP.
    CLEAR i_bom[].
    PERFORM close_bdc_session.
Release the BDC sessions created
    PERFORM release_bdc.
  ENDIF.
ENDFORM.                    " open_group
*&      Form  bdc_dynpro_start
      Initialize the screen
     -->P_G_PROGRAM_1
     -->P_G_SCREEN
FORM bdc_dynpro USING    p_g_program_1
                                p_g_screen.
  CLEAR i_bdc_table.
  i_bdc_table-program  = p_g_program_1.
  i_bdc_table-dynpro   = p_g_screen.
  i_bdc_table-dynbegin = 'X'.
  APPEND i_bdc_table.
ENDFORM.                    " bdc_dynpro_start
*&      Form  bdc_field
       Insert field                                                  *
FORM bdc_field USING f_name f_value.
  CLEAR i_bdc_table.
  i_bdc_table-fnam = f_name.
  i_bdc_table-fval = f_value.
  APPEND i_bdc_table.
ENDFORM.                    "bdc_insert_field
*&      Form  open_bdc_session
     Open the BDC session
FORM open_bdc_session .
Open BDC session and creat and update condition records
  CALL FUNCTION 'BDC_OPEN_GROUP'
    EXPORTING
      client                    = sy-mandt
      DEST                      = FILLER8
      group                     = p_group
      HOLDDATE                  = FILLER8
      keep                      = 'X'
      user                      = sy-uname
      RECORD                    = FILLER1
      PROG                      = SY-CPROG
    IMPORTING
      QID                       =
EXCEPTIONS
   client_invalid            = 1
   destination_invalid       = 2
   group_invalid             = 3
   group_is_locked           = 4
   holddate_invalid          = 5
   internal_error            = 6
   queue_error               = 7
   running                   = 8
   system_lock_error         = 9
   user_invalid              = 10
   OTHERS                    = 11
  IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.
ENDFORM.                    " create_bdc_session
*&      Form  insert_screen_header
      Insert the Header data into the screens
FORM insert_screen_header .
  g_counter = 1.
  PERFORM bdc_dynpro USING 'SAPLCSDI' '0100'.
  PERFORM bdc_field  USING 'BDC_CURSOR' 'RC29N-STLAL'.
  PERFORM bdc_field  USING 'BDC_OKCODE' '/00'.
  PERFORM bdc_field  USING 'RC29N-MATNR' g_my_rec_in-matnr.
  PERFORM bdc_field  USING 'RC29N-WERKS' g_my_rec_in-werks.
  PERFORM bdc_field  USING 'RC29N-STLAN' g_my_rec_in-stlan.
  PERFORM bdc_field  USING 'RC29N-STLAL' g_my_rec_in-stlal.
  PERFORM bdc_field  USING 'RC29N-DATUV' g_my_rec_in-datuv.
next screen
  PERFORM bdc_dynpro USING 'SAPLCSDI' '0110'.
  PERFORM bdc_field  USING 'BDC_CURSOR' 'RC29K-BMENG'.
  PERFORM bdc_field  USING 'BDC_OKCODE' '/00'.
  PERFORM bdc_field  USING 'RC29K-STKTX' g_my_rec_in-stktx.
  PERFORM bdc_field  USING 'RC29K-BMENG' g_my_rec_in-bmeng.
*next screen
  PERFORM bdc_dynpro USING 'SAPLCSDI' '0111'.
  PERFORM bdc_field  USING 'BDC_CURSOR' 'RC29K-LABOR'.
ENDFORM.                    " insert_screen_header
*&      Form  insert_bdc
     Insert the BDC session
FORM insert_bdc_new .
  CALL FUNCTION 'BDC_INSERT'
     EXPORTING
       tcode                  = 'CS01'
      POST_LOCAL             = NOVBLOCAL
      PRINTING               = NOPRINT
      SIMUBATCH              = ' '
      CTUPARAMS              = ' '
     TABLES
       dynprotab              = i_bdc_table
  EXCEPTIONS
    internal_error         = 1
    not_open               = 2
    queue_error            = 3
    tcode_invalid          = 4
    printing_invalid       = 5
    posting_invalid        = 6
    OTHERS                 = 7
  IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.
  CLEAR i_bdc_table[].
ENDFORM.                    " insert_bdc
*&      Form  close_bdc_session
      Close the BDC session
FORM close_bdc_session .
  CALL FUNCTION 'BDC_CLOSE_GROUP'
       EXCEPTIONS
            not_open    = 1
            queue_error = 2
            OTHERS      = 3.
  IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.
ENDFORM.                    " close_bdc_session
*&      Form  f_load_input_file
     Load the file into the Internal table
FORM f_load_input_file.
  IF p_rloc1 = zc_yes.
    CALL FUNCTION 'WS_UPLOAD'
         EXPORTING
              filename                = p_fname1
              filetype                = 'DAT'
         TABLES
              data_tab                = i_bom
         EXCEPTIONS
              conversion_error        = 1
              file_open_error         = 2
              file_read_error         = 3
              invalid_type            = 4
              no_batch                = 5
              unknown_error           = 6
              invalid_table_width     = 7
              gui_refuse_filetransfer = 8
              customer_error          = 9
              OTHERS                  = 10.
    IF sy-subrc <> 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      STOP.
    ENDIF.
  ENDIF.
ENDFORM.                    " f_load_input_file
*&      Form  release_bdc
     Release BDC session
FORM release_bdc.
  SUBMIT rsbdcsub WITH mappe EQ p_group
                  WITH von EQ sy-datum
                  WITH bis EQ sy-datum
                  WITH fehler EQ '.'
                  EXPORTING LIST TO MEMORY
                  AND RETURN.
ENDFORM.                    " release_bdc
*&      Form  item_text_insert
      Repetitive code in the screen flow
FORM item_text_insert.
  PERFORM bdc_dynpro USING 'SAPLCSDI' '0131'.
  PERFORM bdc_field  USING 'BDC_OKCODE' '/00'.
  PERFORM bdc_field  USING 'BDC_CURSOR' 'RC29P-POTX1'.
  PERFORM bdc_field  USING 'RC29P-POTX1' i_bom-potx1.
ENDFORM.                    " item_text_insert
Reward If Helpfull
regards,
Mehul

Similar Messages

  • There is Tcode CU51which is for Order BOM ,Is there any BAPI  for OrderBOM.

    Hi All,
    There is Tcode CU51which is for Order BOM , So is there any BAPI for that Ordre BOM
    pls can you help me
    thanks
    mars

    Hi,
    Refer These links:
    https://forums.sdn.sap.com/click.jspa?searchID=13707386&messageID=5726376
    https://forums.sdn.sap.com/click.jspa?searchID=13707605&messageID=4868211
    Regards,
    Shiva Kumar

  • Purchase Requisition for Order BOM components ?

    Dear Members :
    Can I generate purchase requisition for Order BOM components from VA01 ? Mine is TAQ - the header itm cat and TAE for sub-items (finished prod) . While navigating within Sales Order and branching to a particular component's shced. line - the pruch req col is blank. The schedule line cat for the sub-item is CT.
    Could someone please explain the configuration steps I need to maintain for the above ? What I am expecting is when I save the Sales Order it should create Purch Req for the components which do not have enough stock.
    Thanks
    Atanu

    Hi :
    Thanks for your advice. Couple of things :
    1. In my system in auto acc assignment, I already have consumption acc under posting key GBB. Now I am getting error in VA01 - which states that "The system was not able to determn a consumption acc for purchase order item with acc assignment" and also suggesting to address "GBB posting key". I made the following changes for CT :
        movt : 101
        order type : NB
        item cat : 0
        acc assignment cat : F/C
    2. Obviously SAP is expecting a consumption GL acc, which though is there under GBB-AUF from my existing setup. For generating purch req this is strange becoz I haven't yet gone upto PO generation step nor released the supposed to be Purch Req.  for BOM component - and this is before I save the Sales Order .
    3. In spro->acc grouping for mov type; I don't see the following combination in SAP  ie,
    101(MvT) - B (MvT) - GBB (TEKey) - AUF. I need B instead of F which is already there and is for production order but the BOM comp has to be for PO but the combination is not there.
    Do you think this could be the reason that SAP couldn't find the GL acc ?
    4. Also my purpose was not just to raise a purch req every time the sales order is created for the BOM components - only if there is shortage in stock - but then again for CT once I assign the above, it doesn't allow to check the boxes like Availbility , Requrmnt etc. (??)
    Am I clear and could you please suggest me what I am missing or doing wrong ? What movement type do you siggest to enter in CT fields.
    Thanks so much for your time.
    Atanu

  • Settings for order bom

    Dear All,
    Can anyone tell me setting for order bom so that the order BOM is exploded in sales order and MRP can be carried out on this BOM
    Regards
    Prashant

    Hi,
    Pls. find the details of Maintaining an Order BOM without Variant Configuration as below :
    Create an Order BOM :
    Prerequisites:
    You have entered the sales order for which you want to create the order BOM.
    Procedure:
    1.Choose Logistics ® Production ® Master data ® Bills of material ® Bill of material ® Order BOM ® Create.
    The Create Order BOM: initial screen appears.
    2.Enter the sales order number, the order item, the material number and the BOM usage.
    If you want to use a material BOM, or an existing order BOM to copy from, go to step 4. If you want to create an order BOM without a reference, click  and go to step 7.
    You cannot use a configurable BOM as a reference.
    3.Click  Order BOM (copy order BOM) or  Material BOM (copy material BOM).
    The Copy material BOM or Copy order BOM dialog box appears.
    4.Enter the data required and click .
    The item overview appears, for the bill of material you are using as a reference.
    5.Select the items you want to copy to the order BOM and click .
    The item overview for your new order BOM appears. The items you transferred are displayed in the item overview.
    6.Enter new items and alter items if necessary. Entering items in order BOMs is similar to entering items in material BOMs. However, you cannot enter class items in order BOMs. You can find further information in the Bills of Material documentation in  Creating New Items.
    Save your order BOM.
    Example: Creating Order BOM Without Variant Configuration :
    The material BOM for material A contains components B and C, which are themselves assemblies. The material BOM for material C contains components D and E and the material BOM for material C contains components F and G.
    A sales order is created for customer Smith, with the number 821. Material A is inserted under sales order item 10 in this sales order. At the request of customer Smith, for this sales order, the bill of material for assembly C is changed manually. Component H is added to components F and G. This change should not take effect in the material BOM, because assembly C is only expected to be produced once in this form, for customer Smith.
    An order BOM is generated from the material BOM for material C. Since nothing was changed in the bills of material for materials A and B, in this sales order the material BOM will continue to be used for these assemblies.
    Hope this helps.
    Revert if any doubt and reward if useful.
    Regards,
    Tejas

  • BAPI for Order Change - Company Code

    Hi,
    Which is the BAPI for Order change? Suppose the order is Open, Can i change the company code of the order?

    have you tried this ...BAPI_ALM_ORDER_MAINTAIN

  • Bapi for Equipment BOM

    Is there any standard BAPI to create Equipment BOM? Tcode - IB01

    Hello,
    I use that bapi for create BOM but not equipement BOM.
    I find on forum, response wiche can help you :
    Equipment BOM Upload BAPI
    RFC / BAPI for Equipment BOM - IB01
    http://wiki.sdn.sap.com/wiki/display/ABAP/ECCstandardBatchInputprograms
    Thierry

  • BAPI for Order Confirmation along with measurement reading entry

    Hello Experts,
    I would like to know if there is any BAPI for PM Order completion Confirmation along with measurement reading entry?
    Thanks in advance.

    [BAPI for TECO|Function Module for TECO(technically complete) a maintenance work order;
    [BAPI to create Measurement document|BAPI or Function Module for creating measuring point;
    Based on the business transaction, by using user exit, you can accomplish these.

  • BAPI for AFS BOM Creation through Cost Sheet

    Hello Experts,
    Is there any way to create the AFS BOM through BAPI.
    Client requirement is to create the automatic AFS BOM through Cost Sheet (KKE1), I already developed custom Cost Sheet as per the requirement .
    When we create the Cost Sheet Using KKE1 / ZKKE1, automatically AFS BOM should be create in the system with all grid values of component.
    I'm not getting how should I create the AFS BOM using all the components in the Cost Sheet with Grid values.
    There is no issue in creation of simple BOM using Bapi but for AFS BOM I'm facing problem.
    Please suggest and also tell the possibility.
    Thanks & Regards
    Prajyot.D

    Hi!  Thanks for your help.  I used CS_BI_BOM_CREATE_BATCH_INPUT1 and was able to create the BOMs successfully.  My problem now is on the change.  I tried using CS_BI_BOM_CHANGE_BATCH_INPUT but I kept running into various errors.  I think it has something to do with the fields that I am populating in the structures and tables that are being passed to the BAPI.  I tried researching for CS_BI_BOM_CHANGE_BATCH_INPUT but could not find any match.  The function module documentation is not available as well.  If you have used this FM in the past, will appreciate if you could share some inputs on how you were able to make this work.  Thanks a lot!

  • BAPI for Ordered Quantity updation for PO after PO line item cancellation

    Dear Experts,
            I am trying to cancel a line item in ME22N for a particular Purchase Order. When I cancel an item, the ordered quantity is updated in the Status Tab for Header Details. I want to know how is this quantity getting updated and which BAPI is triggered for cancellation. Is it simply adding up the quantities for all line items?

    Header values are addition of line items at run time. I doubt any BAPI specifically calculates it at the header

  • FM/BAPI for Equipment BOM

    Hi All,
    Please let me know if there is any BAPI/ FM available for creating Equipment BOM (IB01 trancastion).
    Thanks in advance
    regards,
    Booma

    Check sample code in:
    http://scn.sap.com/thread/562325
    Regards,
    Sergio.

  • Bapi for Order list(iw38) and PM Notification(iw21)

    Hi experts,
    Can you please tell me are there any BAPI's which can fullfill the functionalities of the tcodes: IW38 and IW21 ??
    Thanks & regards,
    Aayush Aggarwal

    Please find the list of bapi's present in maintenance notification and orders
    ORDERS:  
    BAPI_ALM_COMPONENT_GET_DETAIL     Read Detail Data for a Component
    BAPI_ALM_OPERATION_GET_DETAIL     Read Detail Data for an Operation
    BAPI_ALM_ORDERHEAD_GET_LIST       Determination of a List of Maintenance/Service Orders from Selection
    BAPI_ALM_ORDEROPER_GET_LIST       Determination of a List of Operations from Selection
    BAPI_ALM_ORDER_GET_DETAIL         Reading of Detail Data for an Order
    BAPI_ALM_ORDER_MAINTAIN           Process Maintenance-/Service Order 
    NOTIFICATIONS:  
    BAPI_ALM_NOTIF_CHANGEUSRSTAT      Change User Status of a PM/CS Notification
    BAPI_ALM_NOTIF_CLOSE              Complete PM/CS Notification
    BAPI_ALM_NOTIF_CREATE             Create PM/CS Notification
    BAPI_ALM_NOTIF_DATA_ADD           PM/CS Notification: Add Data
    BAPI_ALM_NOTIF_DATA_DELETE        PM/CS Notification: Delete Data
    BAPI_ALM_NOTIF_DATA_MODIFY        PM/CS Notification: Change Data
    BAPI_ALM_NOTIF_GET_DETAIL         PM/CS Notification: Read Detail Data
    BAPI_ALM_NOTIF_LIST_EQUI          Select PM/CS Notifications by Equipment
    BAPI_ALM_NOTIF_LIST_FUNCLOC       Select PM/CS Notifications by Functional Locations
    BAPI_ALM_NOTIF_LIST_PARTNER       Select PM/CS Notifications by Partners
    BAPI_ALM_NOTIF_LIST_PLANGROUP     Select PM/CS Notifications by Maintenance Planner Group
    BAPI_ALM_NOTIF_LIST_SORTFIELD     Select PM/CS Notifications by Sort Field
    BAPI_ALM_NOTIF_POSTPONE           Reset PM/CS Notification
    BAPI_ALM_NOTIF_PUTINPROGRESS      Release PM/CS Notification
    BAPI_ALM_NOTIF_SAVE               Save PM/CS Notification
    BAPI_ALM_NOTIF_TASK_COMPLETE      PM/CS Notification: Complete Task
    BAPI_ALM_NOTIF_TASK_RELEASE       PM/CS Notification: Release Task
    BAPI_ALM_NOTIF_TASK_SUCCESS       PM/CS Notification: Set Task to Successful
    BAPI_SERVICENOTIFICAT_CREATE      Create service notification
    BAPI_SERVICENOTIFICAT_GETLIST     Select service notifications according to customer or contact person

  • BAPI for  Order Reasons

    hi.
    can u pls tell  me the bapi which can give the order reason data..................
    regards
    Guru

    Hi,
    Try these....
    MSR1_MD_ORDERREASON_GETLIST
    MSR20_MD_ORDERREASON_GETLIST
    Regards,
    Sankar

  • Updating a child of a BOM material using bapi sales order change

    Hi, Appreciate your thoughts on the following issue..
    We have a batch program which uses a bapi sales order change and updates the plant at the line items of the sales order. when this plant is assigned.. if any of the line item is a BOM item, it explodes and the data from the parent ( like payment terms, fixed val date ) should get copied to the child items same as the parent. This is happening fine if manual mode using va01 and va02 but when plant is updated using bapi the childs are not getting the data from the parent ( which comes through config )...
    Appreciate your inputs and any additional information to be passed to the bapi for the BOM materials to get the same config data as parent to the child when exploded...
    Thanks and will reward helpful answers..

    Hi, Appreciate your thoughts on the following issue..
    We have a batch program which uses a bapi sales order change and updates the plant at the line items of the sales order. when this plant is assigned.. if any of the line item is a BOM item, it explodes and the data from the parent ( like payment terms, fixed val date ) should get copied to the child items same as the parent. This is happening fine if manual mode using va01 and va02 but when plant is updated using bapi the childs are not getting the data from the parent ( which comes through config )...
    Appreciate your inputs and any additional information to be passed to the bapi for the BOM materials to get the same config data as parent to the child when exploded...
    Thanks and will reward helpful answers..

  • BAPI'S or Function Modules for creating BOM

    Hi all,
    Can any one please suggest me what is the exact function module or BAPI for creating BOM..
    If any created the same through bapi's or FM your sample codes are also welcome..
    Thanks and Regards,
    Keny

    BAPI_DOCUMENT_CREATE2 and BAPI_MATERIAL_BOM_GROUP_CREATE
    chk them

  • Order BOM functionality suggestions required

    Hi Gurus
    I have a very immediate required question on a new functionality at my client place. My client had given a master data BOM and wanted to edit the BOM based on the customer requirement and selected BOM components should get transferred to MRP for the planning.
    So BOM is already maintained and based on the order , Order BOM should be maintained. So after fixing the order BOM components should get transferred for planning. Please Suggest this scenario with all the tcodes and configuration involved .

    Hi,
    Order BOMS are to be used in a MTO scenario if the components are to be transferred to planning.
    No additional customization are required for order bom, following steps are to be followed
    (1) Create a master bom - CS01
    (2) Create a sales order - VA01
    (3) Create Order BOM - CS61 (you can refer to the master bom & copy the relevant components)
    (4) Execute MRP - MD50/MD02
    (5) System shall generate the planned order & it shall have the components assigned in the order BOM
    I hope this addresses your query
    Warm regards,
    Umesh

Maybe you are looking for