Application Development 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: 

How to set time out in the abap program?

xinjiang_li
Active Participant
0 Kudos

Hi,

I want to set the execution time in the IN_UPDATE block of a BADI, could you tell me how to code that?

When the specified execution time reaches, and the badi is still running, then pop up a window and tell the end user the time out message.

Does SAP have any function regarding this? Thanks in advance.

1 REPLY 1

Former Member
0 Kudos

You can have the INPUT be a number of seconds, then calculate the max endtime = SY-UZEIT + INPUT. Have checks throughout the program that returns an error as OUTPUT if exittime >= SY-UZEIT(current time).

There may be an easier way but this is all I can think of as a user set timeout option.