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

reg modulepool exit command

Former Member
0 Likes
846

hi, iam doing modulepool programming in the bigging stage .while iam doing i have a doubt that idont know the difference between writing the exit case statment in PAI module and writing code for exit in seperate module out side PAI.

please help me inthis context

1 ACCEPTED SOLUTION
Read only

gopi_narendra
Active Contributor
0 Likes
828

the only difference for coding exit in exti-command module and a normal module in PAI is that here you have the function code defined with function type E which states is a exit type of function.

Regards

Gopi

8 REPLIES 8
Read only

Former Member
0 Likes
828

HI,

1. Exit in case statement.

CASE okcode.

....

.....

when EXIT_TAB.

SET SCREEN O.

LEAVE PRGRAM.

.....

......

ENDCASE.

2. writing exit in another module..

MODULE EXIT_MODULE AT EXIT COMMAND.

inside the exit module write the same code

set screen 0.

leave program.

REWARD IF HELPFUL

thanks

vivekanand

Read only

0 Likes
828

hi,

iknow that but idont know the difference between them.

if i place the exit code with in PAI i can debug the code.

but if i place the exit coding in seperate exitmodule(module exit at exit-command) i am unable to debug the code .

first of all the debug cursor will not goto that code.

Read only

0 Likes
828

Hi,

when you create a different module for exit it will enter the module only when you have pressed the exit xommand not like the othet modules.

try debugging by pressing the exit command

its like the chain endchain module.

it wil enter when you have a change in that line.

i think ur doubt is clear now

vivekanand

Read only

0 Likes
828

Hi,

when you create a different module for exit it will enter the module only when you have pressed the exit xommand not like the othet modules.

try debugging by pressing the exit command

its like the chain endchain module.

it wil enter when you have a change in that line.

i think ur doubt is clear now

vivekanand

Read only

0 Likes
828

s ur right.

but it is not going to debug when i write code in seperate module .

Read only

gopi_narendra
Active Contributor
0 Likes
829

the only difference for coding exit in exti-command module and a normal module in PAI is that here you have the function code defined with function type E which states is a exit type of function.

Regards

Gopi

Read only

0 Likes
828

hi thanku very much

i got the answer.

Read only

Former Member
0 Likes
828

thanku very giving reply

it was very help full tome

solve the problem