cancel
Showing results for 
Search instead for 
Did you mean: 

Chnaging IDOC Control Record

bhavesh_kantilal
Active Contributor
0 Kudos

Hi guys,

I have an IDOC to IDOC scenario and my IDOC is being posted to the R3 system succesfully.

My problem is ,in the R3 system , <b>I need to change the values populated for the CONTROL RECORD especially , for the SNDPRN , SNDPFC , RCVPRN , RCVPRT.</b>

While doing my mapping , I have mapped the constant values to these fields as I want them. When I check the payload in SXMB_MONI, it is showing the values I want. But, when the IDOC reaches R3 , the values seem to change.

In my IDOC adapter I have selected the option APPLY <b>CONTROL RECORD FROM THE PAYLOAD</b>

Any idea as to why the values are not coming as expected on the R3 side? Am i missing some configuration?

I also saw some info on using <b>HEADER MAPPING</b> while doing RECEIVER AGREEMENT, but could not make sense out of it.

looking forward to some useful tips,

regards,

Bhavesh

Accepted Solutions (1)

Accepted Solutions (1)

MichalKrawczyk
Active Contributor
0 Kudos

hi,

1. did you have a look at my weblog:

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

2. you can change this with:

Take Sender from Payload

Take receiver from Payload

(fomr Sp14 as far as I remember)

3. you can also use the header mapping in the

receiver agreemtnt to change those values

but use option 2 if you can first

Regards,

michal

bhavesh_kantilal
Active Contributor
0 Kudos

hi michal,

your blog was the starting point for what I am trying. I did take a look at it.

In your blog, you mention that all values are taken from the pay load.

<i>Now the control record will be filled with those parameters:

TABNAM, SNDPOR, MANDT, DOCNUM, DOCREL, RCVPOR, ARCKEY, SERIAL, MESTYP, IDOCTYP, CIMTYP

SNDPRN, SNDPRT, SNDPFC, RCVPRN, RCVPRT, RCVPRT, STATUS, DIRECT OUTMOD, CREDAT, CRETIM</i>

But, the online documentation states,

<i>The values for the following fields are filled by the configuration in the Integration Directory.

SNDPRN SNDPRT SNDPFC RCVPRN RCVPRT RCVPFC</i>

And then goes on to mention a table of fields which are populated if the option <i>Apply Control Record Values from Payload</i> is selected and none of the abobe fields are a part of that list.

Is there any thing that is being missed here?

Finally, can you elaborate more on your 2nd point. Am not able to understand what you are hinting at.

Thanks,

Bhavesh

bhavesh_kantilal
Active Contributor
0 Kudos

Hi michal,

I ve got a feeling that this is a problem with my CPA Cache, and am looking at having a full refresh of the same by the BASIS team too.

Anything else that you would think I should try other than a SERVER restart

Regards,

bhavesh

Former Member
0 Kudos

HI Bhavesh,

Only fields you can change by 'Apply Control Record Values from Payload ' are

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

Whe you are making your receiver agreement, you will see four checkbox at the bottom, the data is picked up from there if you update it. Sender Party, Receiver Party, Sender Agreement and Receiver agreement.

Regards

Vijaya

MichalKrawczyk
Active Contributor
0 Kudos

for:

take sender and receiver from payload have

a look at this:

http://help.sap.com/saphelp_nw04/helpdata/en/96/791c42375d5033e10000000a155106/content.htm

Regards,

michal

MichalKrawczyk
Active Contributor
0 Kudos

hi,

>>>>In your blog, you mention that all values are taken from the pay load.

I did not mention that....

>>>>TABNAM, SNDPOR, MANDT, DOCNUM, DOCREL, RCVPOR, ARCKEY, SERIAL, MESTYP, IDOCTYP, CIMTYP

SNDPRN, SNDPRT, SNDPFC, RCVPRN, RCVPRT, RCVPRT, STATUS, DIRECT OUTMOD, CREDAT, CRETIM

this is only when you diable edi_dc40 and there values

are not from the payload - scenario one - read it once more

Apply Control Record Values indicator is described in scenario 2

if you want to change the sender or receiver

use the <i><b>take sender/receiver from payload</b></i>

indicator in the receiver idoc adapter

BTW

please read weblogs more carefully

Regards,

michal

bhavesh_kantilal
Active Contributor
0 Kudos

hi michal / vijaya,

Using SENDER AND RECEIVER from payload helped partially.

The SENDER and RECEIVER PARTNER NUMBER are coming as ecxpected , but , the PORTS are not.

I have also found a note : <b>886263</b>which I hope might solve the problem.

Thanks a ton for the input,

Regards,

Bhavesh

bhavesh_kantilal
Active Contributor
0 Kudos

hi michal,

sorry for that confusion over there.

Like u told , I MUST READ the blogs more carefully

Thanks again,

Regards,

Bhavesh

MichalKrawczyk
Active Contributor
0 Kudos

no problem

just use take sender/receiver + apply values

and this will set the correct receiver/sernder

fomr the payload

Regards,

michal

bhavesh_kantilal
Active Contributor
0 Kudos

Hi michal,

I have done exactly this, but the port is not being shown correct.

Is the note I mentioned a probabler reason.

Any ideas?

Regards,

bhavesh

MichalKrawczyk
Active Contributor
0 Kudos

hi,

but is the sender/receiver changed correctly?

Regards,

michal

bhavesh_kantilal
Active Contributor
0 Kudos

hi michal,

the problem was due to incorrect data being populated in the control segment.

final solution : Add ctrl record from payload + sender /m receiver info from payload.

Cheers,

Bhavesh

Answers (0)