Application Development 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: 

How to place multiple characteristic values for a single Report line

rthoodi
Active Participant
0 Kudos

hi friends,

I want to display a report with multiple characteristc values in different columns for each instance, For example there are 2 instances and they have multiple characteristics , so all characteristics of each instance should be displayed in multiple columns in one by one in the same row.

Thanks in advance.

RK

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi!

You can try this code. Consider that you have characteristics stored in one internal table IT_CHAR and instances in another table IT_INST.

LOOP AT IT_INST.

WRITE:/ 'Instance'.

LOOP AT IT_CHAR WHERE <col_name> = IT_INST-<col_name>.

WRITE: IT_CHAR-<col_name>.

ENDLOOP.

ENDLOOP.

2 REPLIES 2

Former Member
0 Kudos

Hi!

You can try this code. Consider that you have characteristics stored in one internal table IT_CHAR and instances in another table IT_INST.

LOOP AT IT_INST.

WRITE:/ 'Instance'.

LOOP AT IT_CHAR WHERE <col_name> = IT_INST-<col_name>.

WRITE: IT_CHAR-<col_name>.

ENDLOOP.

ENDLOOP.

0 Kudos

hi,

You are right ,but I want display output in ALV, so In Runtime a dynamic INTERNAL table and its corresponding FIELDCAT should be generated ,

but I don't know the logic to develop such output