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

Send Idoc based on condition!

Sm1tje
Active Contributor
0 Likes
709

Hi all,

I'm looking for a (best) scenario in which the following is required.

If the contract date of an employee is changed and that day is TODAY, an IDoc should be created. However, since the receiving system cannot handle end of contract dates which are in the future there should be some sort of check that end of contract date = today.

This means that of contract end date is changed today and set to for example end of next month, the IDoc should not be sent yet. It has to be sent on the actual end of contract date.

So using change pointers wont' do me any good, since in that case all changes will trigger an IDoc, even if the end of contract date is somewhere in the (near) future.

The only thing I came up with until now are two scenarios:

1. Batch report which runs every day and determines all contracts that end on the day that report is scheduled. Then call function module which will fill IDoc and send it using MASTER_IDOC_DISTRIBUTE.

2. Workflow on end of contract change, hold workflow (put in a check that says end of contract date = today), then call function module which will fill IDoc and send it using MASTER_IDOC_DISTRIBUTE.

Alternatives, suggestions, anything is welcome.

Thanks in advance.

And, oh yes, points will definitely awarded.

4 REPLIES 4
Read only

Sm1tje
Active Contributor
0 Likes
548

Anybody???

Read only

Former Member
0 Likes
548

Hi Micky,

the better thing is to create customidoc.you can get what you want to get only using custom idoc only.

please reward points if helpful.

Read only

0 Likes
548

First of all, thanks for my first real reply.

If I were to create a custom IDoc, how would I trigger this based on the condition? seems to me that the problem remains, namely: the IDoc should only be sent IF the end of contract date = today. So when end of contract date is in the future, than what?

Edited by: Micky Oestreich on Apr 19, 2008 12:09 AM

Read only

Sm1tje
Active Contributor
0 Likes
548

Cleaning up my (unresolved) questions.