on 04-06-2009 6:02 AM
Hello, i need to get approver data.
If i use call function 'BBP_PDH_WFL_APPROVER_GET', i'll get an error message "Object Type ' ' not valid".
So, i decide to get it from table directly.
Can anyone help me which table i can use? (i dont want to use any FM)
many thanks,
jack
I'm in SRM 5
Before approving the SC, i need to check whether the current user is the final approver.
If yes, then i will put some logic there.
So i use call function BBP_PDH_WFL_WI_FROM_OBJECT_GET then BBP_PDH_WFL_APPROVER_GET.
I have checked the FM in the debug mode, and its OK. i got the final approver ID.
The problem is, i always got the pop up message "Object Type ' ' not valid" (SRM Web Screen).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You could do it like this Call FM SAP_WAPI_WORKITEMS_TO_OBJECT by using the SC or PO number
get the first workitem for the object id,
and then call
BBP_WFL_DIN_APPR_CONTAINER_GET
to get the approvers.
It works I have been using this for a while.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
do you fill the IV_OBJECT_TYPE properly when calling the BBP_PDH_WFL_APPROVER_GET?
If you need the table check the SWWWIAGENT
Regards
Daniel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Can you give us more information on your requirement?
As far I know, In SRM To get the approvers for SC or PO etc, it is suggested to use FMs, as the approvers are stored in WF container. The database table is SWW_CONT and you will need Main workitem id and the Element to get the VALUE stored. The element name will be the element name in the workflow.
I had a similar reqirements I used the FM BBP_PDH_WFL_WI_FROM_OBJECT_GET to get main workitem for the object id and then the FM BBP_WFL_DIN_APPR_CONTAINER_GET to get the approvers.
Hope this helps.
Edited by: Romit Kewalramani on Apr 6, 2009 7:26 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm in SRM 5
Before approving the SC, i need to check whether the current user is the final approver.
If yes, then i will put some logic there.
So i use call function BBP_PDH_WFL_WI_FROM_OBJECT_GET then BBP_PDH_WFL_APPROVER_GET.
I have checked the FM in the debug mode, and its OK. i got the final approver ID.
The problem is, i always got the pop up message "Object Type ' ' not valid".
User | Count |
---|---|
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.