cancel
Showing results for 
Search instead for 
Did you mean: 

XI3.0 IDOC control record - SNDPRN and SNDPRT setting from payload

Former Member
0 Kudos

Hi,

I have a source XML from which I wish to create IDOC-XML and forward to the IDOC adapter to post to an R/3 system. I wish to create IDOCS with a sender partner type of 'KU' and a sender partner number which I wish to copy from the source XML document. I have read the How to sample IDOC-XI scenarios but I still cannot get this to work. Whenever the IDOC is created in the R/3 system is still has a sender partner type of 'LS' and a partner number taken from the sender business system.

To summarise - how do I map the customer number from the source XML-payload and use this to set the sender partner number and type for use by the IDOC adapter.

Many thanks

Ian

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

HI Ian,

You have to set the header mapping (sender and receiver) in the receiver agreement for the idoc. U have to set the schema as 'ALE#KU' and select the SNDPRN value from the idoc.

Thanks,

Sasi

Answers (3)

Answers (3)

STALANKI
Active Contributor
0 Kudos

Check this out.They will help u.

/people/sravya.talanki2/blog/2005/12/02/manipulating-idoc-control-records-from-payload

/people/sravya.talanki2/blog/2005/08/17/outbound-idocs--work-around-using-party

Former Member
0 Kudos

Sravya,

Thanks for your blog & reply:

I have changed my receiver agreement to map the sender party to /ORDERS05/IDOC/EDI_DC40/SNDPRN and set the schema to ALE#KU

& for Receiver party to /ORDERS05/IDOC/EDI_DC40/RCVPRN.

I'm receiving the following error message , can you please look into it :

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>

- <!-- Call Adapter

-->

- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">

<SAP:Category>XIAdapter</SAP:Category>

<SAP:Code area="IDOC_ADAPTER">ATTRIBUTE_INV_SND_PARTY</SAP:Code>

<SAP:P1>http://sap.com/xi/XI</SAP:P1>

<SAP:P2>ALE#KU</SAP:P2>

<SAP:P3>5229</SAP:P3>

<SAP:P4 />

<SAP:AdditionalText />

<SAP:ApplicationFaultMessage namespace="" />

<SAP:Stack>Unable to convert sender XI party http://sap.com/xi/XI/ALE#KU/5229 to an IDoc partner</SAP:Stack>

<SAP:Retry>M</SAP:Retry>

</SAP:Error>

Former Member
0 Kudos

Hi,

Have you created same partner with partner type KU in receiver R/3 system.

Use t-code WE20 to do that.

Thanks,

Tuhin

Former Member
0 Kudos

Yes I did.

Partner profile : Inbound Parameters

_____________________________

Partner number : 5229

Partner type : KU

Message type : ORDERS

Process Code : ORDE

Former Member
0 Kudos

Hi Sasi,

I have now solved the problem. Many thanks for your help. Points awarded

Regards

Ian

Former Member
0 Kudos

How did you solve the problem?

Former Member
0 Kudos

I'm having the same problem..

can some one please explain me the steps in detail?

Thanks

sagar

Message was edited by:

sagarkavi srungarakavi

bhavesh_kantilal
Active Contributor
0 Kudos

Hi,

If you are SP 14 and above, you have 2 options in the Idoc Adapter,

Take Sender From Payload,

Take Receiver From Payload.

Select these options to change the values as needed.

Regards,

Bhavesh

Former Member
0 Kudos

Bavesh,

Thanks for you are reply.

I'm not having those options in my "Idoc Adapter ".

I'm follwoing the Sravya's blog. If possible can you please look into my Error message.

Thanks

sagar

Former Member
0 Kudos

I checked my system .. I'm on ServicePack 18.

I donno why I'm not seeing these 2 options in my IDOC adapter.

" Take Sender From Payload,

Take Receiver From Payload.

""

any help ?

Message was edited by:

sagarkavi srungarakavi

Message was edited by:

sagarkavi srungarakavi

Former Member
0 Kudos

Hi Sasi,

Thanks for your response.

I have changed my receiver agreement to map the sender party to /WPUFIB01/IDOC/EDI_DC40/SNDPRN and set the schema to ALE#KU but now I get the following error :-

<SAP:Code ATTRIBUTE_INV_SND_PARTY</SAP:Code>

<SAP:P1>http://sap.com/xi/XI</SAP:P1>

<SAP:P2>ALE#KU</SAP:P2>

<SAP:P3>998A</SAP:P3>

<SAP:P4 />

<SAP:AdditionalText />

<SAP:ApplicationFaultMessage namespace="" />

<SAP:Stack>Unable to convert sender XI party http://sap.com/xi/XI/ALE#KU/998A to an IDoc partner</SAP:Stack>

<SAP:Retry>M</SAP:Retry>

</SAP:Error>

Does this mean I have to create a party for every possible entry in the sender party? Won't I have a problem as the party cannot contain numerics as a first character?

Regards

Ian