Send message to SAP inbox - change message CREATOR
Hi,
I'm sending a message to a user's SAP inbox using function module SO_OBJECT_SEND. By default, the message creator is set to sy-uname. I need to change this to a generic user e.g. 'SYSTEMUSER'. This is not the same as the SENDER/Author/Owner. I managed to change the sender by setting the parameter ORIGINATOR.
I referred to other forums but couldn't find any references to changing the creator. I tried passing the username via parameters SENDER and OWNER - in the Sap Inbox "document overview" the Author is set to SYSTEMUSER but the document creator in "document contents" still reflects my name.
Example code:
ALL FUNCTION 'SO_OBJECT_SEND'
EXPORTING
OBJECT_HD_CHANGE = w_object_hd_change
OBJECT_TYPE = 'HTM'
SENDER = 'SYSTEMUSER'
OWNER = 'SYSTEMUSER'
ORIGINATOR = 'SYSTEMUSER'
ORIGINATOR_TYPE = 'B'
TABLES
OBJCONT = text_nom
RECEIVERS = receiver_list.
Is it at all possible to change the message creator without modifying the SAP standard code? Examples will be much appreciated.
Kind regards
Liza-Marie
Thanks!!
I'm creating a background job (from within the dialog program) that calls function module SO_OBJECT_SEND with the specified user. This works perfectly!
Regards
Liza-Marie
Similar Messages
-
Classes and methods to send email to SAP inbox
Hi,
I want an appropriate class and method to send emails to SAP Inbox.
My objective is that i convert spool to PDF and send it to SAP inbox as an attachment.
I've used 'CONVERT_ABAPSPOOLJOB_2_PDF' and 'SX_TABLE_LINE_WIDTH_CHANGE' to generate PDF attachment.
I tried Function modules 'SO_DOCUMENT_SEND_API1'/'SO_NEW_DOCUMENT_ATT_SEND_API1' to send email.
It was working fine till now (for last 4 months). Now the Basis team has run some patches due to which the PDFs are getting damaged.
Now the FMs 'SO_DOCUMENT_SEND_API1'/'SO_NEW_DOCUMENT_ATT_SEND_API1' seems to be useless.
So i tried some methods in classes cl_document_bcs and cl_bcs. These are working fine for Internet mails but not SAP mails.
Please suggest me some Classes and methods to send the PDF atachments to SAP inbox.to have all SAP inbox messages into lotus notes inbox you have to sync the same with the use of connectors rather than resending them
check out this link
http://www-128.ibm.com/developerworks/lotus/library/lei-sap/
for outlook its done using MAPI
http://www.sapgenie.com/faq/exchange.htm
Regards
Raja -
Not able to send mail to SAP Inbox(SBWP)
When i create a new message in SBWP and send it to SAP Inbox, It is moving to outbox. When I resubmit this mail , then it move to SAP Inbox. Please Help me to solve this problem.
Hi,
When i create a new message in SBWP and send it to SAP Inbox, It is moving to outbox.
When ever you send a new message (mail) from the SAP Inbox, Outbox will have a copy, Like sent items in the Outlook.
When I resubmit this mail , then it move to SAP Inbox. Please Help me to solve this problem. code}
When creating a new message, If you give the correct User Id in the recipient it will go correctly. Click Refresh in the SAP Inbox and check it.
Regards,
Surjith -
Send Workitem from Sap inbox to outlook
Hi all,
Any one please explain how to send workitems in sap inbox to outlook.
What all configurations are needed?
Thanks in advanceFirst you need to be able to send an e-mail from SAP Business Workplace to your e-mail address. If that's not in place you need to configure the e-mail connector or whatever it is called. Basis people should be able to help you with that. It not only involves setting up SCOT to transmit messages with address type INT, you also need to have jobs running on your application server to pass on the SMTP messages.
Once that is working you can start thinking about e-mail notifications for workflow. If you have transaction code SWNCONFIG in your system, you should use the extended notifcations that you configure there - that is SAP's recommendation. In order to use it it seems you must have SAP Web AS running.
The other alternative (unless you are on a release < R/3 4.6C) is the report RSWUWFML2.
For assistance setting up any of these three, please post your specific questions.
In both cases you need to have a sender address defined for the user that executes the report, any user sending e-mail must have an e-mail address in the user record. -
Hi,
I am testing a SOAP Sender Channel using a SOAP Client and getting the following error. I have read almost all the posts related to errors in SOAP Channel and also have checked my URL which is correct. AS mentioned in many of the posts, my url goes like
https://<host>:<port>/XISOAPAdapter/MessageServlet?channel=:DEMO:SOAP_s_GETLIST&version=3.0&SenderService=DEMO&interface=si_os_GETLIST&interfaceNamespace=<namespace>
This is the error that I get when sending a message to the interface
<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP:Body>
<SOAP:Fault>
<faultcode>SOAP:Server</faultcode>
<faultstring>Server Error</faultstring>
<detail>
<s:SystemError xmlns:s="http://sap.com/xi/WebService/xi2.0">
<context>XIAdapter</context>
<code>ADAPTER.JAVA_EXCEPTION</code>
<text>com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.engine.interfaces.messaging.api.exception.MessagingException: XIProxy:PARSE_APPLICATION_DATA:
at com.sap.aii.adapter.soap.ejb.XISOAPAdapterBean.process(XISOAPAdapterBean.java:1041)
at sun.reflect.GeneratedMethodAccessor1044_10001.invoke(Unknown Source)*
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
</s:SystemError>
</detail>
</SOAP:Fault>
</SOAP:Body>
</SOAP:Envelope>
Has Anybody got this problem before? Is it any problem with the SOAP Adapter itself or with the data that is going in the message? If so, What is the possible solution for this?
Thanks,
Rashmi.Hi Rashmi,
I also think your problem is data related.
Check the response in your SAP PI message monitor (SXMB_MONI) when you trigger a request using SoapUI. It sometimes provides a bit more detail. You design (data types, message types, service interfaces etc.) was done in SAP PI 7 then an Abap Proxy was generated from the service interface?
Sometimes there is an issue between the XSD data type declaration in SAP PI and the conversion to Abap data types that takes place when a proxy is generated from a PI Service Interface.
Check the data that you pass in your request, especially those like datetime fields. Maybe even change some of the data type definitions (like datetime) to a string (request & response) & then test through SoapUI & see if you still get the error. Then you can work out how to best resolve it.
Best Regards, Trevor -
Dear all,
I am configuring static check with just warning message "Static credit check: credit limit exceeded" for information to credit rep & credit manager & no block at any level as per requirement initially (and delivery block after three months-later activity).this message that the credit limit has been exceeded should go to SAP Inbox of credit representative & a credit manager.
Earlier the message was going to their SAP Inbox while testing but at that time i had configured static check with delivery block & used the routine 9 'credit check block' with source text
'Requirement: Sales order is blocked due to credit'
'If the credit block is set, a mail message should be created'
Now since i am not using routine 9 (because the sales order is not blocked at any level), shall i create a new routine with my abaper to allow me to send a mail message if credit limit has been exceeded or some standard routine is available for the same.
please advise how to proceed.
regards
vikas chhabraHello Vikas,
Yes, you need to create your own routine for that.
In Standard there exist only routines 9 and 10 for that purpose.
You can find additional helpful information on that topic in note # 677377, which you find on the SAP Service Marketplace.
Best regards
Martin -
Issue in sending mail to SAP Inbox from Workflow
Hi All,
I need to send the mail to the creator of the document about the user decision. If i am executing the workflow through the event ( ouput type) , the workflow processing in SWIA is complete but the mail is not sent in the SAP Inbox. But If i try to manually execute the workflow, mail is sent to the SAP Inbox.
I've used WF_INITIAITOR in the Expression. I need to send the mail not to the approver but to the creator of the workflow.
Thanks,
NehaHi,
the event is also triggered from my Id but in that case I do not recieve any e-mail. None of the users recieve the e-mail in the SAP Inbox for the mail step after the decision.
In workflow Log the last step shows the details as
name of the manager and the workflow background for mail sent step as shown below
Sumit Vij Background work item created 10.01.2012 12:08:43
Sumit Vij Execution started automatically 10.01.2012 12:08:43
Workflow Hintergrund Work item processing complete 10.01.2012 12:08:44
Thanks -
Small issue in sending mail to sap-inbox via classes
Hi All,
I am working in sending SAP mail to sap-inbox via classes..
Which i am able to work out..But got some minor struck off where when i am sending the mail from sap-report
it is sucesfully reaching the user ....
Issue is In the sap-inbox mail it is not only showing the
Created: Sender user name
it is also showing the Changed :Sender name only
How to restrict the changed should not display ...
Waiting for your response....
*Creates persistent send request
TRY.
L_SEND_REQUEST = CL_BCS=>CREATE_PERSISTENT( ).
* Creating Document
L_DOCUMENT_SAS = CL_DOCUMENT_BCS=>CREATE_DOCUMENT(
I_TYPE = 'HTM'
I_TEXT = I_CONTENT[]
I_SUBJECT = 'Automated HRIS (SAP) Report' ).
*PERFORM PREPARE_ATTACHMENT.
* Adding Attachment
CALL METHOD L_DOCUMENT_SAS->ADD_ATTACHMENT
EXPORTING
I_ATTACHMENT_TYPE = C_EXT
* I_ATTACHMENT_SIZE = L_SIZE
I_ATTACHMENT_SUBJECT = 'Hr Details r.xls'
I_ATT_CONTENT_HEX = L_XML_TABLE. "i_attach.
* I_ATT_CONTENT_TEXT = l_XML_TABLE.
Sas
Edited by: saslove sap on Oct 22, 2009 7:05 AM
Edited by: saslove sap on Oct 22, 2009 7:07 AMcontd...
* document to send request
CALL METHOD L_SEND_REQUEST->SET_DOCUMENT( L_DOCUMENT_SAS ).
DATA:LR_SENDER TYPE REF TO IF_SENDER_BCS,
LR_SEND TYPE REF TO CL_BCS.
* Preparing the sender object
* LR_SENDER = CL_CAM_ADDRESS_BCS=>CREATE_INTERNET_ADDRESS( sy-uname ).
DATA: L1_UNAME TYPE SY-UNAME.
L1_UNAME = SY-UNAME.
LR_SENDER = CL_SAPUSER_BCS=>CREATE( L1_UNAME ).
* Setting the sender
CALL METHOD L_SEND_REQUEST->SET_SENDER
EXPORTING
I_SENDER = LR_SENDER.
* E-Mail
LOOP AT P_EADDR.
TRANSLATE P_EADDR-LOW TO UPPER CASE.
L_RECIPIENT = CL_SAPUSER_BCS=>( P_EADDR-LOW ).
CALL METHOD L_SEND_REQUEST->ADD_RECIPIENT
EXPORTING
I_RECIPIENT = L_RECIPIENT
I_EXPRESS = 'X'
I_COPY = ' '
I_BLIND_COPY = ' '
I_NO_FORWARD = ' '.
IF SY-SUBRC EQ 0.
WRITE:/'** SUCCESS: Email Sent to', P_EADDR-LOW COLOR COL_NORMAL.
ELSE.
WRITE:/'** ERROR: Failed to send Email to',P_EADDR-LOW COLOR COL_NEGATIVE .
ENDIF.
ENDLOOP.
*Trigger E-Mail immediately
L_SEND_REQUEST->SET_SEND_IMMEDIATELY( ' ' ).
CALL METHOD L_SEND_REQUEST->SEND( ).
COMMIT WORK.
CATCH CX_DOCUMENT_BCS INTO L_BCS_EXCEPTION.
CATCH CX_SEND_REQ_BCS INTO L_SEND_EXCEPTION.
CATCH CX_ADDRESS_BCS INTO L_ADDR_EXCEPTION.
ENDTRY.
Edited by: saslove sap on Oct 22, 2009 9:02 AM -
Sending mail to SAP Inbox thru actions
Hi Friends,
I am having a requirement as below:
Need to send one mail to SAP Inbox to the BP in one specific partner functions in an activity based upon the below conditions:
1) Status of the transaction is open
2) The Todays' Date -Created date =45
I believe this can be done using actions. Please let me know if this is possible. If yes let me know the simplest way and if know let me know the alternative way.
Thanks,
Jaihi
yes you can do this using actions
just create your action profiel and there you give processing type as smartforms
and then select your parameters\
there are some standard actions available in the system for that you can refer to them
then you inside the conditions give your conditions
attach your action profile to your transaction and then you have what u wanted
alternate way to achieve this is using FMs or workflows
best regards
ashish -
Alv result send mail to sap inbox internally
Hi,
How to send a e-mail alv results to the sap inbox internally. Please povide me meterial or suggest me, if anybody have an idea about this requirement. It is my short time requirement. Please help me.
Thanks.
Regards,
prasad.hi,
Thank you for ur reply.
Now I am able to send email from local sap to sap inbox with an attachement as excel sheet, but the all the records would be having in the first row only.
actually, I need to get each record in separate row , how to get it. please help me.
really thank you very much for ur help.
prasad. -
Sending mail from sap Inbox to outlook
Hi All,
Iam new to SAP workflow. Here I need to send the mail from SAP Inbox to Outlook for high priority keeping red flag as icon.
can anyone tell me how to set up this and go ahead to start.
Thanks
KumarIF I understand you correctly, you want to send a mail to Outlook (external email address) as a step in Workflow.
If you are on Release 6.20 or above the following solution will work. I do not remember what is available in earlier releases.
1) Define a multiline element based on SOXNA-FULLNAME to hold the email addresses. How you populate this element with the addresses depends on your requirements.
2) Insert a Send Mail step in the workflow.
3) In the Mail Tab, Select 'U' as Recipient Type.
Assign the Multi Line element defined in Step 1 to E-Mail Address.
4) Define the Subject and the body as needed.
Please note that you should have External mail sending from SAP enabled and a batch job that runs periodically to push the mail.
Cheers,
Ramki Maley. -
Hello,
Could any body tell me how to attach a report output to a mail which need to be send to SAP Inbox.
The report is ALV report. Is there any Function Module to do so.
Regards,
Satyaemail to SAP Inbox
Send mail to User's SAP Inbox also
RECLIST-RECEIVER = IT_ZMMTACCUID-ACCTUSRID.
RECLIST-REC_TYPE = 'B'.
APPEND RECLIST.
CLEAR RECLIST.
SEND THE DOCUMENT BY CALLING THE SAPOFFICE API1 MODULE FOR SENDING
DOCUMENTS WITH ATTACHMENTS
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
DOCUMENT_DATA = DOC_CHNG
PUT_IN_OUTBOX = 'X'
IMPORTING
SENT_TO_ALL = SENT_TO_ALL
NEW_OBJECT_ID =
TABLES
PACKING_LIST = OBJPACK
OBJECT_HEADER = OBJHEAD
CONTENTS_BIN = OBJBIN
CONTENTS_TXT = OBJTXT
RECEIVERS = RECLIST
EXCEPTIONS
TOO_MANY_RECEIVERS = 1
DOCUMENT_NOT_SENT = 2
DOCUMENT_TYPE_NOT_EXIST = 3
OPERATION_NO_AUTHORIZATION = 4
PARAMETER_ERROR = 5
X_ERROR = 6
ENQUEUE_ERROR = 7
OTHERS = 8.
following options are available for field
RECLIST-REC_TYPE
Name
P Private distribution list
C Shared distribution list
O SAPoffice user
B SAP user
U Internet address
X X.400 address
R SAP user in another SAP System
A External address
F Fax number
D X.500 Address
L Telex number
H Organizational unit/position
J SAP object
G Organization object/ID
Regards
amole -
Sending an automatic mail on changing message status
Hey,
I faced this problem previously where i wanted to send a mail to the key user as soon as the message status of any Service Desk message changes from new to In Progress. I received a SAP Tutor file from SAP Support which showed the whole process of configuring it. I implemented it and it was working fine. Now i have this situation that i want to send an email to the user everytime the message status is changed. So what i basically did was that i editted the condition to include all the statuses.
Now the problem i am facing is that the email is only sent when the message status is changed for the first time. Any subsequent changes later on dont result in mail being delivered. Actually that action of
sending mail is not being generated after the first time. Please help mein this regard.
Regards,
Bilal NazirHello Chetan,
First of all, are you using SolMan 3.2 or 3.1? I am asking that because the SAP Tutor file shows old version of Service Desk. If you have 3.2, are you working with SLFN transaction type or SLF1? With SLFN, you have to change action profile SLFN0001_ADVANCED. In order to send email on status change, create a new action as explained in the SAP Tutor, but using the correct action profile. Then create a condition for action for the correct status profile. It should work, it works for me..
I use the standard action "Email to message creator" to send email to message creator. I just configured "Max. 1 Unprocessed Action for Each Action Definition", Scheduled Automatically, Partner Dependent and put the message creator partner function in the Action Definition.
If it does not work for you, please explain in details what you have done and if you have any error message.
Did you check the Actions tabstrip in your Service Desk Message? You have all the log of the actions there, if the action was scheduled and did not work, you should find an error.
Regards,
Raquel Cunha -
Sending mails from SAP inbox to Outlook
Hi,
I am able to send mails to the SAP user's inbox in the SAP workplace thru my abap program but i would like send it to their outlook mail box. I'm able to get mails if i configure outlook to receive emails from SAP mail box but i would like to do it vice versa. I got the user's SMTP address.how do i do it? Is there any configurations are necessary or anything to do with my exchange server? give me some valid sugesstions.Hi,
Check this link
http://www.sapdevelopment.co.uk/reporting/email/email_sapmail.htm
http://www.sapdevelopment.co.uk/reporting/email/emailhome.htm
Thanks & Regards,
Judith. -
SAP Inbox messages automatically forwarded to SOST
Hi,
We are in SMR7.0 Sp7.
We have scheduled the deadline monitoring job SWWDHEX and system is generating the message for latest end reached in the useru2019s SAP Inbox as a notification. We understand that the message from SAP Inbox can be forwarded to users email using the automatic forwarding settings through SO12.
However we notice that an email is sent to the user through SOST/SCOT even though we have not maintained the SO12 settings.
Is it standard SAP behavior that a SAP Inbox message is automatically sent to SOST? Or is there any other setting (other than SO12) , that enables the forwarding of SAP Inbox message to SOST? We would like to stop this automatic forwarding of SAP inbox message to SOST.
Thanks
SukumarNo. Forwarding is standard behavior. It is general behavior, This, you can see in normal R/3 also..
If your problem is NOT resolved as i said, shout BASIS consultants. They will make it worked.
Alert mechanism is different , in SRM 7.0, alert mechanism is given .
Donot get confusion.
Balaji.T.
Edited by: balajit on May 10, 2011 1:55 AM
Maybe you are looking for
-
I have the need to open some .pdf attachments in firefox (24) and some in Skim, pdf reader. I understand that the opening is set in the Preferences Pane. Is there a way or add on that will allow this on the fly ? Or place the option in the attachment
-
Since the trial version was not working properly I tried to uninstall it via Adobe, which worked. But now it seems impossible to download a new trial version or get an update, since it was once installed on this PC. But normally I would have had 20 d
-
Hi all, I need a little bit help with message splitting. I have message structure like below. The Error Node exists in all rows, in first part it is initial (with no value), then come rows with different error messages. <Message1> <Row> <node1>
-
Why, after a while, Itunes on my PC can't read anymore Ipad?
Why, still after around 15 months from the purcvhase, after a while, Itunes on my PC( win7) can't read anymore Ipad and the only way to make it work is reinstalling completely Itunes once again? I tried the proceeding suggested on the help online( cl
-
(SOLVED) Taskbar thumbnail preview disappears quickly
I have windows 7 RC on my laptop, Dell 1501. When I start one or more programs from the taskbar and hover my mouse pointer on them I can see thumbnail previews. The problem is that thumbnail previews disappear too quickly even though my mouse pointer