MessageTransformationBean

Hi All,
I am using the Messagetransformation bean in my JMS adapter to convert a flat file to an XML.
However, I was told to use the Seeburger BIC instead as it can log the orginal flat file message as well for future referecne.
Do you guys have any idea to log the same original flat file in PI before XML conversion without creating any custom modules?
Thanks.

>> However, if there is some other easy way from SAP
No, SAP doesn't provide any standard way.
Using Seeburger for your case would be very easy. You just have to use BIC module in the module chain and add module parameters. Thats it. The module is already available with Seeburger, so no new module required.
>>Also, I heard from Seeburger Guys that while upgrading the Seeburger 10 1.8 version, there is no guarantee that all BIC maps created in Ver 1.7 would work without any issues.
I have done Seeburger 1.7 to Seeburger 1.8 upgrade. There was no such issues. But this is a separate question. For your original issue, the BIC module is standard module provided by Seeburger and you are anyway not using any BIC mapping. So don't worry about upgrade.
Regards,
Prateek Raj Srivastava

Similar Messages

  • MessageTransformationBean Problem

    Hi Guys,
    I have a .txt file with below structure
    Plant|Contact_ID|Contact_Name
    017S|96630|GIL1
    017S|96630|GILami
    017S|96630|ssss
    017S|96630|ffff
    The first line is Header Value and Rest of the lines are Item values.
    and I dont want the Header Value into my system during conversion.
    If i was using File Adapter FCC parameter, i would easly use Document Offset paramet with value to 1. and i will have a simple structure for conversion (only item values will be read into the system).
    How to perform the samething using MessageTransformationBean?
    I dont want to send the Header information to receiver system (prxy connection).
    PS: I am not using any mapping here as well. and i cannot ask Source system to not to send the Header LIne in the text file.
    Do help me. i know its bit tricky one.

    Hi Got the answer by myself.
    I am updating here so that others can benefit from it.
    if the Module parameter xml.conversionType =StructXML2Plain
    then use the Parameter: xml.documentSkipFirstRows = <specify number of rows to be omitted>
    If the Module Parameter  xml.conversionType = SimpleXML2Plain
    then insert value for pameter xml.processFieldNames = fromFile
    Description: *fromFile* means that the field name information is located in the header line of the file to be converted.
    hope this helps.
    Prakash.
    Edited by: senthilprakash selvaraj on Aug 3, 2011 11:55 AM

  • Object not found in lookup of MessageTransformationBean

    Boa tarde pessoal,
    Estou recebendo um erro na checagem do status da sefaz Goias conforme abaixo:
    com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.engine.services.jndi.persistent.exceptions720.NameNotFoundException: Object not found in lookup of MessageTransformationBean
    Configurei os transformation da seguinte forma:
    localejbs/AF_Modules/MessageTransformationBean   Local Enterprise Bean  transformToSEFAZ
    localejbs/AF_Modules/MessageTransformationBean   Local Enterprise Bean  transformFromSEFAZ
    transformToSEFAZ Transform.ContentType application/soap+xml; charset=utf-8
    transformFromSEFAZ Transform.ContentType   text/xml; charset=utf-8
    O que pode estar acontecendo?
    Abs,
    Josue Neto

    Josue,
    Você está usando localejbs/AF_Modules/MessageTransformationBean quando deveria utilizar localejbs/AF_Modules/MessageTransformBean
    []'s
    JN

  • MessageTransformationBean in JMS Adapter

    Hi Experts,
    Proxy message is coming from ECC to PI and at receiver side JMS adapter is used.Source structure has 2 fields .one is filename and payload.Actual XML content will be sent as string in Payload field.In PI JMS adapter,I am using message transformation bean and sending only the XML content to target.Once the data is received at target end,? is added at the beginning of first line like below.
    ?<?XML version=.........................>.
    Why is the ? received in target system.How to fix this in PI.
    Regards,
    Karthiga

    Hi
    If you are working on 7.1 or higher version of PI then you can use "Return as XML" option in mapping to send the xml as string in the field.
    Regards
    Osman

  • Sender "Mail" adapter - CSV file attachment

    Hi there
    I'm looking for some help in configuring a sender mail adapter that receives ".csv" files. I did read some blogs that mention using the "PayloadSwapBean" module to read the mail attachment instead of the mail content. My problem is to now convert the ".csv" file into a message. Is there a module that I can use ( is it the "MessageTransfomBean" ) and how. Any help would be appreciated.
    Thanks
    Salil

    Hi Salil,
    If you want to send a mail with a body and attachments, the message sender HAS to provide an XI message with attachments. I doubt a CSV file does justice.
    As Renjith said you need to convert CSV to XmL.
    A short description about the Standard Modules:
    MessageTransformationBean is a standard module used to apply the XSLT mapping to the adapter module by using <i>Transform.class</i> ( This xslt mapping is done to create a mail package, Dont confuse with the actual mapping in your case this is NOT for converting csv to xml).
    Also this module can be used to change the name and type of payloads by using <i>Transform.contentType</i>, <i>Transform.contentDisposition</i>, <i>Transform.contentDescription</i>.
    PayloadSwapbean is a standard module for replacing payloads with other payloads (SWAP)
    If you want to give each attachment a certain name use Parameters, <i>swap.keyname</i> for name of the payload and <i>swap.keyvalue</i>.
    I Hope the use of standard modules is understood.

  • Sender Mail adapter configuration with attachment

    Hi,
    I read the below blog regarding the mail adapter
    /people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step
    I have the same requirement but the attachment file is not an XML, it is CSV file so in the module tab if I change like below is it enough?
    TRANSFORM    swap.keyValue  attachment; filename=u201DMailAttachment-1.csvu201D     (I think MailAttachment-1 is the file name, am I correct?)
    If I change like above is it ok? or any other thing is required, Could you please give me the inputs
    Thanks
    Ramesh

    I have the same requirement but the attachment file is not an XML, it is CSV file so in the module tab if I change like below is
    it enough?
    PayloadSwapBean will ensure that the input to the mapping is from the attachment.....in the blog the attachment is in XML format and hence there was no need for any conversion.....yours is however a CSV file so you need to convert it to XML first and then do the further processing.....you can either use the MessageTransformationBean as shown in this blog:
    /people/gabrielsagayaselvam.panneerselvam/blog/2009/08/31/solve-key-field-problem-using-structplain2xml-in-messagetransformationbean
    Or write your own module code for the conversion.
    Regards,
    Abhishek.

  • Error while sending excel sheet as attachment to Mail Receiver

    Hi everyone,
    I am facing the below error when I am trying to send data to Mail receiver adapter. The attachment is excel sheet.
    Delivery of the message to the application using connection Mail_http://sap.com/xi/XI/System failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: Object not found in lookup of MessageTransformBean.: com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Object not found in lookup of MessageTransformBean..
    I don't understand where the problem is. This has been running since long time and last month we have changed our web dispatcher details. I hope everything is fine. But not sure the root cause for this issue.
    Please help me in resolving this.
    Thank you.
    Regards
    Bhanu T.

    Check if this helps: MessageTransformBean module
    Confirm that you have configured the MessagetransformationBean properly.
    Are you trying to convert some payload into Excel and send it as an attachment in the Mail CC? If yes, then I hope that you have included the correct Content_type value.
    Check this for more info on Content_type: /people/community.user/blog/2006/09/08/email-report-as-attachment-excelword
    Regards,
    Abhishek.

  • Problem in Sending  .txt as an attachment to mail

    Dear Experts,
         I am working on a file to mail scenario. I have searched a lot in sdn, but could not locate the exact answer for the same.
    I am using file adapter to pick up a txt file from a location and supposed to send this as an attachment to mail(in box).
    My scenario is ready, have configured the IR and ID. there are only 5 fields at the sender side, have done one to one mapping at the receiver side.
    question is
    1)  Do I have to use content conversion at the sender side in order to read the file in XI or....
    2)  Can i send the payload of the message as an attachment? Do i have to configure anything else for the same for eg
    3) where i have to configure my sender and receiver, has to be in mail adapter or in xml payload?
    Kindly provide your valuable suggestions or  idea to proceed , as i am confused how to proceed wz the same.
    Thanks
    Virendra

    Hi,
    1) Do I have to use content conversion at the sender side in order to read the file in XI or....
    Since ur source is a .txt file... to convert it to a xml format u need to use the FCC in file adapter.
    2) Can i send the payload of the message as an attachment? Do i have to configure anything else for the same for eg
    You can send the payload of a message as a attachment.
    I hope u dont want to send the XML structure as a attachment... In receiver...first u have to convert the XML to a .txt file and then
    u need to send this .txt as a attachment..
    If this is ur requirement u can do it by using the inbuilt EJB's and  a Mail adapter in receiver.
    The inbuilt bean is MessageTransformationBean... which can convert a XML structure a Text file.
    and then u have to pass it to Mail adapter... Please keep in mind the sequence of processing.
    If clarification needed u can put a post again
    3) where i have to configure my sender and receiver, has to be in mail adapter or in xml payload?
    U need to configure both sender and receiver. Sender is a file adapter and receiver is a Mail adapter.
    Decide first u want to use mail package or not..
    For ur scenario u can do both ways using Payload or XIALL..
    Babu

  • MailReceiverAdapter problem using XHeaderName1

    Hi all,
    i got stuck in a problem with dynamic Headers in the MailReceiveradapter.
    I try to name a file which is sent as an attachment dynamically, staticly this works fine using the MessagetransformationBean.
    I try to use the Field "XHeaderName1" to move the Filename as Paramter to the Adapter. In the DynamicConfiguration i have created the Parameter "XHeaderName1" in the Namespace "http://sap.com/xi/XI/System/Mail", and assigned the desired Value to it. After sending a Message i have an entry in the DC that looks like this:
    <SAP:Record namespace="http://sap.com/xi/XI/System/Mail" name="XHeaderName1">Application/EDIFACT; filename="dynamic_filname.edi"</SAP:Record>
    So far so good.
    In the Configuration of the MailReceiverAdapter i select "Use Adapter-Specific Message Attributes" and "Variable Transport Binding" as mentioned here:
    http://help.sap.com/saphelp_nw04/helpdata/en/6b/4493404f673028e10000000a1550b0/frameset.htm
    I filled the Field "Variable Header (XHeaderName1)" with the Value "Content-Type" and activated all changes.
    But when i send the Message the Header just has an "Content-Type: application/xml".
    What im i doing wrong? Isn't is possible to name an Attachment dynamically? It's not possible to use the Mail-Package because the Payload isn't an XML-File. We use a module in the adapter to convert from XML to Edifact, so the complete Payload is converted to Edifact, which works fine.
    Any hints are very welcome.
    Best regards
    Ingo

    Hi Stefan,
    thanks for the reply. I think i have to find another way to fix this problem
    Regards,
    Ingo

  • SOAP Axis sender with CSV file attachment

    Hi Experts,
    I have a requirement where I receive a CSV file attachment from a Web Service post ( i.e a SOAP sender with attachment). I decided to use SOAP with Servlet(Axis) protocol, since standard SOAP sender does not allow modules to be used.
    I am able to test this interface through SOAPUI with attachment to the point where I can get the attachment payload as my main payload in IE, but it fails in mapping since CSV needs to be converted to XML. I have following queries for proceeding ahead with this scenario:
    1. How do I convert the CSV attachment to XML inorder for mapping to be used in IE. Is there a standard axis handler available for this ???? Also where should this handler be called in the sequence of Axis modules ???
    2. Can I use MessageTransformationBean for converting plain to XML ??? If yes where should this module be called in the sequence of Axis modules. I tried using this module between the CallSapAdapter and the first AdapterBean but it returns exception in SOAPUI saying " Messaging exception: No Main"
    3. Is there a blog available which illustrates about using additional modules/handlers in Axis. I have had a look at the FAQ note of Axis but it just gives the overview.
    Thanks.
    Siddhesh S.Tawate

    Solved :).
    1     AF_Adapters/axis/HandlerBean                     Local Enterprise Bean                              xireq
    2     AF_Adapters/axis/AFAdapterBean                     Local Enterprise Bean                              afreq
    3     localejbs/AF_Modules/MessageTransformBean    Local Enterprise Bean                     Plain2XML
    4     CallSapAdapter                                          Local Enterprise Bean                              sap
    5     AF_Adapters/axis/AFAdapterBean                    Local Enterprise Bean                             afresp
    6     AF_Adapters/axis/HandlerBean                    Local Enterprise Bean                             xires
    Above sequence worked. I guess I was missing some parameter in content conversion earlier.
    Thanks.

  • SOAP receiver adapter configuration issue

    Hi Everyone,
    When I am trying to excute a sync scenario from SAP<>XI<>Webservice from Integration engine , I am getting the below error message.
    Error while sending message: com.sap.aii.af.ra.ms.api.DeliveryException: SOAP: response message contains an error XIAdapter/HTTP/ADAPTER.HTTP_EXCEPTION - HTTP 415 Cannot process the message because the content type 'text/xml; charset=utf-8' was not the expected type 'application/soap+xml; charset=utf-8'.
    In the receiver SOAP adapter, I have configured Transformation module where I kept the MessageTransformationBean in processing sequence as a priority and also provided the module configuration.
    ModuleKey: transform
    ParameterName: Transform.ContentType
    Parameter Value: application/soap+xml;charset=utf-8.
    But still get the above error message in the communication channel. I am using certificates in my configuration that were deployed in visual Admin.
    In the adapter configuration, I have just provided the Target URL, Configured User Authentication, certificate authentication and SOAP action.
    Can anyone help me.. how to rectify the issue.....
    Thanks in advance,
    Hareen

    HI Hareen,
    I decided to give SOAP1.2 using the standard SOAP Adapter a try
    There are a few noticeable differences between the request message of SOAP1.1 and SOAP1.2
    1.) SOAP 1.1 uses a different namespace from SOAP 1.2. For SOAP 1.1 it is "http://schemas.xmlsoap.org/soap/envelope/" while for SOAP 1.2 it is "http://www.w3.org/2003/05/soap-envelope".
    2.) SOAP 1.2 does not use SOAPAction in its header.
    3.) Content type is also different, for SOAP 1.1 it is "text/xml" while for SOAP 1.2 it is "application/soap+xml"
    So a sample request for SOAP 1.1 would be like this:
    Content-Type: text/xml;charset=UTF-8
    SOAPAction: "http://sampleaction"
    While for 1.2 it is:
    Content-Type: application/soap+xml;charset=UTF-8;action="http://sampleaction"
    The SOAP action is moved to the content type (experts please correct me on this).
    Based on the differences, you need:
    1.) Construct the correct SOAP Envelope for request message mapping and remove it for the response mapping
    2.) Use MessageTransformBean to change content type
    3.) Leave SOAPAction as blank
    I think dynamic soap action is no longer possible because the action is hardcoded in the module configuration (please correct).
    Hope this helps,
    Mark

  • File to mail .pdf attachment

    I have a scenario file to Mail and in the file vendor no 1234 then 1234.pdf  in the file net. so when vendor no 1234 appears then i have to pick the 1234.pdf from filenet and attached to the mail. How can we do this scenario. Could you please help me this one.
    and one more how can i add the link in the mail body. i did one file to mail scenario. body is not showing . that one also showing as attachment. how can i do this.
    Advanced Thanks
    Regards
    Sundher

    Hi Sundher,
          Hey configure a scenario like this File -> XI -> Mail. In this, u pick up the fiile using file adapter and send it to XI. For sending the files as an attachment, provide the MessageTransformationBean in the receiver mail adapter and pass the parameter 'ContentDispostion' with its value set as attchment.
    For more details u can check the following link
    <a href="https://websmp209.sap-ag.de/form/sapnet?_SHORTKEY=01200252310000071155&_SCENARIO=01100035870000000202&_OBJECT=011000358700004556712005E">https://websmp209.sap-ag.de/form/sapnet?_SHORTKEY=01200252310000071155&_SCENARIO=01100035870000000202&_OBJECT=011000358700004556712005E</a>
    Regards,
    Akshay

  • How to send SOAP Message with attachments?

    Hi All,
    I am working on a SOAP to RFC Scenario With specific requirement of handling the attachment(Mainly Excel Attachments) at the Sender SOAP Adapter.
    Kindly Suggest.
    I found lot of theoritical stuff but no practical scenario.
    Regards,
    Sachi

    Hi Sachi,
    To handle attachment in SOAP sender adapter  first of all you will have to use the AXIS message protocol.
    Then by using MessageTransformBean you can handle the attachment.
    1) Check this link for the module processing sequence used to get the attachment from SOAP
    SOAP Axis sender with CSV file attachment
    2) Check this blog which will help you on the usage of MessageTransformBean
    Solve Key Field Problem using StructPlain2XML in MessageTransformationBean!!
    http://help.sap.com/saphelp_nw04/helpdata/en/24/4cad3baabd4737bab64d0201bc0c6c/frameset.htm
    using MessageTransformBean you can handle only the text file attachments like comma separated file, pipe separated, fixed lengths etc. But if you are looking to handle a excel file you will have to use a java mapping to get the data from excel attached file. for this have a look at this following blog by Shabarish:
    Excel Files - How to handle them in SAP XI/PI (The Alternatives)
    Do remember to use SOAP Axis adapter and to tick the keep attachment option.
    Hope this helps.
    Regards,
    Aravind

  • How to send file with original name through Mail adapter

    I have to send file with original name as attachment through Mail Adapter. I am picking the file from FTP server through File Adapter. I am not using message mapping because files do not have any standard format.

    Hi,
    Have you solve your problem ?...
    I have exactly the same scenario : pik up a file (file adapter) and send it in attachment by mail adapter without mapping (no IR)...
    I activated Adapter specific paramters properties in the File adapter sender and i can see the FileName tag in DynamicConfiguration section of SoapHeader in SXMB_MONI...
    I want to use MessageTransformationBean... BUT, how can i 'access' to FileName tag ???...
    Thanks...
    I setup modules like this :
    AF_Modules/DynamicConfigurationBean 1
    AF_Modules/MessageTransformBean rename
    sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean mail
    1 key.0 write http://sap.com/xi/XI/System/File FileName
    1 value.0 message.FileName
    rename Transform.ContentDisposition attachment;filename=message.FileName
    rename Transform.ContentDescription message.FileName
    rename Transform.ContentType application/csv-tab-delimited-table;name=message.FileName
    But my file name attachment is message.FileName....
    Edited by: Emmanuel JORAND on Sep 29, 2008 9:23 PM
    Edited by: Emmanuel JORAND on Sep 29, 2008 10:25 PM

  • Routing based on header record RECPOR in IDOC File

    I am working a flat file (actually, its an IDOC file) that will enter the configuration scenario through a Seebruger SFTP adatper.  Since this is a flat file, and not XML, I need to convert this to XML prior to doing content based routing in the receiver/interface determination.
    I am most concerned with the RECPOR field.
    RCVPOR : Receiver port
    internal data type : CHAR
    Internal length : 000010 characters
    Position in segment : 024, Offset : 0263. external length : 000010
    The scneario is a simple passthrough.  What I envision doing is converting the IDOC Flat file to an XML structure, then doing content based routing on the one field I am interested in, as mentioned above.
    Is there a way to do this without modifying the payload in teh sender/receiver channels, or am I going to be forced to doing content conversion with MessageTransformationBean?
    Since all of my routing will be done on 10 characters, I see breaking the file up into 3 fields...characters 1-263, 263-273, 273-EOF does some one have a sample of how to separate this, and how to recombine the values in the receiver?

    If I wanted to break the file up into 3 elements in a simple XML strcuture....
    I know its possible to do this using fixed field lengths...is there a method to break that file up int a simple xml structure with, lets say, 3 elements....
    Where field 1 contains from the start of the file (1) thorugh say character 31.  Filed 2 contains 31-41 then the third field to contain the rest of the file?  These 'flat files' could be any one of a dozen or so IDOC files that are being sent to me from an external EDI Translator.

Maybe you are looking for

  • All of a sudden today I can't attach files in gmail using Mozilla...can in IE & Chrome.

    I have cleared cache, cookies, defragged, cleaned computer. I have looked at all the solutions on line and can't figure out why all of a sudden I can't attach files in Mozilla but can using IE & Chrome. Please help. I have not done anything between w

  • OCI8 IN WINDOWS SERVER 2008 x64

    Good morning, I'm trying to configure Oracle with php in Windows server 2008, but when I try to enable Oci8, the php log shows this error: "Warning: PHP Startup: Unable to load dynamic library 'C:\Program Files (x86)\PHP\ext\php_oci8.dll' - %1 is not

  • Fi module

    fi life cycle

  • Tax ID Matching Issues

    About ten days ago, we registered for an account with Apple to sell iBooks in the iBookstore.  The application requires the legal name of the organization as well as a Tax ID.  In our case, we have an EIN.  Last Friday, I received a message from Appl

  • Using Collections and initialisation

    I am not in the IT business but I am trying to teach myself Java using the JBuilder IDE. I am creating an application which will contain the personal details of each individual user along with a record of the training/work they undertake on different