cancel
Showing results for 
Search instead for 
Did you mean: 

FixValue Question

Former Member
0 Kudos

Dear All,

Scenario is File to IDOC:

In mapping, EDI_DC40 section has to be filled with constant values like Sender port, Sender partner, Receiver Port and Receiver Partner. To achieve this I am using FixValue function. We have more than 50 interfaces having the same pattern.

Can someone tell is there any alternate way to achieve this. I have one approach in my mind i.e. use a .properties file in XI server and write UDF to read the values from that file.

I have also heard from one of my colleague that we can also use ValueMapping. But if you go with Value mapping, you have to create Party for all the interfaces….

I will appreciate if someone can share his valuable thought on this logic.

Best Regards

SMD.

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi,

The right way to acheive this is by making use of apply control record values from payload button while defining receiver communication channel. If this is not working, then you can think of Value Mapping, where in you have to maintain these fixed values at one time and make use of same values later times also.

Thanks,

Vijay Kumar T.

Former Member
0 Kudos

Hi,

Use the concept apply control record values from payload

/people/michal.krawczyk2/blog/2005/09/01/xi-idoc-adapter--edidc40--demystified

Regards

Seshagiri

Former Member
0 Kudos

hi,

if you want ot fill the control records from the payload then disable the check box -apply control records from payload,and the payload must contain that elements

note:reward points if solution found helpfull.....

regards

chandrakanth.k

Former Member
0 Kudos

Hi,

the easiest way would be to use the Apply Control Record Values from Payload indicator in the receiver IDoc adapter.

It's filling the values by itself and it's described here:

http://help.sap.com/saphelp_nw04/helpdata/en/13/95244269625633e10000000a155106/frameset.htm

If this is not working for you, because you need any special values you will need a mapping.

There are different kinds of value mappings and Fix Value is one of them.

It's described here:

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9202d890-0201-0010-1588-adb5e89a...

Something you want to do could be realized with Mapping Lookups like described here:

http://help.sap.com/saphelp_nw04/helpdata/en/cf/406642ea59c753e10000000a1550b0/frameset.htm

Regards

Patrick

Former Member
0 Kudos

You need not fill these values.

You must have configured IDoc adapter. This adapter will fill there values.

In mapping you can disable segment EDIDC

Even if you put these values in mapping, IDoc adapter will overwrite these values.