Payload Swap Bean in SFTP adapter

Hi ,
I want to use Payload Swap Bean in SFTP Receiver adapter. Please tell me the flow.
Regards,
Manigandan

My Configuration in Adapter
File names in message

Similar Messages

  • Payload Swap bean not working

    Hi All,
    We are working on PI 7.11. We are trying to retrieve the attachments from the mails and convert them into files. We have enabled Keep Attachments in sender mail adapter. For swapping the payload we used payload swap bean. We referred the below blog
    /people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step
    We are just trying with XML attachments.
    The problem now is the payloads are not swapping. The file contains only the body of the mail not the attachment. I dont know what I'm missing. Please advice
    Regards,
    Malini

    Hi abhishek,
    Please find below the config done in adapters
    1     localejbs/AF_Modules/PayloadSwapBean                          Local Enterprise Bean     1
    2     sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean     Local Enterprise Bean     mail
    1     swap.keyName     Content-Description
    1     swap.keyName     Content-Disposition
    1     swap.keyValue     MailAttachment-1
    1     swap.keyValue     attachment;filename="MailAttachment-1.xml"
    Regards,
    Malini

  • Filename extension in Payload Swap bean

    Hi Experts
    I have a scenario Proxy to FTPS , where I have to send an excel attachment. I have used payload swap bean in receiver channel and it is working fine as I am now able to see attachment in final destination folder however since the file name is coming from ECC and we are using dynamic configuration in PI to handle this. excel attachment is missing the extention .xls when it is being triggered from ECC and therefore in FTP folder file is getting generated but with no extention.
    I have added the extention .xls (as per the MIME header) in dynamic config and also tried to use concat function to achieve this extention to be added as final name of the file but when I did above adjustments I can see the correct name being generated in Main payload in SAP PI receiver channel monitoring but not in final destination folder, file still looks same as earlier (without any extention) , I believe since I am using payloadswapbean in module whatever I am getting in Mainpayload is being swapped by excel attachment values but not sure why the correct extention is not being shown up at final destination folders.
    Please suggest how can I get the correct file name in destination folder with the help of SAP PI, I know I can do this if ECC will add .xls in attachment name.

    Hi Mohit,
    I have tested the same scenario and it is working with PayloadSwapBean and DynamicConfiguration in the mapping and the file name correctly placed in the target.
    Receiver File CC:
    Dynamic Configuration:
    Target Directory:
    If your file name correctly set in dynamic configuration then the target file will be created correctly.
    Regards,
    Praveen.

  • SOAP To File (Attachment swapping with Payload using Payload Swap Bean)

    Hi,
    I am working on the subject line. The scenario works well and good when I use the bean in Receiver File Communication Channel.
    The same bean configuration if I use on the sender SOAP the swapping of payload and attachment is not happening.
    Any Ideas.............
    Thanks,
    - Gujjeti.
    Edited by: Praveen Gujjeti on Feb 27, 2009 1:53 PM
    Edited by: Praveen Gujjeti on Feb 27, 2009 1:53 PM

    Hi Praveen,
    Clearly written in SAP help document :
    "SOAP sender Adapter does not support Moduls"
    so using Payload swipe bean is all van.
    Thanks
    Sunil Singh

  • Payload Swap bean Issues

    Hi
    I'm using the following values in my module tab -
    Module name - AF_Modules/PayloadSwapBean
    Module key - swapbean
    This is the sequence of the Module Configuration -
    swapbean      |       swap.keyName        |          Content-Disposition
    swapbean      |       swap.keyName        |           Content-Description
    swapbean      |       swap.keyValue        |           attachment;filename="MailAttachment-1.xls"
    swapbean      |       swap.keyValue        |          MailAttachment-1
    Thanks

    Is there no way of doing this?
    Of course there is a way
    Maybe i could put the swap bean on my file receiver adapter?
    No, if it is file to mail, use the module in at mail sender channel only.
    Try only this in your module parameter.
    swapbean | swap.keyName | payload-name
    swapbean | swap.keyValue | MailAttachment-1
    Regards,
    Prateek

  • Payload Swap Bean on 7.1

    has this been taken care?
    /people/stefan.grube/blog/2008/12/11/adjust-your-pi-70-adapter-modules-for-pi-71-in-15-minutes

    well then it seems interesting
    nothing really has changed for the payloadswapbean from 7.0 to 7.1
    ref: http://help.sap.com/saphelp_nwpi71/helpdata/en/2e/bf37423cf7ab04e10000000a1550b0/frameset.htm

  • Payload swapping

    Hi
    I have a rek where in I have to swap the payload with the attachement file (which is also a xnl file).
    I am using the file-xi-soap scenario. After going through the SDN I have come across a pay load swap bean.  But in almost all the example's it was used with mail adapter. SAP help no where mentioned that this module is only for Mail adapter. When I try to implement the same in SOAP Adapater, it never detects this bean and it is immaterial for that in what way you configure that.
    If anybody have implemented/worked similar kind of scenario could you plz advise whether this payload swap bean works with soap adapter ?
    Thanks in advace
    kumar

    Hi,
    PayloadSwapBean doesn't work with SOAP sender adapter.
    For SOAP receiver adapter you can still use PayloadSwapBean or can use Axis SOAP Adapter.
    For more info on Axis SOAP Adapter refer
    http://help.sap.com/saphelp_nw04/helpdata/en/45/a4a36de28552f7e10000000a1553f7/frameset.htm
    Thanks
    Amit

  • Receiving message after Payload Swap

    Hi All
    I am stuck with a scenario where we have to deliver a PDF as an inline message and not as an attachment. The PDF is sent from an R/3 system through a Proxy as an attachment and then this is sent back into the IE Pipeline using a SOAP Channel. This is where the attachment is swapped as the payload. The Message that we receive from R/3 contains five fields plus the attachments, but once the payloadswap is done the PDF should be the main payload. I have a sender SOAP channel to start the second stage flow, but not sure on what message Interface to use hereu2026
    Flow u2013 Summary
    Stage 1 (R/3 to XI)
    Proxy with PDF as an attachment
    Message routed to a receiver SOAP channel that send the message back on to the IE Pipeline
    The attachment is swapped in this channel
    Stage 2 (XI u2013 Receiver) - Receiver uses FTP
    Receive the payload using a SOAP sender channel
    This is where I am stuck. Do not know how the payload looks like and what message interface to use to receive this PDF message.
    I would really appreciate if you could give me some guidance on this issue. I am not able to find any proper documentation for the payload swap bean, is there one out there??
    Thanks & Regards
    Prav

    Hi,
    This is a nasty little trick but it works great.
    Create any Message Interface with any structure for inbound and outbound interfaces if required... then do your configuration assuming that the Message interface is correct.
    Please note that this will only work if you have no mapping so you should not specify an interface mapping in the interface determination step.
    The trick is based on the fact that XI does not validate the structure of a message.  If a message has an incorrect structure, it gets picked up in the mapping, which is not a problem if you don't use any mapping.
    Sounds strange but trust me, it works...
    Regards,
    Yaghya

  • PI 7.4 - SFTP Adapter - Logs successful - No File Written

    All,
    We are on PI 7.4 Dual stack -
    Scenario:
    IDOC to FlatFile via Reciver SFTP adapter - FCC is done by XML2Plain adapter module.
    The receiver comm channel logs are looking good. Please see below.
    But we dont see any file on the SFTP server.
    Please note that -
    1. We were able to write a file to the SFTP server without using XML2Plain bean
    XML2Plain module parameters.
    Receiver Comm Channel - logs:
    09/16/2014 04:03:38.457 PM Information Message was received by the messaging system. Protocol: XI URL: http://<PISERVER>:50000/MessagingSystem/receive/AFW/XI Credential (User): PIISDX1
    09/16/2014 04:03:38.459 PM Information Using connection SFTP_http://sap.com/xi/XI/SFTP. Trying to put the message into the receive queue
    09/16/2014 04:03:38.471 PM Information Message successfully put into the queue
    09/16/2014 04:03:38.474 PM Information The message was successfully retrieved from the receive queue
    09/16/2014 04:03:38.493 PM Information Delivering to channel: CC_GoodsMovementsFileRcv
    09/16/2014 04:03:38.493 PM Information MP: processing local module localejbs/AF_Modules/MessageTransformBean
    09/16/2014 04:03:38.493 PM Information Message status set to DLNG
    09/16/2014 04:03:38.494 PM Information Transform: using Transform.Class: com.sap.aii.messaging.adapter.Conversion
    09/16/2014 04:03:38.495 PM Information Transform: transforming the payload ...
    09/16/2014 04:03:38.496 PM Information MP: processing local module localejbs/CallSapAdapter
    09/16/2014 04:03:38.496 PM Information The message was successfully delivered to the application using connection SFTP_http://sap.com/xi/XI/SFTP
    09/16/2014 04:03:38.496 PM Information Transform: successfully transformed
    09/16/2014 04:03:38.498 PM Information Message status set to DLVD

    Hi Naveen
    There are a few typo errors in your configuration.
    First one is xml.conversionType - your value have a lower case p while it should be in upper case (SimpleXML2Plain)
    The next one is xml.endSeperator - should be xml.endSeparator.
    Try to make these typo corrections to see if it helps.
    Also, you have configured a lot of parameters that are not applicable for the SimpleXML2Plain conversion, i.e. documentName and documentNamespace, fieldNames, lastFieldsOptional, processFieldNames and structureTitle. These can be removed. You can refer to my blog below for the list of parameters that are applicable.
    FCC parameter reference for MessageTransformBean module
    Rgds
    Eng Swee

  • Using variable in Payload Zip Bean

    Hi to everyone, in my scenario I'm using receiver file adpater to create a zip file with payload and its attachment using Payload zip bean Module.
    In the parameter Transform.ContentType I insert:text/xml;name = 'test.xml' for the payload and text/xml;name = 'test.txt' for the attachment.
    I would zip theese files keeping their orinal file name, so is it possible to use the variable %filename% that contains the name of the message interface, or also the original file name?
    Thank's in advance for your help.
    Anassap_XI.

    Hi,
    Please check :
    /people/stefan.grube/blog/2007/02/20/working-with-the-payloadzipbean-module-of-the-xi-adapter-framework
    You find more information about the PayloadZipBean in SAP note 965256.
    *Pls: Reward points if helpful*
    Regards,
    Jyoti

  • Picking file in sequence/Queuing   in  sender SFTP adapter.

    Hi Experts,
    I am using SFTP adapter in sender side, it has no option of quality of service ( EOIO)  and queue name as we have in  FTP adapter configuration .Is there any  predefined  module provided by Sap which i use in the modules Tab in communication channel configuration to get the functionality of queuing ? just like we use  strictXMlto plain bean etc.
    I have 3 files which needs to  proccess in a sequence one after another in order.I CANT USE BPM or Even FTP because of Security reasons.
    please share you ideas.
    Regards,
    Anika

    Hi all,
    I have tried using AF_Modules/DynamicConfigurationBean in module tab present is the sender SFTP adapter with the attribute qualityOfService.
      parameter name                  Parameter value
         key.0                         insert http://sap.com/xi/XI/System/Messaging  qualityOfService
        value.0                        ExactlyOnceInOrder
    But in Moni i dont see the 3 messages didnt go in the same queue.But when i double click and open the dynamic configuration present in the soap header section i can see the values which i given in the module parameter.
    Is there any way i can change the quality of service to EOIO at runtime ? how to change the default EO to EOIO.
    Regards,
    Anika

  • Payload Zip bean

    Hi All,
    Is it possible to use Payload Zip bean module in Receiver File Adapter with File Content Conversion option?
    Iam getting the below error when iam trying to enable the communication channel with with Message Protocol as FCC and using AF_Modules/PayloadZipBean bean together.
    Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Exception in XML Parser (format problem?):'com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XMLParser: No data allowed here: (hex) 50, 4b, 3(:main:, row:1, col:3)(:main:, row=1, col=3) -> com.sap.engine.lib.xml.parser.ParserException: XMLParser: No data allowed here: (hex) 50, 4b, 3(:main:, row:1, col:3)': java.lang.Exception: Exception in XML Parser (format problem?):'com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XMLParser: No data allowed here: (hex) 50, 4b, 3(:main:, row:1, col:3)(:main:, row=1, col=3) -> com.sap.engine.lib.xml.parser.ParserException: XMLParser: No data allowed here: (hex) 50, 4b, 3(:main:, row:1, col:3)'
    However when i run the same scenario with the below single options, the interface is working fine
    Message Protocol: File; Module:AF_Modules/PayloadZipBean -->Worksfine
    Message Protocol: File Content Conversion; Module: None -->works fine
    From the Audit Log data, it's showing that the channel is trying to zip the file first and then its trying to do the FCC (its erroring out at this stage) when enabling both Zipping and FCC functions together.
    Any idea's on how to enable both these options together??
    Thanks
    Pradeep

    Hi Pradeep,
    Yes u r correct that if u specify both the payloadXipBean and FCC, this problem will arise.
    The reason is that the sequence of processing of the inbound payload.
    So what i suggest is, in receiver communication channel please change the sequence of processing of adapter modules., once and check it.
    first put the File then the AF_Modules/PayloadZipBean.
    It will work,not a problem.
    If still problem exists pl do post the prblm.
    Babu

  • Dynamic directory for Sender SFTP adapter

    Hi All,
      Hope everybody is doing fine.
      I need urgent help for below requirement for SFTP adapter ,client requirement is
      We have deployed the SAP security Add ons (PGP-SFTP) for one of the requirements in our PI system (PI 7.11 SPS 11).
      The SFTP adapter is configured to read files from the source system.As per the guidelines from the source system , we need to determine the source directory dynamically and then poll the files.
    The source folder structure looks something like this :
    \Archive\FROM_System\<yyyy>\<mm>\<dd>\Interface1
    \Archive\FROM_System\<yyyy>\<mm>\<dd>\Interface2
    That is we need to pick up the file every day from a new folder, say, for 24th July 2013 - \Archive\FROM_System\2013\07\24\Interface1
    25 July - \Archive\FROM_System\2013\07\25\Interface2
    Will the PI SFTP adapter support this kind of requirement? As this is sftp sender adapter Operating system level command option is also not available.
    Do we have any standard module/Bean to dynamically change directory name in the sender SFTP adapter?
    i will really appreciate your quick help.
    Thanks
    Monica

    Hi Monica,
    Yes it should work. Did you check this thread:
    http://scn.sap.com/thread/3376137
    Also refer to the following documentation link for the SFTP sender adapter (scroll down to the adapter specific message attributes):
    http://help.sap.com/saphelp_nwposc/helpdata/en/2e/99f0fb5a9e45b3b148c90e87fafcd1/content.htm?frameset=/en/c5/56eb8e7ec04435a0d54d96a18231e5/frameset.htm
    Best Regards
    Harald

  • Query on Content conversion for Receiver SFTP Adapter

    Hi Experts,
    We have the receiver structre as follows:
    <DT_Receiever>
    <Header>
    <field1>abc<\field1>
    <field2>1234<\field2>
    <\Header>
    <Detail>
    <field3>nhj<\field3>
    <field4>bshsrt<\field4>
    <\Detail>
    <\DT_Receiever>
    We should do content conversion for the above structure using SFTP adapter at the receiver end.
    Kindly provide us some tips in achieving the same.
    Thanks
    Suganya.

    Hi Suganya,
    You can use message tranform bean for ur case.
    U have to use "StructXML2Plain"
    Please follow below link for ur reference If you face any problem please let me know....
    http://help.sap.com/saphelp_nw04/helpdata/en/24/4cad3baabd4737bab64d0201bc0c6c/content.htm
    Thanks,
    Enivass

  • Sender SFTP adapter configuration

    Dear Experts,
    we have one requairement to convert CSV file to xml messages, we are using the sender SFTP adapter.
    kindly let me kow, how to convert csv to xml messages.
    Regards
    kiran

    Hi kiran kumar,
    There is no FCC in SFTP.you need to use Message Transfoem Bean in Module to convert csv file to XML.Configure module parameter as below:
    Transform.Class = com.sap.aii.messaging.adapter.Conversion
    Transform.ContentType = text/xml;charset=utf-8
    xml.conversionType = SimplePlain2XML / StructPlain2XML
    xml.processFieldNames = fromConfiguration
    xml.documentName = MyDocument
    xml.documentNamespace = http://xi.com/DocumentTest
    xml.documentNamespaceScope = root (default Value)
    xml.structureTitle (SimplePlain2XML) = MyTitle
    xml.recordsetName (StructPlain2XML) = MyRecordset
    xml.recordsetNamespace (StructPlain2XML) = http://xi.com/RecordsetTest
    xml.recordsetNamespaceScope (StructPlain2XML) = root (default Value)
    xml.recordsetStructure (StructPlain2XML) = NameA,1,NameB,*,NameC,1
    xml.recordsetStructureOrder (StructPlain2XML) = asc (for Ascending) / var (for Variable)
    xml.allowEmptyRecordsets (StructPlain2XML) = YES / NO
    xml.recordsetsPerMessage (StructPlain2XML) = * (default Value)
    xml.documentSkipFirstRows (StructPlain2XML) = 0 (default Value)
    xml.recordsetBeginSeparator (StructPlain2XML) = ~ (blank by default)
    xml.recordsetEndSeparator (StructPlain2XML) = ~ (blank by default)
    xml.keyFieldName (StructPlain2XML) = MyKey
    xml.keyFieldType (StructPlain2XML) = CaseSensitiveString / Float / CaseInsensitiveString / Integer
    xml.fieldNames (*) = MyKey,field-name1,field-name2
    xml.fieldFixedLengths or xml.fieldSeparator (*) = 3,3,3 or ~
    xml.endSeparator (*) = u2018nlu2019
    xml.beginSeparator (*) = u2018nlu2019
    xml. enclosureSign (*) = ~
    xml.enclosureSignEnd (*) = ~
    xml.enclosureSignEscape (*) = ,
    xml.enclosureSignEndEscape (*) = ,
    xml.enclosureConversion (*) = YES / NO
    xml.checkForXMLPredefinedEntities (*) = YES / NO
    xml.checkForISOControls (*) = YES / NO
    xml.addBeginSeparatorAsField (*) = YES / NO
    xml.addEndSeparatorAsField (*)  = YES / NO
    xml.fieldContentFormatting (*) = trim (default Value), nothing
    xml.keyFieldValue (*) = 001
    xml. keyFieldInStructure (*) = add (default Value)

Maybe you are looking for

  • Why don't I have permission to transfer my own files from an external hard drive?

    I have a brand new MacBook Pro with OS X Yosemete installed. This is my first Mac; before this I've always used PCs. I have a music library of about 35,000 songs (around 165 gigs) which I have stored on an external drive. The drive is actually an old

  • Sending of RFQ Form through Mail

    Hi all, I have requirement where in .... When i create a RFQ(in tcode ME41) or make any changes (in Tcode me42). The RFQ Form should get converted into PDF and go as an attachment in the mail to the vendor. Can anybody help...regarding this!! regards

  • 8330 won't sync with my Vista Outlook Calender

    Hello All and thanks for the advanced support, I am having trouble syncing my 8330 and my Vista Calender for some reason. Everything else has sync'd perfectly. I am using V4.5 currently for the Desktop manager. Basically I can not figure out the corr

  • Badi ME_PROCESS_PO_CUST-PROCESS_ITEM

    Hi, I have using the badi ME_PROCESS_PO_CUST-PROCESS_ITEM and the works fine. But i need to write in a item field that the status is "display", in that status the badi does not write in the field. To write i have to change the status to "optional ent

  • Mark tables

    Hello! I get a ID dokument with 200 tables in 1 box. now 1 want to mark 50 tables, but it doesn´t work. I can mark only one table but I have to mark more then one.("shift" doesn´t work) How it works? Please help me. thx