To send the error messages of an BAPI as an attachment in mail
Hi all,
I am running the BAPI_EXCHRATE_CREATEMULTIPLE to update the transaction OB08..I am able to do that.What i want now is that if there are error messages in the BAPIRET2 table then i collect these messages in a table and send these records as an attchment in the mail..
I am using the FM 'SO_NEW_DOCUMENT_ATT_SEND_API1' to send the mail..
Plz suggest how i should proceed..
A sample code will be useful..
<b><REMOVED BY MODERATOR></b>
Thanks..
Arun
Message was edited by:
Alvaro Tejada Galindo
You should use the OO approach to sending email out of SAP. There are several bcs_example* programs in the system.
REPORT bcs_example_1.
* This example shows how to send
* - a simple text provided in an internal table of text lines
* - to some internet email address.
* All activities done via facade CL_BCS!
DATA: send_request TYPE REF TO cl_bcs.
DATA: text TYPE bcsy_text.
DATA: document TYPE REF TO cl_document_bcs.
DATA: sender TYPE REF TO cl_sapuser_bcs.
DATA: recipient TYPE REF TO if_recipient_bcs.
DATA: bcs_exception TYPE REF TO cx_bcs.
DATA: sent_to_all TYPE os_boolean.
START-OF-SELECTION.
PERFORM main.
* FORM main *
FORM main.
TRY.
* -------- create persistent send request ------------------------
send_request = cl_bcs=>create_persistent( ).
* -------- create and set document -------------------------------
* create document from internal table with text
APPEND 'Hello world!' TO text.
document = cl_document_bcs=>create_document(
i_type = 'RAW'
i_text = text
i_length = '12'
i_subject = 'test created by BCS_EXAMPLE_1' ).
* add document to send request
CALL METHOD send_request->set_document( document ).
* --------- set sender -------------------------------------------
* note: this is necessary only if you want to set the sender
* different from actual user (SY-UNAME). Otherwise sender is
* set automatically with actual user.
sender = cl_sapuser_bcs=>create( sy-uname ).
CALL METHOD send_request->set_sender
EXPORTING
i_sender = sender.
* --------- add recipient (e-mail address) -----------------------
* create recipient - please replace e-mail address !!!
recipient = cl_cam_address_bcs=>create_internet_address(
'[email protected]' ).
* add recipient with its respective attributes to send request
CALL METHOD send_request->add_recipient
EXPORTING
i_recipient = recipient
i_express = 'X'.
* ---------- send document ---------------------------------------
CALL METHOD send_request->send(
EXPORTING
i_with_error_screen = 'X'
RECEIVING
result = sent_to_all ).
IF sent_to_all = 'X'.
WRITE text-003.
ENDIF.
COMMIT WORK.
* * exception handling
* * replace this very rudimentary exception handling
* * with your own one !!!
CATCH cx_bcs INTO bcs_exception.
WRITE: text-001.
WRITE: text-002, bcs_exception->error_type.
EXIT.
ENDTRY.
ENDFORM. "main
Similar Messages
-
Correct and re-send the error messages in PI
Hi everyone,
Today when iam monitoring my PI i found error like some objects missing in the que, I toublshooted it by using inbount xml payload and found the error and cunsulted the user he asked me to correct and re-send the error messages. as iam really new to PI monitoring i really dont know how to correct and re-send the error messages in PI, can any one please help me with it.
Thanks in advanceWhen you send the messages from RWB-->Component Monitoring ->Integration Engine>test message, runtime parameters like Sender System, Receiver system, Adapter specific message attributes won't carry any values. If you are using any of these paramters in the mapping step,, the mapping will fail.
I think in your case, RFC look up would have been configured based on Sender Business system/Service. but when you send message from RWB, the value for this field is empty. So that is why it is failing as the message cannot find the business system and communication channel.
If you use the sender file name, server name or any other parameters in the message mapping, then message will fail in the message mapping step. That is the major set back in RWB-->Test message.
Reasons:
1)We post messages directly into pipeline step message mapping.
2)The previous pipeline steps are ignored when post messages from RWB such as Receiver determination, routing etc
3)Receiver determination step is responsible to send Sender/Receiver values into the mapping step.
Hope i have clarified your questions -
Sending job error message to admin by email
Hi everyone...
Anyone knows how to send job error message to admin by email? For example, if crawler failed, an email is sent to admin with the error message. I'm thinking of building windows service which run at the background and knows when a job fail and send the error message through email to admin.
Is there a better way?
Cheers,
Jefi Santosohi,
>>>Can this be achieved through BPM?
yes you can put your transformation step
and send step in a block and specify an exception
branch and catch all exceptions that will
occur during transformations and the send step
then you can send info from the exception branch to
any other system
you won't be able to catch the error's name
but you will be able to notify any thinrd party
about the error
more on error catching:
http://help.sap.com/saphelp_nw04/helpdata/en/33/4a773f12f14a18e10000000a114084/content.htm
Regards,
michal -
I receive the error message "javascript:false"
When accessing the United Airlines site the calendar feature to add dates does not work. Then, when adding the dates manually and entering the information I receive the error message "javascript: false"
I just synced my icloud mail with snow leapord using this helpful website:
http://www.wilmut.webspace.virginmedia.com/notes/icloudmail.html
What was missing before is the updated incoming and outgoing servers.
You will have to delete your mobile me account, then create a new one without using the default wizard.
It's all laid out nicely in the link above. -
The error message that is received is: Cannont Send Mail; A copy has ben placed in your Outbox. The recipient [email protected] was rejected by the server.
Is this a problem in the way the accounts have been set up or with my local email server?Check the parameters in your email account against what is recommended by your email provider.
Settings > Mail, Contacts, Calendars > account
Have you contacted the support contact at your email provider? -
I am unable to receive or send email from my IPAD. The error message says "Connection to server failed". Help!! geandreamer44
Reset the device:
Press and hold the Sleep/Wake button and the Home button together for at least ten seconds, until the Apple logo appears.
If that doesn't help, tap Settings > General > Reset > Reset All Settings
If that doesn't help, tap Settings > General > Reset > Reset Network Settings
You will have to re enter your Wi-Fi password.
If nothing above helped, restart your router.
No data is lost due to a reset. -
My iPad receives email on the hotel wifi but will not send. The error message reads "user name or password for smpt......is incorrect" but both are correct and unchanged. Restarting iPad did not help.
I did try this too, but when I access my webmail on the iPad, the iPad doesn't allow me to type my message. I am able to enter in the "to" address and the "subject" line, but then the keyboard will not come up for me to type my message. Is there some trick to this? Very frustrating!
-
Hi All,
I am using project server 2007 and WSS 3.0.
I have been facing a strange issue for couple of days. I am unable to open PWA in browser and MS Project Pro on application server.
Everything is correct whether it is URL or MS Project profile account on MSP. This is strange because i can open same PWA/MSP from other computers (Database server / Client PCs) but not locally on server.
When i try to connect to MSP on App server, i get the following errors in event viewer.
Event Type: Error
Event Source: MSSOAP
Event ID: 16
User: N/A
Computer: APP-Server-Name
Description:
Soap error: Connection time out..
Event Type: Error
Event Source: MSSOAP
Event Category: Client
Event ID: 16
User: N/A
Computer: APP-Server-Name
Description:
Soap error: An unanticipated error occurred during the processing of this request..
Event Type: Error
Event Source: MSSOAP
Event Category: Client
Event ID: 16
User: N/A
Computer: APP-Server-Name
Description: Soap error: Sending the Soap message failed or no recognizable response was received.
Event Type: Error
Event Source: MSSOAP
Event Category: Client
Event ID: 16
User: N/A
Computer: APP-Server-Name
Description:
Soap error: Unspecified client error..
One more issue i am facing and i guess that is related to above issue. The Issue is, when i am creating a new project, It's workspace gets created but doesn't get linked to the project and i can't link it manually because it already exists for the project.
sandeepHi Paul ,
Thanks for reply. The project server URL was already added to the Trusted
Sites/Local Intranet areas in IE.
sandeep -
I have Verizon's iPhone 5 4G LTE 32GB Black. I purchased Apple's mini USB lighting charging adapter. Every mini USB charging accessory I own gives the error message. I want to send you a screen shot. It doesn't help you win over Android users when the products you make and say will be compatable, are are not. It's frustrating. Please help.
this is a user helping user forum apple don't read or write here we are not trying to win over android users
if you want apples attention use the feedback channel
http://www.apple.com/feedback/iphone.html
about taking a screenshot of your error msg then
http://ipod.about.com/od/iphonewidgets/ht/iph-screenshot.htm
more hits here
https://www.google.dk/search?client=opera&q=taking+screenshot+on+galaxy+s3&sourc eid=opera&ie=utf-8&oe=utf-8&channel=suggest#hl=en&client=opera&hs=Uby&tbo=d&chan nel=suggest&sclient=psy-ab&q=taking+screenshot+on+iphone&oq=taking+screenshot+on +&gs_l=serp.3.1.0l4.9085.9085.0.12092.1.1.0.0.0.0.44.44.1.1.0.les%3B..0.0...1c.1 .4k063Cpgpno&pbx=1&bav=on.2,or.r_gc.r_pw.r_cp.r_qf.&bvm=bv.41642243,d.bGE&fp=593 4ee7a74a81829&biw=1752&bih=752 -
I am having problems with my outlook 2011. While i am able to check and SEND email on all my other devices ( Ipad, iphone, Macbook), I am unablesend any email with my iMac ( i can recieve email) . This problem started suddenly and the error message i get is error 5.7.8. I have read the threads on line and went into settings, even created a new profile, nothing helps...Please advice..is this something to do with my keychain Access?
As Outlook is not an Apple product, you will find more helpers familiar with Outlook here:
Office for Mac forums -
I have just upgraded to Firefox 4.0 and ever since then I get this message when I try to go to either Yahoo or Gmail
"THERE WAS A PROBLEM SENDING THE COMMAND TO THE PROGRAM",
I had this problem a month or so ago so downgraded to Firefox 3.6 and the problem went away but have now been advised to upgrade which indeed I have and hey presto the error message again, please how can I fix it??OK, you seem to be running Zone Alarm as your firewall. It includes a utility which checks to see whether a site is safe or not and also adds a plugin to Firefox which is listed as '''npFFApi'''. Can you disable that and see if it makes any difference?
To get to the plugins manager, click the orange Firefox button, then click "Add-ons". In the page that opens, click the "Plugins" link on the left which will open the menu. Then find '''npFFApi '''and click the "''Disable''" button. -
I am trying to connect tibcoems with PI using a Sender jms adapter.After successfully installing the drivers , the sender adapter goes into error.
"The JMS Provider gave the error message as Not permitted, and the error code is null"
The Transport protocol is 'Access JMS Provider with JNDI' and i have been given the required parameters from the tibco guys.
Your input are highly appreciated.
ShyamHi AQmit,
Thanks for the reply.
Please find the screenshots of what i am trying to do.
Also, Can u direct me how to check the right logs? -
I set up mac mini and when I test the mail server by sending a mail from administrator to administrator I get the error message 'Diagnostic-Code: X-Postfix; connect to 127.0.0.1[127.0.0.1]:10024: Connection refused'. Can any one suggest a solution
Thanks. Where could I possibly look for a firewall rule. I knowingly did not creat any. My system has internet coming to a Modem which then is connected to a wireless router. I have computers connecting to the router through cable as well as wireless. One of these computers has been our mailserver using Mercury and Pegasus and that computer has a static IP address. The Mac Mini also has been assigned a different srtatic IP address. I have only set up user account, none of them an email account as I initially expect them to receive only internal mails. Is it necessary that I must set up an email id for each user while setting up the user account. My server id is server.local. So would the email id for local users be [email protected]?
-
I can't send mail from my iPad apps, I just get the error message, 'The recipient… was rejected by the server because it does not allow relaying.' Does anyone know what this means and how to fix the problem.
iOS: Unable to send or receive email
http://support.apple.com/kb/TS3899
Can’t Send Emails on iPad – Troubleshooting Steps
http://ipadhelp.com/ipad-help/ipad-cant-send-emails-troubleshooting-steps/
Setting up and troubleshooting Mail
http://www.apple.com/support/ipad/assistant/mail/
Using a POP account with multiple devices
http://support.apple.com/kb/ht3228
iOS: Adding an email account
http://support.apple.com/kb/HT4810
iOS: Setting up an Outlook.com, Hotmail, Live, or MSN email account
http://support.apple.com/kb/ht1694
Server does not allow relaying email error, fix
http://appletoolbox.com/2012/01/server-does-not-allow-relaying-email-error-fix/
Why Does My iPad Say "Cannot Connect to Server"?
http://www.ehow.co.uk/info_8693415_ipad-say-cannot-connect-server.html
How to Sync Contacts with Your iPad Using iTunes
http://www.dummies.com/how-to/content/how-to-sync-contacts-with-your-ipad-using- itunes.html
iOS: 'Mailbox Locked', account is in use on another device, or prompt to re-enter POP3 password
http://support.apple.com/kb/ts2621
eMail Groups - You can use a third party app that many users recommend.
MailShot - https://itunes.apple.com/us/app/mailshot-pro-group-email-done/id445996226?mt=8
Group Email - https://itunes.apple.com/us/app/group-email!-mail-client-attachments/id380690305 ?mt=8
iPad Mail
http://www.apple.com/support/ipad/mail/
Configuration problems with IMAP e-mail on iOS with a non-standard SSL port.
http://colinrobbins.me/2013/02/09/configuration-problems-with-imap-e-mail-on-ios -with-a-non-standard-ssl-port/
Try this first - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.)
Or this - Delete the account in Mail and then set it up again. Settings->Mail, Contacts, Calendars -> Accounts Tap on the Account, then on the red button that says Remove Account.
Cheers, Tom -
I cant send pic messages to iphone users. I get the error message: "one or more of the message components have been delted by MMS Adaptation. Either the message was too large or the components were unsuitable for your handset". This only seems to be an issue to iphones. I like this phone but have had nothing but trouble since day one. I am so tired of being on the phone with verizon and still not getting all the problems corrected. Someone please help!
Hello christina267,
Help is right here, front and center! Let's get your mms working properly. May I ask are you using the original stock messaging app to send texts and mms? Also, are you using any special characters or emojis in your message? Since you state that the issue is to iPhones, did you happen to have used an iPhone on your mobile number just before you were using the Galasy S 5? As you share the details then we can investigate.
Thank you…
ArnettH_VZW
Follow us on Twitter @VZWSupport
Maybe you are looking for
-
Work Status Report Date and Time Setting
Hi all We are running BPC10 on servers configured with Central European Time which is currently 2 hours ahead of GMT allowing for Daylight Savings Time. From what i can see in BPC10 date and times are now stored in GMT (Zulu time) in the Audit activi
-
I recently purchased a Mac Pro and would like to make a fusion drive with the TB drive that it came with. I already have a 200g SSD and am wondering if I would be able to utilize the full 200g SSD. From my understanding of the Fusion drive it appears
-
Best practice for schedule printing of spool requests
Hi there, I am searching for a method / best practice how to schedule the printing of different spool requests. The following situation: A lot of different spool requests are generated in the night, but they should be printed at a specific time in th
-
*Hi experts, Will u plz tell me when i do KP26 the activity planning price stored in which table or how i put some activity price from fixed to variable which is i wrongly posted ?* Best Regards, Debashis
-
Currently, I have a live desktop design website which is being updated regularly. I tried to begin a phone site design, but was interrupted with a change to the desktop site (I'm adding new sponsors to an event on a regular basis). When I uploaded to