cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

Hi All,

In one of a workflow for PPM , I am using this Function module to send email. But this FM is getting dumped and no information received by the WF and hence it remains in process.

The dump details are as follows:

Short text of error message:

COMMIT WORK during ON COMMIT or ON ROLLBACK

Calls trace

  33 METHOD       CL_DPR_TRANSACTION_MANAGER====CP    CL_DPR_TRANSACTION_MANAGER====CM009    18

     CL_DPR_TRANSACTION_MANAGER=>ON_TRANSACTION_FINISHED

  32 METHOD       CL_SYSTEM_TRANSACTION_STATE===CP    CL_SYSTEM_TRANSACTION_STATE===CM001     2

     CL_SYSTEM_TRANSACTION_STATE=>RAISE_TRANSACTION_FINISHED

  31 FORM         SAPMSSY0                            SAPMSSY0                              464

     %_AFTER_COMMIT

  30 FUNCTION     SAPLSOI1                            LSOI1U32                              172

     SO_DOCUMENT_SEND_API1

29 FUNCTION     SAPLSOI1                            LSOI1U25                               30

     SO_NEW_DOCUMENT_ATT_SEND_API1

Any Helps !

Thanks

0 Likes
View Entire Topic
Former Member
0 Likes

Hi,

you should use the workflow log to determine the content of the parameters that you are sending to this task and method. Then either in SWO1 (if it is a BOT Method) or in se24 (Class method) you can then debug it to find out where it is going awry.

Kind regards, Rob Dielemans

Former Member
0 Likes

Hi,

Already did that , took the parameter values from the workflow task container and executed the BOR method in debug, no dump and email received.

while within the workflow every time this step is being encountered and this FM is being called  its getting dumped.

Thanks

LS

Former Member
0 Likes

Hi Linda,

Who is the actual user which executes this method? If it is WF-BATCH then make sure that this user has a valid email address, it doesn't have to exist just as long as it conforms to mail address conventions i.e. [email protected]

Kind regards, Rob Dielemans

Former Member
0 Likes


Hi Rob,

The method is being executed by the WF-BATCH. The email address of the receiver is being provided in the binding to the BOR method.

Thanks

anjan_paul
Active Contributor
0 Likes

Hi,

Try to use SO_NEW_DOCUMENT_ATT_SEND_API1 with/without COMMIT WORK = SPACE/X and check

Former Member
0 Likes

Hi,

Already tried that. No email is being sent when its used without comit.

Thanks