Module in the sender Adapter

Dear all ,
I have writeen a module in the sender file adapter.
How do I capture the communication channel name , sender Business sys , party name inside the module

com.sap.aii.af.service.cpa
Class Channel
java.lang.Object
  +--com.sap.aii.af.service.cpa.impl.cache.AbstractCacheItem
        +--com.sap.aii.af.service.cpa.impl.container.CPAObject
              +--com.sap.aii.af.service.cpa.impl.container.AttributeExtendedCPAObject
                    +--com.sap.aii.af.service.cpa.Channel
use the methods,
getChannelName(),        
getParty() and getService()

Similar Messages

  • SOAP: "XI.Timeout" module in the sender adapter

    Hi,
          Could you please explain in detail, how to enter the XI.timeout module in the soap sender adapter.
    Regards,
    Vishnu.

    Hi Vishnu,
    The default timeout value for synchronous calls is 5 minutes. You can increase this value by setting parameter XI.Timeout in the module parameter table of the SOAP adapter. The value must be given in milliseconds. For example, value 600000 represents the timeout value of 10 minutes. This parameter is not recognized in systems prior to SP13.
    In the Module tab of the Communication channel you can find Module Parameters can be specified under Module Configuration section.
    Add the XI.Timeout Parameter with some Parameter Value.
    regards
    Ganga

  • Accesing additional files in the sender adapter

    Hi,
    I'd like to use this option in the sender file adapter: http://help.sap.com/saphelp_nwpi71/helpdata/en/44/692ab8a4b633eae10000000a1553f6/frameset.htm
    --> "In the sender file adapter, you can specify additional files to be included in the XI message as attachments" ... "Additional files are transported unchanged without conversion options"
    After testing I'm getting two files in the soap message, which is what I wanted. But how can I get the content of the second file (not the main one).
    For example, in a custom module in the file adapter I can get the main payload as this:
    public ModuleData process(ModuleContext moduleContext, ModuleData inputModuleData)
                                       throws ModuleException {
    Message msg = (Message) inputModuleData.getPrincipalData();
    I guess that to get the second file it could be something like:
    inputModuleData.getSupplementalData("?");
    but don't really know what to insert there as a parameter.
    Basically I would need to find out a way to access the content of that second file: it could be in a custom module, it could be in a graphical or java mapping...
    Thanks!
    Edited by: Jorge Lopez on Mar 17, 2009 11:09 AM

    Finally I could access that attachment in a Java mapping using this code:
    private String getAttachment(TransformationInput in){
         InputAttachments inpAttach = in.getInputAttachments();
         Collection<String> collIDs = inpAttach.getAllContentIds(true);
         Object[] arrayObj = collIDs.toArray();
         getTrace().addInfo("Number of attachments: " + arrayObj.length);
         String idAttachment = (String) arrayObj[0];
         return new String(inpAttach.getAttachment(idAttachment).getContent());
    and so getting the attachment in a string.
    You also have to set on the flag "Read Attachments" in the Operation Mapping (PI 7.1, old Interface Mapping), so that the ABAP side passes the attachment to the Java runtime.
    I'm not sure if it's possible to access the attachment in the sender adapter in a custom module
    Edited by: Jorge Lopez on Mar 18, 2009 4:06 PM

  • Adapter Module in SOAP Sender Adapter

    Hi All,
    To Confirm, Is it possible to use Custom Adapter Modules in SOAP Sender Adapter. If so, where exactly custom module has to be placed in communication channel with respect to the standard bean of SOAP Adapter.
    Thanks in advance.
    Regards,
    Sudharshan N A

    Hi,
    The sender adapter cannot be extended Check this
    http://help.sap.com/saphelp_nwpi711/helpdata/en/43/951aceb1146353e10000000a11466f/frameset.htm
    http://help.sap.com/saphelp_nwpi711/helpdata/en/cd/5af7c0c994e24fb0d0088443513de2/frameset.htm
    Regards
    Suraj

  • File Content conversion at the sender adapter without Key field

    Hi All,
    I have a requirement ....We are using Message Transform Bean at the sender adapter (we are not going for FCC as we are tranforming a decryption) ..its is a flat file...
    we dnot have a key field for one of the node .....we have total 5 nodes under parent node and one of the node does not have key field ....
    NOTE: I guess we have to do either Java mapping or XSLT ..but not getting proper weblogs with program...
    and not well versed with coding...i got few codes which were either not fulfilling requiremment or they use stream tranformation where it is decaprecated in NWDS and does not allow to compile it properly .
    Can somebody get me a code for Java which uses Abstract tranformation ...which can full fill below requirement
    parent node
                  Node1
                       node 1a
                       node 1b
                  Node 2
                  Node 3
    Input Flat file is in below format
    example:
    Employee Headre Flat files
    Employee Detail Flat Files(this repeates numerous times as much as number of employees)
    Employee  Trailer Flat Files
    Loan Headre Flat files
    Load Detaisl Flat Files (this repeates numerous times as much as number of employees)
    Loan Trailer Flat files
    Assitance much appreciated thanks .
    Regards
    Kiran

    Hi Stefan,
    I will rephrase the question i guess its communication gap...
    1) we have an existing interface in 3.0..we are not copying the same interface to 7.1 as it was not according to standards and they are phasing out that system.
    2) In 3.0 they are reading the Flat files under one record .. the structure is as follows:
    Parent Node
               Node
                   Row
    They are reading all the flat files row by row.
    and even in receiver they are reading in the similar fashion
    3) In the current structure according to the FS we have to create a structure defined by them which is as below
          Employee
              Header
              Details   node 1
                 Details  node 1a
                  Details  node 1b
              Trailer
              Loan Header
              Loan Detail
              Loan Trailer
    Receiver structure is
    Employee
          Node (this will have the receiver fields which is about 30 fields)
    4) We have pulled a sample file from 3.0 for the existing interface as we din get the sample file for existing one in FS and Iam not sure whn are they gonna send it.
    5) In the existing interface payload we have everything matching even the field lengths and postions and even key fields and key fields we got from the FS
    6) problem is we donot have key fields for the Details node 1a and 1b even in FS or the existing payload and we got an update from the FS consultant that we will be receiving these fields but without keyfields...
    see i donot have any problem taking out the details 1a and 1b out of the details header and create the structure ,,,,but the main issue is without key field we will not be able to generate the 1a and 1b nodes or read it in the FCC or MTB (i have to use MTB as we are decryting the file from the sender).
    Or is there any other method apart from java mapping or module development to handle these files

  • Retrieving the file name in the adapter module in the sender file adapter

    hi,
    i need to retrieve the file name, in the adapter module. This module is placed in the sender file channel.
    After the file adapter has picked up the file from the file directory, the file is placed in the archived directory.Custom adapter mofule is place in the file shanel. i need to retrieve the file name of the file in the adapter module. Is it possible to retrieve the file name?
    Also is it possible to retrieve the archive directory path in module?
    Regards,
    Meenkashi

    Hi Meenakshi,
    I guess you are looking for this
    /people/daniel.graversen/blog/2006/10/05/dynamic-configuration-in-adapter-modules
    Regards
    Suraj

  • Use Moduls with SOAP Sender Adapter

    Hi Experts,
    I have a question regarding the use of modules in the soap sender adapter / communication channel. Is it correct that the use of modules in the soap sender adapter is not possible?
    the background of my question is that we use modules from SEEBURGER in our Communication channels for archiving incoming and outgoing documents. the use of modules in the soap receiver adapter is possible. why not in the soap sender???
    according to the sap help it is possible to use the axis framwork in the soap adapter. then it should be possible to use modules. Is that correct? I tested it but it is not working. If I send a soap message (with the soap reveicer adapter) to the axis soap sender adapter there occure internal server errors. it is only working if I write my own modules for the axis soap sender adapter? is it not possible to use external modules like in other channels (File/FTP, soap receiver etc.)???
    thanks and best regards!
    Christopher

    we have moduls from SEEBURGER. so I have to test it. but before I need a scenario with which I can test it.
    We have a customer who sends xml-files per soap to us. these files we receive succussfully with the soap sender adapter. now we want to use some modules. so we have to use the axis soap sender adapter. I tried to send an xml file with the soap receiver adapter to the axis soap sender adapter, but this was not working. http 500 internal server errors occurred. is it possible that this scenario (soap-to-axis-soap) is not working? need I a specific configuration for this?
    thanks and regards
    Christopher

  • IMS transactions encoding in the Sender adapter.

    Hello,
    I would like to use the FTP sender to pick up files created as IMS transactions, which are in EBCDIC encoding, I don't know what value to use for the content conversion in the sender CC to decode the binary.

    As it turns out, we are having a completely different problem with the adapter right now, so i can't test these right now.  I will give yo guys points for responding and leave the resolution of this for another time.

  • Issues with Receive Adapter receiving a file that has not completed uploading while send multiple files on the Send Adapter

    Hello,
    I am only a few weeks old into BizTalk so I am new to this application. 
    The pieces I have for my development environment consists of the following:
    FTP Server ---[SFTP Adapter]---> BizTalk 2013 ---[FILE Adapter]---> Internal Network Share Drive
    I currently configured a simple PassThru, One way Receive/Send in BizTalk where the Receive Port receives a file via SFTP 
    Adapter from our FTP server and the Send Port sends the file via the FILE Adapter to our Internal Network share drive. 
    The setup works great with small files.  However, when I receive a large file on the FTP server, the Send Port sends multiple instances of the file on the FTP server because the Receive Adapter sees that the file is there, but not yet
    fully uploaded.
    Can someone please guide me as to how I can determine when a file is fully uploaded to the FTP server before the Receive Adapter fires?
    Thanks,
    Mitch

    Yap BizTalk does not have control over locking the file during read/write Operation and its the third party which need to take care of this (by rename the file after upload ) .
    If the file size is too large I would suggest to bypass the message box as it has performance bottleneck during peak hours 
    Apart from being repetitive, this is not good advice.  There is no indication that the file is too large or will cause any "performance" issues.
    The concurrency problem can happen with a file of any size.

  • Developing a module for the sender file/FTP adapter

    Hi,
    Can anyone tell me the procedure for developing and deploying a custom java moudule in File adapter.
    Thanks in Advance
    Chemmanz

    Hi,
      I had devloped my own modules for one of my interface and may tell you to kick start you need to get the jars needed and they are:
    aii_af_cci.jar,aii_af_mp.jar,aii_af_ms_api.jar,aii_af_ms_spi.jar,aii_af_trace.jar,aii_af_svc.jar,aii_af_cpa.jar
    You can use ftp to access your XI server and copy locally the jars.Then follow the guide step to step.
    I would request you to refer MY thread when i was trying to create my module and was struck with jars.
    Libraries For Module Devlopement
    All the best!!
    Anirban.

  • File Content Conversion on the Sender Adapter in PI 7.1

    Hi Experts
    I am working on a file to Proxy scenario where my file is fixed format length which will have only one Structures (Details Records) that would be coming from the text file but in the message type I have delcared Header, Detail , Trailer,
    However I would be receiving the only Detail part (No header and Trailer) in some instances  what value should I give for the header and trailer in the Content conversion part,
    Thanks
    PR

    Since you are going to get values only some instances  for header and trailer node, you can create
    Header  structure   &  Trailer structure  - make the occurence 0 to 1
    Note: if your Header and Trailer values are empty for some instances then no worries. You declare FCC fields for header and trailer similar to Details.
    Refer SAP FCC help link.

  • SAP PI 7.1 "How Tou2026 Create Modules for the J2EE Adapter Engine"

    Hi everybody,
    is the How To
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/02706f11-0d01-0010-e5ae-ac25e74c4c81?overridelayout=true
    still applicable for 7.1?
    Reason: out admin cant find:
    u2022     aii_af_lib.sda
    u2022     aii_af_svc.sda
    u2022     aii_af_cpa_svc.sda
    on the java stack.
    Thanks Regards
    Mario

    This is for PI 7.1:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c0b39e65-981e-2b10-1c9c-fc3f8e6747fa?overridelayout=true

  • Can a class or Module be executed before the sender File Adapter execute?

    Hi
    In case of sender adapter the module in the module processor gets executed after the adapter has performed its operation.
    Is there a way I can execute the module before the sender adapter starts execution?
    Or Is it possible to specify a java class to be executed before adapter, through configuration in the communication channel or some other way?
    Thanks
    Vijendra

    HI Vijendra,
    The File module adapter is the first one to get executed.
    The only thing you can do is to run shell scripts if you have to do any activity in the folder or on the file.
    Regards
    Vijaya

  • How to write ModuleData process exit bean in the sender file adapter

    Hi all,
    I am referring to this blog:
    /people/sap.user72/blog/2005/07/31/xi-read-data-from-pdf-file-in-sender-adapter
    Can any one come across this situation like reading a PDF file and converting it to XML using XSL-FO. I am using NWDS, and selected Java Project and added libraries specified in that blog. I am in total confusion as what type of Project i should select. <b>I need a step by step procedure for developing XML file out of PDF referred in that blog.</b>.Thanks a lot
    regards,
    Ganesh

    Hi Ganesh,
    the how to on Adapter Modules in also available in SDN Libraray.
    Check this,
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3bdc14e1-0901-0010-b5a9-a01e29d75a6a">How to create Modules for the J2EE Adapter Engine</a>
    Regards,
    Bhavesh

  • Changing source file for file sender adapter in adapter module

    Hi guys!
    3rd party partner send us files, which are not acceptable by file adapter, so we need to implement (I suppose) adapter module in file sender adapter to correct the file format before it is taken by standard adapter. I have no experience in this development field. Could you give me:
    1, whether it is possible (changing file contents before it is taken by standard file sender adapter)
    2. any ideas, where to start with the development (pdf with info etc.)
    Thanx a lot!
    Olian

    <i>2. any ideas, where to start with the development (pdf with info etc.)</i>
    >>>>>
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/02706f11-0d01-0010-e5ae-ac25e74c4c81
    <i>1, whether it is possible (changing file contents before it is taken by standard file sender adapter)</i>
    >>
    yes you can achieve this in the logic in a module

Maybe you are looking for

  • Printing Page Numbers - From To

    Please can you help me. I am exporting a Crystal Report to PDF per customer through vb code. I need to print a maximum number of pages (that will fit in an envelope e.g. 20) and then continue printing his data into a second PDF where it left off. The

  • Final Cut Studio 2 Render Times Exponetianlly  Greater

    Used to have Final Cut Studio, loved it, render times were very reasonable, I upgraded 2 weeks ago to Final Cut Studio 2 and the render times are not outrageous. What used to take 5-10 minutes to render is 3 hours or so. Am I missing something?

  • How to get a photo into mySql with java

    I wonder how I can get a photo from a client-macine through web, into a mySql database. Communications too the web-user is going through a Servlet who is runnin in a Server, where the mySql database are too. I haved tryed this code-sequense but it do

  • HT1229 how do i save all my photos in iPhoto to a USB?

    How do I save and transfer all my photos in iPhoto to a USB?

  • Which application uses that file and prevents emptying the Trash?

    Hi, This has been with the OS for quite some time. Every once in a while, when trying to empty the trash, I get the error message: "The operation can't be completed because the item 'filename.estension' is in use." How useless is that? Now, if OS X t