‎2008 Apr 02 6:12 PM
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 .......
‎2008 Apr 02 7:26 PM
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_totalThank you,
Warm Regards,
Abhi
‎2008 May 03 8:25 AM