Receiver FCC Needs to Show Header Lines

Hi,
I'm making a Receiver File Adapter using File Content Conversion with an expected output of a CSV file. My structure is:
<?xml version="1.0" encoding="UTF-8" ?>
<ns0:CostCenter_Test xmlns:ns0="http://namespace.com/xi/system/IF00000111/100" partition="SAPDemo" variant="SAP">
  <CostCenter_CostCenterPull_Item>
     <item>
        <UniqueName>Unique</UniqueName>
        <CompanyCode>FRAA</CompanyCode>
        <CostCenterDescription1>Test Cost Center</CostCenterDescription1>
        <CostCenterDescription>Test Cost Center Ver 1234</CostCenterDescription>
     </item>
</CostCenter_CostCenterPull_Item>
</ns0:CostCenter_Test>
<item> node would be repeating.
Recordset Structure is: Main, item
Params:
Main.fieldSeparator: #
item.fieldSeparator: ","
item.beginSeparator: "
item.endSeparator: "'n'
Problem: I can't add a headerline.
Question: Is this because I have two 'structures'?
Another problem is that if I only make one Recordset Structure (i.e. item), the output would only be: "Unique". But it would show the header lines.
Do I need to add another 'structure', just for the header lines?

Hi,
You may add header line.
Define structure as
Root
   item
      field1
      field2 ....
and give item.addHeaderLine = 1.
It will generate header line as field1 , field2 ....
You may also define your own header line.
Please check below link for more information:
[http://help.sap.com/saphelp_nwpi711/helpdata/en/44/686e687f2a6d12e10000000a1553f6/content.htm]
Regards,
Beena.

Similar Messages

  • Receiver file Content Conversion with Header line

    Hi,
    Here I am doing receiver file content conversion with header line.
    I am able to get the output file correct, when I open the file in notepad the header line and data appearing in the same line (not accepted).
    But when I tried to open the name file in internet explorer I can see the header line and data in two different lines (accepted).
    What should I do I want to see the same output in the notepad?
    Please help me out.
    Thanks in advance,
    Srikanth.

    You can use NameA.addHeaderLine.
    Specify whether the text file will have a header line with column names. The following values are permitted:
    0 u2013 No header line
    1 u2013 Header line with column names from the XML document
    2 u2013 As for 1, followed by a blank line
    3 u2013 Header line is stored as NameA.headerLine in the configuration and is applied
    4 u2013 As for 3, followed by a blank line
    The below weblinks will help you to know the other paramters.
    http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
    http://help.sap.com/saphelp_nwpi71/helpdata/en/44/686e687f2a6d12e10000000a1553f6/content.htm

  • What  new line character in string is needed to show new line

    If i need to show java string in a html text area with new lines(that is 2 -3 lines of text ) what new line character i need to add.
    I tried \n and /n but these are not working fine. Can anyone help me.

    If i need to show java string in a html text area
    with new lines(that is 2 -3 lines of text ) what new
    line character i need to add.
    I tried \n and /n but these are not working fine. Can
    anyone help me.HTML ignores line breaks. You will need to use markup (<br>) to force a new line.

  • How to change font size in the message list pane (showing header lines of messages)

    The list of messages at the top of the Thunderbird window (From / Subject / etc.) uses a font that is very small and hard to read. The issue is: How can the user increase the size of the font so that it is readable?
    The platform is a Mac computer running OS X 10.9.5 with Thunderbird version 31.3.0.

    ''policyjm [[#question-1043939|said]]''
    <blockquote>
    The list of messages at the top of the Thunderbird window (From / Subject / etc.) uses a font that is very small and hard to read. The issue is: How can the user increase the size of the font so that it is readable?
    The platform is a Mac computer running OS X 10.9.5 with Thunderbird version 31.3.0.
    </blockquote>
    OK, that solution worked fine. I now have complete control of the fonts, colors, and other Thunderbird features. Thank you very much.

  • Multiple Header line in Receiver File adapter

    Hi,
    I have an issue in Receiver File adapter with multiple header lines. I am able to get only 1 header lines in the receiver file but not multiple header lines with 'nl' since it is static in file mode
    [CommunityTag:Header]
    empNo,EmpName,Age
    [CommunityTag]
    I tried with the below in content conversion one as below with no luck
    Root.addHeaderLine=1
    Root.headerLine=[CommunityTag:Header] 'nl' empNo,EmpName,Age 'nl' [CommunityTag]
    Root.fiedSeparator=,
    Root.endSeparator='nl'
    I am getting the Header line as same row as static text.
    Can you advise this.

    Hi Gabriel, I suggest to produce the header lines from additional nodes in the message payload. That means you need to modify the data type of the target message in order to generate an extra structure in the payload. Use constants in message mapping to generate the header column names, e.g.
    <Header>
      <H1>CommunityTag:Header</H1>
      <H2>empNo,EmpName,Age</H2>
      <H3>CommunityTag</H3>
    </Header>
    In content conversion you have to convert the Header row with
    Header.endSeparator='nl'
    You won't need parameter addHeaderLine anymore then.
    Regards, Martin

  • How to add header line in a file from XI system using file adapters

    Hi All,
    I need to add header line (Column names) in a file coming from XI system.
    I am using file adapters.
    Thanks & Regards,
    Gaurav Mittal

    The Receiver File Adapter is configured, using the following settings:
    1) Choose File Content Conversion as the Message Protocol.
    2) You give the ‘addHeaderLine’ parameter as 1
    3) For the ‘fieldSeparator’ parameter you need to give field separator for both list and substructure (referring to the data type above). For eg: it may be a ‘,’ (comma) for substructure in a comma separated file.
    4) The ‘endSeparator’ parameter needs to given for substructure only. For eg: it may be a ‘nl’ (new line)
    5) Give the file name, the directory and the Construction mode. Activate all the settings. Receiver File Adapter with F.C.C. is configured.
    please visit the blog.
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
    /people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
    /people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2

  • FCC -- Need two header lines

    Hi All,
    In my file receiver communication channel, I need to have 2 header line.
    In first header line hardcoded "UTF-8" needs to be written and second line will have actual column names.
    If its just one header with actual column names, I am able to achieve. But not sure how to add one more line on Top with "UTF-8".
    Please advice.
    Thanks
    Shivi

    Hi Shivanjali,
    We also face same requirement and we done this as below:
    create a target structure as below and map the hard coded value
    and in FCC we used below:
    Regards
    GB

  • Put Date Before Header Line in Receiver FCC

    Hi,
    I have to create a csv file with format :
    Date : dd/mm/yyyy to dd/mm/yyyy
    PRODUCT_CODE,NAME,ADDRESS
    123,ABC,xyz
    123,ABC,xyz
    123,ABC,xyz
    123,ABC,xyz
    123,ABC,xyz
    How should i achieve putting the date before header line?
    What should be my target structure format?
    What parameters to enter in receiver FCC?

    Hi,
    have you tried..
    Have you tried:
    (http://help.sap.com/saphelp_nw04/helpdata/en/e3/94007075cae04f930cc4c034e411e1/frameset.htm)
    ● NameA.enclosureSign
    Specify a string that acts as a text delimiter.
    Text enclosed by such delimiters is transferred to the target structure unchanged, although the default setting is to remove all text delimiters. Separators within such texts are ignored.
    This parameter is optional. The default setting is an empty value (no text delimiter).
    ● NameA.enclosureSignEnd
    If the text delimiters for the beginning and end of the text are different, specify the text delimiter for the end of the text here.
    If you do not make an entry here, the entry from NameA.enclosureSign is used.
    ● NameA.enclosureSignEscape
    Specify a string that replaces the text delimiter if it occurs within a text that it delimits.
    When the text is transferred the string is replaced by the value specified in NameA.enclosureSign .
    ● NameA.enclosureSignEndEscape
    Specify a string that replaces the text delimiter for the end of the text if it occurs within a text that it delimits.
    When the text is transferred the string is replaced by the value specified in NameA.enclosureSignEnd.
    ● NameA.enclosureConversion
    To remove the delimiter upon transfer, or to replace it with escape characters, enter YES. This is the default value.
    To transfer the characters unchanged enter NO.
    Note
    If you specify xml.enclosureSign=“ and xml.enclosureSignEsc=““, text enclosed in quotation marks is transferred unchanged and the quotation marks are removed.
    If the escape character for a quotation mark (““) occurs in the text itself, it is replaced by the quotation mark during the transfer.
    Thanks,
    Vijaya.

  • Add header line to the text file in receiver file adapter

    Hello Experts,
    I have to add a new line to the text file generated at the receiver end.
    My structure is
    Record
       Item......0-unbounded
             field1
             field2
             field3
    I have defined below parameters in receiver FCC.
    RecordSet Structure : Record,Item
    Item.fieldSeparator : ;
    Record.fieldSeparator : nl
    Record.endSeparator : '0x0D''0x0A' ( this is to get a carriage return at the end of the file)
    Item.addHeaderLine : 1
    With the above configuration, i am getting the desired output with NO header line.
    Please help.
    Thanks,
    Swetha.

    Hi, it looks like that the headerline "specification is only permitted if exactly one structure is defined." Please check [SAP help under Define Parameters for Recordset Structures|http://help.sap.com/saphelp_nw73/helpdata/en/44/686e687f2a6d12e10000000a1553f6/frameset.htm].
    One solution would be to generate the header fields in the message payload. Generate an additional first line containing the header names, e.g.
    <Item>
    <field1>Header1
    <field2>Header2
    <field3>Header3

  • Receiver FCC Structure For Header and Trailer

    Hi Guys ,
    I need to go for receiver FCC for header and trailer  in PI .How the FCC in communication channel needs to be configured if I am taking a separate node for header and trailer in mapping .Output of the file should be as the file attached.
    Thanks.
    Regards.

    Hi,
    If you are using File communication channel as a reciver you can go with FCC.
    Use record set structure as : Header,detail,trailer.
    https://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
    Otherwise if you are going for SFTP to create the file ... follow the Indrajit suggestion..
    Still facing any issue.. Please let us know..
    Thanks,
    Sreenivas...

  • Removing the empty line during Receiver FCC!

    Hi, Guys,
    I used file content conversion in receive FCC. My data type is like this:
    <TextFromSAP_DT>
    <FileName>
      <FileName>abc.txt</FileName>
    </FileName>
    <Record>
      <TEXT>dasfafaf</TEXT>
    </Record>
    <Record>
      <TEXT>qqqqqqqq</TEXT>
    </Record>
    <Record>
      <TEXT>fgfffff</TEXT>
    </Record>
    </TextFromSAP_DT>
    I need to get file name from <FileName> and output a flat file with the value in <TEXT>. But I always got an empty line at the file beginning. And I tried to move <FileName> to the end. And I got an empty line at the file end. My custom said they are having trouble to read the file with the empty line no matter it is in the beginning or end.
    I followed sample as link below but does not work. 
    https://wiki.sdn.sap.com/wiki/display/profile/2007/07/30/Removing%20the%20empty%20line%20during%20Receiver%20FCC!
    Does any body can give a help?
    Thanks a lot!
    Meiying
    Edited by: Meiying Yang on Aug 14, 2009 11:16 PM

    Hi Yang,
    You create the value udf GetFileName with one input value say a. Add this code:
    Imports: java.*;
    Add this code:
       //write your code here
    DynamicConfiguration conf = (DynamicConfiguration)container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http:" + "/" + "/" + "sap.com/xi/XI/System/File", "FileName");
    conf.put(key, a);
    return "";
    Map like this:
    FileName --> GetFileName(udf) --> target_mt
    Map other fields like:
    Record --> Record
    TEXT ---> TEXT
    Save it and activate it. When you test in mapping you will get an error so dont worry. I go the error like:
    RuntimeException in Message-Mapping transformation: Runtime exception during processing target field mapping /ns0:Target_MT. The message is: Exception:[java.lang.NullPointerException] in class com.sap.xi.tf._TestFileName_ method file1$[abc.txt, com.sap.aii.mappingtool.tf3.rt.Context@32dcebf1]
    Dont worry about this activate and do the rest of the configuration.
    In your receiver communication channel for file name put as FileName and check the file name in adapter specific message attributes. Then test it and it should work and you will get the file with file name abc.txt. I tested the whole end to end scenario and I am getting the file name abc.txt and the output what you want. If you still could not get it send me a m ail to my i d from my business card. I will send you the screen shots.
    Regards,
    ---Satish

  • ALV Output - Need to show count of line items based on 1 key field.

    Hi All,
           In my prog i need to show an ALV ouput which is having Matnr,Material type and Division . MATNR is the key field. I need to show how many line items are present against a  particular MATNR in that ALV ouput itself. Not in the top of page. I think there might be some field in SLIS which can be use for the same. If any one has come across such a requirement then please revert back.
    thanx,
    Shyam.
    PS: Useful answers will be rewarded.

    Ok, so we are back to using the COUNT field and now using the SORT functionaity, the SORT will allow us to subtotal by MATNR.
    REPORT  zrich_0001.
    * Global ALV Data Declarations
    TYPE-POOLS: slis.
    * Internal Tables
    TYPES: BEGIN OF talv ,
           matnr TYPE mara-matnr,
           mtart TYPE mara-mtart,
           spart TYPE mara-spart,
           count TYPE i,
           END OF talv.
    DATA: ialv TYPE TABLE OF talv WITH HEADER LINE.
    DATA: fieldcat  TYPE slis_t_fieldcat_alv.
    DATA: sort     TYPE slis_t_sortinfo_alv.
    DATA: layout    TYPE slis_layout_alv.
    START-OF-SELECTION.
      PERFORM get_data.
      PERFORM call_alv.
    *      Form  GET_DATA
    FORM get_data.
      SELECT matnr mtart spart INTO TABLE ialv
                FROM mara UP TO 500 ROWS.
    ENDFORM.                    "GET_DATA
    *  CALL_ALV
    FORM call_alv.
      PERFORM build_field_catalog.
      PERFORM build_sort.
      layout-countfname = 'COUNT'.              "<-----  HERE
    * Call ABAP List Viewer (ALV)
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          it_sort     = sort
          is_layout   = layout
          it_fieldcat = fieldcat
        TABLES
          t_outtab    = ialv.
    ENDFORM.                    "CALL_ALV
    * BUILD_FIELD_CATALOG
    FORM build_field_catalog.
      CLEAR: fieldcat. REFRESH: fieldcat.
      DATA: tmp_fc TYPE slis_fieldcat_alv.
      tmp_fc-reptext_ddic = 'Material'.
      tmp_fc-fieldname    = 'MATNR'.
      tmp_fc-tabname      = 'IALV'.
      tmp_fc-outputlen    = '18'.
      APPEND tmp_fc TO fieldcat.
      tmp_fc-reptext_ddic = 'Material Type'.
      tmp_fc-fieldname    = 'MTART'.
      tmp_fc-tabname      = 'IALV'.
      tmp_fc-outputlen    = '4'.
      APPEND tmp_fc TO fieldcat.
      tmp_fc-reptext_ddic = 'Division'.
      tmp_fc-fieldname    = 'SPART'.
      tmp_fc-tabname      = 'IALV'.
      tmp_fc-outputlen    = '2'.
      APPEND tmp_fc TO fieldcat.
      tmp_fc-reptext_ddic = 'Count'.
      tmp_fc-fieldname    = 'COUNT'.
      tmp_fc-tabname      = 'IALV'.
      tmp_fc-outputlen    = '5'.
      tmp_fc-do_Sum       = 'X'.
      append tmp_fc to fieldcat.
    ENDFORM.                    "build_field_catalog
    *&      Form  build_sort
    *       text
    FORM build_sort.
      DATA: tmp_sort TYPE LINE OF slis_t_sortinfo_alv.
      CLEAR sort. REFRESH sort.
      CLEAR tmp_sort.
      tmp_sort-fieldname = 'MATNR'.
      tmp_sort-tabname   = 'IALV'.
      tmp_sort-up        = 'X'.
      tmp_sort-subtot    = 'X'.
      APPEND tmp_sort TO sort.
    ENDFORM.                    "build_sort
    Regards,
    Rich Heilman

  • Extra header lines appearing in payload after singning and encrypting in Mail Receiver adapter PI 7.31

    Hi,
    We have a mail receiver adapter which is sending out a edi payload as attachment to the external receiver.
    When we send the normal .edi file it is ok.
    But when we sign and encrypt the payload and send it out, the external customer receiver decrypts and validates the message successfully but when their application tries to read the edi payload it finds the extra header lines as below :
      content-id:
    <[email protected]>
    Content-Disposition: attachment; filename=xxxxxxxx.edi Content-Type:
    application/xml
    At their end, their application (DataPower) expects the first three characters of the payload
    (decrypted payload) to be either UNA or UNB.This is how it validates whether the incoming message is an EDI message.
    But it encounters the extra MIME headers in the payload.
    Therefore it gets rejected by DataPower which thinks the content is an
    unknown message type.
    How to suppress the header lines appearing in the payload(after decryption and validation).
    Thanks,
    Guest

    hi,
    try content-type as "text/xml"

  • How to Ignore Header Line in FCC " Sender Side" .

    Hi SDNrs,
    I am getting a File Data  after FCC with header Data.
    How to Ignore that Header Line coming with actual data...
    Like Employeeid , Name , Deptid
    So this Employeeid , Name , Deptid is also coming as Data.
    Or what approach Should be Used?
    Regards
    Prabhat Sharma.

    Hi,
    Use " Document Offset" parameter in Sender File CC.
    http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm
    Thnaks
    Amit

  • SQ01 header showing double lines

    Hi all,
    I'm using SQ01 to create a report (in basic list). When I'm adding fields to the list, some fields are creating a second header line. How can I make it so that the header is only 1 line?
    Thanks,

    Hi,
    We can not stretch the header of a SAP Query for more than 256 CHAR.
    On the other hand, we can execute the query in background mode to generate a spool. Now open the list of spools, select the one which we are interested and click 'Display in Maximum Width' (Shift+F4). This shows the header in a single row and can be downloaded to an excel sheet.
    Hope this helps.
    Thanks,
    Teja.

Maybe you are looking for

  • I can not log into iCloud

    Please help - I've upgraded to ML 10.8 (and also 10.8.1) and i can not log into icloud. I get an error saying "You can not log in at this time".  I have no hair left on my head because I've pulled it all out! Now, there are many published fixes for t

  • How can I tell if a Graphics object has been disposed

    Any ideas? Thanks

  • How to differentiate a row in a ADF table in Oracle 11g

    Hi How to differentiage the each row in a ADF table with the back ground colour? I tried with RowBandingInterval option, but it didn't work out? Thanks

  • Acrobat Reader 9 help file as pdf

    I am looking for the Acrobat Reader 9 help file as a pdf so it can viewed off line. Can someone give the location where I can download the help file as a pdf. Thanks R

  • Navigation buttons (slicing & hotspots)

    I've created a graphic navigation menu composed of several buttons.  I've been slicing each one separately and assigning its link to the slice.  Would it be better to make just one slice of the whole bar and add hotspot links on top of that?  Or is i