Application Development and Automation 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: 
Read only

get_selected_rows doesn't work for second time

Former Member
0 Likes
1,255

I have a custom screen with an ALV output and some push buttons. When I select one of the rows in ALV and click on a pushbutton, it does go the next screen. But, if I come back and select another row in ALV, the table parameter <b>ET_ROW_NO</b> returns with no entries. Couldn't figure out myself. Can anybody please help me?

Thanks,

Chandu

4 REPLIES 4
Read only

Former Member
0 Likes
571

Hi,

Try to refresh the display in the user command.

FORM USER_COMMAND

USING rv_UCOMM TYPE SYUCOMM

rs_SELFIELD TYPE SLIS_SELFIELD.

P_SELFIELD-REFRESH = 'X'

ENDFORM.

This might work...

Thanks

Naren

Read only

Former Member
0 Likes
571

Hi Chandu,

Have you tried to refresh any key?

Cheers,

Patrick

Read only

0 Likes
571

I aint refreshing any key. Do I have to? If so, what key?

Thanks,

Chandu

Read only

Former Member
0 Likes
571

Hi,

In your PBO during creation of your object, maintain a flag. Consider the following :

IF FLAG = 'X'.

CREATE OBJECT DUMMY....

CALL METHOD DUMMY->SET_TABLE_FOR_FIRST_DISPLAY....

ENDIF.

If you maintain this, the object will not be initialised every time.

Try this and if helpful reward points.

Courtesy : Sakthi Seithur

Regards