Skip to Content
author's profile photo Former Member
Former Member

How to access party identifiers in message mapping

Hi folks, in integration builder I have created a Party, and added an additional Identifier for the vendor number for this Party in SAP backend, e.g.

Agency: SAP | Scheme: ALE#LI#LF | Name: 0000123456

The Party is used as sending Party of an integration flow (PI 7.31 AEX).

In mapping, I need to perform an RFC lookup using the vendor number (as defined above 0000123456) specified for the sending Party.

Anybody has experience with that? Thanks for your help, best regards, Martin

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    Posted on Nov 06, 2015 at 08:02 AM

    Hi, Martin,

    I was searching extensively for solution to this problem. I was really hoping there was some "secret" Value-mapping context (other than the 'http://sap.com/xi/XI') that would allow a value-mapping function to plug into Party identifiers. I didn't find it - maybe there is one, maybe there isn't.

    In the end I settled with getParty and getPartyID functions in UDFTPMPool library that comes with SAP B2B addon - they do exactly what you need.

    Regards

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 26, 2013 at 10:44 AM

    Hello Martin,

    Identifiers are used as follows at runtime

    Inbound Processing:

    If a message from an external party contains an identifier for a company in the message header, the identifier is mapped to the name of the internal party (normalization). Only then can the relevant configuration objects required for the message to be processed further be found and analyzed in the Integration Directory.

    Outbound Processing:

    The internal party name of an outbound message is mapped to the identifiers to be used (in accordance with the configuration settings). The external receiver then receives a message that contains the externally-valid identifier in the message header (denormalization).

    You can specify which alternative identifier is to be used in a specific communication step in the collaboration agreement (on the Identifiers tab page for the communication channel).

    Regards,

    Jani Shaik

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Thanks for your answer, yes I make use of this functionality you explain here, but this is independent from my requirement to get access to the specified Party Identifier during message mapping.

  • Posted on Jun 26, 2013 at 01:23 PM

    Hi Flinki,

    i think you would need a value mapping with combination of Business System and PI sytem id as import, the vendor number as export. Not nice, but it would work. SAP's concept regarding partys sucks (a bit).

    /Udo

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 26, 2013 at 10:18 AM

    Hi Martin,

    Use below:

    public interface StreamTransformationConstants

    This interface contains constants that can be used in a java mapping to access runtime parameters. Most of these parameters are attributes of the message header, e.g., sender party, sender service, etc.

    /AB

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Thanks for your answer, my requirement is to retrieve the Name (here the value 0000123456) for a certain Agency and Scheme defined as additional Identifier.

      I specified the following Party Identifier for myParty:

      Agency: SAP | Scheme: ALE#LI#LF | Name: 0000123456

      and I need access to the Name, here 0000123456 in message mapping.

      The StreamTransformationConstants only contains the following, but what I need is access to 000012345:

      StreamTransformationConstants
      Retrieved ValueSENDER_PARTYmyPartySENDER_PARTY_AGENCYSAPSENDER_PARTY_SCHEMEALE#LI#LF???000012345

      Did I misunderstand sth? How do I get access to this field?

  • Posted on Jun 26, 2013 at 01:48 PM
    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Thanks for your answer, the thing is that I already use these Party Identifiers in an IDoc interface. Now I want to reuse this Identifier (the vendor number Scheme: ALE#LI#LF | Name: 0000123456) for other interfaces, instead of maintaining the same vendor number several places, e.g. as value mapping.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.