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

Stop further processing after Load-of-program

Former Member
0 Likes
1,118

Hi experts,

How to stop further processing once the load-of-program event is triggered.

In load-of-program I am checking for a condition.,

-If condition is true further processing of the report should be done.

-If condition is false further processing of the report must be stopped. Next events or whatever should not be triggered

How can I achieve this.

BR,

Eshwar

Hi experts,

How to stop further processing once the load-of-program event is triggered.

In load-of-program I am checking for a condition.,

-If condition is true further processing of the report should be done.

-If condition is false further processing of the report must be stopped. Next events or whatever should not be triggered

How can I achieve this.

BR,

Eshwar

3 REPLIES 3
Read only

JuanCarlosDelga
Contributor
0 Likes
842

Hi Eshwar

Just check the condition in further event, like PROCESS BEFORE OUTPUT, that you want to control.

Regards.

JCD


Read only

Former Member
0 Likes
842

Dear Eshwar,

As per documentation from SAP this event must be occurred else you'll get error.

http://help.sap.com/abapdocu_70/en/ABAPLOAD-OF-PROGRAM.htm

Better do as said by Juan.

Read only

VijayaKrishnaG
Active Contributor
0 Likes
842

Hi Eshwar,

I suggest you to validate your condition in the INITIALIZATION event and exit the program from that event when your conditions failed.

To exit from the program, you can use LEAVE PROGRAM statement.

Regards,

Vijay