cancel
Showing results for 
Search instead for 
Did you mean: 

Problem executing submit program inside method

Former Member
0 Kudos

Hi frnds ,

I have got a submit program inside my method which is sending mails .

the program is working fine when i try to execute my method from SWO1 . But when ever i am trying to execute my method from the workflow the submit program is not working .

The task in which the method is attached is a background task .

Also i have checked that the method is gettign execute properly and other data is getting fetched and also returned from the method .

Plz help me . Is there any other way to execute my submit program from the method.

Thanks

ROhit

Edited by: ROHIT GUPTA on Apr 9, 2008 4:04 PM

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Please check whether the binding is done properly. I think the binding might be missing. Please analyse the Wflow Log and check the task container and ten execute your method.

Thanks

Arghadip

Former Member
0 Kudos

Yes Arghadip ,

I tried to check the binding initialy , but its Ok . For this i just tried passing dummy values inside my report so that it doesnt requires any value from the workflow .

But still the report is not getting executed .

The code inside my Method is like this

EXPORT L_V_GUID L_V_PECO L_V_SSG TO MEMORY ID 'DETAILS'.

  • CALLING THE REPORT FOR SENDING THE MAIL TO THE SSG & PECO

SUBMIT ZCTR_SENDMAIL AND RETURN.

Edited by: ROHIT GUPTA on Apr 9, 2008 4:24 PM

Former Member
0 Kudos

So what is the status of that workitem. Please analyse the Workflow log.Examine the task container.

Thanks

Arghadip

Former Member
0 Kudos

Status of workitem and the task is completed .

values are getting passed to the task .

My method is of synchronous type . And i havent given any other properties to my method .

Former Member
0 Kudos

Is anybody hAVING ANy other idea for my problem .....

Do we have problem when we excecute a method having a submit program inside it . ?? Do we have to set some neccesary properties for the method for this .

Is there any way to debug my method when i execute my workfllow . I have debugged it using swo1 amd its working fine .

Thanks

Rohit

Former Member
0 Kudos

hello,

try debug your method:

1.

insert following code to your method:

data x.

loop.

if x = 'x'.

exit.

endif.

endloop.

2.

go to SM50 and execute command Program-Debug on

your process

best regards,darek

Former Member
0 Kudos

Hi darek ,

Finaly i was able to debugg the method .

The problem was actualy the user WF-BATCH DIDNT had the device set in the user master record .

Thanks all of you for help .

Rohit