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

Similar Messages

  • Restrict referance of pricing and condition type from latest PO.

    Hi Experts,
    I am creating Purchase order and at the time of creation of purchase order system is copying prices and condition types from latest PO.
    Which is not desirable to our business process, when I dig out I found out that in standard SAP system
    The system looks at pricing in the hierarchy order as below:
    u2022     Contracts/scheduling agreement
    u2022     Condition records
    u2022     Info Records
    u2022     Last purchase document
    So can some one help me with information how to restrict system to follow this referance of pricing.
    I want to enter price as well as condition type manualy every time user create a purchasing document.
    Also i want to know can it be restricted specificaly for few document type.
    Thanks
    Best Regards
    Ritesh

    Hi sir
    can we try this
    Use the user parameter EVO to indicate that no price adoption from last Purchase Order must take place:
    IMG: MM -> Purchasing -> Environment data -> Default values for Buyers
    -> Setting for Default values.
    Select or setup a default value and on the "price adoption" tab you may choose how copying of conditions from last purchase order must behave. Select "Do not copy".
    Then assign this default value to the user, using the EVO parameter.
    [http://sap.ittoolbox.com/groups/technical-functional/sap-log-mm/price-to-flow-from-info-record-at-plant-level-813066]
    [Re: new info record with same details as archive one.;
    check following notes it may helfull
    569885 About Info Record Update indicator (EKPO-SPINF)
    13127 Update in info record from PO, quotation, contract
    430543 FAQ: Purchasing info record
    675523
    456691
    Regards
    Kailas ugale

  • One question about Pricing and Conditions puzzle me for a long time!

    One question about Pricing and Conditions puzzle me for a long time.I take one example to explain my question:
    1-First,my sale order use pricing procedure RVAA01.
    2-Next,the pricing procedure RVAA01 have some condition type,such as EK01(Actual Costs),PR00(Price)....,and so on.
    3-Next,the condition type PR00 define the Access Sequences PR00 as it's Access Sequences.
    4-Next,the Access Sequences PR00 have some Condition tables,such as:
         table 118 : "Empties" Prices (Material-Dependent)
         table 5 : Customer/Material
         table 6 : Price List Type/Currency/Material
         table 4 : Material
    5-Next,I need to maintain Condition tables's Records.Such as the table 5(Customer/Material).I guess the sap would supply one screen for me to input the data of table 5.At this screen,the sap would ask me to select one table,such as table 5.When I select the table 5,the sap would go to the screen to let me input the data of table 5.But when I use the T-CODE VK31 or VK32 to maintain Condition tables's Record,I found it's total different from my guess:
    A-First,I can not found one place for me to open the table,such as table 5,to let me input the data?
    B-Second,For example,when I select the VK31->Discounts/Surcharges->By Customer/Material,the sap show the grid view at the right side.At the each line of the grid view,you need to select the Condition Type at the first field.And this make me confused very much.Why the sap need me to select one Condition Type but not the Condition table?To the normal logic,it ought not to select Condition table but not the Condition Type!
    Dear all,I'm a new one in sd.May be this is a very stupid question.But it did puzzle me for a long time.If any one can  explain this question in detail and let me understand the concept,I will appreciate him/her very much.Thank you.

    Hi,
    You said that you are using the T.codes VK31 or VK32.
    These transaction codes are used to enter condition records for standard condition types. As you can see a grid left side having all the standard condition types like price, discounts, taxes, frieghts.
    Pl check using T.code VK11 OR VK12 (change mode)
    Here you can enter the required condition type, in the intial screen. (like PR00, MWST, K004, K005 .....etc)
    After giving the condition type, press enter or click on Combinations icon on top of the screen. Then you can see all the condition tables which you maintained for that condition type. Like as you said table 118, table 5, table 6 and table 4.
    You can select any table and press enter, then you can go into the screen in which you have all the field cataglogues you maintained for that table. For example you selected combination of Customer/Material (table 5) then after you press enter then you can see customer field on top, and material fields.
    You can give all the required values and save the conditon record.
    Hope this is clear.
    REWARD IF HELPFUL.
    Regards,
    praveen

  • Copying of manual conditions  from SO to Billing

    Hi experts,
    I am facing some problem in copying manually entered conditions from sales document to Billing document.
    It is delivery related billing.Service entry sheet. I had checked copy control, ,- In header data Copying requirements   001  Header/order-related and in Item data are Copying requirements  set to 002  Item/order-related, Data VBRK/VBRP to 002  Ord-rel.credit memo, Billing quantity to C,Pos./neg. quantity to +
    Pricing type- D, PricingExchRate type- nil, Price source- Nil i.e. order.
    I had checked pricing procedure, condition types and billing document type too. could not get any solution. Kindly help.
    Thanks in advance
    Hrishi

    Hi Colin,
    Try following the next steps in Tx. VOTXN:
    1. Delivery --> Header (Flag) --> Icon Text Types: create your text type in the VBBK object. Let's say Z01D - Text1Delivery
    2. As the text types for delivery and billing are in the same object, you need to create (same as point 1) a second text. Let's say Z01B - Text1Billing
    3.  Delivery --> HEader (Flag) --> Icon 'Change':
           3.1. Copy the text procedure '02' to 'Z02' to make the needed changes.
           3.2. Select your text procedure Z02 - Delivery Header and click 'Text ID in Textprocedure': add your Z01D text type without 
                  access sequence.
    4. Billing Doc. --> Header (Flag) --> Icon 'Change'
           4.1. Copy the text procedure '03' to 'Z03' to make the needed changes.
           4.2. Select your text procedure Z03 - Billing Header and click 'Text ID in Textprocedure': add your Z01B text type without 
                  access sequence (we need to create the access sequence before assign here).
           4.3. Go back to Access Sequence folder:
                   4.3.1. Create a new access sequence, let's say 9001.
                   4.3.2. Select your access sequene 9001 and click 'Access Sequence for Text ID's': add at first position (10) Text
                             Object VBBK, and ID Z01D
           4.4. Come back to 'Text ID in Texprocedure' (point 4.2) and assign access sequence 9001 to your Z01B text.
    5. Finally assign in 'Text procedure assignment' folder, your delivery type document and your billing tupe document to the Z02 and Z03 text procedures created.
    Please let me know should it works.
    Best regards,

  • 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

  • Va01:whay sap say pricing and condition missing data?

    I want use the T-CODE VA01 to create a sale order.When I input one material 001 and it's quantity 250 and save the sale order,the sap show some error message like below.I thought it mean that the item of material 001 in the sale order miss some data about the pricing and condition.I check the item->Conditions and can not found any matter.I use the standard pricing procedure and the CnTy like PR00,K007,KP02,SKTO was exist.So my question was how could I found what the missing data was?Is there any one who have meet such problem can give me some reference or advice?Thank you.
    error message:
    Missing data: Pricing
    Message no. VU019
    Diagnosis
    The system checked the document for completion and found some missing data.
    System Response
    You cannot continue processing.
    Procedure
    Enter the missing data.

    hi mello
    u can check it  in document level item details.... conditions....u can see a icon called <b>Analysis</b> click on that u can find  all the details of  the condition types in the procedure
    kiran

  • Can I move my very large iPhoto app and photos from main HD to a larger secondary HD via drag and drop?

    Can I move my very large iPhoto app and photos from main HD to a larger secondary HD via drag and drop?

    Welcome to the Apple Discussions.
    1. Quit iPhoto
    2. Copy the iPhoto Library from your Pictures Folder to the External Disk.
    3. Hold down the option (or alt) key while launching iPhoto. From the resulting menu select 'Choose Library' and navigate to the new location. From that point on this will be the default location of your library.
    4. Test the library and when you're sure all is well, trash the one on your internal HD to free up space.
    Regards
    TD

  • How do I copy music and video from my iPod to a new PC?

    My itunes PC no longer works.  How can I copy music and video from my iPod to a new PC?

    You can't transfer music from an iPod to a PC.  Apple do not provide that facility.  It can be done with third party software though.  There are a variety of these available though so search google for 'ipod to itunes'.

  • How do I copy videos and music from ipod to itunes library?

    Hi,
    My computer was rewritten over with WindowXP and I've restored it all now but of course my itunes stuff that is on my ipod is not longer there. How do I copy music and videos from ipod back to my itunes library so I can sync again?
    What apps are out there?
    S.

    I found an app called ipodViewer that did the job beautifully.
    S.

  • My wife just got the new macbook air. What cable do I need to copy music and photos from my 2007 macbook to the new macbook air?

    my wife just got the new macbook air. What cable do I need to copy music and photos from my 2007 macbook to the new macbook air?

    Try doing it without a cable!
    Use AirDrop, described here:
    http://support.apple.com/kb/HT4783
    UPDATE - Oh, sorry, I see the article points out the MacBook is too old for AirDrop.
    Message was edited by: sberman

  • Is it possible to copy formats and styles from one document to another?

    Is it possible to copy formats and styles from one document to another?
    Or use a commen styledocument as a masterdocument?

    Only by creating a template with what you want.
    Apple has removed the ability to import styles inPAges 5 along with almost 100 other features.
    Peter

  • How do I copy text and objects from pages to and paste into Email, objects don't show in Email

    Anyone know how I copy text and objects from pages and paste into Email, objects don't show in Email, thanks

    You can't expect Mail to support all the objects of Pages which can include anything up to charts generated from spreadsheet tables.
    Even if Mail was a superset of Pages, what would the recipients who don't have either Mail or Pages, make of it?
    Peter

  • How can i remove the terms and conditions from my app store on iphone 5s ?

    How can i remove the terms and conditions from my app store icon on iphone 5s

    Hello mrh1962,
    Thank you for providing the details of the issue you are experiencing with accepting Terms & Conditions on your iPhone 5s.
    First, I recommend restarting your phone and then resetting if it's still not working:
    Restarting your device
    Press and hold the Sleep/Wake button for a few seconds until the red "slide to power off" slider appears, and then slide the slider.
    Press and hold the Sleep/Wake button until the Apple logo appears.
    Note: Reset your device only if you are unable to restart it.
    Resetting your device
    Press and hold the Sleep/Wake button and the Home button together for at least ten seconds, until the Apple logo appears.
    You can find the full article here:
    iPhone, iPad, iPod touch: Turning off and on (restarting) and resetting
    http://support.apple.com/kb/ht1430
    If you can access your home screen, I also recommend verifying that cookies are not blocked and private browsing is turned off in Settings>Safari:
    iPhone User Guide - Safari settings
    http://help.apple.com/iphone/7/#/iph3d7aa74dc
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

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

  • SLoc of Free goods from main item

    Dear Gurus,
    I concern how can free goods storage location roll up from main item? Actually, the plant of free goods inherits from main item but not SLoc. So do you have any suggest for my concern? Thks a lot for your help!
    Regards,
    Nguyen Pham,

    Daer Nguyen Pham,
       Your  question is not very  clear ,
    In free goods two things you need to rember, whether  you are doing  1. inclusive free goods  2.  exclusive free goods.
      Based on those two   it also  calculate  on  3 diffrent ways,
          unit  rate ,
         pro- rate ,
         whole unit  .
    it depends on  type of free goods you are giving at the time of sales  order   based on that system  determines the storage location. if you have maintained  st.location determination, if not then you can munually select in delivery.
    Regards
    Venkat

Maybe you are looking for

  • How can i download my old movies to a new computer

    I have a new computer and I want to download movies I bough to other computer. I downloaded all the music but I can't find my movies! can someone please help me!!

  • What is order management?

    what is  order management?   is  it a general term used for OTC cycle in SD  or  something else?? <REMOVED>

  • Return to Snow Leopard

    I had installed Mavericks on my MacBook, but I want to return to Snow Leopard, my original OS, because my Mac is too slow. I dont have any disk with the OS. How can I do it?

  • Programs won't launch

    Hello, This problem started a few weeks ago. I tried to open iTunes and it wouldn't launch. I did some troubleshooting with that to no avail. Unfortunately since then, my Firefox and Safari won't launch. I downloaded the OS X Combo Update and I could

  • Nokia c5-00 bricked during software update

    I've brought my nokia c5-00 on 20th jan 2011. Today I was updating my phone to it's latest version, but the software update failed in mid showing error "connection lost with the device". And from that point phone dosen't starts. When i press the powe