cancel
Showing results for 
Search instead for 
Did you mean: 

Doubt : Activity(PO)

Former Member
0 Kudos

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

Mail

I

End

Thanks and Regards,

Gaurav

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi ,

Check the type of your task in which you are fetching the details , it shoud be a backgroud step .

Former Member
0 Kudos

hi manik,

Thanks alot..Points awarded.

Now i'm able to get the mail but my prb is still there.My activity is not working..I created a breakpoint in program of my method.But it is not triggering...Hence i'm not able to fetch the details.

Thanks and Regards,

Gaurav

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Gaurav ,

I dont tknow whether it will work or not but you can try using the paragraph type /* and write the code for displaying data:

loop at itab.

itab-matnr itab-menge

endloop.

I dont know would this work but you can have a try.

Former Member
0 Kudos

hiu manik,

/* is for comment line and /: is for command line.

Former Member
0 Kudos

Sorry I mean to say /: command line

Former Member
0 Kudos

hi manik,

No effects..

Regards,

Gaurav

Former Member
0 Kudos

hi manik,

Moreover the loop is not looping at all.What can we conclude from this.

Thanks,

Gaurav

Former Member
0 Kudos

Sorry Gaurav ,

As per my knowledge ,I dont think it is possible .

But I think , there must be something . IF you get something dont forget to post the same .

Edited by: Manik Dhakate on Jun 9, 2008 12:07 PM

Former Member
0 Kudos

sure manik.

Thanks alot for being there always..

I appericiate ur help..

Thanks and regards,

Gaurav

Former Member
0 Kudos

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.

vijy_mukunthan
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hi Vijay,

I checked in my method and when i put my breakpoint in method and create PO,it is not getting trigger.

Regards,

Gaurav

Former Member
0 Kudos

I think the method should not be a dialog one it should be background. I think you need to do this debugging from SWO1 transaction Code. I also recommend you to first always check the Wflow log before proceeding.

Thanks

Arghadip