Send a flat file with fixed lengths to XI 3.0 using a Central File Adapter?

Hello,
I'm wondering if someone have experience setting up conversion for different record structures. The example shown,
/people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter,
(in a greate way) only picture one kind of structure.
How should it be done if the file would contain
10Mat1
20100PCS
The first record structure has columns
ID(2),Material(10)
The second redcord structure has columns
ID(2),Quantity(3), Unit of messure (3)
Brgds
Kalle
Message was edited by: Karl Bergstrom

The configuration would be like follows:
Content Conversion Parameters:
Document Name: <your message type name>
Document Namespace: <your message type namespace>
Document Offset: <leave empty>
Recordset Name: <any name>
Recordset Namespace: <leave empty>
Recordset Structure: row1,,row2,
Recordset Sequence: any
Recordsets per Message: *
Key Field Name: ID
Key Field Type: String
Parameters for Recordset Structures:
row1.fieldNames           ID,Material
row1.fieldFixedLengths    2,10
row1.keyFieldValue        10
row2.fieldNames           ID,Quantity,UOM
row2.fieldFixedLengths    2,3,3
row2.keyFieldValue        20
Instead of row1 and row2 you can choose any name.
Regards
Stefan

Similar Messages

  • Flat file with fixed lengths to XI 3.0 using a Central File Adapter---Error

    Hi
    According to the following link
    /people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter
    In Adapter Monitor I got the following error,
    In sender Adapter,
    Last message processing started 23:47:35 2008-10-25, Error: Conversion of complete file content to XML format failed around position 0 with java.lang.Exception: ERROR converting document line no. 1 according to structure 'Substr':java.lang.Exception: Consistency error: field(s) missing - specify 'lastFieldsOptional' parameter to allow this
      last retry interval started 23:47:35 2008-10-25
      length 15,000 secs
    some one help me out ?
    Thanks
    Ram

    from the blog you referenced -
    <u> /people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter
    <b>goto step 4</b>
    <u>additional parameters</u>
    add as the last entry
    <recordset structure>.lastFieldsOptional            Yes
    e.g.,
      Substr.lastFieldsOptional            Yes

  • Interface output file : tab limited vs flat file with fixed length

    hey guys,
    any idea on difference b/w to file type : flat file with fixed length or tab limited file
    thanks

    Tab Delimited:
    Two Field are seperated by a TAB
    eg. SANJAY    SINGH
    First field is First Name and Second is Sir Name.
    Nth field will be after N -1 tab
    Fixed Length:
    Every field has a fixed starting position and length
    eg. SANJAY     SINGH
    Here First field start from Position 1 and has lenght 10 and 2nd field start from 11th postion and has lenght 10.
    Fixed Length -> The lenght of each field is fixed, while in tab delimited the lenght of field is not fixed but we know it ends when the Seperatot (Tab) is encountered.

  • Files with fixed length

    I have an input file, which is fixed length format. I need to configure the Sender File Adapter for a fixe length file(i.e each field length is available and I need to mention that in my sender file Adapter)
    Can anyone suggest an appropriate blog, that explains my scenario.
    (I searched this web and it keep on hanging)

    Hi Naveen
      check these links
    /people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30
    for sender conversion (check the sub links in this topic)
    http://help.sap.com/saphelp_nw04/helpdata/en/0b/9a50465ccf84479e39a6d50c90fb3f/frameset.htm
    and my reply to your previous post for idoc to flat file.
    Regerds
    Vishnu

  • Adapter file receiver - file with fix length record

    Hi everybody,
    In the file adapter receiver, I want to create a fixed length record file .
    Each record need to have the same size.
    How is it possible, because I have a file which contains variable legnth depending of the lenght of message?
    exemple:
    <mess>
       <row>1234567</row>
       <row>123456789A</row>
    </mess>
    give the file
    1234567<CR>
    123456789A<CR>
    <CR> means carriage return
    and I want a file like
    1234567   <CR>
    123456789A<CR>
    with the same lenth of record (10 in the example).
    Can anyone help me, ,please?
    Kind regards.
    E. Koralewski

    Hi Eric,
    Create a value user defined function with one input argument a and name it is inputpad. Then add the following code:
    Imports:  java.*;
    while (a.length()<Integer.parseInt("10"))
         a= a +" " ;
    return String;
    Here I am assuming your fixed length for the field is 10. If it is more or less then change the number. Now in your mapping do all your logic and then in the final add this like:
    input ---> your logic --> inputpad udf --> target.
    Regards,
    ---Satish

  • How to process file with fixed length using MFL in OSB

    Hi Team,
    I need to translate this file using MFL. its fixed lenght[each line is having 81 chars] file in below format.
    Please help me to process this in OSB using MFL.
    ==================================================================
    START
    [email protected]
    [email protected]
    END
    Subject : CALIFORNIA STEEL IND Renege #00424523 Hse580 CTH580
    BODY:
    User_ID: LARRY014
    Xpd2 Hse/Customer # : 580/1196310
    Xpd Order Number: 580094624
    Customer E-Mail: [email protected]
    Customer E-Mail 2:[email protected]
    Customer Phone : 9093506458
    Dear Salesperson,
    gexprosupply.com Order # : 00424523
    gexprosupply.com User ID : LARRY014
    Customer CALIFORNIA STEEL IND has entered order 00424523
    through gexprosupply.com.
    THIS ORDER HAS RENEGED for the following reason(S):
    I. ORDER LEVEL
    NOTE SEGMENTS FOUND IN INPUT - SENTRY
    CDF REQUIRED CUSTOMER - ORDER RENEGED
    II. ITEM/LINE LEVEL
    LINE # ECOM LINE NAED QTY STATUS ALLOW SUBS
    Please resolve the renege and release the order in Sentry
    01 as soon as possible. Thank you.
    EMAIL-END
    ==================================================================
    Thanks
    Reddy
    Edited by: 913248 on Feb 8, 2012 2:07 PM
    Edited by: 913248 on Feb 8, 2012 2:08 PM

    Hi Prabu,
    thanks a lor fro you replay.......
    the above file is having mail content[from id, to id, subject and body] i need to read this file using OSB and need to sent to the respective email id.
    the file format is :
    it will have
    0- its a fixed length in each line [81 chars]
    1--"START" tag....starting of the email
    2--after START, the email ID is "FROM" email ID
    3-after "FROM" emailid, 3rd line onwards....will have "TO email IDs
    4-"END"---end of the email IDs
    5- "Subject " ...will have subject of the email
    6-"BODY".... the email body will start in this tag
    7-"EMAIL-END"..end of the email....
    so my requirement is ..i need to read above file in OSB and send notification emai.
    Thanks
    Reddy

  • How to generate blank spaces at end of the record in a flat file with fixed

    Hi,
    I am generating a flat file with fixed length.
    In my ABAP program, i am able to see the spaces at the end of the recors in debug but when download to applicaiton server i am not able to see those spaces.
    How can i generate blank spaces at the end of the record in a flat file?
    Please update
    Thank you

    How are you downloading the file?  And, How are you looking at the file on the application server?
    Can you provide snippets of your code?
    Cheers
    John

  • How to create flat file with fixed lenght records

    I need help to export an Oracle table to a flat file with fixed lenght and without columns separator.
    the fixed length is the more important demand.
    My table have 50 columns with varchar, date and number .
    Date and number columns may be empty, null o with values.
    Thanks a lot for any help.
    [email protected]

    Hi,
    You can use this trick:
    SQL>desc t
    Name                                      Null?    Type
    NAME                                               VARCHAR2(20)
    SEX                                                VARCHAR2(1)
    SQL>SELECT LENGTH(LPAD(NAME,20,' ')||LPAD(SEX,1,' ')), LPAD(NAME,20,' ')||LPAD(SEX,1,' ') FROM T;
    LENGTH(LPAD(NAME,20,'')||LPAD(SEX,1,'')) LPAD(NAME,20,'')||LPA
                                          21                    aF
                                          21                    BM
                                          21                    CF
                                          21                    DM
    4 rows selected.
    SQL>SELECT *  FROM t;
    NAME                 S
    a                    F
    B                    M
    C                    F
    D                    M
    4 rows selected.Regards

  • How to load unicode data files with fixed records lengths?

    Hi!
    To load unicode data files with fixed records lengths (in terms of charachters and not of bytes!) using SQL*Loader manually, I found two ways:
    Alternative 1: one record per row
    SQL*Loader control file example (without POSITION, since POSITION always refers to bytes!)<br>
    LOAD DATA
    CHARACTERSET UTF8
    LENGTH SEMANTICS CHAR
    INFILE unicode.dat
    INTO TABLE STG_UNICODE
    TRUNCATE
    A CHAR(2) ,
    B CHAR(6) ,
    C CHAR(2) ,
    D CHAR(1) ,
    E CHAR(4)
    ) Datafile:
    001111112234444
    01NormalDExZWEI
    02ÄÜÖßêÊûÛxöööö
    03ÄÜÖßêÊûÛxöööö
    04üüüüüüÖÄxµôÔµ Alternative2: variable length records
    LOAD DATA
    CHARACTERSET UTF8
    LENGTH SEMANTICS CHAR
    INFILE unicode_var.dat "VAR 4"
    INTO TABLE STG_UNICODE
    TRUNCATE
    A CHAR(2) ,
    B CHAR(6) ,
    C CHAR(2) ,
    D CHAR(1) ,
    E CHAR(4)
    ) Datafile:
    001501NormalDExZWEI002702ÄÜÖßêÊûÛxöööö002604üuüüüüÖÄxµôÔµ Problems
    Implementing these two alternatives in OWB, I encounter the following problems:
    * How to specify LENGTH SEMANTICS CHAR?
    * How to suppress the POSITION definition?
    * How to define a flat file with variable length and how to specify the number of bytes containing the length definition?
    Or is there another way that can be implemented using OWB?
    Any help is appreciated!
    Thanks,
    Carsten.

    Hi Carsten
    If you need to support the LENGTH SEMANTICS CHAR clause in an external table then one option is to use the unbound external table and capture the access parameters manually. To create an unbound external table you can skip the selection of a base file in the external table wizard. Then when the external table is edited you will get an Access Parameters tab where you can define the parameters. In 11gR2 the File to Oracle external table can also add this clause via an option.
    Cheers
    David

  • Dealing with Fixed Length formats both at sender and receiver side

    Hi all,
    I have file -- File with fixed lenght formats.
    Source system will generate a text file with fixed lenght and target also needs the same file with same format.
    Then we have an idea to implement the interface with out IR Development .this is fine upto now.
    But now the problem is we are receiving more fields from source than we require for target process. we are not using at receiver side.
    So receiving system needs only few required fields from the source file.
    From soucre
    Ex: Source....  DocNum   Invoice No   Bill date   Bill amount vendor code
    We require at target
    Ex: Target.....   DocNum  Bill Date Vendor code
    Please suggest me
    Regards

    Hi,
    >>The source file content conversion is simple...In the target when you specify the target field names just leave out the ones you dont need...
    from source we wil read all the fields, this is fine and in the target how to mention the field positions
    Here all fields will come into picture, we cant mention the positions at receiver
    Source side Ex: Docnum    InvoiceNo     Billdate     Bill Amt     Vendor
    Fixed lenghts are 10            20               10             10            20
    Target Expects Ex: Docnum   BillDate  Vendor
                                  10            10          20
    in receiver side if you mention fixed lenghts like 10 10 20 means it may read docnum, Invoiceno, BillDate
    It wont ignore InvoiceNo field in this case
    Regards

  • How to send multiple files with it's original name over HTTPS using one CC?

    I am working on a File to HTTPs scenario. It is in production and working fine. Currently we send only one file and I have hard coded the name in the communication channel in the header fields. Now we have to send more files with different names and I want to use only one receiver channel instead of many. We need to send the files with their original names.
    I used the ASMA in the sender File Adapter and I see the FileName in the dynamic configuration under http://sap.com/xi/XI/System/File name="FileName".
    I know we can use a UDF in message mapping and get the value and put it in HEADERFIELDONE. But we don't want to use mapping as the files are huge and we don't want to insert XML tags in the payload.
    So how do I put the Filename from the DynamicConfiguration to the HTTP header field as FileName without using mapping? Are there any settings?
    Can I put something in the PROLOG or can I use any other module in the File Sender Adapter or is there any other option?
    Any help is appreciated.
    Thanks
    Sai

    See my blog:
    /people/stefan.grube/blog/2009/06/19/unknown-use-case-of-dynamicconfigurationbean-store-file-name-to-jms-header-without-mapping
    You have to put the configuration in sender channel, as HTTP adapter does not allow modules.
    For the second module, put values related to HTTP adapter.

  • Is it possible to display a waveform with fixed length and fixed starting point?

    Hi,
    I am using DAQ assitant to acquire voltage and current measurment of my device. The voltage is a pure sine wave and current is a periodic waveform with phase difference and distortion. I use waveform chart to display the waveform of voltage and current waveform in seperate charts and they work fine.But the waveforms look like moving to the right all the time, in another way ,the phase is always shifting. Now i want to display the waveforms of both with fixed length (say 2 cycle) and also in a same chart. Apart from that, i also want to display the voltage waveform starting form 0 degree (a fixed point )rather than moving all the time. In this case, i can observe the angle difference between voltage and current. Is there any method to achieve this purpose?
    Many Thanks,
    Hao

    Hao,
    first of all, you are using a chart which has three options for updates if the chart is "full":
    Strip chart (default)
    Scope chart
    Sweep chart
    These are called "update mode". Test the modes yourself.
    Also you have to know that you will not likely have an integer number of periods of your signal in the display of the chart. Therefore, a continuous signal will "move" the graph from update to update.
    You can implement some algorithm to discard data to maintain a static "trigger" level for display, but as stated, it will leave gaps in the signal. These gaps are not a concern unless you use the displayed signal for analysis (e.g. FFT).
    Norbert
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • When round tripping with photoshop cc, i get a saved psd file with my original raw,the problem is these are high file sizes and taking a lot of space,can i stop this?

    when round tripping with photoshop cc, i get a saved psd file with my original raw,the problem is these are high file sizes and taking a lot of space,can i stop this?

    That's not the workflow that I use. I have my Lightroom preferences set to create TIF images when going to Photoshop. I keep the original raw file and the TIF image (usually reduced to an 8-bit image) and only export JPEG's when they are needed to send to a lab or to send to someone over the Internet. JPEG files are highly compressed. I only create them when they are needed, and they are discarded as soon as they have been used for their intended purpose. I keep the raw file and the Photoshop-created TIF in my library. This requires extra disk space. But I always have the highest quality files available.

  • I have a file with the (.rar) extn. How do I unzip this file,

    I have a file with the (.rar) extn.  how do I unzip this file.

    Rar is not zip so you need a unrar utility to expand it.  The one above is one example of many.  If you follow that link you will see a "Related Software" section on that page that lists a bunch more.
    FWIW, my current favorite is UnRarX.
    There's also the unrar cammand if you need to do it from the terminal (or script).

  • I have a recorder that outputs wma files. How can I get garageband to use my wma files?

    I have a recorder that outputs wma files. How can I get garageband to use my wma files?

    I don't think that GarageBand can use wmas, but there's always good old conversion, and GarageBand can definitely use mp3s. Personally, I recommend media.io for stuff like this, but of course it depends on the size of your files. Otherwise I don't know that there's anyway to get GarageBand to work with them...

Maybe you are looking for

  • Browser preview menu bar navigation problems

    Hey everyone I have a very strange problem that I honestly have no idea at all how to handle. Below is a template I've put together. It's for a pump repair business site (to provide clarity on any content). Everything was going smoothly, until I prev

  • Problems with VO's query, clause: QRSLT

    Hi Gurus, I got a problem here with a vo's query, the query its fine running in sqldeveloper and toad, but when I ran it on VO's the query doesn't show me any result, what can I do to fix this problem? Please, I hope you can help me with this one, I'

  • How do I change a saved username?

    I want to change a username that is stored. I can change a username on Internet Explorer by using the site's "clear username," but this feature will not work when I'm using Mozilla Firefox.

  • Please suggest practice to generate/print reports?

    Hi, I don't know whether here is the right place posting my question. But I find it is related... I want to write an application which can print out Reports. However, I need good control of the alignment / position of the text when printed because it

  • IPhoto 09 RAW Support for Olympus E-30

    Hi, I already have an Olympus E-510 which is supported & recently got an E-30 body which doesn't appear to be supported by IPhoto. Does anybody know when & if an update will be released to add the E-30 to the RAW compatibility list? aTdHvAaNnKcSe