发布网友 发布时间:2023-06-09 20:34
共4个回答
热心网友 时间:2024-01-18 19:07
Hi ,Somebody has authorization to do something like using "ME51N" to creating PR .But at sometime like between 20:00 to 24:00 everyday,we won't everybody to do this work .So I would like to write an abap/4 program to restrict the users to run "me51n" at the time ,and the other time they can use it .Then I can creating a background job to run this program .First I want to use "enqueue_delete" function to delete the corresponding queue to restrict it ,but it is failed .Thanks,David.热心网友 时间:2024-01-18 19:07
There is a "form call_delete_user" in program RSM04000_ALV.It displays a popup which allows you to kill multiple sessions with one click.See how far you can take it from here.T.热心网友 时间:2024-01-18 19:08
?????????If the running time is too long :- the time out will be kill itAny Way, - Try to optimise the Abap coding !!!Best RegardsJLG热心网友 时间:2024-01-18 19:09
Here's an idea:Use GET TIME at the very beginning and also at key points within your code. Compute the difference, and if it exceeds your maximum runtime, exit.That's if you don't have control of your SAP system's maximum allowed runtime at the Basis level (instance profile parameter).If you're talking about a "foreign" tcode ... hmmm ... I don't know but I suggest running an SE30 trace of doing this thing manually in SM04 (kill session).T.