on 06-06-2008 7:23 AM
hi,
I have developed a workflow which triggers on creation of Purchase Order.I added one event in ZBUS2012 and then delegate it to BUS2012.It is working fine.Now i had requirement to list all the line items of PO in mail so i added a method in ZBUS2012 in which i call a Z-Function Module which returns us all the line item details. I created an activity before the Mail Step and In this activity i created a new task of calling this method which stores the parameters coming from Z-FM.But i'm unable to do so.i,e now even mail has stopped coming to inbox,which means activity has got some prob that's why it is not going to mail step.Pls tell me the possible causes and solution.
Flow:
Creation of Purchase Order
I
Activity(FM)
I
I
End
Thanks and Regards,
Gaurav
Hi ,
Check the type of your task in which you are fetching the details , it shoud be a backgroud step .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Gaurav,
Make your task as foreground task again as you will not be able to debug the background task .
Change the task to foreground , insert a break point , activate the wotkflow and execute .
In debug u will get wht is the problem with the function module .
Rectify the problem and change the task to background again.
One more thing , if you want to check what is the task getting executed you can run the transaction SWi1. In this you can see all the workflows and the tasks which are getting executed in the system.
hi manik
Thanks again,points awarded..Now i'm very close to this.Now its working..But the details are coming intact means my details contains only two fields i,e matnr and menge so in mail it is coming mat011000.80 where mat01 is my matnr and 1000.80 is menge. I want to separate them.Pls help.
Thanks,
Gaurav
Hi Gaurav ,
For this you would have to change the description of the task .
Open the task in transaction PFTC in the change mode .
In the basic data , work item text is the subject just give the subject something like this
Please release purchase order &Container.Material& &Container.Quantity& .
Dont forget to give space between container variables.
Hope this will solve your PRoblem
hi manik,
If there are 3 line items in PO. Then i want them in new line in my mail body not in subject.
material - mat01 Qty - 1000
material - mat02 Qty - 2000
material - mat03 Qty - 3000
Then how to do this,
Gaurav
Edited by: Gaurav Kumar on Jun 9, 2008 1:40 PM
Edited by: Gaurav Kumar on Jun 9, 2008 1:41 PM
Edited by: Gaurav Kumar on Jun 9, 2008 1:41 PM
Edited by: Gaurav Kumar on Jun 9, 2008 1:42 PM
Hi Gaurav Kumar,
If this is the case, Check these things.
1. First check the log and find what error it is giving.
2. Execute the function module that you have created
3. Execute the method that you have created using the FM, by giving the parameter
4.Check the binding between task-->method
and method-->task
5. Check the binding between workflow-->task
task --> workflow.
Thanks and Regards
Balaji K.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi friend
Check your method. debug your method and see all the container element is getting filled. If not because of that you would not getting the mail.
Regards
vijay
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
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.