Error in mail step
Hi,
In the standard leave request workflow ws20000081, i am trying to add a new step to send mail after the leave is approved.
But after the mail is sent through 'send mail' the workflow is not proceedinmg further and it throws exception
CL_SWF_RUN_ALERT_ERROR
IF_SWF_UTL_MAIL~SEND
Dialog work item executed
EXECUTE_METHOD_OBJECT_SYNC
EXECUTE_METHOD_BOR
EXECUTE_METHOD_BOR
Regards
Divya
Hi Divya,
Are all sendmail steps hainv issues or just this particular work item?
Has user WF-BATCh got a valid email address assigned in SU01? Make sure it does.
Are you sending the mail to an SAP User or an email address. If a user then make sure the Type is G. Also make sure the user has the prefix 'US'.
If it is an email then user type U.
Also check to make sure the user exists in the system.
Regards,
Eddie
Similar Messages
-
Regarding runtime error ehile execution of Mail step in workflow
Hi all when i execute mail step in workflow i am getting following error-
SQL error in the database when accesing a table.
How to correct the error
Database error text........: "SQL system error. MSGID= Job=038082/DEV05/WP02"
Internal call code.........: "[RSQL/INSR/ARFCSDATA ]"
Please check the entries in the system log (Transaction SM21).
If the error occures in a non-modified SAP program, you may be able to
find an interim solution in an SAP Note.
If you have access to SAP Notes, carry out a search with the following
keywords:
"DBIF_RSQL_SQL_ERROR" "CX_SY_OPEN_SQL_DB"
"SAPLARFC" or "LARFCU03"
"END_TRANSACTION_NONE_LOCAL_UPD"
If you cannot solve the problem yourself and want to send an error
notification to SAP, include the following information:
1. The description of the current problem (short dump)
To save the description, choose "System->List->Save->Local File
(Unconverted)".
2. Corresponding system log
Display the system log by calling transaction SM21.
Restrict the time interval to 10 minutes before and five minutes
after the short dump. Then choose "System->List->Save->Local File
(Unconverted)".
3. If the problem occurs in a problem of your own or a modified SAP
program: The source code of the program
In the editor, choose "Utilities->More
Please guide.
Thanks.Hi Sanjay,
Firstly are you using Send mail Activity or are u calling Fm SO_DOCUMENT_SEND_API1.
Well I suppose u are calling the FM, in that case just check the data that you are fetching before calling this FM. This error is related to sql query so check your select statements used before sending mail.
Hope this helps. -
Error in SEND MAIL step with exception 1001
Hi Experts,
I am getting exception 1001, error message Document <&> could not be sent
when I put my user id in SEND MAIL step. In the same workflow,I put my user id at an activity step,and I am sucessfully receiving work item generated at that activity step in SAP Business workplace inbox.
Can anyone please tell me why exception is happening in SEND MAIL step.
Thanks,
Sonali.Hi Surjith,
Firstly Workflow was running fine till yesterday.
Secondly, I put expression &_WF_INITIATOR& in the Send Mail step. Notification should go to my SAP business workplace->inbox->Document. But it is not going. Exception 1001 is happening.
But in the same workflow, just at the immediate next activity step I put &_WF_INITIATOR& again as agent. And I am successfully receiving workitem in SAP business workplace->inbox->workflow for this activity step.
Please guide me how to resolve the issue and why suddenly it is happening so.
Thanks,
Sonali. -
In workflow i have user decision step with attachment as PDF, after he rejects i should send a notification to the initiater about rejection, I used send mail step after the user decision step of rejection branch,, the send mail step is giving following error..occurs
Executing batch work item ;Work item 000000653444: Object SELFITEM method SENDTASKDESCRIPTION cannot be executed.
EXECUTE_METHOD_OBJECT_SYNC ; Method container for work item cannot be created
EXECUTE_METHOD_BOR ; method container for work item cannot be created
Executing batch work item Unable to instantiate object '_ATTACH_OBJECTS'
is this attachment is creating any problem..Hi Sunil,
In the user decision step check the binding. The attachment should be binded from workflow container to the task container and from the task container to the workflow container.
The description given by you indicates that the binding has been done one way only i.e. from workflow container to the task container. It should also be from the task container to the workflow container.
Since it is not able to get an instance of the '_ATTACH_OBJECTS' it is giving an error.
Regards,
Sameena -
Hi Friends,
We are implementing "Project Systems" in SAP. Here i am supposed to send a mail to the applicant once all the necessary approvals are done via workflow. The entire workflow is working fine except the last step which is for sending mail.
This mail step has the following attributes:
Object: SELFITEM
METHOD : SENDTASKDESCRIPTION
In the task binding, i am passing the APPLICANT(concatenation of US and username) to ADDRESSSTRINGS and USERTYPE is 'B'(SAP User).
I have checked everything from my end but can't fugure out the exact cause of error because all the import parameters to the task are getting correctly passed which i verified in SWIA.
Does the user WF-BATCH has anything to do with it ??
What can be the possible causes for this proble ??
Please guide.
Regards,
Shashank ShiraliThe user WF-BATCH was locked. So mails were not getting sent.
-
Send Mail Step forced to error status
Hi,
In my send mail step, i'm using Expression and passing 'UserComplete' field which is the person who has completed the document in FV60 tcode. But, it ends in error status.
The error message is,
Work item 000000399146: Object 000000399146 method SENDTASKDESCRIPTION cannot be executed
Message no. WL821
Diagnosis
The calling of the object method for the work item ended with a return value for which no handling is modeled in the workflow.
System Response
The work item was forced into the error status.
Procedure
Refer to your workflow system administrator.
Procedure for System Administration
Also check the binding between the task container and the method container.
I want to know wat binding should i give for task and method ?
Regards,
JMBHi,
Just check what your passing in the field "UserComplete".
You need to pass user id as USXXXXXXXX.
US refers to USER and XXXXXXX is the user name.
Reply back if the problem still exist.
Regards,
Gautham P -
Error in sending OUTLOOK mail step
Hi ,
Here is the design of sending the mail.
From the OUTLOOK MAIL TO INITIATOR step i m getting the required mail id to whom mail should be sent from SAP system regarding the errors.
then on moving to the send mail step i m encountering the error ,below is the data elements i maintained in the send mail step.
But when a workflow is triggered i m getting the below error-->Hi Ranjith
In your email step, the Type ID should be U - Email Address and not G - Org Object
Specify the recipient type as Email and then select the container element which contains the email ID.
Type ID G - is for org objects and to send directly to email IDs ... you need to use type U
regards,
Modak -
Mail step not working with expression
Hi Experts,
I am using the business object bus2080 for Tcode iw21, to trigger workflow on notification status change. I have mail step in my workflow,mail is being sent successfully when it has only text, but when i am using the expressions, say notification number in that mail, no mail is being send, getting error "Error handling for work item 000000660111".
Please let me know your valuable comments on this issue.
Thanks
IshtiyaqHi Rob,
The worflow container I am using is of the type BUS2080. Binding in the start event is as below
Event -> Workflow
&_EVT_OBJECT& &ZBUS2080&
and in the Mail Step
Workflow-> Mail Step
&ZBUS2080& &ZBUS2080&
Also in the mail subject and body I am adding the expression using button 'Insert Expressions'.
thanks,
Ishtiyaq -
Error in Fork Step causing issue in generating next work items
All,
We have ECC 6.0 with the following SP:
SAP_BASIS 700 0012 SAPKB70012 SAP Basis Component
SAP_ABA 700 0012 SAPKA70012 Cross-Application Component
I have this strange issue. In one of my custom workflows, i am using a Fork step with 02/ 02 necessary outcomes. In branch 1, i am sending a mail to a user's e-mail id. In branch 2, i have 3 activity steps for another user. Step 1 is to display an invoice and step 2 is a user decision to apprve/deny this invoice.
I know that during runtime, at the Fork step, the work item for branch 1 and the 1st work item for activity step 1 in branch 2 get generated almost simultaneously(though with some small time difference). This is OK. But the issue is, when the sendmail in branch 1 errors out due to some error, and when step 1 is finished successfully by another user, the work item for 2nd activity step in branch 2 is not getting created.
As i understand, in the Fork, the 2 branches, execution should be independent of each other, that means, the work item creation and execution of branch 1 and 3 steps in branch 2 should be happening independently. But, this doesn't seem to be the case.
I understand when the sendmail in branch failed, the wflow is set to 'Error' Status.But there is already an open workitem for step 1 of branch 2. When this workitem is completed successfully, I expect the work item for 2nd step should get generated.But this is not happening. But, when i restart the whole workflow using SWPR, it generates the witem for 2nd step in branch 2. And still the wflow is in 'Error' status.
When the user finishes the 2nd workitem of branch 2, the next work item for 3rd step is not getting generated. Instead i needed to restart the whole wflow again and this time, it generated the 3rd witem in ranch 2.
To my understanding, when a Fork is there, if i specify 02/02 outcomes necessary, these 2 branches should go in parallel, both creation and execution of workitems, until they are joined. And at this point, if the whole Fork step is successful, then workflow will proceed further with steps below the Fork. Shouldn't this be the case ?
Anybody had similar issue? Pl share your thoughts on this. I'd really appreciate if somebody can clarify whats going on in the above case and how to fix this.
Thank you in advance
Regards,
venu
Edited by: Venugopal Jogi on Jun 10, 2009 5:58 PMHi Arghadip,
Thanks for your reply. You said
"When a Workflow goes into error the processing should stop whether it is in same branch or in different.".
If this is correct, then as i explained earlier, when i restart the workflow without fixing the errored branch, then also, the next work item should not be created..Right ? But, it is. I didn't fix the errored branch but simply restarted the workflow. Then it created the witem for 2nd step, in the branch 2 that is not errored.
How can this be, the branch 1 is still in ERROR status only. So, can you pl clarify if something else might be going on here.
Also, fixing the issue is fine. But, the SendMail step in branch 1 is just an information only and per business requirement, this should not be holding up the approval process. And if we don't process the invoice in time, just because of some informational mail errored out, this will not be a feasible solution to the client,Right ? That's the whole reason i am using Fork step, so that they both proceed parallelly (independently).
If step 1 is a pre-requisite for step 2, then it makes sense to fix error in step 1 so that we can proceed with step 2.
Any other thoughts on this.....
Regards,
venu -
Hi,
I have a scenario where if the condition satisfied i need to send it to both receiver file and email otherwise if not only to email.
Here i declared the 2 idoc Abstract MI(payment and verfication) and 1 file Abstract receiver. Here only payment need to be send as output. But I am getting error in transformation step as
Expression must return the interface type PAYEXT.PEXR2002.ZEXR2002.
Expression must return the interface type MIPaymentadviceFile
In this scenario please tell me how many transformation need to be used and currently I used only one before switch statement because all the sender need to send the same output.
Regards,
DhillHi Bhavesh,
My actual scenario is
I need to receive 2 IDOC PAYMENT (N TIMES) and VERIFICATION (1 TIMES) so n:1 ration. In this in the payment idoc I have field where I need to find the sum of the field then I need to campare withe the VERIFICATION Idoc with other too field like
if IDCREF01-E1IDRH1-PAYRUNID equals to PEXR2001-E1IDRH1-PAYRUNID and
IDCREF01-E1IDRH1-PAYRUNDT equals to PEXR2001-E1IDRH1-PAYRUNDT and
IDCREF01-E1IDRS1-SUM01 equals to PEXR2001-E1IDKU5-MOABETR.
where MOABETR is the sume field. And if the condition is satisfied then i wl send only PAYMENT IDOC to file and as well as mail otherwise only 2 file.
Please let me know whether it could be possible without BPM and if yes let me know the details and I am sorry i have raised so many forum whether I am getting stucked but till now not able to proceed further.
If you want i will explain the BPM step which involved.
Regards,
senthi. -
SEND MAIL STEP IN WORKFLOWS.
hi gurus,
The send mail step sends a notification to the sap inbox of the user. This step works fine in a client, whereas it fails in another......I am not aware of the reason.
Regards,
Sukumar.hi,
please check the agent finding rule is failed in the log or the background job is scheduled properly inorder to schedule or delver the mails using the transaction : swnconfig if it EP 5.0 or above.
if it is issue with the workflow like buffer problem, then try this technique
You have changed your workflow template in client 000. If you look to the workflow definition in another client with SWDD, then you see the newest version as just maintained in client 000. But at runtime, the old (former) version of the workflow definition is used.
Cause:
When activating a workflow template, then also some client specific data is replicated from client 000 to the other clients. In this replication there is currently an error. I just talked to a workflow colleague. The problem we have observed seems to be just the tip of an iceberg ... . They are working on the issue(s) related to this.
Workaround:
Execute function module SWD_WFD_REPLICATE_FROM_9999 in the client, you need to have the newest template definition. Enter your workflow template ID (with pattern "WSxxxxxxxx") in parameter IM_TASK and execute. Make sure that you do not lock the template in SWDD.
Then you also (may) need to execute transaction SWU_OBUF to synchronize the buffer
i hope this answers your query.
Regards,
Saujanya -
PROBLEM IN SENDING MAIL TO POSITIONS THROUGH SEND MAIL STEP
Hi Experts,
I am facing some problems in sending mail to positions from the organization structure from the send mail step.When I am using user as the recipient type it is working fine...but when i am choosing S position as the recipient type it is giving the error in the workflow log stating that method SENDTASKDESCRIPTION cannot be executed.
I need to find a solution urgently...any suggestion would be sincerely appreciated.
thanks.
NarsinghWell you have probably tried this.. but just a recheck.
1 . send email setep select Organizational Object
2. Recipient Type Organizational Unit
3. Here do an F4 and then select the Unit...
Try this SAP behaves weirdly at times...
after this do Refresh Buffers.. and Org Unit...
Let us know if this works -
Workflow : Mail Step Problem
Hi,
I am getting a peculiar problem with Mail step. I am getting the following ERROR :
<i><b>Work Item XXX Object YYY method SWW_BI_EXECUTE_S cannot be executed</b></i>
What could be the problem?
All the containers are properly BINDED are getting passed to the Mail Step.
Regards,
Raja SekharIf you are using the standard Selfitem.SendTaskDescription method and are getting the error, one or more of the values being passed could be wrong. Check if Workflow technical log has more info on the error.
Cheers,
Ramki Maley. -
Attachment to Mail step in workflow
Hi All
I have to create a attachment to the standard mail step , for that i have created a object of type SOFM and sent it back to the workflow conatiner ATTACHOBJECTS and later this element is binded to ATTACHOBJECTS of the mail step conatiner element but it is not getting attached.
after refferring some threads I have come to know that we need to pass it to the multiline element _ATTACHMENTS of the mail step.
So i have done the binding between ATTACHOBJECTS ---> ATTACHMENTS of the mail step then it is going to error state
and the error is "DOCUEMNT <FOL33XXXXXXXEXTXXXX73> COULD NOT BE SENT"
Thanks & Regards
PavanHi Rick,
I've checked all the settings and everything is fine.
The problem is with sending attachment.When we are sending mail without attachment, it is working fine.
Also attachment is getting generated perfectly.I can see the attchment at work item of mail send through SWI1.
One more point I want to add that attachment is in pdf format.
Thanks & Regards,
Anirban -
Hi expert,
I have to use send mail step in my workflow. The user name is availabe in the workflow container. I am also using the standard method SENDTASKDESCRIPTION but i dont know what shoud be the binding between workflow and task and task with method. I dont know what should be the Recipient type in the mail tab. Please help me this is the first time I am using send mail step.
Thanks
RajWork item 000001079024: Object 000001079024 method SENDTASKDESCRIPTION cannot be executed
Message no. WL821
Diagnosis
The calling of the object method for the work item ended with a return value for which no handling is modeled in the workflow.
System Response
The work item was forced into the error status.
Procedure
Refer to your workflow system administrator.
Procedure for System Administration
Also check the binding between the task container and the method container.
this is the error mesege. Please help me
Maybe you are looking for
-
How to define special character in html text file used in loadvars
Hi I'm witing some maths software and need to use the division sign in a text file which is loaded using LoadVars(). The variable loaded is then assigned to a text area. Here's the variable example. &hint1=<title><b>Challenge 1: Instant recall of any
-
HT5373 Can html links be attached to events?
Does anyone know why I sometimes get the following screen when tryint to open HTML links that I add as attachments to calendar events? Sometime the links work flawlessly and sometimes I get this screen which requires 4-10 "cancels" to remove from vie
-
Hi. I'm trying to write a java debugger in java. Sun mentions publicly available low level interfaces to the JVM for getting complete info on classes (ie things like private variables) see the end of http://java.sun.com/docs/books/vmspec/2nd-edition/
-
Relation between master and transaction data
Hi experts, I have a basic question how the relation between masterdata and transction data is maintained in R/3. As I know first we extract master data and later transaction data in a typical R/3 based scenario. 1.How does BW knows that , the transa
-
Input form for creating an xml document
are there any utilities which will help me to create an input form for an xml file. The requirement is to come up with a form which will help me input data which can be saved as an xml file.