How to copy Characteristics of main item to sub item after RBATP?

Hi Experts,
We are having MTO process, where we are creating sales order
for configurable material. Then we are triggering RBATP and getting
confirmation based on product allocations.
But while creating sub items after RBATP, sales order not updating
configurable characteristic values from main item (TAPA) to sub item (TAN).
System is asking to maintain characteristic values for sub item again during
RBATP manually.
How we can copied these characteristic values of configurable material from
main item to sub item automatically?
Regards,
Narendra

Hi Experts,
We are having MTO process, where sales order for configurable material. For these SO,
we are triggering RBATP and getting confirmation based on product allocations
& then accordingly it will consider for further planning in APO. But while
creating sub items for SO after RBATP, system is not updating configurable
characteristic values from main item (TAPA) to sub item (TAN) automatically.
System is asking to maintain these characteristic values for sub item again
during RBATP manually.
We need to understand, how we can copy these characteristic values of configurable
material from main item to sub item automatically?

Similar Messages

  • Material exchane ,copy pricing and conditions from main item to sub item.

    Hi All,
    We are using parts exchange/interchangeability in the transaction ME22N,
    While using ME22N we are exchanging  main item with interchangeable part and while doing so we want to copy pricing and conditions from main item to sub item.
    But its not happening.
    As per sap help its possible, details describe below.
    http://help.sap.com/erp2005_ehp_04/helpdata/en/c2/0a5288b77d11d3bcce00105ab03aee/content.htm
    Price Determination by Copying from Main Item
    In the case of price determination by copying from the main item, the net price of the originally ordered part is still used for the superseding part in a part exchange.
    The system copies all conditions from the main item to all sub-items and takes into account the order quantity for the main item when calculating scale prices. It does not take into account the conditions and scale prices that exist for the interchangeable part.
    You cannot change the conditions, which have been copied from the main item, at sub-item level. It is possible, however, to define additional conditions for each sub-item.
    Prerequisites
    A calculation schema, which can be altered on an individual basis in Customizing, has been supplied for the price determination.
    In the vendor master record, you have set the schema group 09 (interchangeable material).
    But in customizing I didnu2019t find value 09 for schema group .
    Can any buddy through some light on missing pieces which need to be set?
    Thanks
    Regards
    Ritesh

    Hi,
    Can you check few more things and tell me?
    - In this exit, does XVBPA and XVBAP contains all the line items. ( main and sub items ).
    - In Sales order creation time, do these table have VBELN populated when this exit triggers.
    - If you modify XVBPA or XVBAP in this exit, do they get overwritten after that.
    Try this code. See if it works.  Let me know if you still have a problem.
    DATA: wa_hvbpa LIKE vbpa,
          wa_xvbpa like vbpa.
    CLEAR: wa_hvbpa, wa_xvbpa.
    * check if HVBAP and VBAP line items are not same
    IF vbap-posnr <> hvbap-posnr.
    * read the ****-to partner from main-item
      READ TABLE xvbpa INTO wa_hvbpa WITH KEY posnr = hvbap-posnr
                                              parvw = 'WE'.
      IF sy-subrc = 0.
    *   read the line item data for sub-item based on main item
        READ TABLE xvbap WITH KEY posnr = vbap-posnr
                                  uepos = hvbap-posnr.
    * See if current line is the child of that BoM parent
        IF sy-subrc = 0.
          MOVE wa_xvbpa-kunnr TO xvbpa-kunnr.
          MOVE xvbap-vbeln TO wa_xvbpa-vbeln.
          MOVE xvbap-posnr TO wa_xvbpa-posnr.
          MOVE 'WE' TO wa_xvbpa-parvw.
          MODIFY vbpa FROM wa_xvbpa.
        ENDIF.
      ENDIF.
    ENDIF.
    Regards,
    RS

  • Copy down Ship-to Partner from main item to sub-items on Sales Order

    This is my first post on the forums here.  I'd appreciate any help you can give on my issue below.
    I have a requirement to copy down the ship-to partner from the main item to sub-items during sales order create or change.  Currently I have code in include MV45AFZB within user exit USEREXIT_FILL_VBAP_FROM_HVBAP as follows:
    <i>* Need to be able to copy the ship-to of a BoM parent down to the
    respective BoM children if the parent has a different ship-to
    from the header.
    data:  wa_xvbpa like vbpa.
    Clear: wa_xvbpa.
    read table xvbpa into wa_xvbpa with key posnr = hvbap-posnr
                                            parvw = 'WE'.
    A BoM parent line has a different ship-to from the header.
        if sy-subrc = 0.
          read table xvbap with key uepos = hvbap-posnr.
    See if current line is the child of that BoM parent
            If xvbap-uepos = hvbap-posnr.
              move wa_xvbpa-kunnr to xvbpa-kunnr.
              move xvbap-vbeln to wa_xvbpa-vbeln.
              move xvbap-posnr to wa_xvbpa-posnr.
              move 'WE' to wa_xvbpa-parvw.
              modify vbpa from wa_xvbpa.
            endif.
          Endif.</i>
    This isn't working for me.  At one point, I was able to copy the ship-to down to the first sub-item but not any subsequent ones.  I'm sure I need to add some code to another sales order user exit to get this to work, but I'm at a loss at this point.   Has anyone had to do this or something similar before? 
    Thanks very much in advance for your help.
    Angela

    Hi,
    Can you check few more things and tell me?
    - In this exit, does XVBPA and XVBAP contains all the line items. ( main and sub items ).
    - In Sales order creation time, do these table have VBELN populated when this exit triggers.
    - If you modify XVBPA or XVBAP in this exit, do they get overwritten after that.
    Try this code. See if it works.  Let me know if you still have a problem.
    DATA: wa_hvbpa LIKE vbpa,
          wa_xvbpa like vbpa.
    CLEAR: wa_hvbpa, wa_xvbpa.
    * check if HVBAP and VBAP line items are not same
    IF vbap-posnr <> hvbap-posnr.
    * read the ****-to partner from main-item
      READ TABLE xvbpa INTO wa_hvbpa WITH KEY posnr = hvbap-posnr
                                              parvw = 'WE'.
      IF sy-subrc = 0.
    *   read the line item data for sub-item based on main item
        READ TABLE xvbap WITH KEY posnr = vbap-posnr
                                  uepos = hvbap-posnr.
    * See if current line is the child of that BoM parent
        IF sy-subrc = 0.
          MOVE wa_xvbpa-kunnr TO xvbpa-kunnr.
          MOVE xvbap-vbeln TO wa_xvbpa-vbeln.
          MOVE xvbap-posnr TO wa_xvbpa-posnr.
          MOVE 'WE' TO wa_xvbpa-parvw.
          MODIFY vbpa FROM wa_xvbpa.
        ENDIF.
      ENDIF.
    ENDIF.
    Regards,
    RS

  • Copy control line item to sub item condtion gets removed

    Hi All,
    there is an problem happening when I create return order in CRM. when I try to create a sub line item from main item the sub item gets created with diffrent condition type. I check copy control setting all looks fine but while debugging I check that this is happening due to price zone field value in CRM which is coming as zero . When its get compare with ECC which is 008 at run time re-price happen when this condition gets fail.
    I need to know how come I will be able to see the setting of prize zone and incase it needs to download from ECC with which object I can perform the load.
    find my analysis below.
    Price zone is there in CRMD_PRICING_I table
    Setting define item category determination when copying  defined
    item cateogry mapped in Pricing option Assign copy type
    Active pricing for item categories all seems correct except pricing indicator
    Thanks

    Hi,
    Can you check few more things and tell me?
    - In this exit, does XVBPA and XVBAP contains all the line items. ( main and sub items ).
    - In Sales order creation time, do these table have VBELN populated when this exit triggers.
    - If you modify XVBPA or XVBAP in this exit, do they get overwritten after that.
    Try this code. See if it works.  Let me know if you still have a problem.
    DATA: wa_hvbpa LIKE vbpa,
          wa_xvbpa like vbpa.
    CLEAR: wa_hvbpa, wa_xvbpa.
    * check if HVBAP and VBAP line items are not same
    IF vbap-posnr <> hvbap-posnr.
    * read the ****-to partner from main-item
      READ TABLE xvbpa INTO wa_hvbpa WITH KEY posnr = hvbap-posnr
                                              parvw = 'WE'.
      IF sy-subrc = 0.
    *   read the line item data for sub-item based on main item
        READ TABLE xvbap WITH KEY posnr = vbap-posnr
                                  uepos = hvbap-posnr.
    * See if current line is the child of that BoM parent
        IF sy-subrc = 0.
          MOVE wa_xvbpa-kunnr TO xvbpa-kunnr.
          MOVE xvbap-vbeln TO wa_xvbpa-vbeln.
          MOVE xvbap-posnr TO wa_xvbpa-posnr.
          MOVE 'WE' TO wa_xvbpa-parvw.
          MODIFY vbpa FROM wa_xvbpa.
        ENDIF.
      ENDIF.
    ENDIF.
    Regards,
    RS

  • Serial Number assignment for main items and sub items

    Hi
    All, good evening, i need clarificaction on the serial number assignment. My client's requirement is to maintain the serial numbers, so in this regard when i am confirming production order in this i need some information how the serial numbers are picked and consumed for main items and the sub items.
    I need someone to help me in solving this.
    Regards
    Narsing

    dear Narsing,
    please look here:
    http://help.sap.com/saphelp_47x200/helpdata/en/dd/f8c817b3f911d1896e0000e8284931/frameset.htm

  • How to pass control from main controller to sub controller?

    Hi Experts,
    I have created one controller named "available.do" by which I am calling a view "available.htm". On that view I am showing one Button which says Check Availability. On clicking of this button it shows another view "list.htm". But it is showing new view and old view on same page.
    Second I want to add one button on second view "list.htm" which should perform some function. I don't know how I can achieve this functionality?
    Someone has suggested me that for this I have to create sub controller...but i don't know much about it as I am new in BSP.
    Kindly tell me and paste code so that I can solve my both problems.
    <<Text removed>>
    Thanks in Anticipation,
    Virendra Kedia
    Edited by: Matt on Oct 15, 2011 7:25 AM

    Hi,
    I guess you might have below coding in DO_INIT method,
    me->view_main = 'main.htm'.   "Where VIEW_MAIN is the attribute in you main controller of type STRING.
    you should have below coding in DO_REQUEST of main controller.
    DATA: main TYPE REF TO if_bsp_page.
      me->dispatch_input( ).
    *Create main view.
      main = create_view( view_name = me->view_main ).
    *Set desgin attribute.
      main->set_attribute( name = 'design' value = application->design ).
    *Call main page views.
      call_view( main ).
    *Activate  Sub -controller.
      controller_set_active( controller_id = 'sub_cntrl' active = lc_active ). 
      l_cntl_inst ?= get_controller( controller_id = lv_cntl_id ).  "DATA: l_cntl_inst TYPE REF TO cl_bsp_controller.
    *Call sub-controller.
      call_controller( l_cntl_inst ).
    Please check with this.
    Thanks,
    Chandra

  • Service item with sub items ( service master data)

    hi,
    I needa to create a service which contains several individual services in the service master data. (CRM 4.0)
    Can anyone tell me how to create these sub-items of a service product.
    thanks .

    Hi,
    You can define the sub-items of the service using a relationship type "component ->- set" for the higher level service product.
    Best Regards,
    Anup

  • How to copy billing plan details of main item to all its sub-items...

    In the sales order, we have main item and sub-items. The main item is a project item and it has a billing plan which gets copied from the project. Now the requirement is to copy the same billing plan(of the mainitem) to all its subitems- billing dates, billing type, billing rule, date category, percentage of the amount to be billed, etc. So that when we do billing for this sales order all the items and its sub items are copied in the milestone billing document.
    The billing plan is not at header level since the sales order can have multiple project items and their milestones can differ.
    Please suggest how to acheive this- coping of billing plan details from main item to all the subitems.
    Rds,
    sucmsss

    You can use the enhancement section in include mv45af0f_fplan_aktualisieren_c. In the below code, I am copying milestone lines from previous document, but you could adapt to copy from the higher level item. Copy and pretty print it in ABAP editor.
    ENHANCEMENT 10  ZSD_SALES_DOC1.    "active version * Generate Billing Plan without dialog. * Because copy control does not work with milestone billing plans, we need to perform the below tricks.
      DATA: zlt_fplt TYPE TABLE OF fpltvb,         zlt_fpla TYPE TABLE OF fplavb,         zlv_fareg TYPE tfpla-fareg,         zlv_fplnr TYPE fplnr,         zls_vbkd TYPE vbkd.   FIELD-SYMBOLS:TYPE vbkdvb,                 TYPE fplavb,                 TYPE fpltvb,                 TYPE fpltvb.
    IF xvbkd-updkz = chari AND       tvap-fpart IS NOT INITIAL AND *      xfplt[] IS INITIAL AND       vbkd-fplnr IS INITIAL AND "bill plan not created       vbak-vbtyp CA 'CG'. "contracts and orders       SELECT SINGLE fareg FROM tfpla INTO zlv_fareg WHERE         fpart = tvap-fpart.         IF zlv_fareg IS NOT INITIAL AND           zlv_fareg <> '6'.         READ TABLE cvbkd ASSIGNINGWITH KEY         vbeln = vbap-vgbel         posnr = vbap-vgpos.         IF sy-subrc IS INITIAL.           CALL FUNCTION 'BILLING_SCHEDULE_READ'             EXPORTING              fplnr          =-fplnr             tables              ZFPLA          = zlt_fpla              zfplt          = zlt_fplt. * Check if any of the lines are not periodic and not from milestone before proceeding.            READ TABLE zlt_fplt ASSIGNINGWITH KEY            MLSTN = abap_false            nfdat = 0.          IF sy-subrc IS INITIAL.           CONCATENATE '$000' vbap-posnr INTO zlv_fplnr.           ENDIF.         ENDIF.         IF sy-subrc IS INITIAL.           LOOP AT zlt_fplt ASSIGNINGWHERE             mlstn = abap_false.            -fplnr = zlv_fplnr.             APPENDTO xfplt.            -updkz = chari.           ENDLOOP.           LOOP AT zlt_fpla ASSIGNING.            -fplnr = zlv_fplnr.             CLEAR-vbeln.            -updkz = chari.             APPENDTO xfpla.           ENDLOOP.           da_fplnr =-fplnr.         ENDIF.       ENDIF.     ENDIF.     CALL FUNCTION 'BILLING_SCHEDULE_GENERATE'          EXPORTING               I_FKDAT        = VBKD-FKDAT               I_FPLNR        = DA_FPLNR               I_WAERS        = VBAK-WAERK               I_FPART        = TVAP-FPART               I_VEDA         = XVEDA               I_VEDA_KOPF    = VEDAVB               I_UPD_FPLA     = UPD_FPLA               I_UPD_FPLT     = UPD_FPLT               I_KOMK         = TKOMK               I_KOMP         = TKOMP               I_KOMPAX       = KOMPAX               I_FKREL        = VBAP-FKREL               I_CREATE_DATES = US_FLG_CREATE_DATES               I_KFPLAN       = DA_KFPLAN               I_KFPLNR       = DA_KFPLNR               I_NOMSG        = US_NOMSG               I_ABSAGEN      = DA_ABSAGEN               I_FPLAA        = FPLAA          IMPORTING               E_FPLNR        = XVBKD-FPLNR               E_DATALOSS     = DA_DATALOSS               E_UPD_FPLA     = UPD_FPLA               E_UPD_FPLT     = UPD_FPLT               E_KOMPAX       = KOMPAX          TABLES               FPLA_NEW       = XFPLA               FPLA_OLD       = YFPLA               FPLT_NEW       = XFPLT               FPLT_OLD       = YFPLT               I_FPLTS        = TFPLTS               I_FPLTNP       = TFPLTNP               I_KOMV         = XKOMV               I_TKOMK        = TKOMK               I_SVBAP        = UVBAP.     LOOP AT zlt_fplt ASSIGNING.       READ TABLE xfplt ASSIGNINGWITH KEY       mandt =-mandt       fplnr =-fplnr       fpltr =-fpltr.       CHECK sy-subrc IS INITIAL.      -updkz = chari.     ENDLOOP. ENDENHANCEMENT.

  • Sub items are not getting copied into excise invoice

    Hi Guru's
    I am using Sales BOM in my sale order, pricing and inventory are controlled at sub-item level.
    I am creating the outbound delivery with reference to sale order and billing document (Commercial Invoice) with reference to outbound delivery.
    When I create an excise invoice in J1IIN, subitems are not getting copied from billing document, instead only main item is getting copied along with sum of all the excise duties of subitems. Ex: A is main item (Not relevant for pricing). B and C are subitems with excise duty 10 and 20 respectively. Here A is getting copied with excise duty 30 (10 +30).
    When I download the excise register, register is showing all A, B and C items with quantity but it is not showing the corresponding excise duties of subitems. We would like to avail cenvat at sub items.
    Kindly suggest me how can I copy subitems into excise invoice from billing document.
    Thanks & Regards.
    Swamy H P

    Hi Lakshmipathi,
    Thank you so much for the response.
    Yes, I am able to save the outgoing excise invoice(J1IIN) without any errors. It's working fine for normal materials(With out BOM), but for BOM materials even though main item is not relevant for pricing as pricing is controlled at sub items all the excise duties (BED, ECS and S&H cess) of sub items are getting copied to main item while creating the outgoing excise invoice.
    I mean excise invoice is showing only main item with all the sub items excise duties. same is getting posted also.
    But when I extract and download RG1 register, RG1 report is showing both main item and sub items with quantity but excise duties are not shown.
    I debugged and found that excise duties are not flowing to table J_1irg1 from J_1iexcdtl.
    Thanks & Regards,
    Swamy H P

  • SAP Retail Store/WCSO Sub Item

    Hello,
    I would like to update condition within IAC WCSO sales order; I have a main item and a sub item; the sub item is assigned by the field HG_LV_ITEM on WISO_ITEM This is working properly.
    But trying to insert a condition such as ZVKP to this sub item it is not working; at first, the condition seems to be assigned, but by second refresh the condition disappears.
    Do I have to consider something due to sub item?
    Thanks for your information in advance.
    Regards,
    Kurt.

    The problem has been solved. In SAP Retail store sales order it is possible to set up sub items.

  • Sub Items in MenuBuilder

    I am creating a menubuilder project that includes Items and
    Sub Items. As I am creating the project the Items and Sub Items are
    displayed in the menu format with the sub items underneath the
    Item. Also, there is the expand/collapse indicator when there are
    sub items but when the menu builder project is finished all of the
    sub items are treated as items and the expand/collapse indicator is
    not displaying. Is there a way to display the menu builder project
    in a heirarchal format with Items and Sub Items?

    I see what you mean, tsl500. Thanks much for the
    clarification.
    The plus and minus items are there as a part of the wizard
    when setting up the Menu Builder project, but in fact, are not a
    part of the final product when published.
    If you want that functionality, you would have to create your
    menu in DHTML, most likely, in which case Menu Builder wouldn't be
    needed anyway.
    But if you would like to see that function included in
    future versions of Menu Builder, you can let the development team
    know by posting a new Feature Request
    by
    clicking this link right here.
    Does that answer your question? Hope so, but if not, let me
    know.
    best~
    Larry

  • How to automat. copy configuration of higher level material to sub-item

    Hi Experts,
    I have Make to Order Scenario. 
    My customer wants the configuration of the non-phantom sub-items in the sales order to be automatically copied from the configuration of the higher level material.
    I have added the ZCOPY function module( to copy configuration) to the configuration profile of the sub-item but the program flow does not go through the function module because sub-item has a link to higher level material.
    If I go to the configuration of the sub-item in VA02, it appears a message u201CThe item configuration can only be changed by that higher level materialu201D. All chosen characteristics of the higher level material are shown, actually configuration of the higher level material is shown because of the link. But in CU44 of that sub-item, sales order no
    Characteristics are selected. 
    Any suggestion how and where to place automatic copy of the configuration of the higher level material to the sub-item?
    Kind regards,
    Danijela Zivanovic

    Vivek & Madhava
        Thank you for your comments. I know that adding A's routing to B is the best simple way to solve the problem. But as a little part of our global firm, our plant can't change master data related to cost calculation so easy. Every chance should be verified by global cost control team. And the routing is B is already very complex, we don't want to make it more complex.
        As same, create another material code is not available too because this should be considered by global team.
        Currently, we are creating production order for A separately. And A was looked as a component in B's production order. So, there are 2 production orders should be deal with. In fact, these two orders should be done at same time. It was complained by shop floor that too much order confirmation work to do. Warehouse complains too.  And further, this way disturbs production planning very much due to the system will not always plans these 2 orders together.
    Regards
    Robbie

  • How to copy List item from one list to another using SPD workflow using HTTP call web service

    Hi,
    How to copy List item from one list to another using SPD workflow using HTTP call web service.
    Both the Lists are in different Web applications.
    Regards, Shreyas R S

    Hi Shreyas,
    From your post, it seems that you are using SharePoint 2013 workflow platform in SPD.
    If that is the case, we can use Call HTTP web service action to get the item data, but we cannot use Call HTTP web service to create a new item in the list in another web application with these data.
    As my test, we would get Unauthorized error when using Call HTTP web service action to create a new item in a list in another web application.
    So I recommend to achieve this goal programmatically.
    More references:
    https://msdn.microsoft.com/en-us/library/office/jj164022.aspx
    https://msdn.microsoft.com/en-us/library/office/dn292552.aspx?f=255&MSPPError=-2147217396
    Thanks,
    Victoria
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • How to Copy list item attachment to document library in SharePoint 2010

    Hi,
    How to Create a folder ("List Item - Title Name") in Document library and copy list items Attachments to the same folder in SharePoint 2010,thanks in advance.
    Regards,
    Selvan.J
    Selvan J

    Hi,
    You should first check whether the folder exists in the library, if the folder not exists, then create it.
    I had modified the code, you can use the following code snippet to achieve it.
    private void EventCopyFileWhenItemCreatedOrUpdated(SPItemEventProperties properties)
    SPSite site = new SPSite(http://YourSiteName);
    SPWeb web = site.OpenWeb();
    SPList doclibList=properties.Web.Lists["YourLibName"];
    bool foundFolder = false;
    if (doclibList.Folders.Count>0)
    foreach (SPListItem fitem in doclibList.Folders)
    if (fitem.Title.Equals("FolderA"))
    foundFolder = true;
    break;
    if (foundFolder == false)
    SPListItem folder = doclibList.Folders.Add(doclibList.RootFolder.ServerRelativeUrl, SPFileSystemObjectType.Folder,"FolderA");
    folder.Update();
    string fUrl = doclibList.RootFolder.ServerRelativeUrl+"/FolderA";
    SPFolder myLibrary = web.GetFolder(fUrl);
    if (properties.ListTitle == "YourListName")
    SPListItem sourceItem = properties.ListItem;
    properties.Web.AllowUnsafeUpdates = true;
    //get the folder with the attachments for the source item
    SPFolder sourceItemAttachmentsFolder =
    sourceItem.Web.Folders["Lists"].SubFolders[sourceItem.ParentList.Title].SubFolders["Attachments"].SubFolders[sourceItem.ID.ToString()];
    //Loop over the attachments, and add them to the target item
    foreach (SPFile file in sourceItemAttachmentsFolder.Files)
    if (CheckFileNameExist(file.Name , properties) == false)
    byte[] binFile = file.OpenBinary();
    myLibrary.Files.Add(System.IO.Path.GetFileName(file.Url) , binFile);
    private bool CheckFileNameExist(string fileNameInFileAttach, SPItemEventProperties properties)
    bool flag = false;
    SPList myDocumentLib = properties.Web.Lists["YourLibName"];
    SPQuery spQuery = new SPQuery();
    SPListItemCollection items = myDocumentLib.GetItems(spQuery);
    foreach (SPListItem item in items)
    if (fileNameInFileAttach == item["Name"].ToString())
    flag = true;
    break;
    return flag;
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • How to copy complete internal table into main dababase table

    please tell me how to copy complete internal table into main dababase table by overwriting all the entries of the main DBtable.

    HI,
    you can use<b> Insert Or  Modify statement ..</b>
    <b>Modify updates the existing record, insert creates a new one. ...</b>
    insert ZDBTAB from table itab.
    Modify ZDBTAB from table Itab.
    The structure of itab should be exactly the same as the z table.
    You should not update standard tables directly though.
    rewards if usefuyl
    regards,
    nazeer

Maybe you are looking for