Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

hi

Former Member
0 Likes
347

In purchaseorder script i have done like for each line item

what ever the tax values are there that is comming below the lineitem.I did the coding in the me_print_po itself

Note: i have copied the FM into ZFM the did the changes.

script also copied from medruck.

But I wanted to print all the line items and total for the lineitem.

then all tax values: addition of each lineitem taxes.

then grand total = lineitem total + tax value total

pls reply me very fast .......

2 REPLIES 2
Read only

Former Member
0 Likes
321

Hey Fren,

Try for a Perform in the SCRIPT...

You can try this way,

Call the Subroutine in the Script using Control Statement ' PERFORM ' and pass the parameters lineitem, tax_value_total and grand_total as shown follows :



*/:*  PERFORM add_total USING lineitem_total 
                                                 tax_value_total
                               CHANGING grand_total
        

The Subroutine is to be written in the Print Program or the Driver Program for the Script.

Before, Just check for clearing the totals at proper places if it is called in a loop.

*me_print_po*

FORM add_total USING lineitem_total
                                    tax_value_total
                      CHANGING grand_total.

grand_total = tax_value_total + lineitem.
    
ENDFORM.                                               " add_total

Thank you,

Warm Regards,

Abhi

Read only

Former Member
0 Likes
321

THANK YOU SO MUCH Mr ABHI