Application Development 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: 

Check box not selected in alv list

Former Member
0 Kudos

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.

........

2 REPLIES 2

venuarun
Active Participant
0 Kudos

Hi Bharani,

In your Fieldcat , did you checked    wa_fieldcat-checkbox  = 'X'. ?

With Regards

Arun VS

dhruv_mehta
Active Contributor
0 Kudos

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