cancel
Showing results for 
Search instead for 
Did you mean: 

Trigger a workflow when a accounting dcoument is created

former_member193771
Contributor
0 Kudos

Hi,

I need to trigger a workflow, when an accounting document is created not when the document is parked or posted. Is there any standard event or what can I do.

Im trying to use FIPP here.

Thanks

Sukumar

Accepted Solutions (1)

Accepted Solutions (1)

imthiaz_ahmed
Active Contributor
0 Kudos

what do you mean by creating a document? It can either be parked or posted. Please clarify.

former_member193771
Contributor
0 Kudos

Hi,

Thanks for the quick reply.

When the accounting document is created the workflow is to get triggered. The functional guys here donot want the workflow when the document is parked or posted for approval of GL entries...

Thanks.

Sukumar.

Former Member
0 Kudos

Sukumar,

Use the same workflow, create the check FM in SWE2 tcode, there you check that document type (i guess blart) is GL then raise an exception so workflow wont trigger.

you can find sample coding for check FM in forum too.

Cheers

Jai

former_member193771
Contributor
0 Kudos

Hi,

Thanks for the reply...

I need to trigger a workflow just before a document is posted. Is there any user exit which I can leverage for this purpose.

Thanks,

Sukumar.

former_member190818
Active Contributor
0 Kudos

Hi,

When the Account Document is getting created ??

you can use the Userexit SAPLF051 and try.

Regards,

JMB

Former Member
0 Kudos

Sukumar,

If you trigger workflow just before document is posted, how you would be sure that document has been posted?

I mean to say that it may happen that your workflow has been triggered but document has not been posted, Do you really want this?

I would still suggest that use the posted event for workflow

Cheers

jai

former_member193771
Contributor
0 Kudos

Hi,

Right before the posting the amounts are compared with the threshold value and if the amount happens to be lesser than threshold, it is directly posted, or else if the value is greater than the threshold it does not get posted.

I presume triggering a workflow through a user exit might work in this case. I set a breakpoint in all the three exits in SAPLF051 and it did not stop when I posted the document. I will try using it once more.

Thanks,

Sukumar.

former_member193771
Contributor
0 Kudos

Hi Gurus,

Would be great, if you could reply to this..

This is pretty urgent.

Thanks,

Sukumar.

Former Member
0 Kudos

Sukumar,

For me its kind of odd requirement, What will happen to that document which doesnt not satisfy threshold criteria, will that be ever posted.

I think that you can find out some BAdi for that, try to check BAdi.

How to find out BAdi? search the forum's and you will find various ways to check on existing BAdi for any package/tcode etc.

Hope it will help.

Cheers

Jai

imthiaz_ahmed
Active Contributor
0 Kudos

What you are explaining now is what I said before, that if the condition doesn't satisfy you are parking it else posting it. the best answer will be to go for FI release strategy. Refer to the following link

http://help.sap.com/erp2005_ehp_01/helpdata/en/01/a9ce74455711d182b40000e829fbfe/frameset.htm

Regards,

Imthiaz

Award points if solves your problem.

Answers (0)