cancel
Showing results for 
Search instead for 
Did you mean: 

How to fill controlrecord in File to Idoc scenario

Former Member
0 Kudos

Dear experts,

Currently I have a working file->Idoc scenario in which I fill Idoc-controlrecordvariables as follows:

- field SNDPOR: name of XI developmentsystem (via a constant)

- field RCVPOR: name of SAP developmentsystem (also via a constant)

- same for fields like SNDPRN and RCVPRN etc.

In Development this works fine. Then I transport the design objects to the next environment. But when I want to test the same in Acceptence or Production, it won't work because the fields are still filled with the settings for the Development system.

Can I fill these fields via some systemvariable in stead of a constant? Or is there another way?

Thanks,

William

Edited by: JWD on Aug 31, 2010 2:20 PM

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

u need to select the control record dynamiclaly.

u can do either fix value mapping or a simple UDF

under standard function "constant" 2 functions are there "Sender" and reciver" use those and do a fix vm..lets say

if sender sys starts with D , then SNDPOR = D*

if sender sys starts with P, then SNDPOR = P* like this.. same way for P

rajasekhar_reddy14
Active Contributor
0 Kudos

Hi,

1)Uncheck option Apply contraol record values from Payload in IDoc receiver channel.

2)Disable EDI_DC40 control record in message mapping.

this two steps will solve your problem at configuration time it will take the values irresctive of environment.so you no need to maiantain constant values..

Regards,

Raj