cancel
Showing results for 
Search instead for 
Did you mean: 

Module pool

Former Member
0 Kudos

hi

i want to knw how to exit the module pool screen?

i am calling a screen 100 from my program and when i want to go back the tool bar buttons does wrk wat to do inorder for that bottons to wrk?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi ajantha,

u will have to define a module command in PAI event...as

MODULE cancel AT EXIT COMMAND.

in that u will have to write...

ok_code = sy-ucomm.

case ok_code.

when 'BACK' or 'CANCEL' or 'EXIT'.

leave to screen 0.

ENDCASE.

hope this will help u out...

please reward points in case useful..

regards,

Prashant

Answers (2)

Answers (2)

Former Member
0 Kudos

hi ajantha,

at the pbo u can find this set pf-status 'xxxxx',

just delete these xxxxx and your name something like 'zxx',

double click on that,

yes,

yes,

on the functon bar u can find some icons for back ,enter,exit ,save, and etc,

on the back icon,

write back and save, activate,

go back to the program,

at pai,

case sy-ucomm.

when 'BACK'.

leave program.

endcase.

then activate it works,

reward points if helpful,

regards,

seshu.

Former Member
0 Kudos

in order to come back from ur screen to sap initial screen,

activate ur pf status and do mention BACK,CANC,EXIT in Pf status. Function code should be Upper case

write the query in PAI

case sy-ucomm.

when 'BACK'.

leave to screen 0.

when 'CANC'.

leave to screen 0.

when 'EXIT'.

leave to screen 0.

endcase.

Please activate pf status in PBO..