2007 Aug 22 11:55 AM
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
2007 Aug 22 12:03 PM
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
2007 Aug 22 12:03 PM
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
2007 Aug 22 1:12 PM
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
2007 Aug 22 12:08 PM
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>
2007 Aug 22 12:43 PM
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