2007 Feb 09 6:57 AM
Hi All,
I am saving the functional buttons like 'BACK', 'SAVE' etc. in the functional buttons group in the pf-status screen, but these buttons are not working when I execute the program .How to make these buttons work? I was able to do so in my previous progam not now. Why is this so?
Should I write separate codes for these buttons to work?
Thanks ,
Shaily
Hi All,
I am saving the functional buttons like 'BACK', 'SAVE' etc. in the functional buttons group in the pf-status screen, but these buttons are not working when I execute the program .How to make these buttons work? I was able to do so in my previous progam not now. Why is this so?
Should I write separate codes for these buttons to work?
Thanks ,
Shaily
2007 Feb 09 6:58 AM
In PAI of teh screen write as below.
MODULE status_0100 OUTPUT.
SET PF-STATUS 'STATUS1'.
ENDMODULE.
Double click on STATUS1 and create the function code for BACK and SAVE. Then in PAI
MODULE status_0100 INPUT.
CASE sy-ucomm.
WHEN 'BACK'.
LEAVE TO SCREEN 0.
WHEN 'SAVE'.
..........
ENDCASE.This is for ALV
http://www.sapdevelopment.co.uk/reporting/alv/alvgrid_pfstatus.htm
2007 Feb 09 7:38 AM
Hi Judith,
Thanks for your immediate response.
But I do not want to code the functionality of these buttons.
How can I make these buttons work as per their functionality?
Thanks,
Shaily
2007 Feb 09 7:45 AM
Here u r setting ur own PF-Status, so u have to write what needs to be done.
module USER_COMMAND_9001 input.
CASE sy-ucomm.
WHEN 'EXIT' or 'CANC'.
* leave program.
LEAVE PROGRAM.
when 'BACK'.
set screen '0'.
leave screen.
when others.
ENDCASE.
endmodule. " USER_COMMAND_9001 INPUT
2007 Feb 09 7:01 AM
Make sure you activate the PF-Status and include the PF-Status name properly in the PBO module.
set pf-status 'PFStatus Name'.
Regards
Gopi
2007 Feb 09 7:21 AM
Hello,
-
You have to activate the GUI status that you make.Also write the correct name in capitals.SET PF-STATUS 'PF_NAME'.
-
The codes are written in the PAI of the screen in the USER COMMAND MODULE.
(DATA:ok_code type sy-ucomm.Write this in the top declaration).
Case ok_code.
When 'SAVE'.
...logic
when 'BACK'.
...logic
endcase.
-
Also,in the element list of the screen,make sure that you have added ok_code.
-
Additionally,you can place a break point on the CASE OK_CODE statement and check what value ok-code gets when you click on the functional buttons.
Regards,
Beejal
**Reward if this helps
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |