VA01- change item Material Pricing Group depending of Price List

Hi all,
  I have this requirement:
Transaction VA01, VA02 (create, change sales order)
If the user modify the Price List in header data I must change the Material Pricing Group (VBAP-KONDM) for ALL the items in the document.
I've tried to implement the exit MV45AFZZ to obtain this goal, but it works fine only for the new item inserted or changed while for the unchanged item the
Material Pricing Group has not been modified.
Does anybody knows what enhancement I have to use?
I thank you in advance.
                                                              Paolo

Include: MV45AFZZ
form: userexit_field_modification.
This is to show the new assigned value
if sy-tcode eq 'VA01' or sy-tcode eq 'VA02'.
  if not vbap-kondm is initial and
    vbkd-pltyp = '02'.
    if vbap-spart = 'CA'.
      vbap-kondm  = '91'.
    else.
      vbap-kondm  = '90'.
    endif.
  endif.
endif.
Include: MV45AFZZ
form userexit_save_document_prepare.
This is to store the value assigned
if sy-ucomm eq 'SICH'.    " Save
  loop at xvbap.
    if not xvbap-kondm is initial.
      if xvbap-spart = 'CA'. 
        xvbap-kondm  = '91'.
      else.
        xvbap-kondm  = '90'.
      endif.
      if xvbap-updkz is initial.
        xvbap-updkz = 'U'.
      endif.
      modify xvbap index sy-tabix.
    endif.
  endloop.
endif.

Similar Messages

  • How can I deactivate the pricing date and material pricing group in VA01?

    Hello All,
    How can I deactivate (output only) the pricing date and material pricing group field in VA01/2, VA21/2, and VA41/2? What user exit can I use? Thanks in advance...
    PeeJay

    You can use the t.code SHD0, choose your transaction variant here, further choose your screen variant.
    Next select your screen variant and in the Menu bar select Variant> change with processing>Make repairs in foreign namespaces only if they are urgent> Continue(Enter)>again 'enter'>Object can only be created in SAP package>continue(enter)> Exit and save >This variant contains other screens, adopt these as well?>enter>enter>  scroll down to the entry 'pricing date' or VBKD-PRSDT make the necessary changes and save.
    The system will prompt to assign a package and request enter the necessary values.
    Your issue is sorted!!
    Regards,
    PATHIK

  • SAP query for Material pricing group changes in material.

    Dear all,
    I'm trying to generate a query for Material Pricing group changes in material. For that I've to retrieve data from follwing three tables MVKE, CDHDR & CDPOS.
    Firstly while generating infoset -
    I tried it by joining tables MVKE & CDHDR, but system is not allowing it, also table CDPOS can't bejoined.
    Then I tried by reading dirctly from table MVKE and then adding additional fields in it. query created using this infoset is giving the output, however it's giving only 1 entry per material entered in input.
    for multiple entries in output for MPG changes in same material I tried creating addtional structure for table CDHDR & CDPOS but again I'm getting only 1 entry per material.
    please suggest how I can get MPG changes done in specified time period for a material.
    Thanks.

    Hi
    Check the report RSSCD100 and run it for object MAT_FULL for table MVKE. Use this report as a template for your own development.
    I hope this helps you
    Regards
    Eduardo
    PD: sorry, the table is DMVKE
    Edited by: E_Hinojosa on Sep 2, 2011 9:37 AM

  • Assign Material Pricing Group to Material Group

    Hi experts,
    When entering a sales order/quote, we do not want to have to change the mat pricing grp column, it should automatically be populated depending on the material group. Is there a way to assign material pricing group to a material group?

    Dear Marianne:
    In this path you update material pricing group description and also mantain access sequence to create a list price in VK11.
    Please check it and revert.
    Regards
    Jose Antonio

  • Regarding Material Pricing group

    Hi,
    What is the Path in SPRO to change thedescription og  "Material pricing group"
    Thanks,
    Saran

    Dear.
    It is as follows..
    SPRO>Logistics - General>Material Master>Settings for Key Fields>Data Relevant to Sales and Distribution-->Define Material Groups (material group 5) OR
    SPRO>Logistics - General>Material Master-->Settings for Key Fields-Define Material group( Tcode- OMSF)
    Regards
    AJIT K SINGH
    HAPPY TO HELP U
    Edited by: AJIT K SINGH on Dec 15, 2009 6:56 PM

  • Material Pricing Group DataSource

    I have been unable to locate a Business Content DataSource which contains descriptions for Material Pricing Groups (SAP R/3 Table is T178T).  The data MVKE~KONDM resides in the MVKE table and the value is provided as a part of the 0MAT_SALES extractor.
    Does anyone know if there is a delivered DataSource for this Text information?
    Thank you.

    hi Jonathan,
    couldn't find any datasource, searched in table ROOSOURCE (field EXTRACTOR T178, consider view V_T178), and checked in table ROOSFIELD, field KONDM only used by datasources 0ART_SALES_ATTR and 0MAT_SALES_ATTR,
    then you may need to create generic datasource text on table T178T or view V_T178, simple job
    hope this helps.

  • Material pricing group

    Dear Guru's,
    Sales 2 view, we have material pricing group field, where can i find the same, pls tell me d path
    B/regds,
    CB

    Hi,
    The menu path is:
    IMG-sales and distribution-basic functions-pricing-maintain price relevant Master data fields
    now select   'define  Material groups".
    This data is found in the table:T178.
    With Regards,
    Jaheer

  • Pricing table for Material pricing Group

    Hi everyone
    I have a problem related to pricing. In ECC, if we create a condition table for material pricing group, assign it to the Access sequence PR00 and then download the customizing data to CRM, the access sequence appears in CRM but without this table.
    Could you please provide any clue to this??
    Also, I had created another table with the Material/Material Prc Grp, assigned it to another Z-Access sequence and assigned the access seq to a Condition type. Again I had downloaded the customizing and in this case, only the Condition type has arrived. Neither the access sequence nor the table has come.
    Could you please guide me as to what needs to be done??
    Please help!!
    Regards
    Debolina

    Hello,
    Please check your replication object e.g. DNL_CUST_CNDALL and see if you have filters defined there.
    You might have put filters which are preventing the download.
    Also, you have to define the new field mappings in CRM before you download the tables.
    V_CND_MAP_CNVFLD (transaction SM30).: This view contains the mapping between R/3 data structure (maintained in CND_MAPT_ACS_REM_CUST) to CRM data structure (Field Catalog).
    The relationship between R/3 field names and CRM field names must be defined in either  CND_MAPC_CNV_FLM or CND_MAPM_CNV_FLM
    Let me know if still issues.
    Koshal

  • Conditin Record-Check Material pricing group

    Hi
          For a condition type condition table is :
    1.sorg/material/material pricing group
    Now condition record should be created for some specific material pricing groups;
    Therfore the system has to check in the mateiral master data whether material pricing group exists,then the system should allow the creation of condition record.
    Ex:For Z1,Z2 -material contains material pricing gorup -should be allowed for creating conditon record
    For Z3-material contaims no material pricing group- should not be allowed for creating condition record
    Is it possible to check at the time of creation of condition record whether for the material -material pricing group exists or not.
    Plz help me out
    Thanks in advance
    Arpitha

    Hi Arpitha,
    Since you already have Customer/Material field in the condition table ,there is no need for Material Price group field in it.
    You can use the Material Price Group when you are not using the material field in the condition table.
    Can you explain the exact business requirement so that i can give the right solution.
    With Regards
    Vinu.N

  • Sales group - Material pricing group

    We are running a Z Report for 'Background Execution :Billing document updation for order."
    Error is " Value XXX (sales group) is not defined for material pricing group 2.
    Help requested.
    Rgds
    Sumanth.G

    hi;
    DEBUGG the Z report with an ABAPER and you will come to now what happend.
    please update the FORUM
    balajia

  • Partial deliveries - per Material pricing group

    Hello, I need to create partial deliveris per 1 sales order - based on Materail pricing group (per batch job) - so 1 delivery will group materials with same Material pricing group.
    Is there any standard solution? I only found VL10C, but there is not Material pricing group as a selection field.

    HI,
    As per standard there in no such option..........

  • Where to assign material pricing group

    where to v assign material pricing group

    Hi,
    go in view Sales: Sales Org2 ( use MM01 or MM02 transaction) and you will see the field Material pricing grp
    Regards Vassko!

  • User Exit VA01 - change item category and add lines

    Hi all,
    I am trying to implement the following requirement:
    - Sales order is created in VA01
    - Availability check is carried out in APO / GATP
    - Based on the results the item category in the sales order needs to be changed (in case of open quantities)
    - In case of partially confirmed lines a line split is required
    I am currently investigating two scenarios:
    - User exit move_field_to_vbap: at this point of time the availability check hasn't been carried out. Thus I am thinking of running a GATP simulation and changing the item category depending on the GATP results and adding new lines if applicable.
    - User exit check_vbap: at this point of time the value vbap-kwmeng and vbap-kbmeng is available and the item category can be changed based on that. Problem: All item category depended fields are already derived. A recalculation would be required. Same for added lines.
    Did anybody implement the same requirement? Any hints are highly appreciated.
    Thanks,
    Martin

    Can u be more clear.
    This are the exits used for the VA01
    SDTRM001            Reschedule schedule lines without a new ATP check
    V45A0002            Predefine sold-to party in sales document
    V45A0003            Collector for customer function modulpool MV45A
    V45A0004            Copy packing proposal
    V45E0001            Update the purchase order from the sales order
    V45E0002            Data transfer in procurement elements (PRreq., assembly)
    V45L0001            SD component supplier processing (customer enhancements)
    V45P0001            SD customer function for cross-company code sales
    V45S0001            Update sales document from configuration
    V45S0003            MRP-relevance for incomplete configuration
    V45S0004            Effectivity type in sales order
    V45W0001            SD Service Management: Forward Contract Data to Item
    V46H0001            SD Customer functions for resource-related billing
    V60F0001            SD Billing plan (customer enhancement) diff. to billing
    SDAPO001            Activating Sourcing Subitem Quantity Propagation
    V45A0001            Determine alternative materials for product selection
    Regards

  • Material Prcing group ....

    Dear All
    Can anyone tell how the prcing group works as we just give description and assign to CMR . secondly how the material pricing group condition type works after maintaining the condition record. what all have to maintain.? and how to differintiate the Materials where for which this condition type is used ? How to know in the sales cycle that material pricing group worked?
    Thanks in advance to all
    Thanks and Regards
    Srinath

    Material Pricing Group
    A way of grouping materials to which you want to apply the same conditions.
    You can create condition records for a material pricing group using the following condition types:
    Material pricing group (for example, all non-food products)
    A combination of customer and material pricing group
    A combination of price group and material group (for example, all wholesale customers and all non-food products)
    Price group (customer)
    A grouping of customers who share the same pricing requirements.
    You can define price groups according to the needs of your organization and create pricing records for each group. You can, for example, define a group of customers to whom you want to give the same kind of discount. You can assign a price group to an individual customer either in the customer master record or in the sales document.
    Procedure
    The system can propose the price group from the customer master record. You can change the proposed value manually in the sales document at both header and item level.
    Reward points if helpful
    Thanks and Regards,
    Rahul

  • Set up pricing - Group condition doesnt works

    Hi Gurus,
    Please provide me your inputs.
    Can SAP determine the sales price as described in the below two cases.
    Case 1:
    Sales price for material M1, from 01.01.2011 u2013 31.07.2011
    Quantity         Price
    0                         100
    25      90
    100      75
    Sales price for material M1, from 01.08.2011 u2013 31.12.9999
    Quantity      Price
    0      105
    25      94
    100      78
    Sales order (note the difference in pricing date)
    Total quantity = 38, second scale should be used
    Item      Material      Pricing date      Quantity      Price
    10      M1      31.07.2011      17      90
    20      M1      31.08.2011      21      94
    Many Thanks for your answers
    Sharan

    Dear Sumanth,
    Thanks a lot for your answer. I am relatively new to this subject. Please elaborate your answer for me to maintain the settings in copy control.
    The scenario is - New condition type ZPR0 is created with group condition. And the scales are maintained as mentioned in the problem.
    Lets say Order is created on  date - 23/11/2011 with two lines
    Line 1 - Material M1 - Quantity 17 - Pricing date 31.07.2011(Maintained at item level)
    Line 2 - Material M1 - Quantity 21 - Pricing date 31.08.2011(Maintained at item level)
    With scales maintained, because of the pricing date , system picks up individual scales and it doesnt accumulates the quantity. How to tell system to accumulate quantity and then check scale based on the pricing date.
    Thanks for your help again,
    Sharan

Maybe you are looking for

  • My BBZ10 is not working properly since my last update (OS 10.3.1.224​3

    OK so to start on a positive - I have been the biggest advocate of Blackberry over the last 3 years and have found it a really easy phone to just pick up and use without having to spend much time with user manuals. I started on a Torch and am now usi

  • Help required in triggering concept for sending mails automatically

    I am developing an application in which i had to develop an Auto Responder application. For this application i need to send different mails to different customers automatically on different days. Though i got the concept of using timers and the sched

  • Is there a way to find out the caller function in ESTK?

    Dear forum, How do you find out the caller function? I remember this question was asked on the forum before and, if memory serves me right, it was Peter Kahrel who answered it. Anyway, it was long ago and I can't find the post. main(); function main(

  • Change PO distribution charge account

    hello, I need to change a distribution charge account for an IN Process PO; from the default account of the Master Inventory organaization. If I have to do it from the backend, do I need to update another table besides po_distributions_all, and do I

  • IWeb acting glitchy on 4.20.09

    I noticed this afternoon that my iweb site is not loading properly. Pictures missing. Counter showing all different kinds of numbers. Counter showing up on internal pages. In general, strange. Happened out of the blue. Haven't touched the site in two