on 09-20-2010 4:54 PM
Hi,
I am facing a problem while creating change invoice. I am getting 013100 100 19000237192011 as object key instead of
100 19000237192011.The change document is BELEGV.
Correct Obj key - SourceCompanyCode DocumentNoFiscalYear
Wrong Obj key - MandtSourceCompanyCode SourceCompanyCode DocumentNoFiscalYear
I am using this CHANGED event in START EVENT of workflow.
Thanks,
Mohan
I remember having encountered a similar issue a few years ago. I found this workaround: in SWED, add a function module in the "Function module" column for the change document BELEGV.
Your function module should have the following interface:
*"----------------------------------------------------------------------
*"*"Local Interface:
*" IMPORTING
*" VALUE(CHANGEDOCUMENT_HEADER) LIKE CDHDR STRUCTURE CDHDR
*" TABLES
*" CHANGEDOCUMENT_POSITION STRUCTURE CDPOS
*" CHANGING
*" VALUE(OBJECT_POR) TYPE SIBFLPORB
*"----------------------------------------------------------------------
There you can modify the key (object_por-instid) to make it compatible with FIPP. If you are using the same change doc for other BOR object, you can filter your logic based on the "receiver" object type, i.e. object_por-typeid.
Cheers,
Patrick
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you double-check the event binding? You need to make sure the keys are compatible.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Nabheet - I want to trigger a Workflow when the invoice document is changed.
@Abdullah -
The Event - Workflow binding is
&_EVT_CREATOR& - &_WF_INITIATOR&
&_EVT_OBJECT& - &FIPP&
How can you check the keys are compatible.
The object key for created event is coming correctly.For changed event the object key is wrong.
Thanks,
Mohan.
Can you please elaborate on what is the requirement and what is the expected output...?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.