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

User exit..

Former Member
0 Likes
714

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.

1 ACCEPTED SOLUTION
Read only

former_member188251
Active Participant
0 Likes
652

Hi Samuel,

Kindly elaborate the conditions used to call the programs from the exit.

Regards,

Shankar.   

6 REPLIES 6
Read only

former_member187748
Active Contributor
0 Likes
652

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.

Read only

Former Member
0 Likes
652

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

Read only

former_member188251
Active Participant
0 Likes
653

Hi Samuel,

Kindly elaborate the conditions used to call the programs from the exit.

Regards,

Shankar.   

Read only

0 Likes
652

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.

Read only

0 Likes
652

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

Read only

0 Likes
652

Thanks nabheet..