Wip bom for main bom ?

HI ,
can any body explain me what is meant by Work in Process BOM for Main BOM....... in which scenario it is used in the business.
regsrds,
venkat.

Can you please explain your question in detail.
there is no Work in Process BOM ...
thanks
Chandan.

Similar Messages

  • Function Module for BOM for posting BOM component long text

    Is there any SAP provided Function Module for posting BOM components long
    text if so please let me know as it is very urgent for me.

    Hello Sridevi,
    The following customer exits are available for BOM, please check the excect one.
    http://help.sap.com/saphelp_46c/helpdata/en/4a/d286ba5a1111d3b47b006094b9d648/frameset.htm
    Hope this helps.
    Regards
    Arif Mansuri

  • Exclude ECN for Single BOM application

    Hi Gurus,
    My client implemented ECN for BOM , now the requirement is of removing ECN from BOM usages "Plant maintenece". So kindly sugeest how it can be done , Shall I Use some exit of changing BOM whicle saving and commit the change number if BOm usages in PM  or there is any other way to go for it?
    Thanks in advance.
    Sap user

    Dear sap user,
    Create a separate role for creating BOM for specific BOM application and check for this authorization object(C_STUE_NOH) value
    from No to "Yes" in all the roles which has the the authorization for the BOM creation or change,and assign it the user.
    Check whether this works out.
    Regards
    S Mangalraj

  • Can i get sample BP80 for Quality,BOM,WIP and Engineering Modules

    Can anybody let me know from where i can get the sample BP80 Docs for quality,BOM ,WIP,MRP and Engineering.
    I have the templates of BP80 as per AIM Methodology but i need some same docs on the above modules.
    Regards,
    Bala.

    Hi
    Please find the link for this as http://www.ziddu.com/downloadfile/1682474/AIMtoolaset.EXE.html
    Install this. You will find link in software itself for all templates.
    I have quick question for you.
    Can you please share your organisation structure format of automotive solution?
    Thanks in Advance.
    Edited by: user11981009 on 03-Dec-2011 21:18

  • For LUMF - BOM, Plant field in Sales Order should be editable for TAP

    Dear Gurus,
    I have the following requirement.
    Requirement...
    TheComponent level BOM (LUMF) should be exploded in sales order with one by default plant when iI enter the main component in Sales order but if I want to change the plant of main item manually system should allow me in order change mode. And this changed plant to be determined automatically for all the components of that BOM.
    As we know if we maintain the BOM at component level we will use the Itm Catg Grp "LUMF" so the pricing will be determined on the component level.
    In CS01 we maintain the BOM for a main item. I have followed the same process in CS01 by entering Main Item material, Plant and BOM usage (5). whenever i enter the main item in sales order it explodes correctly with components, quantity and Plant.
    The Plant field for main item (TAP itm Catg) becomes gray. But now my query is that if I want to change the plant of main item system is not allowing me as I have  created BOM for a specific Plant. Same Bom I have maintained with other plants also
    I know that We have one more option in CS01 like we can create a BOM without entering Plant also. But before I doing it for trial and error I want to know whether it will work for my latest requirement.
    And what is the Group BOM ? how to use it? will it be helpful me in this requirement?
    Please help me for the issue, I need to configure it as soon as possible.
    regards,
    Vojas

    Dear Kapil,
    Thanks for your suggestion i followed it also but yet I am facing the same problem.
    I did as follows
    I extended the Main item and components to the different plants.
    And also created the same BOM for different plants in CS01.
    After doing this if I create a Sales order and enter the Main Item with quantity system asks me for the Plant to explore the BOM, as i enter a plant BOM get explodes and the plant for main item becomes gray which i dont want. Any how I want the this plant field for main item in editable mode.
    Let me explain my requirement in short
    I maintain the LUMF BOM (Pricing at component level) .
    once I enter the BOM material with quantity system should explode the bom with one plant by default. and in change mode of sales order the Plant for main item should be editable instead of gray mode. Becoz decision can be changed later on the delivering plant location.
    Please suggest me. Its a high priority issue for me.
    regards,
    Vojas

  • How to enable purchasing tab in BOM, while defining bom for a item

    dear gurus,
    while defining a bom for a item, there ae various tabs like main, effectivity, OM etc. among that purchasing tab is in disabled state. how to enable that.
    pls provide setup and whats actual use of that.
    waiting fr reply.

    Dear,
    For a phantom assy the special procurement key in the material master should be 50. You have done the right thing.
    But in the BOM of FERT please remove the phantome assy Off indicator. Once you maintained the special procurement key 50 in material master, the phantom indicator will be acutomatically set in the high level bom.
    Hence if you activate the phantom assy off then this will override the phantom indicator
    For more understanding please see trhe below links
    http://www.sap-img.com/production/what-exactly-is-a-phantom-item-or-assembly-means.htm
    Regards,
    R.Brahmankar

  • Adding alternate component in the same BOM for 2 level BOM setup

    Hello,
    I have a BOM with the following setups -
         BOM_A components are BOM_B, Comp_A1, Comp_A2
         BOM_B components are Comp_B1, Comp_B2
    The need is to have an a BOM with components Comp_B1, Comp_B2, Comp_C1. if I create this as an Alt of BOM_B, how can I use this alternate in BOM_A?
    Can anyone please let me know if there is a way to specify the alternate of BOM components in multi level BOM?
    Regards,
    Manju

    Hello Manju,
    Can you please specify the exact business requirement.
    Why this is required at BOM Level?
    If BOM_B (comp_B1,comp_B2 & comp_C1) is Alt. bom & WIP job completed using this Alt. BOM then syste will take care / consider valuation as per Alt. BOM for first level bom (BOM_A) WIP job.
    Thanks
    NS

  • LSMW Batch Input Recording for Create BOM

    Dear All,
    I want to do LSMW for Creating BOM using Batch Input Recording,
    I know that i have to make 2 time Recording, first for the BOM Header and second for the BOM item
    For the BOM header i have done it, but for the BOM item i got some trouble with the item number (POSNR),
    when i run the LSMW, for the first item (item 0010) was success, but for the item 0020, it can't work and i got error
    message " NO BATCH INPUT FOR SAPLCSDI 0150"
    How is the recording step by step for BOM Item so the Item number can increase well?
    Very need your help,
    Regards,
    Marufat

    Hello Santosh,
    Thanks for the reply,
    I already check in SM35 where i also thought that the main problem is about adding the new item number,
    but when i tried to do repeat recording, i can not find any entry for adding the line item, so the line item after 0010 cannot be input
    Is there any solution?
    Regards,
    Marufat

  • 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

  • VOV4 settings for return BOM material

    Dear Experts,
    The scenario is related to Bill Of Material(BOM). PGI is done  with mov type 601 with  sch line category CP for main material and CT for components.
    Now what settings is required in VOV4 for return BOM item and what movement type is required.
    1.    For ERLA  -
       TAQ
    1.1  For NORM -
       TAE
    2     For LUMF -
    TAP
    2. 1  For NORM -
    TAN
    Regards
    Jyoti

    Dear Jyoti,
    Did you check this thread
    Return sales  of header level BOM subcomponents
    Here Mr Jonathon has answered similar question very fanatstically.
    Thanks,
    Raja

  • PGI for sales BOM but deficit

    Dear All,
    I had config the sales BOM  like: main Item cate grp : ERLA and sub-item cat grp NORM so pricing is relevant for main item. But when I do PGI, the system show deficit of main item even the sub-items are not deficit. So do u have any idea in my trouble? THks a lot for your contribution!
    Regards,
    Nguyen Pham.

    Hi  Mr.Chandrasekhar,
    In DO, I see 3 lines with main item and 2 sub items. Main Item require picking and sub-item picking field is disable  and as I see I could do nothing with sub-item, only operate on main item so after key picking qty for main item, do PGI and get deficit message for main-item. Thks for your support!
    Regards,
    Nguyen Pham

  • Help reqd on Changing the Valid from "date"  for both BOM & Routing

    Hi all...
    Pls advise me how to do the changing of Valid from "date"....
    Is there any process in CC01 or ECM???....
    pls reply me in detail step format (step by step analysis)....
    I wrongly created in CS01 and CA01 as 05.10.2007 as my valid from date instead of 01.10.2007.....
    How to change to my actual one......
    I dont know how to change it exactly.....as im beginner in SAP...pls take this into consideration...and post ur replies imm.
    Pls reply me in detail....will be rewarded at the end while closing this issue.
    thanks & regards
    sankar

    Dear Sankarbabu,
    IF there's no setting for Date Check in OS54 - Engineering Change Management
    Control Data,then you can create a change number with past dates,and also to
    use the same one for changing BOM.
    Tell me one thing you are saying you want to use ECM.Was the earlier one
    created without BOM was created without an ECN?
    See already if you have created your BOM with an ECN,then remove the date
    check setting which I have mentioned in OS54.
    Now goto T code CC02 ,enter the Change number and give the valid from date as
    01.10.2007.
    After that check in CS03 whether this date(01.10.2007)is getting reflected or not.
    I'm sure this will solve your problem.
    Regards
    Mangal

  • How to change the header of Material BOM in a program for alternative BOM ?

    Requirement: An Inbound IDOC creates /change/delete Alternative Material BOM. The Alternative Material BOM can have alternative values from 1 to 99.
    ISSUE: I am good with CREATE and DELETE BOM. The issue is with CHANGE of header Material BOM. The fields which we need to change in the header is the base quantity, BOM status, Lot Size from and Lot Size to. Please note that I am able to change the item details of the BOM with FM CSAI_BOM_MAINTAIN. I find no FM /BAPI which would change the header of a material BOM.
    Please NOTE that I am using BAPI_MATERIAL_BOM_GROUP_CREATE to create alternative Material BOM. This has a parameter in TABLES called "VARIANTS" which has a field CS_FUNCTION which can have value from NEW/CHG/DEL .Also ,there is another parameter in TABLES called "ITEMASSIGNMENTS" which has a field CS_FUNCTION which can have value from NEW/CHG/DEL which implies this FM will allow us to change the BOM. But this does not work when I use it for CHANGE scenario with CHG value. I debugged this BAPI and observed it requires a STNLR(Bill of Material) value . This field is not there in any of the structure. I am not sure if I am passing the right parameters to it.
    Let me know if the parameters are passed correctly for CHANGE scenario.
    Also let me know if there is any other way(FM/BAPI)  to update the Header of the Material BOM ?
    Here is the code I am using:
    *& Report  ZTEST_S_E
    REPORT  ZTEST_S_E.
    * This code will create a material BoM for the material
    * MAINMATERIAL with the components COMPON1 and COMPON2.
    * Data Declaration
    DATA:
    it_bomgroup LIKE bapi1080_bgr_c OCCURS 0 WITH HEADER LINE,
    it_variants LIKE bapi1080_bom_c OCCURS 0 WITH HEADER LINE,
    it_items LIKE bapi1080_itm_c OCCURS 0 WITH HEADER LINE,
    it_matrel LIKE bapi1080_mbm_c OCCURS 0 WITH HEADER LINE,
    it_itemas LIKE bapi1080_rel_itm_bom_c OCCURS 0 WITH HEADER LINE,
    it_return LIKE bapiret2 OCCURS 0 WITH HEADER LINE.
    * Fill the data
    * Material BoM Group Header Data
    CLEAR it_bomgroup.
    it_bomgroup-bom_group_identification = 'BAPI_SMP_COL1'.
    it_bomgroup-object_type = 'BOM'.
    it_bomgroup-object_id = 'SIMPLE1'.
    it_bomgroup-bom_usage = '1'. " YOU COULD CHANGE THE BOM USAGE TO YOUR
    *NEEDS
    it_bomgroup-ltxt_lang = sy-langu.
    it_bomgroup-technical_type = ' '.
    it_bomgroup-bom_text = 'Simple BoM - FM'.
    APPEND it_bomgroup.
    * Header Details of the different variants
    CLEAR it_variants.
    it_variants-CHANGE_NO  = '500000000349'.
    it_variants-bom_group_identification = 'BAPI_SMP_COL1'.
    it_variants-object_type = 'BOM'.
    it_variants-object_id = 'SIMPLE1'.
    it_variants-alternative_bom = '01'.
    it_variants-bom_status = '01'.
    it_variants-base_qty = '2.000'.
    it_variants-valid_from_date = sy-datum.
    it_variants-function = 'CHG'.
    APPEND it_variants.
    * Details of the items of the variants
    CLEAR it_items.
    it_items-bom_group_identification = 'BAPI_SMP_COL1'.
    it_items-object_type = 'ITM'.
    it_items-object_id = 'SIMPLE1'.
    it_items-item_no = '0010'.
    it_items-item_cat = 'L'.
    it_items-component = '030790490'.
    it_items-comp_qty = '2'.
    it_items-valid_from_date = sy-datum.
    APPEND it_items.
    CLEAR it_items.
    it_items-bom_group_identification = 'BAPI_SMP_COL1'.
    it_items-object_type = 'ITM'.
    it_items-object_id = 'SIMPLE1'.
    it_itemas-change_no = '500000000138'.
    it_items-item_no = '0020'.
    it_items-item_cat = 'L'.
    it_items-component = '030790490'.
    it_items-comp_qty = '3'.
    it_items-valid_from_date = sy-datum.
    APPEND it_items.
    * Details of the materials of the different variants
    CLEAR it_matrel.
    it_matrel-bom_group_identification = 'BAPI_SMP_COL1'.
    it_matrel-material = '030790490'.
    it_matrel-bom_usage = '1'.
    it_matrel-alternative_bom = '01'.
    APPEND it_matrel.
    * Linking items to the corresponding variants
    CLEAR it_itemas.
    it_itemas-bom_group_identification = 'BAPI_SMP_COL1'.
    it_itemas-sub_object_type = 'ITM'.
    it_itemas-sub_object_id = 'SIMPLE1'.
    it_itemas-super_object_type = 'BOM'.
    it_itemas-super_object_id = 'SIMPLE1'.
    it_itemas-valid_from_date = sy-datum.
    it_itemas-function = 'CHG'.
    APPEND it_itemas.
    * Create variants
    CALL FUNCTION 'BAPI_MATERIAL_BOM_GROUP_CREATE'
    EXPORTING
    all_error = 'X'
    TABLES
    bomgroup = it_bomgroup
    variants = it_variants
    items = it_items
    materialrelations = it_matrel
    itemassignments = it_itemas
    return = it_return.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
    LOOP AT it_return.
    WRITE:/ it_return-type, it_return-id, it_return-number,
    it_return-message.
    ENDLOOP.
    Let me know if the parameters are passed correctly for CHANGE scenario.
    Also let me know if there is any other way(FM/BAPI)  to update the Header of the Material BOM ?

    Try doing something like this:
    class MyJTextArea extends JTextArea {
        public boolean keyDown(Event evt,int key) {
            if(key == 13 || key == 10) { // or whatever ascii codes enter may have
                // move carret to next line
            } else {
                super.keyDown(evt, key);
    }which means you have got to catch the enter-key before the actutal JTextArea does this.
    p.s. look at my post, maybe you can help me, too.
    http://forum.java.sun.com/thread.jsp?forum=5&thread=465803&tstart=0&trange=100

  • Creation of BOM for given scenario

    Hi All
    I have a requirement of creating BOM under the given scenario:
    I am currently into some food industy implementation wherein a certain raw food product is bought from farmers, It is then segregated as per the grade through a grading machine, the grade is again based on the size of the raw material, the challenge which am facing is if suppose the input to the machine is 100kg then after grading process how much of the input would be coming as Grade-A, Grade-B & Grade-C is not confirmed, it can be any combination of these three or it can be combination of these three & the wastage as well.
    I shall look forward to your valuable inputs for mapping of the BOM in the given scenario.
    Regards,
    J K Tharwani

    Hi JK,
    I had worked on a similar scenario, but there is one thing which is not clear and needs to be decided by you with the business is fixing of the quantity of any one grade i.e A,B or C the theoritical quantity and approximate scrap that you can expect. Once this decision is made then depending on the costing point of view you shall decided whether you need to go the co product way or the byproduct way along with the apportionment structure decision.
    For our purpose say we have decided that normally B grade product comes out in more quantity when processing the input product "X". Then we can create a BOM with the header material as "B" and the components shall contain "X" in positive quanity and the other grades "A" ,"C", and scrap in negative quantities. So the BOM will look like this
    say for example the B grade you shall get 60 kgs out of every 100 kgs of X. then the bom will look as follows
    B(60)= 1.component X=100 kgs ,2. component A=(-20 kgs) 3. component B= (-20 kgs)
    By using the above structure once a process order is created for B then the input product gets consumed (261 movement takes place) and paralley the 531 movemnt takes place for component A and B since they are in negative quantities and parallely B gets 101 GR to take place.
    But its the business to decide the approximate composition for the BOM depending on the type of raw material they get. The business normally knows if the raw material comes from this farmer what kind of grade can be expected.
    Hope this solution solves your issue.
    Best Regards
    Sasibhushan

  • Bom for production order and subcontracting

    Dear guru ,
    I have a finished material that can be use both produced in-house and procured externally with subcontracting.
    Now i use one only bom with usage 1 (production ) for the two process.
    I have a problem for one component.
    For subcontracting i must consider this component as a phantom (with explosion of its components) , instead for the in-house production I must consider this component as a normal stock item.
    Can I use only one bom or I must create an alternative bom for manage the two cases ?
    Thanks for your help.

    Dear CRIS,
    In my understanding this may create discrepancies during the material transfer from own stock to the vendor and also during
    month end checking process.
    What's the problem of maintaining that component as a stock item?why it should be treated as a phantom only for sub-
    contracting?
    Even if you are maintaining 2 different alternative BOM's for the final product one with the component as a normal assembly and
    the next one as a phantom,you will be facing issues during costing purpose and material inventory also.
    Come back with your further questions.
    Regards
    Mangalraj.S

Maybe you are looking for

  • FTP Connection Parameters

    Hi All, 1) I am creating a structure with fields "Name", "Street" and "City". While creation i want to make "Name" fields as mandatory. Is it possible. If so how to achieve this. 2) What is the purpose of Context Object and in which situation we will

  • I can see my tones on "my device" but they dont appear on my phone. How do I get them to appear on my Iphon6?

    If I can see my tones on "my device", but don't appear on my iPhone 6, How do I get them on to my phone?

  • Email PDF with a different filename

    Is it possible to submit the PDF via email with a different or custom filename? For example, if I am entering data in a file called myform.pdf, I click a submit button to send the filled pdf form via email, I would like the name of the PDF form to be

  • Network range problem

    network search capacity....Not able to gets network in area where other phone like micomax i phone 4,5,5s show good network....call is also having problems ....while other phone don't have any problem ...i felling as m runed by nokia because of this

  • Activation Failed: The context model node has not been bound to a model cla

    Hi Experts, I have created a DC for Models and created a DC for the Application. Have done all the steps that are required for getting the Model DC into the Application DC. Have made all the binding to the Controller and View, But durring the activat