cancel
Showing results for 
Search instead for 
Did you mean: 

/SAPSRM/OFFLINEAPPROVALSEND - Off line email for approval

Former Member
0 Kudos

Hi Experts

I am running program /SAPSRM/OFFLINEAPPROVALSEND to send workitems for approval as email to the approvers.

The program is not picking up the workitems.

I debugged the program and initially the select statement is selecting the workitems but then the following check fails.

* these are forwarded workitems

     SELECT * APPENDING TABLE lt_wi_help_for FROM swwloghist

                   FOR ALL ENTRIES IN lt_wiid WHERE

             wi_id = lt_wiid-wi_id AND method IN ('SWW_WI_FORWARD', 'SAP_WAPI_FORWARD_WORKITEM').


The approver is correctly setup in PPOSA_BBP. The attribute FORWARD_WI is 'X'.


How would an entry get created in table swwloghist with method = SAP_WAPI_FORWARD_WORKITEM?


Thank you for any help.

Raj

Accepted Solutions (1)

Accepted Solutions (1)

konstantin_anikeev
Active Contributor
0 Kudos

Hi Raj,

Attribute FORWARD_WI is responsible only for mail notifications.

SAP_WAPI_FORWARD_WORKITEM is a forwarding workitem to another approver.

You can logon into Workflow Inbox select workitem and forward it to another approver.


This check is performed for the following case.

Approver 1 gets sc for approval. After job run he receives a notification. He login into system and select workitem. See, that he is not responsible for that and forward workitem to approver 2.

Approver 2 should also receive notification after forwarding. That is why the forwarding history is checked.


Regards

Konstantin

Former Member
0 Kudos

Thank for the reply, not quite what I was looking for but useful.

The problem is solved. For unknown reasons , the program is picking up the workitems now and email creating emails.

Answers (0)