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

Trigger EXIT1 & EXIT2 Interchangably.

Former Member
0 Likes
662

Hi Experts,

Can some one give me an idea of how to implement the following scenario's?

(Say ) i have 2 exits say EXIT1 and EXIT2.

I want to trigger Exit1 from today till next 6 months. And after 6 months. i need to trigger EXIT2 for another 6 months. And then again EXIT1 for another 6 months..and then EXIT2 interchangably and so on.

Please suggest.

Thanks

Dan.

4 REPLIES 4
Read only

Former Member
0 Likes
634

Hi Dan,

Triggering can't be controlled that way but you can check in the code of exits with the date.

EXIT 1

sy-datum in <required date>

EXIT 2

sy-datum in <required date>

Regards,

Atish

Read only

Former Member
0 Likes
634

Hi

Trigering of exits cannot be controlled in this way. Only way looks possible is you can check the current date and compare the month field .. say if is from 1 to 6 then you can trigger exit 1 and if it is from 7 to 12 you can trigger the exit 2 .

Reward if helpful

Thanks .

Read only

0 Likes
634

Hi All,

My point is where exactly do we place our code for sy-datum? Inide the exit or outside the call function stmt...etc?

thanks

Dan

Read only

0 Likes
634

Hi Dan,

It is inside the include of the FM.

Regards,

Atish