cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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

Thanks

MMV

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

just clarify one question.

You are using RFC look up right that means if RFC returns 0 ie you received the orders right.if iam wrong please correct me.

Now, you need to send the order through mail right.

Why don't you do this you can send your orders through mail from R/3 using the function module "SO_NEW_DOCUMENT_ATT_SEND_API1" This function module help you in sending mail from R/3 with attachement.

Please reward points if it helps

Thanks

Vikranth

Former Member
0 Kudos

Hi

Is it possiable in Receiver determination ?

If possiable , how it can be done let me know

Former Member
0 Kudos

Hi,

Check the following link

/people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step

it is possible to configure the mail adpater to send attachemnts without any ABAP coding. Just check out these

blogs by michal that deal with the mail adapter,

/people/michal.krawczyk2/blog/2005/11/23/xi-html-e-mails-from-the-receiver-mail-adapter

/people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address

You can also check these links on SAP help for configuring the mail adapter,

http://help.sap.com/saphelp_nw04/helpdata/en/ad/bf93409c663228e10000000a1550b0/content.htm

http://help.sap.com/saphelp_nw04/helpdata/en/23/c093409c663228e10000000a1550b0/content.htm

http://help.sap.com/saphelp_nw04/helpdata/en/6b/4493404f673028e10000000a1550b0/content.htm

Please reward points if it helps

Thanks

Vikranth