01-05-2015 5:53 AM
Hi,
I have created a alv list with chek box in one column....
Having 2 buttons on the tool bar displaying APPROVE r REJECT.
After the selection of the Checkbox I need to go for APPROVE r REJECT.
but in my case ....
for eg consider there are abt 10 items in the list....
if i press 1st item means the process is ok.....but if i select for 5th & 6th in case the value is not selected...
...CASE LY-UCOMM.
WHEN APPROVE.
LOOP AT T_YZA1 INTO W_YZA1.
IF W_YZA1-CHECK = 'X'.
W_YZA1-APPROVE = W_YZA1-CHECK.
MODIFY T_YZA1 FROM W_YZA1.
ENDIF.
ENDLOOP.
IF W_YZA1-CHEXK = 'X'.
CALL SCREEN 4.
ENDIF.
........
01-05-2015 6:01 AM
Hi Bharani,
In your Fieldcat , did you checked wa_fieldcat-checkbox = 'X'. ?
With Regards
Arun VS
01-05-2015 8:12 AM
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
IMPORTING
e_grid = ref1.
CALL METHOD ref1->check_changed_data.
use above code as soon as you select check box i.e on ucomm for that checkbox it will work.
use aboce code in both select and deselcting checkbox