Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

using field symobl

Former Member
0 Likes
393

Hello,

I have a field symbol of type any, and at run time i assign some value x to the

field symbol <fs>. however if i want to add one more value to this field symbol

what should i do?

kindly suggest me.

Thanks,

RAshmi.

2 REPLIES 2
Read only

Former Member
0 Likes
370

u can directly add value to FS,

eg. vit_report-twa = vit_report-twa + <fs01>.

LOOP AT vit_zzcgl1t_twa.

CLEAR vit_report.

MOVE-CORRESPONDING vit_zzcgl1t_twa TO vit_report.

vit_report-twa = vit_zzcgl1t_twa-kslvt.

DO p_rpmax1 TIMES.

v_indx = sy-index + 4.

ASSIGN COMPONENT v_indx OF STRUCTURE vit_zzcgl1t_twa TO <fs01>.

vit_report-twa = vit_report-twa + <fs01>.

ENDDO.

COLLECT vit_report.

ENDLOOP.

Read only

Former Member
0 Likes
370

unassign the field symbol ('UNASSIGN <fs>') and assign it again.

Regards,

Thomas