on 08-14-2008 7:51 AM
hi all,
i need to add more than one field in script using itcsy in a single perform. please help.
You can retrive any number of fields, using sub-routine pool, you can also do summation etc.
Example:
/: DEFINE &TOT_PRICE&
/: PERFORM F_GET_PRICE IN PROGRAM <subroutine prog name>
/:USING &KOMVD-KBERT&
/:CHANGING &TOT_PRICE&
/:ENDPERFORM
Then create subroutine pool program and you have to write the code.
FORM F_GET_PRICE tables int_cond structure itcsy
outt_cond structure itcsy.
data : value type kbert.
statics value1 type kbert.
Read int_cond table index 1.
**OR
**READ table int_cond with KEY name = 'TOT_PRICE'.
value = int_cond-value.
value1 = value1 + value.
Read outt_cond table index 1.
outt_cond-value = value1.
Modify outt_cond index 1.
ENDFORM.
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.
Hi,
In your perform statement statement pass the two variables in using parameters
In the form -- end form
read table in_tab into <var> index 1.
read table in_tab into <var2> index 2.
var3 = var + var2.
read table out_tab with key name = ' <name> '
out_tab-value = var3.
modify out_tab.
regards
padma
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
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.