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: 

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

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

alpesh_saparia3
Active Contributor
0 Kudos

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

4 REPLIES 4

alpesh_saparia3
Active Contributor
0 Kudos

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

0 Kudos

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

varma_narayana
Active Contributor
0 Kudos

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>

0 Kudos

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