‎2006 May 31 5:05 PM
Hi,
I am Novice in SAP-BW can any Help me in this regards.
My Screen should come out when i press Exit.
But u it not coming out.
REPORT Z_SCREEN .
DATA: OK_CODE LIKE SY-UCOMM,
OUTPUT(8) TYPE C.
DATA: TEXT(10) TYPE C,
NUMBER TYPE I.
CALL SCREEN 1130.
&----
*& Module USER_COMMAND_1130 INPUT
&----
text
----
MODULE USER_COMMAND_1130 INPUT.
CASE OK_CODE.
WHEN 'EXIT'.
LEAVE TO SCREEN 0.
LEAVE PROGRAM .
ENDCASE.
ENDMODULE.
‎2006 May 31 5:11 PM
Hi Anil,
You need to define a module in PBO of 1130 screen's flow logic.
In this module you need to set pf-status with function keys 'EXIT' for back, leave or for cancel button.
PROCESS BEFORE OUTPUT.
MODULE SET_STATUS.
MODULE SET_STATUS OUTPUT.
SET PF-STATUS 'ENTW'.
SET TITLEBAR 'ETW'.
ENDMODULE.Cheers
Manohar
‎2006 May 31 5:06 PM
‎2006 May 31 5:11 PM
Hi Anil,
You need to define a module in PBO of 1130 screen's flow logic.
In this module you need to set pf-status with function keys 'EXIT' for back, leave or for cancel button.
PROCESS BEFORE OUTPUT.
MODULE SET_STATUS.
MODULE SET_STATUS OUTPUT.
SET PF-STATUS 'ENTW'.
SET TITLEBAR 'ETW'.
ENDMODULE.Cheers
Manohar
‎2006 May 31 5:11 PM
hi anil,
use ok_code = sy-ucomm.
then use case ok_code.
hope this helps.
award if helpful.
regards,
keerthi.
‎2006 May 31 5:12 PM
Just use LEAVE TO SCREEN 0.
Clear OK_CODE after every use, if u need it for further processing then u need to use flags
‎2006 May 31 5:14 PM
Hi,
You must :
- create a status xxx with SE41 (and link the code 'EXIT' to a back/cancel/exit button
- set this status in the PBO (set PF-STATUS xxx)
- not forget the ok_code in the element list !!!
Nothing else.
Hope that helps ... and hope you'll reward
‎2006 May 31 5:14 PM
Hi,
Try the below code.
In your screen PAI write the below code..
PROCESS AFTER INPUT.
*-- Exit program
MODULE EXIT AT EXIT-COMMAND.
Double click on the above module and write the below code.
MODULE EXIT INPUT.
LEAVE PROGRAM. " Exit program
ENDMODULE. " exit INPUTThanks,
G.S.K
‎2006 Jun 01 11:33 AM
Hi Anil,
Please do not forget to close the post if your issue has been solved.
You can close the post by alloting maximum points to a post or solved by your own.
Thanks,
GSK
‎2006 Jun 01 11:52 AM
hi anil,
if ur's is a report program check out the simple code.
TABLES sscrfields.
SELECTION-SCREEN PUSHBUTTON 5(10) exit
USER-COMMAND us01.
AT SELECTION-SCREEN.
CASE sscrfields-ucomm .
WHEN 'US01'.
LEAVE .
ENDCASE.
‎2006 Jun 01 12:25 PM
Hi,
Thanks a lot to u all. My Problem is Solved . Previously i didn't include PBO Module in my program. Now it is working ,fine.
Thanks again you all.