Application Development and Automation 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: 
Read only

Back Function key is not working

Former Member
0 Likes
1,046

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.

5 REPLIES 5
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
827

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

Read only

0 Likes
827

I have created GUI status 'STANDARD" using SE41 for report program .

Read only

0 Likes
827

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

Read only

0 Likes
827

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.

Read only

0 Likes
827

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 ' '.