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

ALV Line Select Button?

Former Member
0 Likes
686

How would I interrogate that object (select button all the way to the left) in the ALV to see if the line has been selected?

Thank-You.

How would I interrogate that object (select button all the way to the left) in the ALV to see if the line has been selected?

Thank-You.

4 REPLIES 4
Read only

Former Member
0 Likes
648

hi check that and choose dispaly..then it will show all the selected records only..

regards.

venkat

Read only

0 Likes
648

I am trying to write logic to see if that button has been selected or not? I assume that this field that represents this button has an 'X' in it somewhere after it is selected.

Thanks.

Read only

0 Likes
648

hi check this coding i had used in one of my program..here i want to print the selected smart forms only....hope it clears your doubt..

&----


*& Form USER_COMMAND

&----


FORM USER_COMMAND USING R_UCOMM LIKE SY-UCOMM

R_SELFIELD TYPE SLIS_SELFIELD.

clear : v_flag.

CASE R_UCOMM.

WHEN 'DATA'.

LOOP AT IT_TEMP.

if it_temp-checkbox = 'X'.

v_flag = 'X'.

v_pernr1 = IT_TEMP-PERNR.

*--Get compensation data and populate final internal table

refresh it_fin.

CALL FUNCTION 'Z_HR_COMP_STATEMENT'

EXPORTING

PERNR = v_pernr1

BEGDA = s_date-low

ENDDA = s_date-high

TABLES

FINAL = it_fin.

if not it_fin[] is initial.

delete adjacent duplicates from it_fin comparing pernr.

read table it_fin index 1.

move-corresponding it_fin to it_final.

append it_final.

clear it_final.

endif.

endif.

  • enddo.

ENDLOOP.

if not v_flag is initial.

*------ display final data

PERFORM final_display.

else.

message s000 with 'Select atleast one pernr'.

endif.

endcase.

ENDFORM. "USER_COMMAND

regards,

venkat.

Read only

Former Member
0 Likes
648

In order to extract the selected row in ALV,

READ TABLE <itab> WITH KEY ln = 'X'.

Thanks,

Sheel