File content conversion using SOAP adapter

Hi,
     I'm using a receiver SOAP adapter in my IDOC to file scenario and need to do file content conversion in the receiver side.
Are any standard modules available for file content conversion in the SOAP adapter or do I need to write custom EJB modules for this.
Please note that I have to use a SOAP adapter, can't use any other adapter.
Thanks in advance
Shiladitya

Hi,
XML Document Conversion Type
●      Enter recordTypes as the parameter name.
Under Parameter Value, enter the complete, comma-separated list of all names of recordset types that occur in the document to be converted.
If you decide to use this method, you can define a different conversion type for each recordset type that occurs in the XML document.
For example, you could name the recordset types as follows: RecordType1,RecordType2,RecordType3.
●      Enter singleRecordType as the parameter name.
Under Parameter Value, enter the name of a recordset type that is to be used to convert all elements that occur in the XML document.
If you decide to use this method, define the same conversion type for each recordset type that occurs in the XML document.
You must enter exactly one parameter only. Whichever parameter you choose, you automatically exclude the second parameter.
You define further parameters for each recordset type.
In the remainder of this documentation the parameters are specified by the prefix <RecordType>. In your configuration, replace this name with the name of the recordset type.
Conversion Type List with Separators
&#9679;      <RecordType>.fieldSeparator
Enter the field separator that is written between the individual fields of a record.
This specification is mandatory.
Conversion Type List with Fixed Field Length
&#9679;      <RecordType>.fieldLengths
Specify a character string that contains a list of fixed field lengths that are separated by commas and which determines the number and the length of fields generated in the text file.
For example, you want to write a recordset with three elements that have field widths of five, ten, and fifteen characters. Enter:
<RecordType>.fieldLengths = 5,10,15
This specification is mandatory.
&#9679;      <RecordType>.fieldLengthExceeded
Specify how you want to handle fields that exceed the configured field length. Permitted values for the parameter value are:
&#9675;       error (default)
Interrupts processing of message with error
&#9675;       cut
Cuts off superfluous characters
&#9675;       ignore
Ignores the field length restriction
Further Entries
&#9679;      <RecordType>.beginSeparator
Enter a string. The string is placed in front of the first field of a recordset.
&#9679;      <RecordType>.endSeparator
Enter a string. The string is appended to the last field of a recordset as a concluding character. The default is \r\n.
&#9679;      contentType
Enter the MIME type of the converted payload. The default value is text/plain.
&#9679;      addHeaderLine
Only define this parameter if you have already defined singleRecordType.
Define whether a header line is to be added to the result of the conversion.
&#9675;       none (default)
Does not insert a header line
&#9675;       fromXML
The header line is generated from the element name of the first recordset of the XML document
&#9675;       fromConfiguration
The header line is determined by the configuration parameter headerLine.
&#9679;      headerLine
Only define this parameter if you have already set addHeaderLine=fromConfiguration.
The value that you define is placed in front of the result of the conversion as a header line.
&#9679;      fixedLineWidth
Enter the maximum line length n (in characters) that can be written to the resulting document. The separator specified by lineSeparator is inserted in the resulting document every n characters.
&#9679;      lineSeparator
Only define this parameter if you have already defined fixedLineWidth.
Specify the string that is written to the resulting document at the end of each line that is written with fixedLineWidth. The default is \r\n.
Use of Special Characters
You can use special characters in the following parameters: <RecordType>.fieldSeparator, <RecordType>.beginSeparator, <RecordType>.endSeparator, headerLine, and lineSeparator.
&#9679;      Tabulator: \t
&#9679;      Carriage Return (CR): \r
&#9679;      Line Feed (LF): \n
&#9679;      Arbitrary character: \x<code>
<code>indicates the hexadecimal character code of the character to be displayed.
Regards,
Phani

Similar Messages

  • Regaring File to IDOC  Useing SOAP Adapter

    Hi ,
        Can any one please forward me an File to idoc Useing SOAP ADapter Senario.IF i am wrong please send me a simple senario of useing SOAP Adapter.
    Regd's
    Raj

    Hi Raj,
    I think i will give you some more information about SOAP adapters,So Please go through the link below and follow the steps mentioned in it while defining the web service.Then you will get to know the actual use of a SOAP adapter.
    <a href="http://help.sap.com/saphelp_erp2004/helpdata/en/31/daa0404dd52b54e10000000a1550b0/content.htm">Defining Web Services</a>
    Sending a Simple SOAP envelope to XI via HTTP using ASP
    https://www.sdn.sap.com/sdn/weblogs.sdn?blog=/pub/wlg/1442 [original link is broken]
    More links for SOAP Adapter:
    /people/siva.maranani/blog/2005/09/03/invoke-webservices-using-sapxi
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/fdca3f01f33e1ce10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/69/a6fb3fea9df028e10000000a1550b0/frameset.htm
    You can create SOAP Request from WSDL using the following tool.
    http://www.gotdotnet.com/Community/UserSamples/Details.aspx?SampleGuid=65a1d4ea-0f7a-41bd-8494-e916ebc4159c
    You've to expose your outbound message interface as a WSDL which can be used by say EP.
    Also go thru the following threads
    Re: WebService
    Re: SOAP Client for Synchronous Scenario
    Re: How to test a webservice as a standalone?
    Also check this Pdf for the Receiever SOAP Adapter configuration:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/40728f7b-0401-0010-d9bc-8c73884a3789
    Regards,
    abhy

  • Query regarding file content conversion using file adapter

    Hi All
    I have a question regarding file content conversion in file adapter.
    I have a file coming in the following format.
    AA,111,222,333
    BB,444,555,666
    CC,777,888,999
    My incoming message structure has a hierarchy. The CC record is a structure part of BB record. BB record is a structure part of AA record. It is like this:
    AA,111,222,333
    <<BB,444,555,666>>
    <<<<CC,777,888,999>>>>
    After file content conversion, in the resulted xml, i am getting a flat hierarchy instead of nested hierarchy.
    Is it possible to get a nested hierarchy as a result of file content conversion?
    Please let me know
    Thanks
    Chandra

    Hi Udo
    According to your suggestion, I am trying to use mapping.
    I am getting a flat file and i am reading it.
    This is my source structure:
    AA,11,22,33
    BB,44,55,66
    CC,77,88,99
    This is my required targer structure:
    AA,11,22,33
    <<BB,44,55,66>>
    <<<<CC,77,88,99>>>>
    To explain this, BB record can have multiple records of CC records.
    AA records can have multiple records of BB record.
    I am using removecontext node function.
    CC (Source)  (removecontext)-> CC (target structure)
    But here, when i rightclick on source CC field in the mapping editor, i cannot see any other context except root node. So, how can i proceed here??
    Many Thanks
    Chandra

  • Supress Column Heading - File Content Conversion in Sender Adapter

    Hi,
    Let me give a more clear picture about my scenario.  I need to convert CSV File to XML output:-
    My source file has column heading and values.  The sample data is mentioned hereunder:-
    PERNR;KID;PNALT;NACHN;NAME2;VORNA
    ;1200;1200;Angus
    I have created a data type as under:-
    DT_LegacyEmployee (Category - Complex Type)
         Employees (Category - Element, Occurence - 1)
              Header (Category - Element, Occurence - 0...1)
                   PERNR_H
                   KID_H
                   PNALT_H
                   NACHN_H
                   NAME2_H
                   VORNA_H
              Employee (Categroy - Element, Type - DT_LegacyEmployee_Row, Occurence - 0...unbounded)
                   PERNR
                   KID
                   PNALT
                   NACHN
                   NAME2
                   VORNA
    The file conversion parameters in the file sender adapter are mentioned hereunder:-
    Document Name - MT_LegacyEmployee
    Document Namespace - http://abc.com/xi
    Recordset Name - Employees
    Rescordset Structure - Header,1,Employee,*
    Recordsets per Message - 1
    Key Field Type - String (Case Sensitive)
    Employee.fieldSeparator - ;
    Employee.endSeparator - 'nl'
    Employee.fieldNames - PERNR,KID,PNALT,NACHN,NAME2,VORNA
    I dont' have a key field value.  How do we remove the header and show only the values in the xml output.  I have searched the forum topics as well checked many blogs related to file content conversion, but nothing helped.  Kindly advice how to fix this issue.  Thanks in advance.
    Regards.
    Praveen

    Hi Praveen,
    Change your File Adapter as below
    Document Name - MT_LegacyEmployee
    Document Namespace - http://abc.com/xi
    Recordset Name - Employees
    Rescordset Structure - Employee,*
    Recordsets per Message - 1
    Key Field Type - String (Case Sensitive)
    Employee.fieldSeparator - ;
    Employee.endSeparator - 'nl'
    Employee.fieldNames - PERNR,KID,PNALT,NACHN,NAME2,VORNA
    There is no need for the Header required in the data type.
    DT_LegacyEmployee (Category - Complex Type)
    Employees (Category - Element, Occurence - 1)
    Employee (Categroy - Element, Type - DT_LegacyEmployee_Row, Occurence - 0...unbounded)
    PERNR
    KID
    PNALT
    NACHN
    NAME2
    VORNA
    Now the trick is in the mapping program
    Lets assume your mapping looks like
    MT_LegacyEmployee ---> MT_TargetEmployee
    - Employees ---> Records
       - Employee ---> Record
         - PERNR  ---> TargetPERNR
         - .. so on
    When you do a mapping from Employee ---> Record apply the following logic.
    (PERNR)--->
                 (TestEquals =) --->(NOT)--->
    (Constant) --->                                (IF)
    (PERNR)                       (IF Without Else) ---> (Record)
                                                   (THEN)
                                (Employee)--->
    When doing this make sure RightClick on PERNR and Select Context ---> Employees.
    By default context would be from Employee and it will give you an error of XSD format. So make sure you are changing the context.

  • File Content Conversion in Receiver Adapter Help

    Hi,
    I need to have a flat file at receiver side with the following structure.
    Product
    LineItem
    Notes
    Product
    LineItem
    Notes
    But i am getting as
    Product
    Product
    LineItem
    Notes
    Notes
    Please suggest me the changes to be made in File Content Conversion Parameter
    Your Help will be appreciated.
    Thanks in advance,
    Ashok

    Singh,
    I think we wont give field names in the receiver file adapter. Please find the details below:
    RecordSet Structure: Product,LineItem,Notes.....
    Parameters:
    Product.fieldFixedLengths:30,10...
    Product.endSeparator:'nl'
    LineItem.fieldFixedLengths:30,10..
    LineItem.endSeparator:'nl'
    Notes.fieldFixedLengths:30,10...
    Notes.endSeparator: 'nl'
    Thanks
    Ashok

  • File content conversion using the Meaasge Transform bean

    Hi
    I have a scenario file with pipe delimited file.
    What are content conversion parameters required
    venkat

    Sedamkar,
    In file content conversion you give these parameters;
    Header.fieldSeparator:|
    Header.endSeparator:'nl'
    DetailRecord.fieldSeparator:|
    DetailRecord.endSeparator:'nl'
    TrailerRecord.fieldSeparator:|
    TrailerRecord.endSeparator:'nl'
    In recordset structure you give as:Header,1,DetailRecord,*,TrailerRecord,1
    Regards,
    ---Satish

  • Not able to see Message Content while using SOAP Adapter

    Hi freinds
    I am working on following scenario
    Web Application ---> SOAP Adapter ---> XI ---> RFC Adapter ---> SAP R/3
    Web application is using the WSDL file which I generated from XI.
    Now everything is going fine & I am even getting the XML data in SAP R/3 ( Order is getting created ) but in RWB under message monitoring I am getting " <b>Content of message deleted to save memory</b> " for message content.
    Even in SXMB_MONI for that timeframe it is showing " <b>No messages available for selection</b> ".
    Can you tell me why I am not getting the message content & the message itelf in SXMB_MONI. What I need to do in order to get the message content while monitoring.
    Best Regards
    Lalit
    P.S --> I am able to see the message content if I am using File Adapter in place of SOAP Adapter

    Hi
    After adding the LOGGING_SYNC parameter with value 1. I am able to see the messages in sxmb_moni but they have status as " System Error - Restart not possbile " with the following error ::
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Call Adapter
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="INTERNAL">CLIENT_RECEIVE_FAILED</SAP:Code>
      <SAP:P1>402</SAP:P1>
      <SAP:P2>ICM_HTTP_TIMEOUT</SAP:P2>
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText><html><head><title>SAP Web Application Server Error</title> <style type="text/css"> body { font-family: arial, sans-serif;} </style> </head> <BODY text="#172972" link="#808080" vlink="#808080" alink="#8e236b" bgcolor=white leftmargin="0" topmargin="0" marginheight="0" marginwidth="0"> <table height="61" width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td background="http://sapxidev:50000/sap/public/icman/img/bluebar_tile.gif" height="30"><table> <tr> <td width=5></td> <td width=20% nowrap><font face=arial size="-1" color=white>SAP Web Application Server </font></td><td width=75% align="right" nowrap><font face=arial size="-1" color="white"><a href="http://help.sap.com/">Help </font></td><td width=5% nowrap></font></td> </tr></table> </td><td rowspan=2 width=122 height=61 valign=top><img src= "http://sapxidev:50000/sap/public/icman/img/theme.jpg" width=122 height=61 border=0 alt="SAP"></td> </tr><tr><td background="http://sapxidev:50000/sap/public/icman/img/graybar_tile.jpg" height="31">  </td></tr> </table> <br><br> <table width=800> <tr><td width=50 nowrap> </td><td> <H2>500 Connection timed out</H2><br>Connection timed out (-5) <br><hr> <table border="0"> <tr><td>Error:</td><td>-5</td></tr> <tr><td>Version:</td><td>6040</td></tr> <tr><td>Component:</td><td>ICM</td></tr> <tr><td>Date/Time:</td><td>Wed Dec 21 13:59:55 2005 </td></tr> <tr><td>Module:</td><td>icxxthr_mt.c</td></tr> <tr><td>Line:</td><td>2559</td></tr> <tr><td>Server:</td><td>sapxidev_XID_00</td></tr> <tr><td>Detail:</td><td>Connection to partner timed out</td></tr> </table> <p></p> </td></tr></table> <table><tr><td width=50 nowrap></td> <td nowrap><FONT SIZE=-1><a href="http://www.sap.com/">&copy; 2001-2003, SAP AG</a></FONT></td></tr></table></SAP:AdditionalText>
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>Error when receiving by HTTP (error code: 402, error text: ICM_HTTP_TIMEOUT)</SAP:Stack>
      <SAP:Retry>N</SAP:Retry>
      </SAP:Error>
    As my payload was of 100 records with 15 fields I guessed that this can be the reason I am getting timed out. So next time I just send 2 records & this time no error & everything went fine.
    Now one thing I need to do is to increase the TIMEOUT value with the help of <b>OSS Note 824554</b>.
    But still in RWB ( with 2 records also ) under message monitoring I am getting " <b>Content of message deleted to save memory</b> " for message content.
    My objective now, is to display the payload which is coming from Web Application via SOAP Adapter in RWB. Can you help me in this.
    Best regards
    Lalit Chaudhary

  • How do we do File content conversion using SFTP SEEBURGER Adapter

    HI All,
              Can we do FCC using SFTP SEEBURGER adapter. If yes how?
    XIer

    Dynamic attributes are part of the XI message. They provide options for dynamical configuration of SFTP receiver channels (Outbound direction) using parameters that have been dynamically added or set by modules and mappings before the SFTP adapter. These attributes can be set using the Attribute Mapper module for example. Besides, the SFTP adapter dynamically adds specific parameters to the XI message on Inbound case, which can be used by the modules and mappings after SFTP adapter.
    Check also
    /people/william.li/blog/2006/04/18/dynamic-configuration-of-some-communication-channel-parameters-using-message-mapping
    /people/daniel.graversen/blog/2006/10/05/dynamic-configuration-in-adapter-modules
    Regards
    Naycho

  • File Content Conversion in JMS Adapter

    Hello,
    I am trying to use module parameters to convert File to XML in Sender JMS adapter. I have followed the instructions in the SAP document (3.1 Example of a Simple Conversion in a Sender Communication Channel)
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/50061bd9-e56e-2910-3495-c5faa652b710
    The problem I am facing is instead of creating one xml message for all the lines in the file; it is creating one message per line. Not sure what I need to do get all the lines in to one xml message.
    Please let me know if any of you have faced similar issue.
    Thanks
    AV

    The Parameter xml.recordsetsPerMessage can only be used if it is a complex structure. I mean it needs a recordSet with Keys..etc and What I am trying to do is a simple FCC using
    Transform.Class=com.sap.aii.messaging.adapter.Conversion
    Transform.ContentType=text/xml;charset=utf-8
    xml.conversionType=SimplePlain2XML
    xml.documentName=PurchaseOrder_Root
    xml.documentNamespace=http://namespace
    xml.fieldFixedLengths     =2,10,10,3,..
    xml.fieldNames = DATA1,DATA2,DATA3....
    xml.processFieldNames=fromConfiguration
    xml.structureTitle=PurchaseOrder
    <b>I am expecting</b>
    <PurchaseOrder_Root>
    <PurchaseOrder>
    <DATA1>  </DATA1>
    <DATA2>  </DATA2>
    </PurchaseOrder>
    <PurchaseOrder>
    <DATA1>  </DATA1>
    <DATA2>  </DATA2>
    </PurchaseOrder>
    </PurchaseOrder_Root>
    <b>When I use the above Module Config it is giving me </b>
    </PurchaseOrder_Root>
    <PurchaseOrder>
    <DATA1>  </DATA1>
    <DATA2>  </DATA2>
    </PurchaseOrder>
    </PurchaseOrder_Root>
    </PurchaseOrder_Root>
    <PurchaseOrder>
    <DATA1>  </DATA1>
    <DATA2>  </DATA2>
    </PurchaseOrder>
    </PurchaseOrder_Root>

  • File Content Conversion using Sender to Mapping

    I have a sender that is mapping a flat file CSV and it maps it correctly, but when it is being send to the message mapping program it fails on the input parse with an exception:
    Mapping transformation: Cannot produce target element /ns0:G8328_09B_Document/ns0:G8328_09BMessageType. Check xml instance is valid for source xsd
    I am using an external definition as my input for the message mapping if I import the messge from the monitor payload and change the ns: to ns0: in the test tool it maps find.  Can anyone tell me how to get the File adapter to generated ns0: instead of  ns: in the input message coming out of the adapter.
    Payload from the file adpater:
    <ns:G8328_09B_Document xmlns:ns="http://nike.com/DEYTEL/RFCToJDBCInterface">
    - <ns:G8320_09BMessageType xmlns:ns="http://nike.com/DEYTEL/RFCToJDBCInterface">
    - <G8328_09B>
      <VKORG>1000</VKORG>
      <AUART>ZG2</AUART>
      <XBLNR>0061623534</XBLNR>
      <VBELN>0010790092</VBELN>
      <NETWR>178.99</NETWR>
      <WAERK>USD</WAERK>
      <VBTYP>O</VBTYP>
      </G8328_09B>
    - <G8328_09B>
      <VKORG>1000</VKORG>
      <AUART>ZRE</AUART>
      <XBLNR>0061651916</XBLNR>
      <VBELN>0010790093</VBELN>
      <NETWR>37.37</NETWR>
      <WAERK>USD</WAERK>
      <VBTYP>O</VBTYP>
      </G8328_09B>
    </ns:G8320_09BMessageType>
    </ns:G8328_09B_Document>
    Payload gernerated from the Test tool:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:G8328_09B_Document xmlns:ns0="http://nike.com/DEYTEL/RFCToJDBCInterface">
       <ns0:G8328_09BMessageType>
    <G8328_09B>
      <VKORG>1000</VKORG>
      <AUART>ZG2</AUART>
      <XBLNR>0061623534</XBLNR>
      <VBELN>0010790092</VBELN>
      <NETWR>178.99</NETWR>
      <WAERK>USD</WAERK>
      <VBTYP>O</VBTYP>
      </G8328_09B>
    - <G8328_09B>
      <VKORG>1000</VKORG>
      <AUART>ZRE</AUART>
      <XBLNR>0061651916</XBLNR>
      <VBELN>0010790093</VBELN>
      <NETWR>37.37</NETWR>
      <WAERK>USD</WAERK>
      <VBTYP>O</VBTYP>
      </G8328_09B>
       </ns0:G8328_09BMessageType>
    </ns0:G8328_09B_Document>
    The test tool mapping I remove the ns and replaced it with ns0.
    Thanks for any help.
    Arjun.

    Hi Arjun,
    A few points....
    1. Namespace prefix being different does not cause mapping errors.
    2. In your case, note the name space <b>xmlns:ns="http://nike.com/DEYTEL/RFCToJDBCInterface"</b> missing in XML generated 
    using IR.
    3. The difference in Msg type names. After FCC it is G832<b>0</b>_09BMessageType where as in test tool it is G832<b>8</b>_09BMessageType.
    Correct points 2 and 3, your issue will be solved.
    Regards,
    Jai Shankar

  • File Content Conversion in Receiver Adapter

    Hello Friends,
    I have following message in reciever adapter. How to set the parameter to output flat file? I set but it dosent function:
    Record structure: Category, Items, Item
    Category.fieldSeparator   ,
    Category.endSeparator    ,
    Items.fieldSeparator        ,
    Items.endSeparator         ,
    Item.fieldSeparator          ,
    Item.endSeparator           ,
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:UpdateCategories xmlns:ns0="urn:N02_TestComplexCategory">
    - <ns0:Category>
      <ns0:RootCategoryID>14</ns0:RootCategoryID>
      <ns0:RootCategoryParentID>34</ns0:RootCategoryParentID>
      <ns0:RootCategoryName>abcd</ns0:RootCategoryName>
    - <ns0:Items>
    - <ns0:Item>
      <ns0:CategoryID>ID1</ns0:CategoryID>
      <ns0:CategoryParentID>14</ns0:CategoryParentID>
      <ns0:CategoryName>CAT1</ns0:CategoryName>
      <ns0:Attributes />
      </ns0:Item>
    - <ns0:Item>
      <ns0:CategoryID>ID2</ns0:CategoryID>
      <ns0:CategoryParentID>14</ns0:CategoryParentID>
      <ns0:CategoryName>CAT2</ns0:CategoryName>
      <ns0:Attributes />
      </ns0:Item>
      </ns0:Items>
      </ns0:Category>
      </ns0:UpdateCategories>
    Thanks
    Zhiping

    Another message:
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:UpdateCategories xmlns:ns0="urn:N02_TestComplexCategory">
    - <ns0:Category>
      <ns0:RootCategoryID>14</ns0:RootCategoryID>
      <ns0:RootCategoryParentID>34</ns0:RootCategoryParentID>
      <ns0:RootCategoryName>abcd</ns0:RootCategoryName>
    - <ns0:Items>
    - <ns0:Item>
      <ns0:CategoryID>ID1</ns0:CategoryID>
      <ns0:CategoryParentID>14</ns0:CategoryParentID>
      <ns0:CategoryName>CAT1</ns0:CategoryName>
    - <ns0:Attributes>
    - <ns0:Attribute>
      <ns0:AttributeType>1</ns0:AttributeType>
      <ns0:AttributeValue>1</ns0:AttributeValue>
      </ns0:Attribute>
    - <ns0:Attribute>
      <ns0:AttributeType>2</ns0:AttributeType>
      <ns0:AttributeValue>2</ns0:AttributeValue>
      </ns0:Attribute>
    - <ns0:Attribute>
      <ns0:AttributeType>3</ns0:AttributeType>
      <ns0:AttributeValue>3</ns0:AttributeValue>
      </ns0:Attribute>
      </ns0:Attributes>
      </ns0:Item>
    - <ns0:Item>
      <ns0:CategoryID>ID2</ns0:CategoryID>
      <ns0:CategoryParentID>14</ns0:CategoryParentID>
      <ns0:CategoryName>CAT2</ns0:CategoryName>
    - <ns0:Attributes>
    - <ns0:Attribute>
      <ns0:AttributeType>1</ns0:AttributeType>
      <ns0:AttributeValue>1</ns0:AttributeValue>
      </ns0:Attribute>
    - <ns0:Attribute>
      <ns0:AttributeType>2</ns0:AttributeType>
      <ns0:AttributeValue>2</ns0:AttributeValue>
      </ns0:Attribute>
    - <ns0:Attribute>
      <ns0:AttributeType>3</ns0:AttributeType>
      <ns0:AttributeValue>3</ns0:AttributeValue>
      </ns0:Attribute>
      </ns0:Attributes>
      </ns0:Item>
      </ns0:Items>
      </ns0:Category>
      </ns0:UpdateCategories>

  • File content Conversion in j2se at the receiver side

    Hi ,
    I need to do a file content conversion using j2se adapter at the recevier side.
    my structure is something like
    <name>
        <name1>
        <name2>
    </name>
    <address>
         <address1>
         <address2>
    </address>
    and the output should be like
    #tname1$name2
    #sadress1.address2
    Please do the needfull
    Thanks & Regards,
    Hamsa

    Hi Hamsa,
    #tname1$name2
    #sadress1.address2
    Lot of # and $, so can you paste the FCC parameters that you have tried in the File adapter?
    In j2se also we can use the same. If you are not sure on how to use, paste the FCC parameter here and someone will be able to make the J2SE version out of it
    Regards
    Suraj

  • File Content Conversion - Receiver Adapter

    Hi To All
    I have an XML Structure
    <LIST>
         <Seg1>
              <Element1>123</Element1>
         </Seg1>
         <Seg2>     
              <Element1>ABC</Element1>
              <Element2>DEF</Element2>
              <Element3>GHF</Element3>
            </Seg2>     
    <LIST>
    I'm using File content conversion in receiver Adapter
    I want my output like this.
    ABCDEFGHF
    I don't need the Segment Seg1.
    In my parameters RecordsetStructure only I have Seg2 and the details for this Segment
    but When I receive a file, the adapter convert with segment 1.
    123
    ABCDEFGHF
    can you help me?.

    easiest alternative is mentioned here already, drop it in the mapping.
    You can also try to write a java pgm and invoke it as an OS command. that cuts the segment1 out before passing it to content conversion. ..more painful..but will work.
    Regards
    Ravi Raman

  • XML to flat file conversion using file content conversion in reciever CC

    Hi,
    Iam working on Idoc to File scenario.
    Iam having a problem in the communication channel of reciever.
    Iam using File content conversion in Reciever Adapter.
    My xml format is asfollows:--
    - <Header>
      <FILLER1>KTP</FILLER1>
      <YEAR_IDOC>YEAR 2006</YEAR_IDOC>
      <FILLER2>FIRSTWEEKNUMBER</FILLER2>
      <WEEK_IDOC>51</WEEK_IDOC>
      <FILLER3>NUMBER WEEKS 26</FILLER3>
      <PLANT_CODE>FACTORYM019</PLANT_CODE>
      </Header>
    - <Record>
      <First_material>731000</First_material>
      <First_quantity>0000.0</First_quantity>
      <First_quantity>0001.9</First_quantity>
      <First_quantity>0000.0</First_quantity>
      <First_quantity>0000.0</First_quantity>
      <First_quantity>0020.0</First_quantity>
      <First_quantity>0000.0</First_quantity>
      <First_quantity>0000.0</First_quantity>
      <First_quantity>0000.0</First_quantity>
      <First_quantity>0018.0</First_quantity>
      <First_quantity>0000.0</First_quantity>
      <Second_material />
      <Seond_quantity>000000</Seond_quantity>
      <Second_quantity>0011.0</Second_quantity>
      <Seond_quantity>000000</Seond_quantity>
      <Seond_quantity>000000</Seond_quantity>
      <Seond_quantity>000000</Seond_quantity>
      <Seond_quantity>000000</Seond_quantity>
      <Second_quantity>0049.0</Second_quantity>
      <Seond_quantity>000000</Seond_quantity>
      <Seond_quantity>000000</Seond_quantity>
      <Second_quantity>0067.0</Second_quantity>
      <Third_material />
      <Third_quantity>000000</Third_quantity>
      <Third_quantity>000000</Third_quantity>
      <Third_quantity>000000</Third_quantity>
      <Third_quantity>0008.0</Third_quantity>
      <Third_quantity>000000</Third_quantity>
      <Third_quantity>000000</Third_quantity>
      </Record>
    The file format should be as follows:--
    KTP   YEAR 2006 FIRSTWEEKNUMBER 51   NUMBER WEEKS 26  FACTORYM019
    731000  0000.0 0001.9 0000.0 0000.0 0020.0 0000.0 0000.0 0000.0 0018.0 0000.0
            0000.0 0011.0 0000.0 0000.0 0000.0 0000.0 0049.0 0000.0 0000.0 0067.0
            0000.0 0000.0 0000.0 0008.0 0000.0 0000.0  
    Could some one help me in resolving this issue.
    Regards
    Praveen

    Hi Praven,
    couldn't you simply modify your target DATA type so it will be easier to handle?
    For example something like:
    <Header>
    </Header>
    <Record>
    <Material>
    <Number>..</Number>
    <quantity>..</quantity>
    <quantity>..</quantity>
    </Material>
    In this way file content conversion will be easier (easy)!
    Regards,
    Sergio

  • Adapter error in file content conversion

    Hi Friends,
    I am using FILE receiver adapter, transport protocol- NFS, msg protocol-File content conversion.
    Sending msg is an idoc. File is being sent to application server of the XI system (for test purpose)
    The message is shown as successful in SXMB_MONI but no file is created .
    In message monitoring for adapter engine an error is shown -
    "<b></b>file adapter receiver channel <comm channel name> is not initialized. Unable to proceed MP: eception caught with cause com.sap.aii.af.ra.ms.api.Recoverable Exception. Channle has not been correctly initialized & cannot process messages "<b></b>
    However if i change the message protocol to FILE then it works correclt & a xml file is saved in system.
    It seems the problem is with using file content conversion in the adapter farmework.
    Can someone please help.

    Hi
    I have configured in a similar manner
    Below is the XML Message
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:FileMatFlat_MT xmlns:ns0="http://ztest.com/test/idoc2file">
    <RecordSet>
    <Row>
    <Author>SivaSakthi</Author>
    <Transfered_By>SIVASAKTHI</Transfered_By>
    <Long_Mat_Num>0000056090</Long_Mat_Num>
    <Material_Number>0000056</Material_Number>
    <Material_Desc>TESTING132123KLOSDFJ</Material_Desc>
    </Row>
    </RecordSet>
    </ns0:FileMatFlat_MT>
    My FCC parameter;
    RecordStructure : Row
    Row.addHeaderLine 1
    Row.fieldSeparator #
    Row.endSeparator 'nl'
    My Output looks like
    Row
    SivaSakthi
    Can some one please tell me why the others are not coming.

Maybe you are looking for

  • I need to download Quicktime 7.0.3 and iTunes 6, where are they?

    I am having big problems with Quicktime 7.1.3 and I just want to go back to using 7.0.3 with iTunes 6. Can anybody tell me where to download these from on the Apple website, or anywhere else for that matter, I can't see them. Annoyingly I can't find

  • Have a broken screen, can I hook up external

    Hi guys, I have a broken screen, is there anywhere if I hooked it up with a external screen. Like I tried hooking it up to my tv but basically the tv was a seperate screen in itself and wasn't apple to see the login propt screen. My screen is so bad

  • Backup Macbook 10.5.8

    I have a MacBook with 10.5.8 processor and I would like to backup the computer with an external hard drive.  It is a Toshiba.  Can you tell me the steps I need to do to get Time Machine to backup my Mac? Thanks

  • I have an error ora-04031 on XE 11g

    hello, I have an error ora-04031 on XE 11g When I restart DB, this error is fixed. Can I set any parameter(SHARED_POOL_SIZE) to fixed this error? OS:win 2003 server ora-00604: error occurred at recursive SQL level 1 ora-04031: unable to allocate 4064

  • How many sessions does SAP allow you to have ??

    Dear Memebers, How many sessions does SAP allow you to have ?? a) 3 b) 6 c) 9 d) 12. I guess the right answer is B and C but in choices I have to select only 1, which answer will you pick and Why ?? Thank You. Madhu.