How to read Sender Interface name in adapter Module in PI 7.31

Hello All,
I am working on Adapter module .it accomplish to generate file with message id,message key ,sent time,received time,FromService(Business system names),toServiece(Business system name),sender interface name,receiver interface name .
i got all details in my file by calling module data by method get principal data,but i am fail to get sender interface in that file .
can you please guide me how to get sender interface name in adapter module.
I am getting some information from this following blogs
https://scn.sap.com/thread/1583665
How to read Sender Interface name in Adapter module
but i am facing same error what they faced.
Please guide me to how to get sender interface name in adapter module.
Thanks
Ganesh

Hi Ganesh
Write a module in the sender adapter and use this piece of code
Message mes = null;
mes = (Message) inputModuleData.getPrincipalData();
String SI = mes.getAction().getName();
Also you can read the same by creating a UDF in message mapping
Following is the code
InputHeader inputHeader = container.getInputHeader();
String SI = inputHeader.getInterface() ;

Similar Messages

  • How to read Sender Interface name in Adapter module

    I have a need to read the Sender Interface name in an adapter module that will be attached to a Sender SOAP channel. Any ideas on how this can be done.
    I am familiar with the following code construct from the docs
    Hashtable mp = (Hashtable)inputModuleData.getSupplementalData("module.parameters");
    fileName = (String) mp.get("FileName");
    What is the key name (in the hashtable) for Sender Interface name ? The docs seem to be silent on this
    I dug around some and found references to "mp.context" and "message.interface". I guess I could just test this out but I dont have deploy access and I dont want to keep asking the BASIS group to deploy the module while I play around with different combinations...
    So would the following work
    Hashtable mp = (Hashtable)inputModuleData.getSupplementalData("mp.context");
    interfaceName = (String) mp.get("message.interface");
    Thank you
    Anil

    Hi Anil,
    I am not sure of how to get the Sender interface name. I even tried the code that you suggested above. It gave me a null pointer exception.
    I think instead of Sender Interface name you can decide upon the Sender System/Service.
    To get the Sender System Name:
    Object obj = null;
    Message msg = null;
    obj = ModuleData.getPrincipalData();
    msg = (Message) obj;
    String SenderSystem = msg.getFromService();
    Here based on the sender system you can do your partner specific processing in Proxy. Instead of Sender Interface Name.
    Hope this helps
    Regards,
    Aravind

  • Retrieving sender Interface name in adapter module

    Hi Gurus
    Is there ne way we can retrieve interface name in the adapter module which is on the sender side?
    I was thinking about using dynamic configuration in adapter module but I guess since container element cant be used inside adapter module.....it will be futile...
    Regards
    Akhil

    The Receiver Determination step will be executed only after the message comes out of the Sender Adapter / Module and so , the Receiver Interface will obviously be unavailable in the Sender Module.
    Regards
    Bhavesh

  • Get/set message interface name in adapter module

    Hello,
    From an adapter module, I'd like to get or even set the Message Interface name of the message that is handed over to the function "process" of the adapter module.
    I've got two context's, sessioncontext and modulecontext. With both contexts, you can get values from that context. I'm not sure which context has the message interface name of the message currently being processed, and I'm also not sure what that value is called (moduleContext.getContextData("name");).
    The reason for this is that sometimes you'd like to do something different depending on the type of message being processed.
    If anyone knows how to do this, I'd be glad to hear.
    Thanks in advance for any advice!
    Greetings, Walter.

    Hi Walter,
    It is fairly easy to get the interface name. When you have extracted the XIMessage there is a parameter, which allows you get the Action, where you can get the interface name.
    I have tried to change the interface name. You need to create a new message an copy the content from the old message over to this. This is a little tricky and I'm not able to get any code samples for you.
    /daniel

  • Interface name in Adapter module

    Hi Gems,
        In my adapter module , i have a bean class and an other class extends AbstractTransformation with transform method.
        public void transform(TransformationInput in, TransformationOutput out) throws StreamTransformationException {
            strReceiverInterface = (String) in.getInputHeader().getReceiverInterface();
            strSenderInterface = (String) in.getInputHeader().getSenderInterface();
            inTime = in.getInputHeader().getTimeSent();
       From my Bean class i created an Object  and fetched the interface name.. ..  but at runtime interface name comes null.
      Can any one tried this ever??  Please let me know ASAP..
    Thanks
    Prabhakar

    Have a look at this:
    http://help.sap.com/javadocs/NW04/current/pi/constant-values.html#com.sap.aii.mapping.api.StreamTransformationConstants.INTERFACE
    and
    http://help.sap.com/javadocs/NW04/current/pi/constant-values.html#com.sap.aii.mapping.api.StreamTransformationConstants.INTERFACE
    Regards,
    Ravi

  • How can I get interface name ?

    Hi there.....
    I wonder that how can I get interface names?
    We can get interface name using by "netstat" or "ifconfig".
    But I don't want to use system() or execl() function.
    Is there any function similar to netstat or ifconfig ?

    See the inet(7P) or inet6(7P) man pages for the
    programatic interface to the interface, to get its
    IP settings, and then look at the
    gethostbyname(3SOCKET) call for IPaddr to hostname
    resolution.

  • How to read the whole name of a music title while scrolling down a list of titles? With the new iOs7 Music App there is no more black box showing the entire name!

    How to read the whole name of a music title while scrolling down a list of titles? The old software-app had the function to click for a longer time on a titles beginning letters until a black box revealed the entire name. I miss this function especially for my classical music, because lots of pieces start with similar words. E.g.:
    "Beethoven: Variations On "Ein Mädchen Oder Weibchen", Op. 66 - Var. 1"
    "Beethoven: Variations On "Ein Mädchen Oder Weibchen", Op. 66 - Var. 2"
    Scrolling in a list of title, I can't distinguish the titles, because just the first words are shown followed by: "...".
    That's horrible!

    Or you could include a width to your body style:
    body {
    background-image: url(Logo/sky1.jpg);
    background-position: center center;
    background-attachment: fixed;
    width: 75%;}
    It might work or not depending on your other color scheme.

  • How to read pdf file using file adapter

    Hi..
        How to read pdf file using file adapter?
    regards
    Arun

    Hi
    This may help you
    /people/sap.user72/blog/2005/07/27/xi-generate-pdf-file-out-of-file-adapter
    /people/alessandro.guarneri/blog/2007/02/21/sap-xi-acting-as-a-huge-file-mover
    ---Ram

  • Is it possible to send error message from Adapter Module to CCMS?

    Hi
    Is it possible to send error message from Adapter Module  to CCMS...?I have written on adatper module from there i have to send error message to CCMS or SXMB_MONI. Is it possible if yes please send me the related documents
    Best Regards
    Ravi Shankar B

    Hi
    I have written following User Defined Exeption in my Module program
    class DuplicateFileException extends ModuleException{
              DuplicateFileException(String message){
                   super(message);
    I am throwing my Exception like this
    try{
         throw new DuplicateFileException("Duplicate File");
    }catch(DuplicateFileException e){
         throw e;
    But i am not getting this exception in SXMB_MONI. In adpater monitoring i am getting the following exceptions
    <b>
    2007-05-16 15:51:30 GMT+05:30: Retry interval started. Length: 5.000 s
    - 2007-05-16 15:51:30 GMT+05:30: Error: java.lang.NullPointerException
    - 2007-05-16 15:51:30 GMT+05:30: An unknown error occured.
    - 2007-05-16 15:51:30 GMT+05:30: Processing started
    - 2007-05-16 15:51:25 GMT+05:30: Error: java.lang.NullPointerException</b>
    can any one give me the idea how to send error from module program to SXMB_MONI
    Thanks & Regards
    Ravi Shankar B

  • How to read current line number in function module sourrce code?

    Hi All,
    How to read current line number in function module sourrce code?
    regards,
    Anuj

    If you have new editor you would be able to see the line number. 
    Or in the Dump screen - there is a button called Debugger - click that you would be able to see the code where dump has occured..  you would be able to find the line number from there.
    To get the new editor with line number , you need to change the settingsin SE38.
    Regards
    Vivek

  • Reading the Interfaces name which the class is implementing in a COM dll is implementing.

    Hi All,
    I'm using .NET Reflection to read a COM dll. I'm able to fetch the classes that are present in the dll. But I would like to know interface name which this class is implementing.
    For a .NET dll we can know the name of class's implementing interface name using the <classname>.BaseType.Name property.
    How can I know the interface name which this class is implementing (if any).
    Please let me know how to do this for a COM dll.
    Thanks in advance,Satish
    Thanks, Satish Bommideni "Success usually comes to those who are too busy to be looking for it."

    Hi,
    Thanks for the reply.
    I'm reading the COM assembly using the methods available in oleaut32.dll.
    Also I've imported the namespaces
    System.Runtime.InteropServices.ComTypes;
    System.Runtime.InteropServices;
    to use its respective methods and thus I'm able to read it's classes.But donot know what property to check for this class's interface.
    Kindly let me know if you need any further information.
    Thanks, Satish Bommideni "Success usually comes to those who are too busy to be looking for it."

  • How to get file name in adapter module

    Hi all
    Is it possible to get the file name in a adapte module? If so how can I achieve this?

    Hi,
    Check below thread. it shows code for file name.
    [Re: Query regarding Adapter Module development]
    -Gouri

  • How to read the keyframes name...

    What about this one?
    alert
    string(sprite(1).member.model[n].keyframePlayer.playlist[1])
    gets me:
    [#name:"Box-Key" , #loop:1, #starttime:0,#endtime:1500,
    scale:1.0"]
    so how do I get the #name only (Box-Key)?
    string(sprite(1).member.model
    .keyframePlayer.playlist[1].#name)
    doesnt work
    string(sprite(1).member.model.keyframePlayer.playlist[1].name)
    doesnt work
    string(sprite(1).member.model
    .keyframePlayer.playlist[1].modifier.#name)
    doesnt work
    any ideas?
    Tanks in advance!

    This is untested off the top of my head, but try this:
    alert
    string(sprite(1).member.model[n].keyframePlayer.playlist[1][#name])

  • How to change Sender`s Name in SOST transaction

    Hi all,
    I`m a newbie to SDN. My requirement compels me to change the sender`s name in SOST Transaction. How can I change this? I mean which table and which field should i be looking for, to do this.
    Thanks & Regards,
    Gnanasambanthan. V
    Edited by: Gnanasambanthan Venkataraman on Aug 19, 2008 8:58 AM

    Thanks Mr.  Dzed Maroz for the answer,
    The issue has been solved.
    The thread is closed
    Regards,
    Gnanasambanthan.V

  • How to read the column name of a table from sap system using C#?

    Hi!!
    I am using SAP .NET connector and creating a windows application.
    Now I wanna read the column name when a table name is given....
    Connection is done, but I don't know the code to read the column names alone...
    Can anyone help me with the code??

    fine!!
    So if i give the table name, which the RFC_READ_TABLE function module have, will it run properly? or i wanna change all the codes in order to support RFC_READ_TABLE function module?
    Because from the beginning I was using BAPI_CUSTOMER_GETLIST function, but my client requirement is to use ERP function module RFC_READ_TABLE, he didn't give any table name also..
    This is my code: What I have to change in this???
    ECCDestinationConfig ECCDestination = new ECCDestinationConfig();
                RfcDestinationManager.RegisterDestinationConfiguration(ECCDestination);
                RfcDestination rfcDest = null;
                rfcDest = RfcDestinationManager.GetDestination(a);
                    RfcRepository repo = rfcDest.Repository;
                    IRfcFunction customerList = repo.CreateFunction("BAPI_CUSTOMER_GETLIST");
                    IRfcTable addressData = customerList.GetTable("AddressTable"));
                    int j = addressData.Metadata.LineType.FieldCount;
                    for (int i = 0; i < j; i++)
                        RfcElementMetadata metadata = addressData.GetElementMetadata(i);
                        listallcolumn.Items.Add(metadata.Name);
    Message was edited by: Jeswin Rebil

Maybe you are looking for