Skip to Content

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

line selection in SET_TABLE_FOR_FIRST_DISPLAY

Hi All,

I am using SET_TABLE_FOR_FIRST_DISPLAY method to display my data in control in screen 100.

In IT_OUTTAB I am passing internal table with fields like…

Button (Expand/Element)

Business Area.

Cost Element

… etc.

Now… After pressing Expand button, Object number for particular business area should be shown bellow in the same display.

Eg.

Button BA Obj.No Cost.Elem.

+ b1

After pressing +

Button BA Obj.No. Cost.Elem.

- b1

.............o1................c1

.............o2................c2

But, I am not getting my control to USER COMMAND in PAI after pressing EXPAND button.

How can I do this ?

Kindly help.

Former Member
Former Member replied

Hi,

Use the method GET_SELECTED_ROWS of the ALV class CL_GUI_ALV_GRID.

This would return you the row ID's. You can then use these row ID's as index to identify the rows in your output table which is the source for the ALV data.

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