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

Access to Sales Order Conditions

In 4.7, transaction VA03 - Display Sales Order, I enter an order number, then hit enter. On the next screen, I use the button next to PO Date to display the document header details. Next, I select the tab Conditions. There is a tax item listed there with an amount. How can I retrieve this item in my ABAP program?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on May 04, 2005 at 04:03 PM

    Hi Charles,

    Against each item on the conditions tab there is a condition type associated with it. In order get the condition value, here is the link for header conditions

    SELECT SINGLE KNUMV FROM VBAK WHERE VBELN = your order number.

    SELECT * FROM KONV WHERE KNUMV = VBAK-KNUMV.

    I didn't find any function modules that gives you this information.

    Hope this helps,

    Srinivas

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Srinivas Adavi

      Thanks Srinivas, that is exactly what I needed!

      For other readers who are interested, I found the tax value that I was looking for in table i_tkomv, field KWERT. The other tables were not needed. The currency field for that value comes from comm_head_e-waers.

  • Posted on May 04, 2005 at 01:54 PM

    Hi Charles,

    field VBAK-MWSBP is missing 😊

    When tax amount is marked as printed on header level, then amount might be found in KONV, too.

    Otherwise correct amount will be sum over VBAP-MWSBP. VAT is calculated on header level and then <i>distributed</i> to all lines. So afterwards summarization won't run into rounding problems.

    Kind regards,

    Christian

    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.