‎2009 Oct 09 8:22 AM
I have created report programing. and also add buttons to application tool bar using transaction 'SE41'.
But in this case whenever I run program and click on Back.it is asking me to populate fields.
Even after populating fields and clicking Back wont take me to BACK screen...
It is asking for 'Put cusron on selection'..
Back is standard tool bar even why it is not working.
I set status as below.
**Variant
INITIALIZATION.
**Initialize Report Global Variables
PERFORM f_initialize_report.
SET PF-STATUS 'STANDARD'
Finally i write code for back function as follws.bUt I don't want this transaction.I want back screen.
I am submitting this report via ALV grid display from other program(By double clicking row).When i press Back it should show alv display.
AT SELECTION-SCREEN.
CASE sy-ucomm.
WHEN '&F03'.
LEAVE to transaction 'ZCM_SEARCH_RULE'.
ENDCASE.
‎2009 Oct 09 8:38 AM
set pf-status 'STANDARD' "I think this is not required.
First of all how did you create it without 'Z' prefix ???
use at user-command for processing button click events in normal reporting.
in module pool use PAI.
Edited by: Keshu Thekkillam on Oct 9, 2009 1:10 PM
‎2009 Oct 09 8:46 AM
I have created GUI status 'STANDARD" using SE41 for report program .
‎2009 Oct 09 10:42 AM
When calling program use
SUBMIT z_myprog VIA SELECTION-SCREEN AND RETURN.
in called program use
INITIALIZATION.
set PF-STATUS 'MY_STATUS'.
AT SELECTION-SCREEN.
if sy-ucomm = 'BACK'.
LEAVE TO SCREEN 0.
endif.
Regards
Marcin
‎2009 Oct 10 11:23 AM
hi,
in 'standard' status for 'back' icon have add &f03 as function key ,check it first.
and then in the initialization write the code 'set pf-status 'standard'.
and under start-of-selection.
write set pf status space.(it will enables all the standard buttons back,cancle,exit...).
now if u click on back it should wor.
try it once.
if u have created a button for back and assigned say 'back' code for that, then go like this.
start of selection.
case sy-ucomm.
if sy-ucomm = 'BACK'.
LEAVE LIST PROCESSING.
(OR U CAN WRITE LEAVE PROGRAM OR LEAVE TO SCREEN 0).
ENDIF.
‎2009 Oct 15 8:09 AM
hi
will you plz explian
what means of following line
write set pf status space.(it will enables all the standard buttons back,cancle,exit...).
is it like
set pf status ' '.