Skip to Content

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

ALV list/grid in a loop

Experts,

I have requirment where-in i have to display 3 ALV lists in loop.

The field_catlog remains the same for 3 lists but the table data is going to be changed (Ex: based on material no and plant).

As of now it is displaying last set of data on the screen but when i hit back button it shows previous set of data and so on..

is there any way to dispplay evrything at once?

Thanks.

Tags:
Former Member
replied

I think for your requirement, you can use the IT_SORT table of the simple ALV.

FM: REUSE_ALV_LIST_DISPLAY

Parameter: IT_SORT

IA_SORT-SPOS = '01'.
IA_SORT-FIELDNAME = 'MATNR'.
IA_SORT-UP = 'X'.
IA_SORT-GROUP = '*'.  < This will generate a Group on the output
APPEND IA_SORT TO IT_SORT.

* Use FM REUSE_ALV_LIST_DISPLAY to generate the list

You can look at the report FBL5N. It is generating the report based on the Company Code and Customer groups.

Regards,

Naimesh Patel

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