cancel
Showing results for 
Search instead for 
Did you mean: 

How to overwrite IDoc Control Record - DOCREL

Former Member
0 Kudos

Hi Gurus,

Is there a way to overwrite the DOCREL field when IDoc is generated in XI? XI always send '700' but i need it to have value '46B' so it will be processed properly by the receiving system.

My scenario is, XI is picking up a flat file in AL11 and converts it to INVOIC02 IDoc. The IDoc is being sent to a Biztalk server.

Thanks!

Eo

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

we have lot of approaches to change " DOCREL " value .

for ex:

1. use constant(46B)->DOCREL

2.use standard function "fixvalues" of conversion function group

pass key(700) and value(46B) pairs

Shabarish_Nair
Active Contributor
0 Kudos

If you want to have a control on the IDoc control records, handle them in the mapping and set the option in the IDoc adapter

Apply Control Record Values from Payload - http://help.sap.com/saphelp_nw04/helpdata/en/96/791c42375d5033e10000000a155106/frameset.htm

former_member184681
Active Contributor
0 Kudos

Hi Eo,

If you are sure the value should be hardcoded, then with no doubts you should use message mapping to do it.

Hope this helps,

Greg

gagandeep_batra
Active Contributor
0 Kudos

Hi,

Ya u can directly give that value while doing mapping.

if there are multiple options for DOCREL field then u can also use value mapping .

Regards

Gagan

Former Member
0 Kudos

Hi,

When you are doing mapping in PI, you can hard code '46B' value then assign to DOCREL field.

OR

Use replaveValud function (if any value comes then it replaces 46B value)

Regards,

Venkata Ramesh