on 12-05-2007 9:09 AM
I copied standard layout into zform.
amount(wrshb) is coming from standard printprogram Rfkord10.
i want to print separately total debit amount sum which is ( + ) sign
and total credit amount sum which is ( - ) sign.
the filed is Rf140-wrshb.
final i want to display difference between debit and credit amount.
debit - credit = netbalance.
how to do this in scripts.
Call sub-routine inside your SAPscript , do your calculation and display the required value...
ex:
Go through this example
Ex.
/: PERFORM <Subroutine name> IN PROGRAM <subroutine prog name>
/:USING &<field name>&
/:CHANGING &<field name1&
/:ENDPERFORM
Then create subroutine pool program and you have to write the code.
FORM ><subroutine name> tables int_cond structure itcsy
outt_cond structure itcsy.
data : value(20), value1(20). "do your own declarations
Read int_cond table index 1.
value = int_cond-value.
value1 = value1 + value.
Read outt_cond table index 1.
outt_cond-value = value1.
Modify outt_cond index 1.
ENDFORM.
Just rough idea given above.
close the thread once your question is answered.
Regards,
SaiRam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.