cancel
Showing results for 
Search instead for 
Did you mean: 

Wrong Object Key on FIPP Changed Event

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Thanks Patrick Using Function Module in SWED with template SWE_CD_TEMPLATE_OBJKEY_FB solved the problem.

Thanks all for your suggestions.

Mohan.

Answers (2)

Answers (2)

Former Member
0 Kudos

Can you double-check the event binding? You need to make sure the keys are compatible.

Former Member
0 Kudos

@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.

surjith_kumar
Active Contributor
0 Kudos

Hi,

Test using the std. workflow WS00400004, if it working compare both the workflows and fix it.

Regards,

Surjith

nabheetscn
Active Contributor
0 Kudos

Can you please elaborate on what is the requirement and what is the expected output...?