Skip to Content
avatar image
Former Member

Please explain how to put select and deselect push buttons on output list

Hi Friends,

I displayed one output list, in this each row starts with one checkbox. How should I select all check boxes at time or to deselect all check boxes at time. For this one we see two push buttons normally.

How will I put those pushbuttons on the application tool bar in the output list.

Thanks and Regards,

surya

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Aug 22, 2007 at 11:03 AM

    To put push buttons in Application toolbar use

    SET PF-STATUS 'STATUS-NAME'.

    Use AT USER-COMMAND event to trigger the action, and SY-UCOMM system field to identfy the action triggered.

    Use READ LINE & MODIFY LINE commands to set/reset the value of Checkbox .

    -Alpesh

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      I want to chang the values in the outlist. What am I changing on the output list for a particulr field It will reeffect to that field again in the program plese explain urgent.

      Regards,

      Surya

  • Aug 22, 2007 at 11:08 AM

    Hii Surya..

    We can Get this using READ LINE and MODIFY LINE statements.

    Check the code below.

    Execute it and Double click on the Basic list to see the effect.

    <b>data box.

    do 5 times.

    write: / box as checkbox, 'Hello click on me' .

    enddo.

    AT LINE-SELECTION.

    IF SY-LSIND = 1.

    SY-LSIND = 0.

    DO.

    READ LINE SY-INDEX FIELD VALUE BOX.

    IF SY-SUBRC NE 0.

    EXIT.

    ENDIF.

    BOX = 'X'.

    MODIFY LINE SY-INDEX FIELD VALUE BOX.

    ENDDO.

    ENDIF. </b>

    <b>REWARD POINTS IF HELPFUL</b>

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      Thank you very much, but what I am asking is about pushbuttons is that.

      for your understanding

      I will say normally where we will look.

      To select the required fields in the data disctionary. we will go to

      SETTING >LIST FORMATS > CHOOSE FIELDS. There one window opens

      there we can see two push buttons one for SELECT ALL and another for DESELECT ALL

      Now these two push buttons, I want to put in the output list after choose(F2) push button. Please explain me How.

      Regards,

      Surya