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
Thanks
MMV

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

Similar Messages

  • Need to send mail & upload files using JSP

    hi, got a lot of issues,.. just starting out as a developer.. so here goes.
    1st Need to send mail & upload files to server using JSP(tomcat).. an example to demo it would be nice.
    thanx in advance

    Look at this for email:
    http://forum.java.sun.com/thread.jspa?forumID=45&threadID=285950
    and go to:
    http://servlets.com/cos/
    for a package to upload files.

  • Need to send mail using apex

    Hi,
    I am using apex 4.2 and oracle 11g XE. I need to send mail so I used the following code:
    HTMLDB_MAIL.SEND(
          P_TO       =>  '[email protected]',
          P_FROM     =>   [email protected]
          P_SUBJ     =>  'Data in TECHNICAL_DETAIL edited' ,
          P_BODY     =>  'Please click link below for affirmation/rejection of changes' ,
          P_BODY_HTML=>   '<p><a href="http://localhost:8080/apex/f?p=109:25:12079147455079">link</a></p>'
    It is going t apex_mail_queue successfully. Then I used the following code:
    which one i should use:
    1.
         wwv_flow_mail.push_queue(
            P_SMTP_HOSTNAME => xxx
            P_SMTP_PORTNO => 'yyy
    or
    2.
         APEX_MAIL.PUSH_QUEUE(
            P_SMTP_HOSTNAME => xxx
            P_SMTP_PORTNO => yyy
    Also what else I need to send mail and what should i  ask DBA to provide me so that mail can be sent successfully.
    Please give some idea.
    Thanks,
    Chandra Bhanu

    Hi,
    You should use APEX_MAIL.PUSH_QUEUE witch is documented
    APEX_MAIL
    Parameters
    Description
    p_smtp_hostname
    SMTP gateway host name
    p_smtp_portno
    SMTP gateway port number
    Note that these parameter values are provided for backward compatibility, but their respective values are ignored. The SMTP gateway hostname and SMTP gateway port number are exclusively derived from values entered on the Manage Environment Settings when sending email.
    Regards,
    Jari

  • Need to Send Mail from JSP...

    Dear Team,
    I Need to Send Mail from JSP, have Designed user Interface to enter
    to, from, subject, and message text .
    Have Downloaded mail.jar and activate.jar file..... and placed in tomcat lib directory and WEBAPPS/WEB-INF/lib Directory too
    How do i send a mail to user ?
    do I require something else apart from things that i have mentioned?
    do i have to Configure SMTP, POP3 or Something like this....
    Now If I Create a object of Type MimeMessage and Set Recipient, from, subject and if i say transport.send(message) will this do My JOB???

    Dear Team,
    I Need to Send Mail from JSP, have Designed user
    Interface to enter
    to, from, subject, and message text .
    Have Downloaded mail.jar and activate.jar file.....
    and placed in tomcat lib directory and
    d WEBAPPS/WEB-INF/lib Directory too
    How do i send a mail to user ?
    do I require something else apart from things that i
    have mentioned?
    do i have to Configure SMTP, POP3 or Something like
    this....
    Now If I Create a object of Type MimeMessage and Set
    Recipient, from, subject and if i say
    transport.send(message) will this do My JOB???Yup! in addition to all the above i need to know my mail box outgoing mail server. and that's enough...... i am able to do that.
    Regards,
    Jagadeesh HS.

  • NEED TO SEND MAIL FROM FORMS...

    DEAR ALL,
    I NEED TO SEND MAIL FROM FORMS WHEN I PRESS THE MAIL BUTTON.
    I HAVE NO IDEA FOR THIS CRITERIA. IF ANY ONE EXPERIENCED WITH
    THIS CRITERIA, PLS HELP ME AND GIVE ME THE CODING FOR THAT.
    AND ALSO PLS EXPLAIN EACH LINE OF CODING, WHICH U POST.
    THANKS IN ADVANCE
    S.BERNANDAS

    Your requirement can be done in forms. Good amounts of advice here. There 244 messages this year alone that fit the search criteria in the Oracle Forms forum.

  • File To Proxy : Handle the response from ECC to send mail without BPM

    Hi,
    Scenario: FILE To Proxy
    Requirement: We are receiving xml acknowledgement file from bank with IDoc number and status in SAP PI and the file is used to send the status number, message and and IDoc number to ECC. After request is received in ECC BAPI is executed to update the original status of outbound IDOC.
    There would be multiple records in file and PI will send all IDoc acknowledgement to ECC to update the IDoc status.
    Issue: Since PI send all records to ecc, if any single IDoc status update is failing in ECC how would it can be communicated to support.
    ECC can send success or error response in proxy but how we can use the same in PI to send mail to support. Or is there any better error handling we can go for in such scenario.
    Thanks,
    Vertika

    Hi everyone
    thanks for response.
    Interface 1: IDoc (ECC) to File (Bank) --> Done
    Interface 2: Acknowledgment File (Bank) to BAPI (ECC) where BAPI will update the status of IDoc sent in first interface.
    For Interface 2 : PI will receive file from Bank with multiple records i.e multiple IDoc numbers and their status. PI will invoke proxy to send the IDoc number and status number (eg 16) for all the records together. Now if BAPI fails to update status of any single IDoc in that file how support team will know that the particular record is failed. To handle this error ECC is saying they can send Error and Success back to PI. But the problem is how we can use that response in PI in the same interface to send emails to support team. Bank does not want any response back in this case. This is just to ensure proper error handling since this is bank related interface.
    Splitting the interface in two interfaces will definitely help. But is there some way which can be used in same interface and based on error response from ECC mail is triggered.
    If any one has better suggestion for such kind of error handling, please post the same.
    Thanks,
    Vertika

  • Concurrent Error Alert Need to send mail

    Hi Everybody,
    My Requirement:_
    if any concurrent program completed with error, it need to send an mail alert notification to the users.
    My Environment:_
    OS : OEL4U5
    DB : 9.2.0.8
    Apps Version : 11.5.10.2 (with ATG RUP 7)
    Steps i have done:
    1) OS level Mailer configured and am able to send a mail.
    2) From the application level regarding workflow notification all the services are up and running and am able the receive test mail from application to my mailer account.
    Issue:
    For alert configuration i referred this mention meta-link id *"How To Send A Notification For A Failed Concurrent Request [ID 730657.1]"*
    But for me it showing an error in alerts *"System Alerts are disabled because of following: Logging is disabled"*
    for this log disabled issue i referred this doc but in my case its not worked *"System alerts in OAM are disabled because of the following:Logging is disabled [ID 455937.1"*
    Kindly suggest me to step forward
    Regards
    Athish                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Hi ,
    Now am able to receive the error concurrent alert to the user mail perodically.
    Referred Metalink Doc:
    How to send a Concurrent Program Error Exception Report as a notification to users using Alerts [*ID 396756.1*].
    Issue Currently Facing:_
    If i run the Periodic Alert Scheduler concurret program in alert manager manually am able to receive the error concurret report with log file to the user mail id.
    At the same time if i schedule this Periodic Alert Scheduler concurret program for every *10 minutes* am not receving any error concurrent report and logfile to user mail id.
    Kindly Suggest me i need to schedule this Periodic Alert Scheduler concurret program perodically for every 10 minutes at the mean time error report mail need to receive for users mail id.
    Regards
    Athish.
    Edited by: Athish on Mar 20, 2012 6:04 AM

  • Need to send mail to user while clicking update button

    Hi
    I am new to APEX.
    I have a requirement. When clicking an update button the a mail should automatically send to user mentioned in the form. How can i achieve this. Please help.
    Regards
    Hisham.A

    Hi,
    Do not create duplicate post about same problem
    Re: need to send a automatic mail to an id while clicking a button
    Regards,
    Jari
    My Blog: http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0
    Twitter: http://www.twitter.com/jariolai

  • Need to send mail from Microsoft Exchange 2007 account(different from Gmail) on behalf of another Gmail ID. How to configure that ?

    I have a Gmail ID (e.g [email protected])
    I have a Exchange ID (e.g  [email protected])
    I need to configure exchange account (2007)  such that I can send a mail from my Exchange account but at the receiver end it looks like it was sent from  ([email protected]).
    Both the accounts are my accounts.
    I need this because I do not have access to my Gmail account from place where I access the internet and I need to send the mails from my Gmail account only.

    So you want to spoof your e-mail address.
    You can make your Exchange server send as any address you want.  Just create a different mailbox with that address as the primary (reply) address.  It has to be a different account.
    However, be aware that many systems to which you send such mail to will bounce it as suspected spam because they'll detect that your server is sending mail from Gmail but your server is not Gmail.
    Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."

  • Need  to send mail  thro procedure

    Hi ,
    I need to send a mail when a procedure fails .I was trying to use utl_smtp package . i just took a sample code available and was trying to work with it as thi s is first time iam using this package .iam getting a error ora-29278.Could u please tell me what is this error , how correct it .Could u please what are things i would need to write a procedure to send mail

    procedure to mail

  • Personal data change in PORTAL (PA30) - need to send mail notification

    Hi,
    When there is any change in personal data on PORTAL need to send a mail notification to the respective agents. I was able to design the workflow in such a way that , whenever there is any change in the personal data (Ex. Marital status) it trigger an event and workflow starts, inturn it send mail to external system and sap Userid.
    The question is ?
    1. If the personal data is changed from the portal , does it trigger the same event in the backend ? does 
        it  start my workflow?
    Thanks!
    Richard A

    Hello Richard,
    In my opinion same event is triggered. You can check it in transaction SWEL.
    Please have a look at the following threads more more detailed information,
    Workflow is not trigerred from the portal
    /thread/113450 [original link is broken]
    /people/alan.rickayzen/blog/2003/10/13/workflow-in-the-enterprise-portal
    Best regards,
    Abir.

  • Why everytime i need to send mail from my phone it is asking for my apple ID ?

    how come since I updated my phone, every time I need to send new e-mail it is asking me for my apple ID ?

    Settings > Messages > Send &amp; Receive > Start New Conversations From > select your cell phone number.

  • Self registration & needs to send mail from admin to user.

    Hi friends,
    system needs to  send an e-mail from the administrator to the user, informing the user that self-registration was successful.
    i have made the congifuration as mentioned on sap help. i mean "ume.notification.
    selfreg_performed = TRUE"
    but still the user not getting emails automatically.
    can any one assist me on this case.
    thanks,
    udhaya.

    Hi Michael,
    i had done the self registration and email notification successfully thanks for your help & all also for all who helped me.
    But i have a small doubt notification mail "user successfully created" going to the Guest user from administrators mail, but administrator account not getting any mail. i need to get that mail in our administrator inbox. how to get this mail.
    Please assist me.
    thanks,
    Udhaya.

  • Need to send mail from new infotype

    Hi,
    i must send email notification when i new PA specific infotype is created/changed.
    Finally, i don't think worflow is the best way... but i don't know where i must implemented my code, i've tested this idea by modifying the PAI but it don't work, e-mail is not sent, but function is correct, if i test it it's ok.
    Cheers

    Hi ,
         I came across the same requirement 2 yrs back and i have done it with workflow. You need to create a workflow
    with a single task which sends the mail to corresponding person .
          I forgot the Business Object name , but it was containing an event "CREATED".  When ever a new infotype is created , this event is triggered which inturn triggers WF and the mail is sent.
    Reward points if the info. is useful to you.
    Regards,
    Vijay

  • Help Needed for Sending Mail

    Hi Friends,
    I am Ravi Maheshwari from India. I am working on a project where we have to take the feedback from the customer/visitors. For that i have design the feedback from and where i have specified our server mail address where that feedback should come.
    But when I click on send feedback button it opens the MS-Outlook with all the information and ask to send the mail, it is not sending it directly. so what should i do so it will send the mail directly.
    Please help me as This page will go live so early.
    Thanks in advance.
    Regards
    Ravi Maheshwari

    Well, I guess you will need to provide some script or servlet you can send the HTTP form request to, that then composes an e-mail, connects to a mail server and sends it...
    If all you know is HTML, you'll have a huge lot to learn.

Maybe you are looking for