cancel
Showing results for 
Search instead for 
Did you mean: 

addition of more than one fields( new fields ) in script using itcsy.

Former Member
0 Kudos

hi all,

i need to add more than one field in script using itcsy in a single perform. please help.

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member196280
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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