Skip to Content
avatar image
Former Member

Check box not selected in alv list

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.

........

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Jan 05, 2015 at 08: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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 05, 2015 at 06:01 AM

    Hi Bharani,

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

    With Regards

    Arun VS

    Add comment
    10|10000 characters needed characters exceeded