Skip to Content

Use manual tax from IDOC WPUUMS


Currently the business is posting aggregate sales order details using IDOC WPUUMS. One segment of this, E1WPU04, contains the tax information for the line item. As things stand now, SAP is calculating the tax internally and posting to a G/L Account, however we would like to use the value coming in from the IDOC segment E1WPU04 instead. The caveat here is that we can't just turn off automatic tax calculations since we need them for creating PO's, so we need to find another way to either: a). stop SAP from overwriting the tax data from E1WPU04, or b). Overwrite the calculated tax amount with the IDOC tax value.

I had originally thought to try option B but since we're using aggregated data I'm not sure that this would be feasible.

Does anyone have any suggestions on how I might go about accomplishing this?

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Aug 09, 2016 at 02:29 PM

    Found a solution:

    Exported IDOC number to memory using EXIT_SAPLWPUE_112.

    Then enhanced function module RV_DOCUMENT_INVOICE_ADD to read the IDOC from memory, get the details from table edid4 and pulled out the tax information, then updated the internal tables with the imported tax values.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 21, 2016 at 02:00 PM

    I hate to bump my own post, but I'm still looking for an answer to this issue. I'm currently looking for a BADI or user exit I can use to modify the tax data after it's been calculated. Alternatively I'd like a way to stop SAP from calculating the tax (again via BADI or user exit) before it does the calculation so it doesn't overwrite the value from the IDOC.

    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.