on 12-31-2007 10:52 AM
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.....
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&......
thnx
rohit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.