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.

Similar Messages

  • 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

  • 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

  • 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.

  • 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

  • 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

  • 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

  • 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

  • Moving data into internal table without header line

    Hello experts.
    i have two internal tables . itab1 without headerline and itab2 with headerline. itab1 has 10 fields and itab2 has 2 fields.
    BEGIN OF itab,
            lifnr LIKE lfa1-lifnr,
            ktokk LIKE lfa1-ktokk,
            name1 LIKE lfa1-name1,
            sortl LIKE lfa1-sortl,
            pstlz LIKE lfa1-pstlz,
            ort01 LIKE lfa1-ort01,
            land1 LIKE lfa1-land1,
           j_1ipanno LIKE j_1imovend,
    end of itab.
    DATA: itab1 TYPE STANDARD TABLE OF itab.
    data: begin of itab2 occurs 0,                             
          lifnr like j_1imovend-lifnr,
          j_1ipanno like j_1imovend-j_1ipanno,
      end of itab2.
    now i want to move the data from itab2-j_1ipanno into itab1-j_1ipanno. so pls tell me how to do that. lifnr in both the tables are the same.
    thanks for all the replies.

    Hi Shiva,
    In with out header line,
    You declare header line & body separately like
    data: IT_MARA type standard table of MARA,
    WA_MARA like line of IT_MARA.
    Advantages:
    1. Clear differentiation of header line over body
    2. It is must in the ABAP Objects to have separate header line & body
    3. Use ful in Nested Internal tables
    Disadvantages:
    1. Long syntax
    for example: Loop at IT_MARA into WA_MARA.
    In with header line
    Data ITAB like MARA occurs 0 with header line.
    Advantages:
    1. Simple to use & declare over without header line.
    Also,
    With Header line:
    codedata : itab like <dbtable> occurs 0 with header line.
    Data: begin of itab occurs 0,
    f1 type f1,
    f2 type f2,
    end of itab.[/code]
    Without Header line.
    codeTypes: begin of ty_tab,
    f1 type f1,
    f2 type f2,
    end of ty_tab.
    Data: itab type table of ty_tab, " Internal Table
    wa type ty_tab. " Work Area[/code]
    at any point of time use internal table without header line,it will be good performance as well OO ABAP will allow only internal table without header line.
    Just use one simple example :
    create one simple program with header line,use get run time field.
    create one simple program without header line,use get run time field.
    see the results ,here time will be micro seconds,so take 1000 records to internal table and do calculate the time.
    While adding or retrieving records to / from internal table we have to keep the record temporarily.
    The area where this record is kept is called as work area for the internal table. The area must have the same structure as that of internal table. An internal table consists of a body and an optional header line.
    Header line is a implicit work area for the internal table. It depends on how the internal table is declared that the itab will have the header line or not.
    e.g.
    data: begin of itab occurs 10,
    ab type c,
    cd type i,
    end of itab. " this table will have the header line.
    data: wa_itab like itab. " explicit work area for itab
    data: itab1 like itab occurs 10. " table is without header line.
    The header line is a field string with the same structure as a row of the body, but it can only hold a single row.
    It is a buffer used to hold each record before it is added or each record as it is retrieved from the internal table. It is the default work area for the internal table.
    kindly reward if found helpful.
    cheers,
    Hema.

  • 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 get and put data in HTTP header in Client Side

    One JSP's function is to display data records page by page. Client users could click "First page" or "Previous Page" or "Next Page" or "Last Page" button to let the JSP to show the corresponding page. So the JSP must remember the current page number. Due to there are a number of client users maybe access the JSP at the same time, keep the current page number in session, there will be a lot of session is created at the same time, this will impact system's performance. So using session to keep data method is not used. I plan to use request header and response header to pass the current page number. I know use the response.addHeader to put data in response header and also know use request.getHeader to get data in request header in server side, but I donot know how to put data in request header and how to get data in response header in client side. Could you please give me a help? If donot use these method, are there any other method? Thanks a lot.

    Why not pass it as a parameter with the URL?
    at the beginning of the page..
    <%
    int pageNumber = Integer.parseInt(request.getParameter("page"));
    %>
    then when defining your links
    <a href="thisPage.jsp?page=<%= (pageNumber-1)%>">Previous</a>
    <a href="thisPage.jsp?page=<%= (pageNumber+1)%>">Next</a>

  • Check on multiple header line data.

    Hi All,
    I have one requirement where i need to check the multiple accounting document header line.
    Kindly suggest how to check the above requirement.
    Thanks in Advance!
    Regards,
    Chirag

    Hi All,
    Sorry for the short description.
    Currently i am validating only the one header line data of expense spread sheet file with vendor. but the now requirement has changed and there can be a multiple header line item also.
    So i need to check for each header line item whether vendor already exist or not.
    I am able to check it for 1 header line item, Kindly suggest how to check it for multiple header line item.
    Thankyou.
    Chirag

  • Base line date field ( header data 2nd tab) to be made noneditable in MIRO

    Hi friends,
    My requirment is to make Base line date field ( header data 2nd tab) to be noneditable in Tcode MIRO .
    This base line date should be noneditable only for one specific company code.
    Help me with some clues.
    regards
    Sathish

    why cant you use a screen variant....In SHd0..
    also check this..
    [http://forums.sdn.sap.com/click.jspa?searchID=37685778&messageID=8389969]

  • 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...

  • After upgrading to OS Mavericks, I realized that the Partition for Windows is gone. I have really important data on this drive without a back up. Is there any way I can get this data before reformatting. Is there any third party software for receiving the

    After upgrading to OS Mavericks, I realized that the Partition for Windows is gone. I have really important data on this drive without a back up. Is there any way I can get this data before reformatting. Is there any third party software for receiving the data or any possible way? Money is not a limitation to this fix. Please help!!!

    sure pretty simple.  make a backup of your current settings
    http://support.apple.com/kb/HT1766?viewlocale=en_US
    then restore device from old backup you need pics off of
    then import pics to computer
    http://support.apple.com/kb/HT4083
    you may need to save pics to camera roll first
    then restore the new backup and sync pics back to phone via itunes
    Peace, Clyde

Maybe you are looking for

  • How to Remove Premium Channels Like HBO or Cinemax

    I wanted to document this because nobody should have to go through the hoops I just had to.  Sadly, I'm sure others have gone through much more.  Follow these steps to remove channels you no longer want to pay for, or avoid paying for because their f

  • BPC 7.5 NW: Master Data with leading zeros

    In BPC 7.5 NW, is it still an issue to have Master data with leading zeros? In other words, is it still not advisable to have leading zeros in the Master data. Let me know your views. Thanks.

  • Any one who has read chap15 of Thinking in JAVA,2nd Ed. please take a look.

    I'm testing the RMI example in chap15.When I run the PerfectTime class I always get an error message(xuke is my computer's name,and I've already conncetted to the ISP and started the registry server and produced the stub&skeleton classes as the book

  • Mouse loses connection

    I have a Mac Mini and a few months ago I started having problems with the Magic Mouse losing its connection to the computer.  If I wait a few minutes it comes back but in one hour it may drop the mouse 3-4 times. I have used new batteries and even we

  • ALV Display using Factory Settings

    Hi, I have been using this for quite sometime, CALL METHOD cl_salv_table=>factory to display the output in ALV. Now, I have a requirement to display an internal table which has field 'message' which has a length of 480 characters. The output is trimm