Skip to Content
0
Jul 23, 2009 at 12:57 PM

Updating CRM Document Flow

257 Views

Hello,

I need to create/update a document flow in CRM with CRMXIF_ORDER_SAVE. So far, i've succeed to create the document flow Header with as many document i wanted but for the ITEM Document flow, i cannot create more than two document because i have a problem of header interlinkage (i don't even know what is a header interlinkage !!).

ERROR MESSAGE :

"You attempted to create a document flow record without a

corresponding header interlinkage. This is not possible due to

technical reasons."

"Someone tries to create a Item-relation without Headerrelation"

In the CRMXIF_ORDER_SAVE, i've used those following parameters :

HEADER DOCUMENT FLOW (CRMXIF_DOC_FLOW) :

1.

RELATION_TYPE : 'REPL'

RELOBJ_ROLETYPE : 'CRM_REORD'

RELOBJ_OBJKEY : <R/3 order number>

RELOBJ_TYPE : 'BUS2031'

RELOBJ_OBJECT_ID : <CRM Business Transaction ID>

OBJECT_TASK : 'I'

RELATION_TYPE_ATTR = 'A'.

2.

RELATION_TYPE : 'VONA'

RELOBJ_ROLETYPE : 'NACHFOLGER'

RELOBJ_OBJKEY : <R/3 delivery number>

RELOBJ_TYPE : 'LIKP'

RELOBJ_OBJECT_ID : <CRM Business Transaction ID>

OBJECT_TASK : 'I'

RELATION_TYPE_ATTR = 'A'.

3.

RELATION_TYPE : 'VONA'

RELOBJ_ROLETYPE : 'NACHFOLGER'

RELOBJ_OBJKEY : <R/3 good issue number>

RELOBJ_TYPE : 'BUS2017'

RELOBJ_OBJECT_ID : <CRM Business Transaction ID>

OBJECT_TASK : 'I'

RELATION_TYPE_ATTR = 'A'.

ITEM DOCUMENT FLOW (CRMXIF_DOC_FLOW_I) :

1.

RELATION_TYPE : 'REPL'

RELOBJ_ROLETYPE : 'CRM_REORD'

RELOBJ_OBJKEY :

RELOBJ_TYPE : 'VBAP'

RELOBJ_OBJECT_ID : <CRM Business Transaction ID>

OBJECT_TASK : 'I'

RELATION_TYPE_ATTR = 'A'.

2.

RELATION_TYPE : 'VONA'

RELOBJ_ROLETYPE : 'NACHFOLGER'

RELOBJ_OBJKEY :

RELOBJ_TYPE : 'LIPS'

RELOBJ_OBJECT_ID : <CRM Business Transaction ID>

OBJECT_TASK : 'I'

RELATION_TYPE_ATTR = 'A'.

3.

RELATION_TYPE : 'VONA'

RELOBJ_ROLETYPE : 'NACHFOLGER'

RELOBJ_OBJKEY :

RELOBJ_TYPE : 'MKPF'

RELOBJ_OBJECT_ID : <CRM Business Transaction ID>

OBJECT_TASK : 'I'

RELATION_TYPE_ATTR = 'A'.

When i debug the IDoc (program "LCRM_DOC_FLOW_OWF02"), it seems it makes a count on type of each RELTYPE of the HEADER document flow. Since i have two RELTYPE of type VONA, it crush down...

What surprise me, it's that in the standard middleware, it doesn't disturbe it than there is more than two RELTYPE of type VONA...

Any idea why ? GUID problem ? But where ?

PS: I am not usually working on CRM but Process Integration :P