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

Regarding leave program statement.

Former Member
0 Likes
784

Because of using LEAVE PROGRAM statement in LOAD-OF-PROGRAM event the BDC report is going to dump can any one tell me the alternation for LEAVE PROGRAM statement its urgent please?

5 REPLIES 5
Read only

Former Member
0 Likes
749

u can use STOP statement

if useful reward with points

Read only

0 Likes
749

STOP statement is obselete in ECC 6.0 version any other alternative please reply urgent

Read only

Former Member
0 Likes
749

Hi,

You can use leave to screen 0.

Thanks,

Sriram Ponna.

Read only

Former Member
0 Likes
749

Try using LEAVE LIST PROCESSING.

reward points if useful

Read only

0 Likes
749

You're technically not allowed to do anything that would cause the program to exit in the LOAD-OF-PROGRAM event, STOP is also not allowed.

The best way I know to make sure the program exits completely is to set a flag in the LOAD-OF-PROGRAM event, and then use "RETURN" or something similar to leave the event. The next event to run will be INITIALIZATION, from which you can check the flag and call "LEAVE PROGRAM". With no problems.

(You can also sometimes move everything to the INITIALIZATION event, depending upon your needs.)