on 06-07-2008 9:09 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.