Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

syntax help

Hi All!

I have a dynamic internal table and in a field called status.The IT is having several line items retrieved dynamically.For example the line item display of status field is as below.

01

02

01

03

05

02

05

.....

Now i want a consolidated field which gives the result like this

status_field = 01,02,03,05...

Its means each staus value should be displayed once in this field.

Any code help please..

Regards

Pavan

Tags:
Former Member
replied

loop at itab.

move itab-status to itab_new-status.

append itab_new.

clear itab_new.

endloop.

sort itab_new by status.

loop at itab_new.

at new status.

concatenate v_stat itab_new-status into v_stat

separated by ','.

endat.

endloop.

write:/ v_stat.

Regards,

Ravi

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question