2008 Apr 28 8:16 PM
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.
2008 Apr 28 8:22 PM
hi check that and choose dispaly..then it will show all the selected records only..
regards.
venkat
2008 Apr 28 8:25 PM
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.
2008 Apr 28 8:32 PM
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.
2008 Apr 28 8:55 PM
In order to extract the selected row in ALV,
READ TABLE <itab> WITH KEY ln = 'X'.
Thanks,
Sheel
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |