Skip to Content
author's profile photo Former Member
Former Member

Add a default Price condition to sales doc header

I've been out of ABAP for a few years, and I may get chastized for asking for actual code here, if so moderators please lock it and I will have learned a lesson....

On Sales Order create (VA01) I would like to automatically populate a number of Header Price Condition records (with a zero value). Users have to manually add these on every document and auto-populating them will make thier life easier.

Let's say there are 3 price conditions, ZH01, ZH02, ZH03.

From my investigation I think it can be done through USER_EXIT_PRICING_PREPARE_TKOMK, but what would the actual code be ?

As of right now I can't figure out exactly which tables/structures to go at and how to actaully code this

Thanks in advance !

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 23, 2008 at 04:25 PM

    Ok, now once you have the Pricing Conditions in the pricing procedure then the taks is easy.

    In your identifed user exit. The KOMV table holds the list of pricing conditions. In the exit you can add a price value to the specific fields in the KOMV table ( I dont have my machine now or I could have mentioned them ).

    Then when the price values are added , the usual UPDATE . that should do it.

    One thing is the users dont have to enter any value on the screen during sales order creation. During saving, these default values will be saved to the priving conditions and when you go to VA02 , you will see the values...

    Does this help...

    Thanks,

    Ketan Joglekar.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 23, 2008 at 04:07 PM

    Hi,

    I think you have to go to the pricing procedure and add the pricing conditions needed to the actual identified pricing procedure. Set the value for each of these conditions as zero.

    This way the users will always find the pricing conditions in the pricing screen on VA01.

    Hope this helps.

    Thanks,

    Ketan Joglekar

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Yeah I already have that.

      The Price procedure works fine. The user can manually enter the conditions into the header and all config is correct. I am looking for a way to "default" or "pre-populate" the condition records into the header, so all they have to do is go in and enter the value(s).

      My example is only with 3, but in reality there are 10+ so the manual entry quickly becomes a pain in the "carpel tunnel" for them.

  • author's profile photo Former Member
    Former Member
    Posted on Dec 23, 2008 at 05:18 PM

    Hey Ketan, that makes sense.

    I add the value to KOMV, then I force a [Pricing Update] so the system does it's things to populate thes conditions, correct?

    After this willthe user "see" these conditions in the Sales doc, or will they not see them until they come back into VA02/3 ?

    Thanks again for your help so far

    Bill

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 23, 2008 at 07:04 PM

    Thats correct the system should take over and sum up the net price with the amount you have added to the pricing condition. So the net value ( Price+ Taxes etc + discounts + freights ) would hold the new value.

    Unfourtunately this value will be seen in VA2/3 only ( Thats what I have found while working on this )

    Thanks,

    Ketan Joglekar

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.