Sender FCC Field separator

Hi Gurus,
I am working on a File-to-File Scenario using FCC at sender side. My requirement is to convert source text file into xml file.
Source and target structure:
DT_Customer_SRC
     Header
          CompanyName
          CompanyCode
     Body
          CName
          CCode
FCC Configuration:
Recordset Structure = Header,1,Body,1
Header.fieldNames = CompanyName,CompanyCode
Header.fieldSeparator = #
Header.endSeparator = $
Body.fieldNames = CName,CCode
Body.fieldSeparator = #
Body.endSeparator = 'nl'
Source File:
ABC#100$PQR#10
I am getting the error saying File contains more values than the fields specified.
But when I set the Header.endSeperator = 'nl', i get the desired output.
Is this the case that we cannot use more than one separator?
Is it mandatory to use Key?
Any help in this regard is highly appreciated
Thanks,
Jitesh Talreja

Hi,
Thanks for your time
I tried the options posted by you guys but none of the option has worked.
Are there any limitations on the number of seperators to be used? Is my requirement correct and achievable?
Regards,
Jitesh Talreja

Similar Messages

  • FCC field separator

    Hi All,
    Is there any solution for the field separator parameter if the flat file is having single space(not the TAB) as a field separator. I tried copy paste of that space. But it is taking all the filed values in one element.

    Use this parameter for your content conversion in the sender file adapter.
    structure.fieldSeparator = '0x20'
    this is the hexadecimal conversion for space.
    don't forget to rate.

  • Sender File Adapter - FCC - No incoming field separator - How to do FCC?

    Hi,
    I have a sender File adapter and I need to do the File Content Conversion but there apparently no incoming field separator and the file ocntains just running text - no data records but just information.
    For example the incoming file is something like:
                                    The Hongkong and Shanghai Banking Corporation Limited                      27JAN2009       PAGE 1
                                    Incorporated in Hong Kong with limited liability
    ABC IAL LIMITED                                                               ABU DHABI, UAE
    ABC MIDDLE EAST                                                               Account No.     001-8888888
    ABU DHABI                                                                       Payment Set     AAA
    BBB MAIL BOX NO.99                                                             Contact Person  ABC LIMITED
                                                   7777777777                      Telephone
                                                     AUTOPAY LIST - PROCESSED
                                                     (AUTOPAY-OUT SALARY)
    Payment Date           27JAN2009
    First Party Narrative  .                             66666666
    Second Party Narrative .
    The Message type that I am mapping to contains:
    MT_XXXX
         WA
              Item
              Item2
              Item3
    This is so that the information can be mapped to different field areas and send across to the Receiver Mail Adapter. In the mail i receive, i get the running text. I tried giving the field separator as '0x09' but it is not working.
    I have also tried WA..fieldContentFormatting to nothing but again no luck.
    I have tried with Recordset Sequence with Ascending and variable and have also tried Recordsets per Message with * and blank - but it did not help.
    Please advice.
    Regards,
    Archana

    Hi,
    I assumed that it was tab but when I made the change in FCC, it did not work.
    I would still like to have a output where it looks like below if more than 2 types of information in 1 line as below:
    ABC IAL LIMITED                     ABU DHABI, UAE  
    ABC MIDDLE EAST                  Account No. 001-9999999999999  
    and not something like:
    ABC IAL LIMITED ABU DHABI, UAE   
    ABC MIDDLE EAST Account No. 001-999999999999
    I am not sure what to do here.
    Help please.
    Regards,
    Archana

  • Sender File Adapter - Problem with field separator

    Hi,
    I want to upload a CSV file into XI.
    The file contains a text part which uses from time to time quotation marks like this:
    SD,575757,383838,N/A,XYZ,"This is a text part",7676
    But besides there are lines like this:
    SD,575757,777722,N/A,XDE,FREETEXT,7575
    Has anyone any idea how to configure the file adapter to get it recognize the quotation marks not as field separator?
    I've already tried the enclosureSign parameters but that leads to an total unconverted line.
    Is it maybe possible to customize two field separators like this:
    Structure.fieldSeparator - ,"
    Thanks for any answer,
    Christina

    No, it doesn't work.
    I've specified now:
    Structure.fieldSeparator        ,
    Structure.enclosureSign         "
    Structure.enclosureSignEscape   ""
    Every line without quotation marks is converted fine. Lines with quotation marks stay like in the original CSV file and the whole line is put into one XML tag (still comma separated).
    Also the parameter fieldContentFormatting - nothing doesn't make a difference.
    Other ideas?

  • Problem with End separator in Sender FCC channel

    Hi Experts,
    If i use a special character as field separator it is working.The same character is not recognized as end separator.
    We tried all different options ,still its not working.
    Thanks,
    Karthikeyan.

    Hi Aamir,
    We tried with single quotes and also as Hex values too.
    As mentioned earlier, it is working as Field separator not as end separator.
    Thanks,
    Karthikeyan.

  • Error in sender FCC

    Hi,
    I am facing an error in sender fcc its:
    Conversion of file content to XML failed at position 0: java.lang.Exception: ERROR converting document line no. 1 according to structure 'Pricebook_Data':java.lang.Exception: ERROR in configuration / structure 'Pricebook_Data.': More elements in file csv structure than field names specified!
    My source structure is :
    Pricebook_abc (root1)
                Pricebook_Data (root2)
                     field1
                     field2
    and my sender fcc is:
    Document name : Pricebook_abc
    Document namespace: urn:xxxxxxx
    Recordset name: pricebook
    Recordset structure: Pricebook_Data,*
    Recordsets per message: *
    Pricebook_Data.fieldNames     field1,field2
    Pricebook_Data.fieldSeparator     ,
    Pricebook_Data.endSeparator     'nl'
    ignoreRecordsetName     true
    I am unable to rectify the error. Please help me.
    Thanks & Regards,
    Pragathi.
    Edited by: Pragathi on Jan 15, 2010 1:40 PM
    Edited by: Pragathi on Jan 15, 2010 1:41 PM
    Edited by: Pragathi on Jan 15, 2010 1:41 PM

    Hi,
    The error was saying that.. the no of fields you are getting in the source are diff from that you have mentioned in FCC.
    Can you just copy and paste the source csv file? and the exact XML structure?
    Regards,
    Swetha.

  • Hierarchical Structure in Sender FCC

    Hi all,
    I am working on a file to file scenario.
    The sender data type is in following format -
    File_Header
    Record_ID
    Filler_S
    Batch_Header
    Record_ID
    Filler_S
    Payment_Node
    Record_ID
    Filler_S
    All the nodes are with key fields.
    File_Header Keyfield - 1, Batch_Header Keyfield - 2, Payment_Node Keyfield - 3.
    I want to know whether it is possible to have FCC on sender File adapter for this hierarchical structure.
    The source XML message should be in following format -
    <?xml version="1.0"; encoding="UTF-8"?>
    <Test>
    <File_Header>
    <Record_ID>1</Record_ID>
    <Filler_S>12</Filler_S>
    </File_Header>
    <Batch_Header>
    <Record_ID>2</Record_ID>
    <Filler_S>12</Filler_S>
    <Payment_Record>
    <Record_ID>3</Record_ID>
    <Filler_S>12</Filler_S>
    </Payment_Record>
       </Batch_Header>
    </Test>
    Currently I am getting source XML in this format.
    <?xml version="1.0"; encoding="utf-8" ?>
    <ns:Test xmlns:ns="urn:testhierarchy:fcc">
    <File_Header>
    --<Record_ID>1</Record_ID>
    --<Filler_S>01</Filler_S>
    </File_Header>
    <Batch_Header>
    --<Record_ID>25</Record_ID>
    --<Filler_S>20</Filler_S>
    </Batch_Header>
    <Payment_Record>
    --<Record_ID>6</Record_ID>
    --<Filler_S>22</Filler_S>
    </Payment_Record>
    </ns:Test>
    i.e. Payment_Record and Batch_Header are at same level. I want Payment_Record under Batch_Header.
    Kindly let me know if hierarchical structures can be handled in sender FCC. If yes then what should be the FCC parameters?
    Thanks i.

    Hi Minal,
    We have Source structure same as yours. I am trying to use FCC to handle multiple hierarchy levels at sender side.
    Can you please let me know if you have some solution for it?
    Thanks,
    Pooja.

  • File Sender FCC doesn't allow repetitive segments and unbounded together

    File Sender FCC give me error if I use the repeatitive structure and * (Unbounded) together. Here is the recordset  structure  UNH,1,BGM,1,DTM,1,NAD,1,CNI,1,STS,1,RFF,*,DTM,1 for which I am getting the error "Conversion of file content to XML failed at position 0: java.lang.Exception: ERROR consistency check in recordset structure validation (line no. 12: missing structure(s) before type 'DTM' "
    If I use the recordset structure UNH,1,BGM,1,DTM,1,NAD,1,CNI,1,STS,1,RFF,2,DTM,1 then I am able to parse the file. But My requirement is that I will expect variable no of RFF segments in my structure. If you guys could help me that would be great.

    Hi Mohammad
    In this case try to maintain the following in content conversion parameters.
    Key Field Name = Key
    <xml>.fieldFixedLengths      = 1,......................
    <xml>.fieldNames                 = Key,.................
    <xml>.keyFieldValue            = 1
    <xml>.keyFieldInStructure    = ignore
    <xml>.endSeparator            = ,
    Think this should solve your problem.
    Refer the following SAP help link :-
    [http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm]
    -Thanks
      Karthik

  • Specify Starting Position in Sender FCC

    Hi Experts Team,
    I wish to specify the starting position of field in sender FCC.
    can i????
    regards,
    kanda

    Hi,
    I think positions we can't identify with FCC statements.  fieldfixedlengths itself system will identify automatically.  If column have any specific character indication we can do easily.  Check it according to your requirement.

  • Problem with PIPE as a field separator

    Hi Gurus,
    I am facing a problem in XI .The incoming file is PIPE as a field separator and a carriage return as end of each record.
    The problem is that in trailer record if the last field has no value in the file then it is unable to identify it is a field.So all mapping which is there to check the empty filed is not working.
    File format processed with status ok.
    01|HEADER|F1
    02|F1|F2|F3
    03|COUNT1|F4
    if the same file in the last record if the filed XX is blank then it is not able to trap in mapping.
    01|HEADER|F1
    02|F1|F2|F3
    03|COUNT1|XX
    If  i am giving a extra PIPE at end of each record then it is working ok and the mapping can able to check if a field is blank.
    But without putting a PIPE at the end is it possible to trap error if any last field is contains blank.
    it is little URGENT.Please reply.
    Thanks,
    Satya

    Hi,
    Suppose you called 03|COUNT1|F4 row as "trailer" in recordset structure.
    Then you can use the following parameters:
    trailer.missingLastfields = ignore - to get converted to XML only fileds that have been filled in
    trailer.missingLastfields = add - to have last fileds filled with empty values
    trailer.missingLastfields = error - to terminate FCC since file has not complete structure
    Regards,
    Jakub

  • Sender FCC Details

    Hi,
    How to specify the sender fcc details for following structure
    <header>
       <Record>
             <field1>
             <field2>

    HI Guys,
    How about the sender file is of such format
    Header1,Item1 details
    Header1,Item2 Details
    Header2, Item1 Details
    Header2,item2 Details
    Header3, Item1 Details  
    I need to map this file format to IDOC strucutre, In Header there is a filed which is the Key value to identify the change in header.
    Eg: Order Number is the field in the following file which identifies the change in header: First three fields are header details and following are the item details:
    ABC,ON1,22,Item1,XX
    ABC,ON1,33,Item2,FF
    ABC,ON2,44,Item1,MM
    ABC,ON3,66,Item1,LL
    How would be the Data type strcuture to capture this type of falt file strcuture and FCC parameters?
    I need to send a single IDOC per one header with multiple Items. is it possible to achieve?
                                                                                    Thanks
    Rajeev

  • How to get some character as a field separator while in GUI_DOWNLOAD ?

    Hi Friends,
    I have to download data from an internal table to a text file. The field separator
    between the fields should be comms (,). So, after getting the data into internal table i'm calling the Function Module GUI_DOWNLOAD. Now using this function module can i insert a comma spearator between the fields, if not what is the other way to do it?

    Hi,
    Its not possible to give the field separator as ',' directly with gui_download from you internal table.
    Below is the example through which you can achieve the following,
    this is a tested program and is working fine on the system....
    so you can use the logic to achieve the following result.... hope this logic helps you to achieve your functionality....
    DATA:
    BEGIN OF fs,
       col1(6) TYPE c,
       col2(4) TYPE c,
       col3 TYPE c,
       END OF fs.
    DATA :
    BEGIN OF line,
    line(255) TYPE c,
    END OF line.
    DATA: itab LIKE TABLE OF fs,
          itab2 LIKE TABLE OF line.
    DEFINE m_tab.
      clear fs.
      fs-col1 = &1.
      fs-col2 = &2.
      fs-col3 = &3.
      append fs to itab.
    END-OF-DEFINITION.
    m_tab '006000' '0010' 'J'.
    m_tab '006000' '0010' 'J'.
    m_tab '006000' '0010' 'M'.
    m_tab '006000' '0010' 'M'.
    m_tab '006000' '0010' 'O'.
    m_tab '006000' '0010' 'O'.
    m_tab '006000' '0010' 'T'.
    m_tab '006000' '0010' 'T'.
    LOOP AT itab INTO fs.
      CONCATENATE fs-col1
                  fs-col2
                  fs-col3
             INTO line
    SEPARATED BY ','.
      APPEND line TO itab2.
    ENDLOOP.
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
    *   BIN_FILESIZE                    =
        filename                        = 'C:\filename.txt'
    *   FILETYPE                        = 'ASC'
    *   APPEND                          = ' '
    *   WRITE_FIELD_SEPARATOR           = ' '
    *   HEADER                          = '00'
    *   TRUNC_TRAILING_BLANKS           = ' '
    *   WRITE_LF                        = 'X'
    *   COL_SELECT                      = ' '
    *   COL_SELECT_MASK                 = ' '
    *   DAT_MODE                        = ' '
    *   CONFIRM_OVERWRITE               = ' '
    *   NO_AUTH_CHECK                   = ' '
    *   CODEPAGE                        = ' '
    *   IGNORE_CERR                     = ABAP_TRUE
    *   REPLACEMENT                     = '#'
    *   WRITE_BOM                       = ' '
    *   TRUNC_TRAILING_BLANKS_EOL       = 'X'
    *   WK1_N_FORMAT                    = ' '
    *   WK1_N_SIZE                      = ' '
    *   WK1_T_FORMAT                    = ' '
    *   WK1_T_SIZE                      = ' '
    *   WRITE_LF_AFTER_LAST_LINE        = ABAP_TRUE
    *   SHOW_TRANSFER_STATUS            = ABAP_TRUE
    * IMPORTING
    *   FILELENGTH                      =
      TABLES
        data_tab                        = itab2
    *   FIELDNAMES                      =
    EXCEPTIONS
       file_write_error                = 1
       no_batch                        = 2
       gui_refuse_filetransfer         = 3
       invalid_type                    = 4
       no_authority                    = 5
       unknown_error                   = 6
       header_not_allowed              = 7
       separator_not_allowed           = 8
       filesize_not_allowed            = 9
       header_too_long                 = 10
       dp_error_create                 = 11
       dp_error_send                   = 12
       dp_error_write                  = 13
       unknown_dp_error                = 14
       access_denied                   = 15
       dp_out_of_memory                = 16
       disk_full                       = 17
       dp_timeout                      = 18
       file_not_found                  = 19
       dataprovider_exception          = 20
       control_flush_error             = 21
       OTHERS                          = 22
    IF sy-subrc <> 0.
      WRITE sy-subrc.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Regards,
    Siddarth

  • Issue with field separator in GUI_UPLOAD

    Hello Gurus
    I am facing issue with gui_upload. I have a text file in which the fields are eparated by single Pipe  i.e |. Now when I try to read the data from file in internal table even with using field separator it does not insert data in proper fields.
    DATA: BEGIN OF IT_TAB OCCURS 0,
          OBJECT_ID type string,
          VERSION_SERIES_ID TYPE string,
          VERSION_NUMBER TYPE string,
          REVISION TYPE string,
          DOC_NUMBER TYPE string,
          DOCTITLE TYPE string,
          FILESIZE TYPE string,
          MIME_TYPE TYPE string,
          PLANTUNIT TYPE string,
          END OF IT_TAB.
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        FILENAME                      = w_mpath
        FILETYPE                      = 'ASC'
        HAS_FIELD_SEPARATOR           = '|'
      HEADER_LENGTH                 = 0
       READ_BY_LINE                  = 'X'
      DAT_MODE                      = ' '
      CODEPAGE                      = ' '
      IGNORE_CERR                   = ABAP_TRUE
      REPLACEMENT                   = '#'
      CHECK_BOM                     = ' '
      VIRUS_SCAN_PROFILE            =
      NO_AUTH_CHECK                 = ' '
    IMPORTING
      FILELENGTH                    =
      HEADER                        =
      TABLES
        DATA_TAB                      = it_tab[]
    EXCEPTIONS
       FILE_OPEN_ERROR               = 1
       FILE_READ_ERROR               = 2
       NO_BATCH                      = 3
       GUI_REFUSE_FILETRANSFER       = 4
       INVALID_TYPE                  = 5
       NO_AUTHORITY                  = 6
       UNKNOWN_ERROR                 = 7
       BAD_DATA_FORMAT               = 8
       HEADER_NOT_ALLOWED            = 9
       SEPARATOR_NOT_ALLOWED         = 10
       HEADER_TOO_LONG               = 11
       UNKNOWN_DP_ERROR              = 12
       ACCESS_DENIED                 = 13
       DP_OUT_OF_MEMORY              = 14
       DISK_FULL                     = 15
       DP_TIMEOUT                    = 16
       OTHERS                        = 17
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    I want the data to get appended in internal table based on | separator.
    Please help.
    Regards,
    Rajesh.

    Hi,
    I believe the field separator parameter will work for Excel files..You have to get the internal table in a string format..and then use split statement..
    check this example..
    DATA: BEGIN OF it_tab OCCURS 0,
           object_id TYPE string,
           version_series_id TYPE string,
           version_number TYPE string,
           revision TYPE string,
           doc_number TYPE string,
           doctitle TYPE string,
           filesize TYPE string,
           mime_type TYPE string,
           plantunit TYPE string,
         END OF it_tab.
    DATA: t_tab   TYPE TABLE OF string,
          v_string TYPE string.
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        filename                = 'C:\TEST.TXT'
    *    has_field_separator     = '|'          "Actually not required.
      TABLES
        data_tab                = t_tab
      EXCEPTIONS
        file_open_error         = 1
        file_read_error         = 2
        no_batch                = 3
        gui_refuse_filetransfer = 4
        invalid_type            = 5
        no_authority            = 6
        unknown_error           = 7
        bad_data_format         = 8
        header_not_allowed      = 9
        separator_not_allowed   = 10
        header_too_long         = 11
        unknown_dp_error        = 12
        access_denied           = 13
        dp_out_of_memory        = 14
        disk_full               = 15
        dp_timeout              = 16
        OTHERS                  = 17.
    IF sy-subrc <> 0.
    ENDIF.
    LOOP AT t_tab INTO v_string.
      SPLIT v_string AT ','
            INTO
            it_tab-object_id
            it_tab-version_series_id
            it_tab-version_number
            it_tab-revision
            it_tab-doc_number
            it_tab-doctitle
            it_tab-filesize
            it_tab-mime_type
            it_tab-plantunit.
      APPEND it_tab.
      CLEAR: it_tab.
    ENDLOOP.
    Thanks
    Naren
    Edited by: Narendran Muthukumaran on Oct 15, 2008 4:58 PM

  • Field separator in TEXT_CONVERT_TO_XLS_SAP

    Hi all
    what is the purpose of field separator in FM TEXT_CONVERT_TO_XLS_SAP.what are the possible values to be given for that field separator???????
    what values do i have to give for tab limited
    points will be rewarded

    Hi,
    please check this
      data : lt_raw             type truxs_t_text_data.
      call function 'TEXT_CONVERT_XLS_TO_SAP'
        exporting
    *      i_line_header        = 'X'
          i_tab_raw_data       = it_raw       " WORK TABLE
          i_filename           = p_lname
        tables
          i_tab_converted_data = i_tab      "ACTUAL DATA
        exceptions
          conversion_failed    = 1
          others               = 2.
    aRs
    Message was edited by:
            a®

  • Field Separator in GUI_UPLOAD

    Hi,
         I need to upload a tab delimited excel file . I am using FM GUI_DOWNLOAD.What are Filetype and Field Separator.
    Regards,
    Divyanshu

    Hi Divyanshu,
    It may be better to use the class method to future proof your development (which incidentally calls GUI_UPLOAD anyway). Consider the following code:
      data: i_file type standard table of t_file.
      call method cl_gui_frontend_services=>gui_upload
        exporting
          filename                = w_file
          has_field_separator     = 'X'      "Tab-delimited ASCII upload.
        changing
          data_tab                = i_file
        exceptions
          file_open_error         = 1
          file_read_error         = 2
          no_batch                = 3
          gui_refuse_filetransfer = 4
          invalid_type            = 5
          no_authority            = 6
          unknown_error           = 7
          bad_data_format         = 8
          header_not_allowed      = 9
          separator_not_allowed   = 10
          header_too_long         = 11
          unknown_dp_error        = 12
          access_denied           = 13
          dp_out_of_memory        = 14
          disk_full               = 15
          dp_timeout              = 16
          not_supported_by_gui    = 17
          error_no_gui            = 18
          others                  = 19.
      if sy-subrc <> 0.
    *   Error handling
      endif.
    Hope this helps.
    JB

Maybe you are looking for

  • How much would I have to pay monthly if I want to get financing for a MacBook?

    How much would I have to pay monthly if I want to get financing for a MacBook Pro?

  • Shared Photo Stream Taking Up Storage

    In our family we do a shared photo stream every month. It's a great idea and I love being able to see the pictures, video, comments, etc. from all of my family members. It doesn't take up any room on iCloud which is very nice, however it does take up

  • Automatic start of the 11gR2 Cluster

    Hey, I try to install 11gR2 on a virtual RAC (2 nodes) in VMWARE ESX4i. The maschines are running and the installation of clusterware and the oracle sw worked fine. But I am struggling with the automatic start of the cluster after a system restart. F

  • Converting uft-16 to utf-8

    Hi All, I have file to IDoc Scenario. Message Mapping is working fine for xml encoding UFT-8. However Source file I am getting from client has xml encoding UTF-16. because which my end-to-end mapping is failing. Can you please suggest me something by

  • Flash movie stealing keyboard input Facebook Connect app

    I have a Flash application that integrated Facebook friend connect. When the user initiates Facebook Friend Connect it pops up a new window that prompts the user to log into facebook. On internet explorer when I type in my username and password I int