Fileadapter to read Orderheader / Orderline structure

Hi all,
I need to read a file containing a structure like the following
01,ordernumber1,abc,def
02,ordernumber1,orderline1,123,456,890
02,ordernumber1,orderline2,321,654,098
01,ordernumber2,abc,def
02,ordernumber2,orderline1,123,456,890
02,ordernumber2,orderline2,321,654,098
02,ordernumber1,orderline3,321,654,098
and so on
In words : first a line with orderheader (type 01) then several orderlines (type 02). orderheader and orderline are linked to each other via ordernumber
Type 01 and tpye 02 have different layouts.
I need to read this file and create one IDOC out of each order (type 01).
Any idea how to do this in the fileadapter except writing a module ?
many thx in advance
Uwe

Hello,
Take a look at the sender File adapter. You can do your requirement using the standard file adapter.
http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm
Cheers,
naveen

Similar Messages

  • Error in read value from structure

    hi gurus,
    the structure does not contain any data.... so i have 2 problem related to it.
    1. do i apply the select query nd write statement on structure rf05l. i apply it gives error that rf05l is not the table.....
    2. so what is the use of include structure in report, why we used it nd what is the procedure to read data from structure.
    types : BEGIN OF t_rf05l.
    include structure rf05l.
    types : END OF t_rf05l.
    DATA : it_rf05l TYPE STANDARD TABLE OF t_rf05l WITH HEADER LINE,
    wa_it_rf05l TYPE t_rf05l.
    select * from rf05l into it_rf05l.
    append it_rf05l.
    write :......
    reply me soon....
    thanx
    manish sharma.

    Hi
    select * from rf05l into it_rf05l.
    append it_rf05l.
    write :......
    Do this:
    select * from rt05l
    into corresponding fields of table it_r05l.
    loop at it_ro5l into wa_it_rf05l.
    write....
    endloop.
    include structure rf05l. mens you are including all the fields of that Database table into itab or your structure. its does not mean that rt05l can be used as ITAB.
    Regards
    Aditya

  • Read a directory structure?

    Hallo every body,
    How can I read the directory structure of a system(any tutorial or hint).
    Thanks in advance

    The File object has all the methods you need to do this manually. What problem are you trying to solve?

  • How to read data from structure RSTXT

    Hi Everyone..
       I have some problem with read data from structure RSTXT.
    I am using transaction code vl02n -> for delivery select <b>Item</b> in item
    overview tab -> Go to -> Item -> text.
    I want display "<b>RSTXT-TXLINE</b>" field in <b>ALV</b> report how it can be possible?
    If anyone knows about it plz reply me with example.
    Thanks in Advance.

    Hi,
    Use FM READ_TEXT
    ( Once on the text, plz display it in plain page mode :
    then > Go To> header : Here you'll get the FM parameters : ID, Object, Name, ... )
    Sample code :
      DATA: BEGIN OF TTLINE OCCURS 0.
              INCLUDE STRUCTURE TLINE.
      DATA: END OF TTLINE.
      CALL FUNCTION 'READ_TEXT'
           EXPORTING
                CLIENT                  = SY-MANDT
                ID                      = L_ID
                LANGUAGE                = L_LANGUE
                NAME                    = L_BL
                OBJECT                  = 'VBBK'
           TABLES
                LINES                   = TTLINE
           EXCEPTIONS
                ID                      = 1
                LANGUAGE                = 2
                NAME                    = 3
                NOT_FOUND               = 4
                OBJECT                  = 5
                REFERENCE_CHECK         = 6
                WRONG_ACCESS_TO_ARCHIVE = 7
                OTHERS                  = 8.
    Regards,
    Erwan

  • Read a Deep Structure

    Hi Abapers, how can i read a Deep Structure? i mean, read a field inside a table that i'ts inside another table.
    [TABLE1 [TABLE2-FIELD] ]  -> I need read the "Field" Value

    Hi Carlos
    Here is an approach I believe that can help:
    LOOP AT <i><main_table></i> INTO <i><main_wa></i> .
      LOOP AT <i><wa>-<inner_table></i> INTO <i><inner_wa></i> .
        <i><var_1></i> = <i><inner_wa>-<field_to_be_read></i> .
      ENDLOOP .
    ENDLOOP .
    <i>And as a last thing, let me introduce you the SDN forums pointing system: You can assign points to posts you find helpful while solving your question. You can reward points by clicking the yellow star icon at header of each reply post. You can reward;
    - one 10 points (solved)
    - two 6 points (very helpful answer)
    - many 2 points (helpful answer)</i>
    Kind Regards...
    *--Serdar

  • [Urgent] How to let FileAdapter to read next file after a customized period

    Dear friends,
    We are using SOA Suite 11.1.1.5 and use FileAdapter in BPEL Process to read files.
    The file adapter in BPEL Process need to handle 14 inbound different files every batch time. And we want to let File Adapter to start reading next file after every 5 minutes. How can we achive this?
    We tried the MinimumAge and SingleThreadModel properties, but seems no use.
    Thank you in advance.
    Regards,
    Tony

    Hi Tony,
    I think this can help you. Set the following JCA property in File/FTP Adapter .jca file. This will restrict the max no. of files to be read every polling cycle. Set the polling frequency to 5 mins.
           <property name="MaxRaiseSize" value="1"/>Let me know if any problems.
    Regards,
    Neeraj Sehgal

  • How to read a C structure with string and int with a java server using sock

    I ve made a C agent returning some information and I want to get them with my java server. I ve settled communication with connected socket but I m only able to read strings.
    I want to know how can I read strings and int with the same stream because they are sent at the same time:
    C pgm sent structure :
    char* chaine1;
    char* chaine2;
    int nb1;
    int nb2;
    I want to read this with my java stream I know readline methode to get the first two string but after two readline how should I do to get the two int values ?
    Any idea would be a good help...
    thanks.
    Nicolas (France)

    Does the server sent the ints in little endian or big endian format?
    The class java.io.DataInputStream (with the method readInt()) can be used to read ints as binary from the stream - see if you can use it.

  • How to read a table/structure value in a container from a Z program

    Experts,
    I have a WF with one of the container element is a multiline table element of the strucuture BSEG. Now I have a report where given a WID, i need to read the contents of this structure from the workflow container and display in ALV grid.
    I'm using the FM SAP_WAPI_READ_CONTAINER or SWW_WI_CONTAINER_READ to read the container. No issues till here now.
    I'm able to read the contents of the attributes that are simple without being in a structure/table.
    But, how do i read the values from the table/structure in the container from this FM?
    I see lots of threads talking about SWC_GET_TABLE or something like that. But I don't know whether and how to use it in my scenario. Any sample programs will be greatly appreciated.
    Thanks,
    Sam

    Hey,
    No issues. I sorted out myself. Glory to God in the Heavens!
    -Sam

  • How to Read records from structure to internal table

    HI,
    Can any body know how to read the records from structure to internal table at runtime.
    please give me sample program if possible.
    thanks in advance
    KP

    if your internal table is having the same structure as the structure you are reading the values from then you can directly assign like..
    internatable table work area or header line = structure.
    or else if they are different assign field by field like
    internal table-field1 = structure-field1.
    internal table-field2 = structure-field2.
    award points if it helps.

  • How to read the DTD structure

    Hi,
    I have a file contains the DTD and xml content and I want to get the XML element tree structure together with the element content model.
    I usually use DOM to read the XML document, but it seems there no facilities to directly read data from DTD. Is there any way to do that?
    And how about generating an empty Document using the DTD?
    Thanx a lot

    Google for 'wutka parser'. There's also a few other DTD parsers available. Again google...
    cheers,
    vidyut

  • Read Data Type Structure

    Hi,
    Is it possible using ABAP to read the schema definition of a data type to provide a list of the elements defined.
    Thanks
    Martin

    Hi,
    In ABAP you can parse xml or xsd using iXML package. Search for that in SDN.
    The Message Interface will surely have the Message type name. So your requirement is absolutely possuble.
    Need to know in which scenario you will use this? Please post that.
    Regards,
    P.Venkat

  • FileAdapter to read "|" (pipe) seperated file

    Hi all,
    when using "file content conversion" in the sender file adapter and having a "," or ";" as a seperator everything is fine.
    But I now have a "|" (pipe symbol) as the seperator character. The adapter does not seem to recognize this "|" as a single character and keeps the original line unchanged, that I don't get my XML I wanted
    I tried various other settings like the hex-representation, '|', "|" or | without qoutes, but not success so far.
    So if someone has come across this already and solved it ... please post.
    Thx
    Uwe

    Hi all,
    these settings are working :
    line.fieldSeparator |
    line.fieldNames <field1>,<field2>,<field3>
    line.processFieldNames fromConfiguration
    line.endSeparator 'nl'
    I have seperated the fieldNames as well with | 
    thanks a lot to all
    Uwe

  • Read a CSV structure

    Hi,
    I have my data in internal table which has one filed, say fielda(2000) type c.
    Now in this field i have data in CSV format.
    e.g
    abc, 101022, xyz, USA, 36598, etc
    I have one final internal table in which I want to transfer this CSV values. Lets suppose final internal table name is final_itab.
    Now i want to pass the values like this,
    final_itab-f1 = abc
    final_itab-f2 = 101022
    final_itab-f3 =  xyz
    like this.
    So in short i want to transfer CSV values to my final_itab. How can i do that.(each comma is one field).
    Is there any function module for this.

    Hello,
    <li>Try this way.
    LOOP AT it_csv_data.
      SPLIT it_csv_data-fielda AT ',' INTO it_final_tab-f1
                                           it_final_tab-f2
                                           it_final_tab-f3
                                           it_final_tab-f4.
      APPEND it_final_tab.
      CLEAR  it_final_tab.
    ENDLOOP.
    Thanks
    Venkat.O

  • How to read configuration structure (SD)

    Hello,
    i've to read the whole configuration structure of an SD-order item, which isn't expanded to sub-positions. Means: the material in item 10 is an BOM head-material and a KMAT. The materials in the multi-level BOM are configured via the configuration of the head material. If you press the "Configuration" button in the SD-sales order, you see the whole configuration structure. Does anybody know how i can read the whole structure from the database if i know only the SD-order and the item number?
    Thanks,
    Richard

    use FM to get config, you'll have to pass cuobj there.
    call function 'CUCB_GET_CONFIGURATION'              
       exporting                                        
            instance                     = vbap-cuobj   
       importing                                        
            configuration                = z_instance_tab
       exceptions                                       
            invalid_instance             = 1            
            instance_is_a_classification = 2            
            others                       = 3

  • Read org structure

    Hi all,
    Is there any FM who reads the org structure like rh_struc_get  but with extra info like tree/hierarchy :
    For example if  i have the hierarchy : A - O - S - P
    A : Customer object
    O = Organizational unit
    S = job
    P = Person
    I want to see to which organisational unit a person belongs via an evaluation path.
    Thanks in advance

    Hi Samiulla,
    One cool function module is RH_STRUC_GET.
    It's a little complex to use, but there are many examples here in the forum
    Kind regards,
    Garcia

Maybe you are looking for