BBP_PDH_WFL_APPROVAL_SIMULATE
Hi,
I need help regarding BBP_PDH_WFL_APPROVAL_SIMULATE
While creating shopping cart this FM gives exception WORKFLOW_NOT_FOUND (as seen in debug mode)
Whereas if it is run from se37 for already existing shopping carts, it does not give the exception.
Could you please help me to know why it raises the workflow_not_found exeption at the time if SC creation ?
thank you in advance
rita
Hi
<b>Please try following SAP OSS Notes -></b>
Note 1045902 Approval data missing from shopping cart archive
Note 1038660 Approval overview for archived Shopping Carts
Note 610716 BBP_WFL: Work item is sent to incorrect approver
Note 618253 Enhancements of report BBP_PD
Do let me know.
Regards
- Atul
Similar Messages
-
Use of function module BBP_PDH_WFL_APPROVAL_SIMULATE
Dear SAP Gurus,
We have build a custom check in the BBP_DOC_CHECK_SC Badi to check if an approver is added to the Shopping cart.
In case of creating a Shopping Cart we can use the function module BBP_PDH_WFL_APPROVER_CHECK to check if an approver is added.
In case of a Shopping Cart with status held, in case of the Shopping Cart in approval or in case of the Shopping Cart is disapprvod we can't use the function module BBP_PDH_WFL_APPROVER_CHECK. Because it's not checking correctly if the approver exist.
In those case we use the function module BBP_PDH_WFL_APPROVAL_SIMULATE to check if en approver exist in the workflow. But we encounter a problem when using this function module.
When the requester wants to add an approver, the requester first searches for the approver and then click on add approver. Then nothing happens. The approver isn't added to the workflow and in case there was no approver anymore (after disapproving the SC) first an error message is displayed but after performing the add approver task the error message isn't displayed anymore and the approver isn't visible in the workflow.
Add an approver is also not possible when there is already an approver of no approver and the SC is put on Held. Then the same happens. Search for approver and click on Add Approver no approver is added.
We think this has something to do with function module BBP_PDH_WFL_APPROVAL_SIMULATE.
Has anyone some ideas how we can solve this? Check if approver exist in the workflow and still be abble to add an approver.
We are on SRM 4.0 with ECC 6.0 in Extended Classic Scenario.
Thank you in advance for your replies.
Best regards,
Jean-PierreHi,
In my current project, there is a requirement to forward approver to other approver.
Something like tcode SWIA when forwarding a workitem.
In order to list approver of particular document, I am using BBP_PDH_WFL_APPROVAL_SIMULATE to needed parameters to run following FM BBP_PDH_WFL_PARAM_APPLET_FILL2.
From FM BBP_PDH_WFL_PARAM_APPLET_FILL2, I know whether the document has approver assigned or not.
Hopefully can help you. -
ERROR : BBP_PDH_WFL_APPROVAL_SIMULATE after saving SC
Hello,
We upgraded to SRM7.0 from SRM5.0
SRM_SERVER 700 0008 SAPKIBKV08 SRM_SERVER
we activated workflow in application mode.
After saving Shopping cart when display or edit the SC We get the error
message: BBP_PDH_WFL_APPROVAL_SIMULATE, PDO Layer.
We have maintained WS 10000129 One step approval of shopping cart.
In swb_cond we defined start condition expression:
&EC Requirement Coverage Request.Acct Assignment Cat.& = xxx
After SAVE the SC, when trying to edit it, WF is not found and we got the error:
BBP_PDH_WFL_APPROVAL_SIMULATE, PDO Layer.
While trying to ORDER the SC without SAVE the same WF is working well.
What is the problem with the account assignment expression and SAVE SC
action?
Thanks,
RonenHi,
I have tried to enter:
&EC Requirement Coverage Request.Acct Assignment Cat.&='OR'
&EC Requirement Coverage Request.Acct Assignment Cat.&="OR"
but system erased it and left only OR in both cases.
Have another suggestions ?
Thanks,
Almog -
Display Purchase Order in SRM 7.0 -workflow error
Hi SRM Gurus,
Hi Masa ,
Please check this thread,
I am having the same error
We are upgrading from SRM 3.0 to SRM 7.0.
while displaying purchase order
Cannot get process info; function BBP_PDH_WFL_APPROVAL_SIMULATE throws exception Workflow Not Found
PDO Layer error
PDO Layer error
No approval Workflow Found. Inform System Administrator.
I have configured the Workflow as Application controlled workflow only.(client wants to use the same workflow used in SRM 3.0). I got message Business object BUS 2203 modified
How to resolve this
Please give your inputs
Regards
G.Ganesh KumarHi Ganesh,
I also encounter this error for purchase orders. How did you check the errors you encounter in business object BUS2201?
Please refer to below thread.
[SRM 7.0 Error in Display of Approval in Purchase Orders|SRM 7.0 Error in Display of Approval in Purchase Orders]
Would really appreciate your help.
Thank you. -
Display approval substitutes in approval preview
Hi,
we have the following scenarion in SRM 4.0:
1.
Approver A assigns Approver B as an active substitute
Approver A assigns Approver C as a passive substitute
2.
Requsitioner creates a Shopping Cart where Approver A is the approver.
3.
Requsitioner enters approval preview and Approver A is displayed as approving manager
Questions is:
Is there any way of displaying that Approver B is setup as an active substitute and that
Approver C is a passive substitute?
There is a function module BBP_PDH_WFL_APPROVAL_SIMULATE where approvers are saved to a table et_adhoc_agents
Perhaps this table could be "looped" through and for each approver, add a line if there exist any substitutes.
I heard about a function module that retrieves substitutes when provided a userid, is this any FM like this?
Possible other solutions?
I have a feeling that this might be solved by using standard SAP functionality, perhaps someone knows anything about this?
Thanks for all future help!
Kind regards,
TeodorHi,
There is one Function Module which is used for retrieveing the substitutes available for a specific user.
this is not SRM Function module , but is used in SRM.
FM is
RH_SUBSTITUTIONS_GET
---> with import parameters
USER_TYPE US
USER_NAME
SEARCH_DATE
ACT_PLVAR
READ_ONLY_ACTIVE X
USER_TYPE IS ALWAYS US
USER_NAME IS INPUT FOR THE USER
SEARCH_DATE IS THE DATE ( EACH SUBSTITUTE WILL HAVE START DATE AND END DATE).
READ_ONLY_ACTIVE = X RETRIEVES ONLY ACTIVE APPROVERS AND
READ_ONLY_ACTIVE = EMPTY RETRIEVES BOTH ACTIVE AND PASSIVE APPROVERS ON GIVEN DATE.
>
THIS FM YOU HAVE TO USE WHEN THE APPROVAL PREVIEW IS SHOWN IN SRM. -
hello , i have a workflow badi n steps. is there a program i can use to launch it?
Hi,
You can try executing FM 'BBP_PDH_WFL_APPROVAL_SIMULATE'. It might trigger your Badi and you can check your code.
Regards,
Sanjeev -
Shopping Cart workflow retrigger for changes done to SC already created
Hi all,
A shopping cart is created and later on in "Check Status" when the shopping cart is opened in change mode and any changes are made to the shopping cart either header or item level, the whole approval workflow is retriggered and the approvers are determined again.
We have a scenario where for a particular account assignment category the approvers are added manually - ad hoc approvers through the "Add Approver" in "Approval Preview". For these shopping carts with manual approvers when in "Check Status" any changes are done to header or items of the shopping cart, the whole approval workflow is retriggered and the manual approvers previously added are refreshed as per standard SAP.
I have to put a check in DOC_CHECK badi for the existence of approvers. If no approvers found an error message has to be thrown for adding the approvers manually. I am doing this by reading the approvers from the container for a cart created already. But when changes are made and the workflow is retriggered, the workflow container contains only the previous approvers and not the refreshed ones. So this is not captured in DOC_CHECK badi.
Is there any way to capture the retriggering of workflow in DOC_CHECK badi, so that the check for approvers works fine even after a change being done to a shopping cart which is already created.
Thanks and Regards,
AshaTry this FM BBP_PDH_WFL_APPROVAL_SIMULATE
Regards, IA -
Hi All,
I am using datasource"0BBP_TD_SC_APPR_1"(for shopping carts:approver).It contains a field"APPROVER_ID" which contains approver no.This field is Only for STAT_RELEASE u2018I1129u2019 and u2018I1016u2019 from CRMD_PARTNER according to the standard business content...but,the user also wants this field to be displayed even if the shopping cart is waiting for the approval.
I wanted to know which table this field is retreiving....
Regards,
Manjari.Hi,
You can see the table "SWWWIHEAD" for all the info related to a work item .Pass the work item ID and you get all the info like when was the witem created,agent etc.
Additionaly to get the approvers for a doc,you can always use the FM's "u2022 BBP_PDH_WFL_APPROVER_GET or BBP_PDH_WFL_APPROVAL_SIMULATE
BR,
Disha.
Do reward points for useful answers. -
FM for approver list BEFORE shopping cart is ordered? DOC_CHECK_BADI
Is there a function module that can be called from DOC_CHECK_BADI to return the approver list as it shows in the approval preview? This will be before any workflow is created, since the shopping cart has not been ordered yet.
Hello,
Definitly not an easy thing to do.
You have to consider at least 3 cases:
- No workflow instance nor buffered (SC creation, approval preview not called)
- Buffered workflow (approval preview has been called)
- Wf instance exist (Hold or ordered Shopping cart).
In all cases the function BBP_PDH_WFL_APPROVAL_SIMULATE will give you the correct information if you call it with the correct parameters.
I think you already check the form simulate_approval_pbo of fg bbp_pdh_wfl. You should try to reproduce this logic and need to retrieve first some global variable from this program (gv_buffer_wfdkey, gv_check_status, etc.) with memory import/export of dynamic call (if possible).
Rgds,
Pierre -
Regarding explaination of function module " BBP_USE_AI"
hi ,
my main context is to sent purchase order to vendor thru xml medium in analysing one code i came across one fm i.e ''BBP_USE_AI" which i didnt get the clear explaination why it is being used and i cam e across some technical terms i.e AI and BC can anybody explain in this aspect .
my mail id is :[email protected]Hi,
In my current project, there is a requirement to forward approver to other approver.
Something like tcode SWIA when forwarding a workitem.
In order to list approver of particular document, I am using BBP_PDH_WFL_APPROVAL_SIMULATE to needed parameters to run following FM BBP_PDH_WFL_PARAM_APPLET_FILL2.
From FM BBP_PDH_WFL_PARAM_APPLET_FILL2, I know whether the document has approver assigned or not.
Hopefully can help you. -
Issue in Shopping cart approval preview
Hi all,
We are working on SRM7.0. We got an issue here.
A shopping cart is created and approved by the approvers.
When we go to the approval preview, we are unable to see the approvers and getting encountered with following errors:
(Errors indicated in bold)
>Cannot get process info; function BBP_PDH_WFL_APPROVAL_SIMULATE throws exception workflw not found.
>PDO Layer error
Also we can see a warning as:
(Warnings in italic)
>Approval process view cannot refreshed due to error in document.
Pleaseprovide your valuable inputs in solving the issue.
Thanks in advance,
Vishal..Hello Vishal,
I advise you to check OSS note 1422084 - Approval preview gives error message for rejected QTE.
Even if it is for rejected Quotation (and not for Shopping Cart), error message is the same as yours.
Regards.
Laurent. -
Hi All,
I am working with ebp 3.0 ,i need to bring the list of all the approvers and the reviewers for the shopping basket in mail notification .This mail notification is sent to all approvers and reviewers.
Is there any db table which stores Approvers/reviewers?
is there any function module which gives the Approvers/reviewers as the output parameter?
Ex: Shopping cart shows 3 level of approval in the approval preview tab,i need to populate the those 3levels of approvers inthe above said mail notification.
please help me.
Thanks ,
kumarHello,
I don't have ebp30 system right now. But you will find a function module for this in the approval preview screen logic. Search for a FM like BBP_PDH_WFL_APPROVAL_SIMULATE. with the correct import parameters, it will read the stored approval chain.
Rgds,
Pierre -
BBP_EXTREQ_Transfer and approval info table help?
hi dudes
Where is report BBP_EXTREQ_Transfer implemented. Does it need to be implemented in ECC backend system or does it need to be implemented in EBP/SUS.
what is table for approval information.
Regards
vinny noviceHi,
To get approvers for a SC,use the FM BBP_PDH_WFL_APPROVER_GET or BBP_PDH_WFL_APPROVAL_SIMULATE.
With BBP_PDH_WFL_APPROVAL_SIMULATE entering the OBJECT_TYPE and OBJECT_ID you obtain the EV_DB_WORKITEM_ID...
Then with the BBP_BW_APPROVER_COUNT enter the IV_OBJECT_TYPE,
IV_DB_WORKITEM_ID and IV_GUID and then it will return the APPROVAL_ITEM_GUID, NODE_ID, NODE_AGENT and NODE_USER . -
how can i fetch shopping cart creator name from work item id ?
how can i fetch shopping cart creator name from shopping cart number?Hi,
1) how can i fetch shopping cart creator name from work item id ?
a) You can use the Function module - FM "BBP_PDH_WFL_OBJECT_VIEW_GET" to get the reqd details.You can pass the Workitem ID and get the SC details.
Re: Function Module for Approval deatils
b) Also, You can call the function Module BBP_PDH_WFL_APPROVAL_SIMULATE . Fill IV_OBJECT_TYPE with 'BUS2121', IV_OBJECT_ID with SC number, keep IV_OBJ_CHANGED empty.
SWL SC only considers partial amount of Internal Order
c) For getting the approval date,you will have to use the FM "BBP_PDH_WFL_PARAM_APPLET_FILL2".There you get all the witem details.
IV_START_TASK = Workflow no(e.g. WS14500133)
IV_START_WI_ID = Workitem ID(you can use FM 'BBP_PDH_WFL_APPROVAL_SIMULATE " to get the Witem ID)
IV_DB_WORKITEM_ID = Witem ID(Same as above)
IV_OBJECT_TYPE BUS2121
IV_OBJECT_ID = SC number
IV_GUID = SC guid
IV_ITEM_GUID = SC item guid
2) how can i fetch shopping cart creator name from shopping cart number ?
a) Using the table CRMD_ORDERADM_H, give the shopping cart number there for object type - BUS2121, and get the shopping cart creator name.
b) using transaction - BBP_PD, give the shopping cart number for object type - BUS2121, and get the shopping cart created by person name from there.
c) Also, you can use the SRM Function module - BBP_PD_SC_GETDETAIL --> give shopping cart number as input ---> in the output result --> go throough header table for shopping cart creator name
Hope this will help.
Regards
- Atul -
Hi ,
When I forwarded the shopping cart workitem to another agent.I am not able to get the WI in that agent's inbox.We are using the following Function module in these order
SAP_WAPI_WORKITEMS_TO_OBJECT
u2022 SWP_WF_DEFINITION_KEY_GET
u2022 SWD_EXETYP_DEFINITION_RUNTIME
u2022 SWD_GET_WORKFLOW_DEFINITION
u2022 BBP_PDH_WFL_SC_AGENTS_MAP
u2022 BBP_PDH_WFL_APPROVAL_SIMULATE
u2022 BBP_PDH_WFL_APPROVER_INSERT
u2022 BBP_PDH_WFL_APPROVAL_SIMULATE
u2022 BBP_PDH_WFL_PARAM_APPLET_FILL2
Kindly provide any inputs.
Thanks & regards,
Arsgh.Hello,
You want to do this in a report or is it only for administration tools ?
Regards.
Laurent.
Maybe you are looking for
-
Reporting mechanism on HTML report file, using TestStand 2012 SP1
Hi, I am using TestStand 2012 SP1, where the reporting mechanism is configured to be in HTML format. I am not getting the full report of the sequence file which is executed, however I get a part of it printed on the HTML file. The following are the c
-
I'm moving an internal hard drive from an old computer to a new computer. (My new compute runs Windows 8.1) How do I transfer the catalog data to my new computer so the Organizer of Photoshop Elements 6 will find the data on the hard that has been m
-
We have Ebusiness Suite I have been trying to use an external graphic from OA_MEDIA to display on Standard Purchase Order <fo:external-graphic src="url:{${OA_MEDIA}/COMPANY_LOGO.GIF}" /> Please could someone tell me where I am going wrong with the
-
Problem playing music after downloading ios5
I downloaded the new ios5 software for my iphone 4 last week, and everytime i go into play my music, none of my songs play they just stay on 0:00 even though they are 'playing' and the pause butotn comes up if i put it in shuffle mode the songs do th
-
Just replaced all the ink and the black one doesn't work, any help out there?