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

Redefine Back button function in the report program

Former Member
0 Likes
1,193

Hi ,

Is there any way that we can redefine 'Back' function, instead going back it will write a pop up message. There is workaround if we using Module Program(Screen), I'm looking if its can be done in Report program.

7 REPLIES 7
Read only

Former Member
0 Likes
861

try event at PF-STATUS.

case sy-ucomm.

when 'BACK'.

perform popup.

endcase.

regards

Prabhu

Read only

Former Member
0 Likes
861

Is it a Standard or Z program?

Regards

Karthik D

Read only

0 Likes
861

Karthik, this is Z program

Read only

0 Likes
861

Hi,

Module Pool:

Everyone knows it is possible by controlling the screen going forth and back with the "SET SCREEN, LEAVE SCREEN TO..., or LEAVE TO SCREEN...." and so on.

Report Programming:

In the normal standard report, I dont know whether it is possible.

But, it is possible in the Interactive Listing Program by controlling it thro "SY-LSIND = <List No>."

Rgds,

Ramani N

Read only

0 Likes
861

Hi,

Check this;

AT SELECTION-SCREEN.
  CASE sy-ucomm.
      WHEN 'BACK'.
              "Show your popup here
              "Leave to Screen 0 - incase u want to go back after showing the popup
  ENDCASE.

Regards

Karthik D

Read only

Former Member
0 Likes
861

Hi,

Copy the standard pf-status ot zstatus.

change the function code of back to give other name.

Then write the code at PAI leal

when 'BCK'.

<<<write u'r own code>>

Naveeen M.

Read only

former_member188827
Active Contributor
0 Likes
861

u can create ur own gui status