Hi,
I am doing screen enhancement in ME53N to open a module pool screen on the click of a pushbutton, for the user to enter data.
I have created a module pool program in which the user enters the data & when he clicks the save button I have called the FM ''SAP_Wapi_start_workflow' to send the task for approval , I am sending all the detiais in the container. I have used the 'CALL Transaction' in a method in the task so that when the manager double clicks on the workitem the module pool screen opens. Till here it is working fine.
My issue is populating the module pool screen with data when the manager opens it for approval. I am not able to pass the data back from the task to the module pool.
I am using the macro 'swl_widisp_get_wi_id lv_wiid' in the PBO to get the WI_ID in the variable lv_wiid of the task but it is not returning any value in the variable. And i would pass the work item id to FM 'SAP_WAPI_READ_CONTAINER' and get all the respective details & fill the module screen again by coding it in the PBO of the module pool screen.
So please guide me whether there is any way in which i can fetch the work item id in the module pool when the manager double clicks on the workitem in his SAP Inbox.
I went through a number of posts in SDN but after trying all of them I am still not able to achieve this.
Thanks