Skip to Content
Former Member
Jun 07, 2008 at 08:09 AM

File to Idoc .If order is their need to send mail


Hi All,

I have scenario like this.

Sending file (order) to SAP -IDoc

I using RFC lookup .There is funtion module which has been developed in SAP R/3 it contains 5 import parameters and return SUBRC.

If the result is subrc = 4

This is the normal situation and the order / idoc should be

generated as normally.

If the result is subrc = 0

Now we are in a situation where we earlier have received this order.

Instead of generation an IDOC, an email must be send to respective persons with contents

SUBJECT: We have already received this EDI -order before.

And the mail should contain following:

We have already received this EDI-order before.

Purchase order no: <value of purchase order no>

Sold-to: <value of sold-to>

Salesorganisation: <value of salgsorganisation>

Distribution channel: <value of distribution channel>

Division: <value of division>

Note : BPM not recomended