How to Rewind the workflow activity using PL/SQL API?
Hi,
Is there any API to Rewind the workflow activity instance? We have some timedout activities and wanted to Rewind them to the start. I can Rewind them manually from the Admin responsibility, but we have to do this in a program for some cases.
The Background process runs with the parameter timedout = No.
Thanks in advance.
Regards,
Ram
Hi,
Yes - you need to use WF_ENGINE.HandleError to restart from the correct point.
There is a white paper on my blog here which explains how to do it.
HTH,
Matt
WorkflowFAQ.com - the ONLY independent resource for Oracle Workflow development
Alpha review chapters from my book "Developing With Oracle Workflow" are available via my website http://www.workflowfaq.com
Have you read the blog at http://www.workflowfaq.com/blog ?
WorkflowFAQ support forum: http://forum.workflowfaq.com
Similar Messages
-
How to retrieve the current User using PL_/SQL code?
Hi,
How can find the current logged user within a Dynamic Page using PL/SQL code?
Thanks.Hi,
There is a function wwctx_api.get_user which returns the logged in user. You can use this in your plsql code.
Thanks,
Sharmila -
How to stop the IDOC adapter using IDPI framework (APIs)?
Hi Guys,
We have a requirement to start/stop the communication channels depending on the Integration scenarios. But for IDOC and HTTP we dont have any sender channels.
Plz let me how can we stop the adapter ,so that no more IDOCs are received .
We are looking for some API (IDPI framework) if available.
Locking the RFC users is not an acceptable soln here.
Hope to get some info soon.
Regards
DhanyaHi Dhanya,
there is a way on PI side alone
for IDOC 2 steps needed:
1st: Determine all the IDoc metadata that is involved in your communication in IDX2 (basically all idoc types that the sending system sends) then deleted it all
2nd: Determine the IDoc port of the sending system in IDX1 (it should be an RFC destination pointing to the sending system) then Disable or delete that port
On runtime a validation of the loaded idoc metadata happens on PI and the sending side (experienced this on ERP6 & ERP5, not sure on lower versions >4.5), if the sending system determines that there is an inconsistency between its idoc structure against the idoc structure loaded in PI the idoc will be stuck in trfc queue (SM58) having error something like table EDI*** conflicts. In our case when you disable the IDoc port in IDX1 and there is no idoc metadata in IDX2 when the sending system tries to send idoc PI will try to fetch the idoc metadata but it won't be successful because the IDX1 port is disabled already.
for HTTP, you can try to disable service /sap/xi/adapter_plain in SICF but please consider the resending of the message should be handled also on the sending side.
hope this helps -
How to purge the workflow which is in process
Hi Friends,
I am facing one problem in the AME Workflow.
when a user submit a page for approval process, workflow engine invokes . and in the hr_api_transcations table transacation id is created for that workflow transacation. now the problem is, if i purge that workflow process using concurrent program 'PURGE OBSELETE WORKFLOW RUNTIME DATA' . it is deleting the workflow. but when i see the hr_api_transacation table still the transacation id for that workflow is active.
Example :-
when i see through through the responsibility (workflow administrator web applications)=>Administrator workflow=>Status monitor
when i type the item key say some x and search for the workflow status i cant see the workflow status. i can see it is deleted.
but when i type the same item key in the hr_api_transacation
like :- select * from hr_api_transactions where item_key='X' i can see the status of this transacation is active and workflow is in pending.
can anyone explain me why system is behaving like.. how to stop the workflow process and how to delete the transacation id from the table.
Thanks in advancePlease check below nots
453137.1 (Oracle Workflow Best Practices Release 12 and Release 11i) sections titled "Choosing Not to Use E-mail Notifications" and "Cleaning Up the WF_NOTIFICATION_OUT Queue"
How to purge e-mail notifications from the workflow queue so the e-mail is not sent [ID 372933.1]
264191.1 describes how to Purging Oracle Workflow tables of obsolete workflow runtime information for completed workflow processes is a required regular maintenance tas
Notification Mailers Unavailable
How to delete undelivered notifications from WF mailer -
Hi. i want to know the process of how to cancel the workflow, stop the workflow.
i know ho to reject the workflow once it is initiated.
regards
ArifuddinHi Arifuddin,
Are you trying to cancel the workflow using PL/SQL, if so make use of API 'WF_ENGINE.ABORTPROCESS' to cancel any active workflow.
You can pass parameters as, 'ITEMTYPE', 'ITEMKEY', 'PROCESS NAME' and 'WF_ENGINE.ENG_FORCE'.
Hope this helps.
Regards,
pP. -
How to allocate the workflow to the action defnitions in solution manager
Hi,
we are having solution manager with the CHARM configured, and currently we are looking for the trigger of mail and workitem for change of action. the work flow is designed for that, but how to assign the workflow to the condition and processing type .
please suggest, points are definetly awarded.
Thanks and regards
keerthiHi,
Well, why dont you check the event that gets triggered during the Status change of the user?
This can be done by switching on the EVENT TRACE using SWELS txn and simulate the BUSINESS PROCESS and then check the event trace using SWEL.
After getting the required Business Object and event, Please attach your WF to that EVENT in the BASIC DATA-START EVENTS.
Regards,
<i><b>Raja Sekhar</b></i> -
How to find the File name using the FTP Adapter
hi all,
how to find the File name using the FTP Adapter with BPEL.
RegardsFound the solution for this.
First In the mediator's routing rule use assign property $in.property.jca.file.FileName to $out.property.jca.file.FileName
In the BPEL's receive activity go to the properties tab and get the property to a BPEL variable. That should do it.
Thanks for the posts -
How to find the workflow admins for all costcenters ?
Dear SRM gurus
We are using Classic scenario with N th step workflow with BADI.
we have a requirement.
How to find the workflow admins for the particular costcenters.
we used HRV1222A where ATTRIB EQ <Z attribute>(This is our own attribute to group all the costcenters)
used table HRP1001 to find the Admins but results are not correct because it is not showing my user id(I have all authorisations).
Is there anyway to find all the admins for a cost center(users are more than 7000+)
can anybody send work flow related presentations or cookbook
Thanks in Advance.
srinuhi
I have not received any thing.Please send again
[email protected]
[email protected] -
How to log the user activity in JSF?
How to log the user activity in JSF?
e.g. the pages the user accessed
searching criteria the user inputted...user080701 wrote:
I need to write the info to database so that we can analyse which product most people seach for , etc.
Can I write a filter to capture the request info and write the info to database?Of course. Although I would still advocate using logs. You can always parse them and put the data in a database after the fact. -
How to Initiate the Workflow from Java webdynpro?
Hi All,
I am developing Customized WD application for ESS, which in turn having integration with Workflow.
Now How to Initiate the Workflow coding part in Webdynpro Development.
Through Adaptive RFC Model, i created model using sap_wapi_start_workflow RFC
Can anybody provide the sample code on this!!!
What are the stpes i have to follow to this Workflow Initiation from WD Java..
Thanks In Advance
KrishnaKrishna,
What Alejandro is mentioning that create a RFC which accesses you workflow on ABAP end. At your Java side just make the call the BAPI.
So you need a BAPI say ZMYBAPI which accesses your ZWORKFLOW. Now on Java side create a WD project which accesses ZMYBAPI.
For information on how to connect to a BAPI please refer this [link|https://www.sdn.sap.com/irj/sdn/webdynpro?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d#15]
Chintan -
How close is the workflow & GUI in PrE 10 to PrE 8?
Actually, I'm not sure I'm asking in the right place - is "Discussion" the same as "Forum"? It's been awhile since I've posted in the forum and things have changed a lot. I seem to be going around in circles. (You know you're in trouble when you don't even know how to use the help forum :).
My one question became two when I tried to use this forum.
1) How close is the workflow & GUI in PrE 10 to PrE 8? Would a PrE8 manual be much use for PrE10? (Note: The last version I worked with is PrE 2 so I should know the basics. I just have to learn where everything is now).
2) I'd like to read through all the questions in the forum, but all I can see are titles under "Trending Questions". Is that the way it is now? I'd like to expand the question list so I can read the first few sentences - is there a way to do that? I used to learn a lot reading through the forums, but titles alone aren't very helpful.Some links/reading to help
Steve's Basic Training Tutorials http://forums.adobe.com/thread/537685
-v10 http://www.amazon.com/Muvipix-com-Guide-Premiere-Elements-Version/dp/1466286377/
FAQ http://forums.adobe.com/community/premiere_elements/premiere_elements_faq
TIPS http://forums.adobe.com/community/premiere_elements/premiere_elements_tips
Another help site http://muvipix.com/ or http://muvipix.com/phpBB3/
User Guide PDF http://help.adobe.com/en_US/premiereelements/using/index.html
Right click PDF link in the upper right corner and select to save to your hard drive
Also... BRAVO! for asking about how to learn the program before just jumping in !!! -
How to find the workflow for Change Request for the PO's
Hi All,
We have a PO which is pending and we can't receipt it again nor make payment on this. After checking the Approval history for that PO we found that the change request has been made. The change request was to change the amount to be paid to R39196 instead of R58237.00. We don't know where to check the workflow for the change request to identify the cause.
what i need to know is how to find the workflow for that change request? The other workflows can be checked using the po_header_id for the PO's but i am confused with the change request workflow
Your input will be highly appreciated.
Thanks in advance
Rgds,
SoniaFor 11.5.10.2 run this query to determine the keys to search on:
Select wf_item_type, wf_item_key from APPS.po_change_requests where document_type = 'PO' and Document_num = 'put-PO-number-here'
Then use the keys returned by the query to look up the Workflow in
Workflow Administrator Web Applications / Administrator Workflow / Status Monitor
Search using the results returned in fields "Type Internal Name" and "Item Key" in Status Monitor
The query for change requests on a specific Requisition would be:
Select wf_item_type, wf_item_key from APPS.po_change_requests where document_type = 'REQ' and Document_num = 'put-Req-number-here' -
How to schedule the background job using current selection screen field val
Hello Friends,
How to schedule the background job using current selection screen field values.
after completion of the job the spool should be sent as a mail to SAP Inbox.
Is there any way to create the variant dynamically by reading the current selection screen values.
Thanks,
RaviHi,
To get the variant details you can use teh following FM.
'RS_VARIANT_CONTENTS'.
Regards,
Ankur Parab -
How to create the sales order using BAPI's ....?
Hi Guru's,
could you please provide how to create the sales order using BAPI's .....i need step by step process and please provide the details from scratch....basically i don't have basic knowledge on this....please provide required inputs ....:)
thanks in advance
Srinivas......Hi Guru's thanks for your inouts and your valuble time...
please find the program logic below...
*& Report ZAREPAS30
REPORT zarepas30.
DATA : gs_vbeln TYPE vbak-vbeln,
gs_order_header_in TYPE bapisdhd1,
gs_order_header_inx TYPE bapisdhd1x,
gt_order_items_in TYPE STANDARD TABLE OF bapisditm,
gwa_itab1 TYPE bapisditm,
gt_order_items_inx TYPE STANDARD TABLE OF bapisditmx,
gwa_itab2 TYPE bapisditmx,
gt_order_partners TYPE STANDARD TABLE OF bapiparnr,
gwa_itab3 TYPE bapiparnr,
gt_return TYPE STANDARD TABLE OF bapiret2,
gwa_itab4 TYPE bapiret2.
Sales document type
PARAMETERS: p_auart TYPE auart OBLIGATORY.
Sales organization
PARAMETERS: p_vkorg TYPE vkorg OBLIGATORY.
Distribution channel
PARAMETERS: p_vtweg TYPE vtweg OBLIGATORY.
Division.
PARAMETERS: p_spart TYPE spart OBLIGATORY.
Requested Delivery Date
PARAMETERS: p_edatu TYPE edatu OBLIGATORY.
Sold-to
PARAMETERS: p_sold TYPE kunnr OBLIGATORY.
Ship-to
PARAMETERS: p_ship TYPE kunnr OBLIGATORY.
Material
PARAMETERS: p_matnr TYPE matnr OBLIGATORY.
Quantity.
PARAMETERS: p_menge TYPE kwmeng OBLIGATORY.
Plant
PARAMETERS: p_plant TYPE werks_d OBLIGATORY.
Start-of-selection.
START-OF-SELECTION.
Header data
Sales document type
gs_order_header_in-doc_type = p_auart.
gs_order_header_inx-doc_type = 'X'.
Sales organization
gs_order_header_in-sales_org = p_vkorg.
gs_order_header_inx-sales_org = 'X'.
Distribution channel
gs_order_header_in-distr_chan = p_vtweg.
gs_order_header_inx-distr_chan = 'X'.
Division
gs_order_header_in-division = p_spart.
gs_order_header_inx-division = 'X'.
Reguested Delivery Date
gs_order_header_in-req_date_h = p_edatu.
gs_order_header_inx-req_date_h = 'X'.
gs_order_header_inx-updateflag = 'I'.
Partner data
Sold to
gwa_itab3-partn_role = 'AG'.
gwa_itab3-partn_numb = p_sold.
APPEND gwa_itab3 TO gt_order_partners .
ship to
gwa_itab3-partn_role = 'WE'.
gwa_itab3-partn_numb = p_ship.
APPEND gwa_itab3 TO gt_order_partners .
ITEM DATA
gwa_itab2-updateflag = 'I'.
Line item number.
gwa_itab1-itm_number = '000010'.
gwa_itab2-itm_number = 'X'.
Material
gwa_itab1-material = p_matnr.
gwa_itab2-material = 'X'.
Plant
gwa_itab1-plant = p_plant.
gwa_itab2-plant = 'X'.
Quantity
gwa_itab1-target_qty = p_menge.
gwa_itab2-target_qty = 'X'.
APPEND gwa_itab1 TO gt_order_items_in.
APPEND gwa_itab2 TO gt_order_items_inx.
Line item number.
gwa_itab1-itm_number = '000020'.
gwa_itab2-itm_number = 'X'.
Material
gwa_itab1-material = p_matnr.
gwa_itab2-material = 'X'.
Plant
gwa_itab1-plant = p_plant.
gwa_itab2-plant = 'X'.
Quantity
gwa_itab1-target_qty = p_menge.
gwa_itab2-target_qty = 'X'.
APPEND gwa_itab1 TO gt_order_items_in.
APPEND gwa_itab2 TO gt_order_items_inx.
CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
EXPORTING
order_header_in = gs_order_header_in
ORDER_HEADER_INX = gs_order_header_inx
IMPORTING
SALESDOCUMENT = gs_vbeln
tables
RETURN = gt_return
ORDER_ITEMS_IN = gt_order_items_in
ORDER_ITEMS_INX = gt_order_items_inx
order_partners = gt_order_partners.
Check the return table.
LOOP AT gt_return into gwa_itab4 WHERE type = 'E' OR type = 'A'.
EXIT.
ENDLOOP.
IF sy-subrc = 0.
WRITE: / 'Error occured while creating sales order '.
ELSE.
Commit the work.
CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
WRITE: / 'Document ', gs_vbeln, ' created'.
ENDIF. -
How to get the context data using java script in interactive forms
Hi All,
How to get the context data using java script in interactive forms by adobe, am using web dynpro java
thanks.Hi venkat,
Please Refer this link.
Populating one Drop-Down list from the selection of another Drop-down list
Thanks,
Raju.
Maybe you are looking for
-
How can I install more than one brush at once
IV tried placing them in the preset brush but they dont load into photoshop and I have 300+ brushes to install HELP (photoshop cs6)
-
Contact card in a Word comment shows an unknown presence status
Hi, The contact card shows an unknown presence status for myself. I noticed this issue when I was adding a new comment to a Word document. My picture isn't shown on the card either. While not a major issue, I also noticed that the contact cards for t
-
Down payment request with reference to sales order
Hi all, I have configured a down payment scenario integrated with SD module for delivery based order. the flow is working fine when I post the down payment with transaction f-29 and insert the reference to the sales order (without item). but when i t
-
How to post the revenue to internal order
Hi guyes: Please can anyone tell me how to post the revenue to internal order when i invoicing using VF01. i have already tested,i enter the internal order in the TAB 'Account assinment' when VA01. but i seem to post the sales cost to the internal or
-
PM investment order settlement
Hi Experts, While doing PM Investments order settle to AUC I am getting this error Settlement by cost element not possible due to secondary cost element Message no. KD553 Diagnosis You want to settle the secondary cost element 918000 by cost elemen