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

Doubt regarding Cancel button in reports

Former Member
0 Likes
439

Hi All,

I have developed a normal report for some requirement. The menu bar buttons are sap standard buttons.

I executed the program. And gave input in the selection screen. On execution it displayed the output. Now when i clikced on the Cancel button (cross button) it was leaving to the selection screen. Should it not leave to the source code or the se38 intial screen depending on where i came from?

Hi All,

I have developed a normal report for some requirement. The menu bar buttons are sap standard buttons.

I executed the program. And gave input in the selection screen. On execution it displayed the output. Now when i clikced on the Cancel button (cross button) it was leaving to the selection screen. Should it not leave to the source code or the se38 intial screen depending on where i came from?

2 REPLIES 2
Read only

Former Member
0 Likes
414

Hi,

Not necessarily. The cancel button usually performs the same function as the back button, but without any validation on the screen, which is a report would usually take you to the selection screen. The exit button should take you to the code or se38 screen.

Regards,

Nick

Read only

Former Member
0 Likes
414

I am in ECC 6 and its working the same as you mentioned

Try to SET PF-STATUS and overwrite the standard functionality

in pf status give the FCODe as CANC

in

AT USER-COMMAND.

CASE SY-UCOMM.
 WHEN 'CANC'.
   leave program.
 ENDCASE.