Skip to Content

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

How to capture multiple(Random) records of an ALV output report?

Hi Friends,

1) I have an output in Grid format(using reuse_alv_grid_displlay). I have 3 push buttons on the menu bar(for ex.. Approve, reject and forward). The user will select multiple lines on the ALV output and hits either one of these push buttons. My question is how do I capture the multiple selected output lines.

2) This question has been asked before..and I tried to implement the answer. The problem I am facing is ..I need a function key to say that everytime I select a line(single click)..it should modify the internal tabel with CHECK = 'X'.

Any help is kindly appreciated.

Tags:
replied

Hi

If you should have in your output table a field for MARK, the system'll set this field for every selected fields.

DATA: BEGIN OF T_OUTPUT,

FIELD1,....

...........

FIELDN,

MARK,

END OF T_OUTPUT

Before calling ALV GRID

You have to indicate tne name of field for selection:

gt_layout-box_fieldname = 'MARK'.

gt_layout-box_tabname = 'T_OUTPUT'.

So in your user command

LOOP AT T_OUTPUT WHERE MARK = 'X'.

ENDLOOP.

Max

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