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

Print problem in PO(Me21n)

HI Abap Gurus,

We have created a new tax code with two conditions, one is modvatable of 12.36% and the other is non-modvatable of 12.5%.

The accouting entries are passing exactly.

EX: In Miro:

Vendor CR 1223.00

Gr/ir DR 1000

Input tax DR 100

Output tax Dr 120

Ed. Cess Dr 3

But when i see the print preview in the Purchase Order, (Me21n), the output is showing wrong calculation.

It is just showing like;

Product 1000

taxes 130

Total 1130

The taxes should account to Rs.123

How should we deal with this?

Your help is accounted through the points.

Thanks in adv

Sri sap

Add comment
10|10000 characters needed characters exceeded

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Aug 03, 2007 at 06:20 AM


    Are you nusing the Script or Smartform for printing the output?

    These condition values are fetched from pricing tables like KONV and KONP and displayed

    if you are using the script in the main window check the text element ITEM_CONDITIONS and the structure KOMVD fields

    If you are using debug the smartform and check

    DEBUG Smartform:

    1) One way to debug smartform is to debug the Function Module of that smartforms.

    If you want to debug particular smartform node that the solution would be,

    insert a "Program Line" just above the node you want to debug and this program line write a normal abap breakpoint.

    So whenever you call the smartforms, it will stop at this breakpoint and you can debug onwards.

    2) SFTRACE can be used for debugging SMARTFORMS.

    Read More here.


    1). Use Tools - Word Processing - Layout Set (SE71). Enter name of layout set and then Utilities - Activate Debugger.

    It is of no consequence which layoutset you enter when selecting the SAPscript debugger. (Menu path: Tools-Wordprocessing - Forms, Utilities - Activate Debugger) The next layoutset called will invoke the debugger.

    2). Another way to set the SAPScript debugger is to run program RSTXDBUG.

    When you debug Print program it is same as you debug any other ABAP program. While when you debug SAPScript, you actually debug the code ( scripting) you have written SAPScript Form.

    As per ur question there is nothing new with script debugging,

    it is same as normal report debugging...

    <b>Reward points for useful Answers</b>



    Add comment
    10|10000 characters needed characters exceeded