2013 Dec 23 7:35 AM
Hi all,
Can anybody explain me the user exit sequence... Suppose if iam writing an user exit for a program and inside the include program iam writing 5 different program and when executing, the system should execute the 1st sequence and skip the 2nd, 3rd and 4th and execute the 5th sequence. How can i acheive this in user exit.... Please help...
Regards,
Sam.
2013 Dec 23 8:50 AM
Hi Samuel,
Kindly elaborate the conditions used to call the programs from the exit.
Regards,
Shankar.
2013 Dec 23 7:43 AM
Hi Samuel,
based on the condition for which you wants to skip 2, 3, and 4th, you can use CONTINUE
statement, but if you wants to skip, then why are you writing these code segment.
Can you littlebid explain your scenario clearly, that why are you writing logic in user-exit.
2013 Dec 23 7:49 AM
Yes, we can do it in so many ways!
for example if your are writing the user-exits for sales, need to check the sales organization specific and distribution channel
in case of purchase, you can check based on the purchasing organization!
otherwise, you can create the control table based on some parameters and check in the user-exit, if satisfied the condition you can call the exit.
high level example:
VKORG VTWEG EXIT PROGRAM
XXXX XXX ZTEST1
2013 Dec 23 8:50 AM
Hi Samuel,
Kindly elaborate the conditions used to call the programs from the exit.
Regards,
Shankar.
2013 Dec 23 8:58 AM
I dont have this issue in real time, but i just want to know how to execute if i come across this problem in future..
My requirement is after completing the 1st statement , the 5th one should be triggered.
Regards,
Sam.
2013 Dec 23 9:02 AM
Normally in a scenario where you have 5-6 different logics working. What usually happens is you have a criteria to trigger those logic. What you can do is create a custom reusable function module EXIT checker which will based on your inputs tell you whether to proceed ahead with next logic or skip. this function module may fetch data from custom table which you have created to activate the step.Let say for sales org ABC you want to do 1,2 and 5 and for Sales org you want to perform stesp 2,3 and 5.
You can maintain this in custom tables which steps to trigger. and this function module will return you what steps to run.
Nabheet
2013 Dec 23 9:05 AM