cancel
Showing results for 
Search instead for 
Did you mean: 

/SAPSRM/OFFLINEAPPROVALSEND send incorrect format of the mail in blackberry

former_member598013
Active Contributor
0 Kudos
121

Hello Gurus-

We have got into one strange issue with the offline E Mail Notification to apporver.

My issue is when we execute the Program '/SAPSRM/OFFLINEAPPROVALSEND' to send an E-Mail Notification. Email sends successfully but when the user executes (Approve or Reject Button) in the Email through its MS Outlook it is working fine. Approve and Reject button is working asexpected.

BUT WHEN THE USER RECIEVE THE MAIL IN HIS BLACKBERRY AND TRY TO CLICK THE BUTTON APPROVE OR REJECT BUTTON. BLACKBURRY IS NOT WORKING AS EXPECTED. BECAUSE IN THE BLACKBERRY THE APPROVE OR REJECT BUTTONS ARE SEEING AS A TEXT LABEL NOT BUTTON.

Please Suggest me what needs to be done for this issue. We are using SRM 7.0

Thanks,

Chidanand

View Entire Topic
Former Member
0 Kudos

Hi,

If you do not have any other option other than contacting SAP for consulting solution, I would recommend the below alternate approach to resolve the issue.

1. Copy the standard approval workflow to a custom one.
2. Create a new standard task with an underlying dummy method. Make sure the importing and exporting parameters of this task are same as that of the approval task from the standard workflow. Make sure the agents of the new standard task are same as that of the standard one. (Agent determination logic for the step should be same as the standard step).
3. Replace the approval step in the copied workflow template with the new approval step with underlying task as the new task created as explained in step 2. 
4. Build a simple BSP application with a *HTML* page that will have required pushbuttons (APPROVE, REJECT) along with the  document (Shopping Cart/Invoice) details as per the requirement. (Please make sure this BSP application uses HTML but not HTMLB because blackberry does not support the later)
5. Set the work item as the auto page attribute in the HTML page.
6. Copy the standard program RSWUWFML2 and implement the logic to prepare the email body with a hyperlink that directs to the BSP application. Make sure you pass the work item in the hyperlink. This program should be scheduled in background with the task (which is newly created as explained in step 2) in the selection screen.
7. When ever the work item related to the approval step in the custom work flow is ready for approval, an email will be sent to the agent. Agent receives the email with the link to the BSP application.
8. Use the FM 'SWW_WI_CONTAINER_MODIFY' to update the work item with the user decision and use the FM 'SAP_WAPI_SET_WORKITEM_COMPLETD' to set the work item status to completed. Implement this logic "onInputProcessing" event in the BSP.

Hope this helps.

Let me know if you have any questions.

Regards,

Hemanth

former_member598013
Active Contributor
0 Kudos

Hi Hemanth,

I Really Appreciate your valuable help. I will go through the steps and get back to you once I get something.

Thank You.

Chidanand

former_member598013
Active Contributor
0 Kudos

Hello Hemanth,

I follow the same step but I face one issue in HTML code. When I click the button (Approve/ Reject ) I am not able to handle the Button event. because button is written under HTML Tag.

Please guide me how to handle the button. I was able to display the BSP page.

Thanks for you help