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

Similar Messages

  • Copy control for material determination sub item

    I had created material determination sub item(TAPS) correctly on sales order, but when I use VL01N, the sub item does not copy into the outbound delivery.
    My item level of delivery copy control configuration (VTLA)  is as below:
    order requirement: 101
    item date: 110
    Does anyone offer some suggestion?
    Thanks!

    Our case is:
    standard sales order type "KB":
    item_number          item_category         material_number          Qty
    10                          TAX                         A                                  10
    11                          TAPS                       B                                    1
    12                          TAPS                       C                                    9
    but the result of  standard outbound delivery "LF" that I created from foregoing order is:
    item_number          item_category         material_number          Qty
    10                          TAX                         A                                  10
    20                          TAPS                       A                                  10
    I would like to know where the configuration should I make a modification for correct delivery to resemble the following:
    item_number          item_category         material_number          Qty
    10                          TAX                         A                                  10
    20                          TAPS                       B                                    1
    30                          TAPS                       C                                    9

  • 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

  • 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?

  • 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

  • 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 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

  • Item determination from copy control

    while copying return order from invoice. the item category is put as G2N in copy control whereas in item category determination the same is put as ZREN.
    While creating return order WRT invoice the item category shows ZREN. Pls help to understand the use of item category proposal in copy control.
    Regards,
    Kanchan

    Hi,
    the item category is put as G2N in copy control whereas in item category determination the same is put as ZREN.
    This two item categories are one from source document and other is for target document
    G2N is from source document and ZREN system should propose it in target document so according to this business transaction can behave.
    kapil

  • Disappear sub-items Va01 Va02 va03

    Hi,
    i have the next problem. We have a item in sales order that explode (BOM) subitems.
    Oue customer doesn`t want to see the subitems in sales overview or item overview. They only want to see in structure tab (and in gray status).
    Some body can help me.
    I don`t want to see sub-items in a sales order (it depends of the item category).
    We proved with USEREXIT_FIELD_MODIFICATION, but we don`t know how to disappear all the subitems.
    Thanks

    hi,
    thanks for the information.
    But the problem is that i need BOM explode. But our customer doesn´t want to see the sub-items in the sales order items. But the problem is that there are sub-items with BOM again, so i have three levels in my sales order:
    Level 1      Main item
    Level 2          Sub-item
                        Main sub-item
    Level 3                    SUb Sub items
    They onlu need to see Main item and main sub-item. It depends of the category items.

  • 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

  • Copy controls, how to do it

    The SOrder type is ZOR1
    The deliv doc type is ZLF1
    How to set copy controls at the header and item levels???
    gone to VTLA....selected both the docs...how to set copy controls between header and item level...please help me...

    Dear raghu ram
    At Header Level :
    Conditions :
    Order requirements:::::::::001
    Combination requtmt:::::::051
    Data Transfer
    Header Data:::::::::::::::::::001
    At Item Category Level
    Order requirements::::::::101
    Data Transfer
    Item data:::::::::::::::::::::::101
    Business Data::::::::::::::::2
    Select "Update document flow"
    thanks
    G. Lakshmipathi

  • How to delete a Item line in a Sales Order during Copy Control

    I want to delete a Line item (VBAP ) record for a certain condition during Copying from reference  . I am writing the code in the Data Transfer Routine 151 which is called through VOFM Transaction  . I  cannot delete it as it . it is a work area VBAP . When i Clear it in debugging i am only able to clear the Line items . I want to completely remove the line . Is there a user exit for the same .

    Hi,
    You should create a new copy requirement routine at item level in order to exclude the unwanted item.
    Assign the requirement routine to each item category type in the copy control .
    Regards,
    Andrea

Maybe you are looking for

  • How to delete duplicate events in iCal

    Somewhere along the line of upgrading, syncing, etc. with MobileMe we had, no joke, thousands of the same events duplicated.  We started out trying to shift-click to delete multiple events at a time, but since it is syncing with MobileMe everytime th

  • Horizontal shifting bars on MBP 15 after disconnecting 24" LED cinema display and waking up from clamshell mode.

    I use my MBP 15 (late 2011) with 24" Apple LED Cinema display in a clamshell mode. After disconnecting external display, and opening display, it shows horizontal shifted bars, so it becomes completely unusable. Have to hard reset laptop. Any hints on

  • TS1717 new itunes library error

    My itunes wont open and displays the error message new itunes library

  • Delay in the delivery of File in PI 7.1

    Hi Experts I am working on a proxy to file scenario in PI 7.1 where I need to deliver the file to two receivers, When the file is delivered to the first location it needs to be delayed for some time 20 min and same file needs to be delivered to the s

  • Error when activating an ODS

    Hi, I am trying to activate an ODS but I get the error message "Log  could not be written on output device T". If I check it I see that the ODS is consistent. Thanks Miguel