‎2007 Mar 05 7:25 AM
Hi Guys,
I need to add my own user command on a classical report without spoil the standard functions that available.
For eg, i want to add user command "Select all", and at the same time the standard function like "Print" should works as normal.
Pls comment.
‎2007 Mar 05 7:32 AM
hi,
what u can do is copy any standard available gui status in u r program
then using that change certain functionalities of buttons by going into that gui status u can add u r own buttons to the newly created gui status
in u r code
AT USER-COMMAND.
CASE SY-UCOMM.
-
ENDCASE.
‎2007 Mar 05 7:27 AM
Hi,
You can create your own GUI status from the Program.
SET PF-STATUS 'AAA'.
Double click on AAA and create your own status with different fields. and Activate it. and write the related code for those icons/buttons in the program it will work.
Regards,
Anji
‎2007 Mar 05 7:29 AM
Go to
On selection screen OUTPUTevent, write
Set PF-Status 'G001'.Dousble Click ib G001 and this wil create a new GUI status, add 'Select all' button.
Regarding your worry that standr Print button will work or not. it will work unless you dont want it to!
Sandeep
‎2007 Mar 05 7:31 AM
use
set pf-status 'STATUS'.
double click on status and add ur own button
Also give F-codes to all the standard buttons , EXIT , CANCEL, SAVE...
All of them gets activated along with ur own button
‎2007 Mar 05 7:32 AM
hi,
what u can do is copy any standard available gui status in u r program
then using that change certain functionalities of buttons by going into that gui status u can add u r own buttons to the newly created gui status
in u r code
AT USER-COMMAND.
CASE SY-UCOMM.
-
ENDCASE.