Skip to Content
avatar image
Former Member

amount calculation problem (currency type) for MEDRUCK subroutine

i have modified standard medruck script. i am supposed to print tax details in the output in main window. the tax details should get printed after printing sub-total and tax details. total amount gets printed after adding these two. so i am writing a subroutine where i am transferring po number from script and fetching tax details basing on tax code and item numbers in the subroutine.

i also passing value of total -

> &KOMK-FKWRT& to subroutine program.

so i have to add tax values to this total value.

when i pass this &KOMK-FKWRT& value to subroutine through structure itcsy, i am getting value of char type in subroutine.

*now how to add tax values from konv-kwert to this imported char type value.*

now i have tax field of type ---> konv-kwert

problem is i am unable to add field of type konv-kwert and itcsy structure having char type value.

and how to return the total after adding to main script from subroutine.

please can any one suggest me.

it's urgent.....

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Dec 31, 2007 at 12:08 PM

    Hi KC

    first of all pass both the fields KOMK-FKWRT , konv-kwert to the routine...

    if KONV-KWERT is not available in the std script then , get the field as we use to do in reports .....

    while passing fields thru itcsy structure it always make it char....

    try to use Fm CHAR_NUMC_CONVERSION

    for both the fields ....and thn add them ...pass then pass the value to same variable...var1...

    in the script where u have called the routine ....add a field var1 as changing &var1&

    and the place u want to print this value ....write &var1&......



    Add comment
    10|10000 characters needed characters exceeded