cancel
Showing results for 
Search instead for 
Did you mean: 

Triggering Workflow for parked documents

Former Member
0 Kudos

Hi all.

In transaction FB01, I need to trigger workflows when the user parks the document. This workflow will only be triggered for certain document types.

How can I do that?

Thanks in advance and regards,

Ricardo

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Object type for parked documents is FIPP.

You will need to go into SPRO settings

Financial accounting

Financial accounting Glocal settings

Document

Document Parking

Create WF variant for parking docments (OBWA)

Assign C code to workflow variant (OBWJ)

or

Transaction OBWA / OBWJ

In transaction OBWA check the posting release flag. and then should be able to trigger the workflow.

In transaction OBWJ maintain the company codes for the Varaint made in OBWA

Once workflow is triggered u can check for the conditions in your business object

Hope this helps...

Answers (3)

Answers (3)

Former Member
0 Kudos

check swu0 for your object and the event it should trigger on.

Event Simulation

Event FIPP ZPARKED

Object types concerned

FIPP

Potential tasks to be started

Successfully started

WS90100002

Most recent version of workflow definition not activated

if the result is negativ check your check your binding on triggering event

Former Member
0 Kudos

Many thanks Abhishek and Erik.

With your help I managed to call my workflow properly.

Is there a way to restrict the workflow triggering for a given document type only? Or the only way is to close the triggered workflow if the document type doenst corespond to my criteria?

Best wishes,

Ricardo

Former Member
0 Kudos

swb_cond here you can setup start condition for your workflow

or you can do this from workflow builder.

go to the grey hat icon or GOTO/basic data

then goto start events tab here you will see your start event and you will find a column called conditions clikk it at do the config you need.

NB if you do not get a transport request . goto SWB_COND and create your transport from there.

after setup check SWU0 again and it will now say t

that the start depends on a function module check.

best regards erik

best regards erik

Former Member
0 Kudos

Hi all.

Abhishek, I made the customizing like you said and configured the system via OBWA to call my workflow and also configured OBWJ to call my workflow variant but the system still calls the standard workflow and not mine.

Anyone know have an idea about what is happening?

Many thanks in advance,

Ricardo

Former Member
0 Kudos

Is the triggering event for your workflow called Check SWETYPV and see if your WF has been attached to FIPP.CREATED?

check transaction SWEL and see if your WF was called.

check the binding of your workflow with the event is that done correctly ?

Former Member
0 Kudos

Many thanks for answering, Abhishek .

I will check it later during today. Allready take a quick look and seems promissing.

Regards,

Ricardo