HEader Line Issue

Hi All,
Previously i have declared a data as
DATA: BEGIN OF t_temp OCCURS 10,
      vbeln TYPE char10,
      END OF t_temp.
<code continues>
LOOP AT t_data INTO fs_data.
    IF NOT fs_data-del_no IS INITIAL.
      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
        EXPORTING
          input  = fs_data-del_no
        IMPORTING
          output = t_temp-vbeln.
      COLLECT t_temp.
    ENDIF.
APPEND LINES OF t_TYPE_temp TO T_ty_vbeln
With the above  i am able to fetch the data in in t_temp.
I have changed the data declarations as
TYPES: BEGIN OF tYPE_temp,
      vbeln TYPE char10,
      END OF tYPE_temp.
DATA: FS_TYPE_TEMP TYPE TYPE_TEMP,
      T_TYPE_TEMP TYPE STANDARD TABLE OF TYPE_TEMP.
And the same loop i am using as shown below.
LOOP AT t_data INTO fs_data.
    IF NOT fs_data-del_no IS INITIAL.
      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
        EXPORTING
          input  = fs_data-del_no
        IMPORTING
          output = t_type_temp-vbeln.
      COLLECT t_type_temp.
    ENDIF.
APPEND LINES OF t_TYPE_temp TO T_ty_vbeln
In the above case i am getting error as t_type_temp is a table without header line and
therefore has no component called "VBELN". What changes has to be done.
Regards
VEnk@
Edited by: Venkat Reddy on Nov 13, 2009 11:30 AM

HI ,
  you write the code as like this..
TYPES: BEGIN OF type_temp,
                  vbeln TYPE char10,
           END OF type_temp.
DATA: FS_TYPE_TEMP TYPE TYPE_TEMP,
T_TYPE_TEMP TYPE STANDARD TABLE OF TYPE_TEMP.
And the same loop i am using as shown below.
LOOP AT t_data INTO fs_data..
IF NOT fs_data-del_no IS INITIAL.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = fs_data-del_no
IMPORTING
output = FS_TYPE_TEMP-vbeln.
APPEND FS_TYPE_TEMP TO T_TYPE_TEMP
ENDIF.
endloop.

Similar Messages

  • How to print header lines at the top of every page with Alv list display?

    Dear all,
    I need a requirement with printing issue. A program list should be printed with the function reuse_alv_list_display.
    The list has several pages and then can be printed but the header lines appear only first page when they printed. The other pages don't have header lines, they continue with the next record of the list remaining from previous page. I use the alv parameters as below:
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
        EXPORTING
          i_callback_program       = l_repid
          i_callback_pf_status_set = 'ALV_PF_STATUS'
          is_layout                = ls_layo
          it_fieldcat              = lt_fcat
          i_default                = 'X'
          i_save                   = 'A'
          is_variant               = ls_variant
          it_events                = lt_events
        TABLES
          t_outtab                 = lt_data
        EXCEPTIONS
          program_error            = 1
          OTHERS                   = 2.
    and lt_events as below:
      ls_event-name = 'END_OF_LIST'.
      ls_event-form = 'ALV_END_OF_LIST'.
      APPEND ls_event TO lt_events.
      ls_event-name = 'END_OF_PAGE'.
      ls_event-form = 'ALV_END_OF_PAGE'.
      APPEND ls_event TO lt_events.
      ls_event-name = 'TOP_OF_LIST'.
      ls_event-form = 'ALV_TOP_OF_LIST'.
      APPEND ls_event TO lt_events.
      ls_event-name = 'TOP_OF_PAGE'.
      ls_event-form = 'ALV_TOP_OF_PAGE'.
      APPEND ls_event TO lt_events.
    So, how can I print header lines for every page?
    Best Regards,

    Hello Saba,
    Your point might be very close to solution.
    Because in the selection screen of the program there are two radio buttons, one of them visits 'REUSE_ALV_COMMENTARY_WRITE' function and the other doesn't. The one which visits has a problem with header liens in every page when printing. But I couldn't find out the solution yet.
    reuse_alv_list_display uses 4 event and of course I call subroutine. There are end_of_list, end_of_page, top_of_list and top_of_page. I use in the subroutine for top_of_page:
      CALL FUNCTION 'LVC_TRANSFER_TO_SLIS'
        EXPORTING
          it_fieldcat_lvc         = gt_fcat
        IMPORTING
          et_fieldcat_alv         = lt_fcat
        EXCEPTIONS
          it_data_missing         = 1
          it_fieldcat_lvc_missing = 2
          OTHERS                  = 3.
      CALL FUNCTION 'REUSE_ALV_LIST_WIDTH_GET'
        EXPORTING
          it_fieldcat = lt_fcat
        IMPORTING
          e_width     = l_width.
    WRITE l_reptx TO l_reptx CENTERED.
      NEW-LINE.
      WRITE: AT (l_width) l_reptx CENTERED.
      SUBTRACT 10 FROM l_width.
      WRITE: AT l_width sy-pagno RIGHT-JUSTIFIED.
        CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
          EXPORTING
            it_list_commentary       = lt_header
      I_LOGO                   =
      I_END_OF_LIST_GRID       =
    Do you have other suggestions ?

  • Internal Table to Excel with Column Header line

    Hello everyone,
    I need to download Internal table data to excel with a column header line.
    My Code is as follows:
    TYPES:  BEGIN OF y_hdr,
            head(30) TYPE c,
            END OF y_hdr.
    Data:  t_hdr TYPE STANDARD TABLE OF y_hdr.
    Fill internal table t_adrcdata
    fill the header table t_hdr
        CALL FUNCTION 'GUI_DOWNLOAD'
          EXPORTING
            filename                      = C:\test.xls
            filetype                        = 'DBF'
        IMPORTING
          TABLES
            data_tab                        =  t_adrcdata
           fieldnames                       =  t_hdr
         EXCEPTIONS
           file_write_error                = 1
           no_batch                        = 2
    This code gives me a row with column headers.
    However they are all truncated after 10 chars.
    The truncation is independent of column data length. Data could be of length 2,5 or 40 but the header always displays upto 10 chars.
    Keeping the filename as test.xls, when I download it in ASC format instead of DBF the headers are of proper length.
    What could I be doing wrong?
    I know this topic has been discussed before but my question is pertaining to DBF Format download. The reason I chose DBF format is because it downloads the data in DB format and does not give in to Excel formatting.
    FOr example in ASC format:
    1, A field of type Char(12) used to get downloaded into excel without the leading zeros. 000012345678 --> 12345678
    2. Date in format dd-MMM-yyyy in a char(11) field used to get downloaded to excel in dd-MMM-yy format.
    When I chose DBF, this issue was resolved. However, the column headers got truncated at 10 chars.
    Please feel free to recommend any other way of downloading to Excel and preserving format if this method is incorrect/ there is a better way.

    Hi,
    Take 'ASC' format for file type.
    But when you declare your internal table to pass for FM you have to create all the fields with char.
    Example:
    data: begin of it_exl occurs 0,
            bukrs(04) type c,
            belnr(10) type c,
            buzei(03) type c,
    end of ut_exl.
    You need to manipulate your date format and other stuff before appending to this internal table.
    Thanks,
    Deepak.

  • 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

  • After adding one column in a table can't get the header line

    hi all,
    i have make a SMART FORM which was working perfectly.Now the requirement of user is to add one column in my table at smart form which i did and after modification i execute it it give me data as well but issue which i'm facing is that the TABLE at smart forms in which i have add one field is not displaying the HEADER LINE which i have define with SELECT PATTREN option.
    Thanks & Regards,
    sappk25

    Hi,
    Have you created the Header Text? If yes, then might be the case that your smartforms
    table which was already created is with Multiple Line. Check weather you have added
    customer field in Header Line or Not?
    Regards,
    SUjeet

  • Flat file having multiple header lines , how to separate the same and pushit into my intrnal table

    Hi Guys,
                    I got an issue , My flat file having multiple header lines
    TPS27RPR  MOME                                      THRIFT (SAVING) PLAN SYSTEM                                           Page    2
    09:54 05 JAN 2014                          List of Contributors w/Company Contributions                           Phase DAY Unit TRE
    Company No: xxxxxxxx - xxxxxxxxxxxxx.
                                                                            Employee/       Employee/
    Employee Full Name/                                                       Company         Company                        Allocation
    Number  ID Number                           PS  PN  End Date        Contribution          Profit        Total Balance   Percentage
    some lines of data and again
    TPS27RPR  MOME                                      THRIFT (SAVING) PLAN SYSTEM                                           Page    2
    09:54 05 JAN 2014                          List of Contributors w/Company Contributions                           Phase DAY Unit TRE
    Company No: xxxxxxxx - xxxxxxxxxxxxx.
                                                                            Employee/       Employee/
    Employee Full Name/                                                       Company         Company                        Allocation
    Number  ID Number                           PS  PN  End Date        Contribution          Profit        Total Balance   Percentage
    in this case how could I separate the header lines from the flat file and update the details to my internal table.
    kindly help me on this issue.
    Thanks and regards,
    M.S.Amirtharajvijay.

    Hi Amirthraj,
    If the flat file is static (if the content within it is same for all) then use the offset concept. First get the contents of the flat file into an internal table and later find the field that has to be in final internal table within the line, calculate the offset for the line and get the value into an workarea. Finally modify/append the work area into an internal table. Also wait for other experts answers for any other hassle free way to achieve the requirement.
    With Regards,
    Giriesh M

  • Work area VS header line

    guyz!
    why do we hafta create WORK AREA ??? cant we make use of the header line.
    what if we make use of int tabs wid header lines.???
    dont say dat performance issue....plzz explain me dat..
    Regards
    zid.

    Hi
    When you define an internal table the system arranges a part of memory area in two parts:
    - The first one is to stores all records loaded in the table;
    - The second one is to store the single record is elaborated,
    So when you loop an internal table, the system picks up the record from the first area and puts it to the second one;
    The part of memory to store all records is obligatory, so the system'll always create it when an internal table is defined.
    The part of memory to store the single record is not necessary, you have to use it only if it needs to read the table: this one is called HEADER LINE or WORK AREA.
    So you can decide to declare a table with or without an header line in according to what you need to do.
    A) If you need to read the table you need to have a table with header line or work area:
    - WITH HEADER LINE
    DATA: BEGIN OF ITAB OCCURS 0,
                  FIELD1,
                  FIELD2,
                  FIELD3,
               END    OF ITAB. 
    LOOP AT ITAB.
      WRITE ITAB.
    ENDLOOP.
    While looping the table the system automatically fills the header line;
    - WITH WORK AREA:
    DATA: BEGIN OF WA_ITAB,
                  FIELD1,
                  FIELD2,
                  FIELD3,
               END    OF WA_ITAB. 
    DATA: ITAB LIKE STANDARD TABLE OF WA_ITAB.
    LOOP AT ITAB INTO WA_ITAB.
      WRITE WA_ITAB.
    ENDLOOP.
    While looping the table the system automatically fills the work area.
    So it can say the header line is a work area the system automatically creates by internal table defination.
    It's the same to use the header line or work area, because you need them when you have to read the records of an internal table.
    A) If you don't need to read the table, you can define a table without header line:
    SELECT-OPTIONS: SO_ERDAT FOR SY-DATUM.
    DATA: IT_MATERIAL LIKE MARA-MATNR OCCURS 0.
    DATA: IT_MARC LIKE STANDARD TABLE OF MARC WITH HEADER LINE.
    SELECT MATNR FROM MARA INTO TABLE IT_MATERIAL WHERE ERDAT IN SO_ERDAT.
    IF SY-SUBRC = 0.
      SELECT * FROM MARC
            FOR ALL ENTRIES IN IT_MATERIAL WHERE MATNR = IT_MATERIAL.
    ENDIF.
    LOOP AT IT_MARC.
      WRITE IT_MARC.
    ENDLOOP.
    In this example the internal table IT_MATERIAL is used only to select the data from MARC using the option FOR ALL ENTRIES. This options doesn't use the header line of the table, so it's useless to define a table with an heaader line.
    Max

  • 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

  • With header line & with out header line ?

    what is difference between with header line & without header line ?

    When you create an internal table object you can also declare a header line with the same name. You can use the header line as a work area when you process the internal table. The ABAP statements that you use with internal tables have short forms that you can use if your internal table has a header line. These statements automatically assume the header line as an implicit work area. The following table shows the statements that you must use for internal tables without a header line, and the equivalent statements that you can use for internal tables with a header line:
    Operations without header line
    Operations with header line
    Operations for all Table Types
    INSERT <wa> INTO TABLE <itab>.
    INSERT TABLE ITAB.
    COLLECT <wa> INTO <itab>.
    COLLECT <itab>.
    READ TABLE <itab> ... INTO <wa>.
    READ TABLE <itab> ...
    MODIFY TABLE <itab> FROM <wa> ...
    MODIFY TABLE <itab> ...
    MODIFY <itab> FROM <wa> ...WHERE ...
    MODIFY <itab> ... WHERE ...
    DELETE TABLE <itab> FROM <wa>.
    DELETE TABLE <itab>.
    LOOP AT ITAB INTO <wa> ...
    LOOP AT ITAB ...
    Operations for Index Tables
    APPEND <wa> TO <itab>.
    APPEND <itab>.
    INSERT <wa> INTO <itab> ...
    INSERT <itab> ...
    MODIFY <itab> FROM <wa> ...
    MODIFY <itab> ...
    Using the header line as a work area means that you can use shorter statements; however, they are not necessarily easier to understand, since you cannot immediately recognize the origin and target of the assignment. Furthermore, the fact that the table and its header line have the same name can cause confusion in operations with entire internal tables. To avoid confusion, you should use internal tables with differently-named work areas.
    The following example shows two programs with the same function. One uses a header line, the other does not.
    With header line:
    TYPES: BEGIN OF LINE,
    COL1 TYPE I,
    COL2 TYPE I,
    END OF LINE.
    DATA ITAB TYPE HASHED TABLE OF LINE WITH UNIQUE KEY COL1
    WITH HEADER LINE.
    DO 4 TIMES.
    ITAB-COL1 = SY-INDEX.
    ITAB-COL2 = SY-INDEX ** 2.
    INSERT TABLE ITAB.
    ENDDO.
    ITAB-COL1 = 2.
    READ TABLE ITAB FROM ITAB.
    ITAB-COL2 = 100.
    MODIFY TABLE ITAB.
    ITAB-COL1 = 4.
    DELETE TABLE ITAB.
    LOOP AT ITAB.
    WRITE: / ITAB-COL1, ITAB-COL2.
    ENDLOOP.
    Without header line:
    TYPES: BEGIN OF LINE,
    COL1 TYPE I,
    COL2 TYPE I,
    END OF LINE.
    DATA: ITAB TYPE HASHED TABLE OF LINE WITH UNIQUE KEY COL1,
    WA LIKE LINE OF ITAB.
    DO 4 TIMES.
    WA-COL1 = SY-INDEX.
    WA-COL2 = SY-INDEX ** 2.
    INSERT WA INTO TABLE ITAB.
    ENDDO.
    WA-COL1 = 2.
    READ TABLE ITAB FROM WA INTO WA.
    WA-COL2 = 100.
    MODIFY TABLE ITAB FROM WA.
    WA-COL1 = 4.
    DELETE TABLE ITAB FROM WA.
    LOOP AT ITAB INTO WA.
    WRITE: / WA-COL1, WA-COL2.
    ENDLOOP.
    The list, in both cases, appears as follows:
    1 1
    2 100
    3 9
    The statements in the program that does not use a header line are easier to understand. As a further measure, you could have a further work area just to specify the key of the internal table, but to which no other values from the table are assigned.
    Internal table with header line
    you can use anywhere except obkect oriented concept.
    Internal table without header line :
    You should use in Object oriented concept..
    Always try to use without header line,performance point of view it is best..
    Example :
    Without header line.
    Structure
    types : begin of ty_itab ,
    matnr type mara-matnr,
    end of ty_itab.
    Internal table
    data i_itab type standard table of ty_itab .
    Work area
    data wa_itab like line of i_itab
    With header line
    data : begin of i_itab occurs 0,
    matnr like mara-matnr,
    end of i_itab
    itab with header lines are obsolete, anyway it will work but not recommended. instead use work area or more effiecient is field symbols. so donot use itab with header line.
    i will explain use of itab w/o header line.
    Data: itab1 type standard table of mara with header line occurs 0,
            itab2 type standard table of mara,
            wa_itab2 type mara.
    loop at itab1.
    "This will work fine.
    endloop.
    loop at itab2.
    "This will give erro that itabd does not hav workarea
    endloop.
    "so write
    loop at itab2 into wa_itab2.
    "This will work
    endloop.
    <b>The difference between
    whih header line and with out heater line of internal table.
    ex:-
    a) Data : itab like mara occurs 0 with header line.
    b) Data: itab like mara occurs 0.
    -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.
    a) Data : itab like mara occurs 0 with header line.
    table is with header line
    b) Data: itab like mara occurs 0.
    table is without header line</b>
    regards,
    srinivas
    <b>*reward for useful answers*</b>

  • Fix table header line of Query in default web template WAD 7.0

    Dear all,
    I would appreciate if somebody could help me to set parameters to fix the header line of a Web-Item DataProvider (Query) in the default web template 0ANALYSIS_PATTERN for the BEx Web Analyser. I mean I want to see the header line with the characteristics and key figures description even if I scroll down in the query. 
    My idea was to create a second frame in the template and to fill it with the same DataProvider just with the header of the Query. The problem is that the performance of the query would be badder if we load two Dataprovider/Query instead of one.
    Many thanks in advance for your answer and help!!!
    Best regards
    Abdel

    Hi Dion,
    Thank you very much for your answer! I have tried to find a paramter in the web application designer to do that, but without success. Now I have included a new container with the same Analysis Web Item, but it does not function! May you have a better idea??
    Thank you very much in advance for your help. I'll also post my question in a BI-Forum as you suggested. 
    Best Regards
    Abdel

  • How to delete value in the header line of itab

    dear all,
    i have create an internal table.
    i would like to delete value of the header line after have used read table to read the contents.
    how can i do it ?

    If your internal table is something like this:
    data: begin of i_mara occurs 0.
    include structure mara.
    data: end of i_mara.
    That clears the matnr field of the header line...
    CLEAR i_mara-matnr.

  • Sent my PB in for horizontal line issue repair.......but.........

    Just got back from the apple store and showed a genius my display and to my surprise he said he could see the issue at the upper half of the of the screen. I tried to show him the crankycat image but he said there was no need.
    I then told hime that the part needed to be used for replacement according to other sufferers is the 646-0324 DSPL, 15.2, WXGA++,SAMSUNG,Q16C part but he said apple don't use that part number here (i live in london). i then ask if the display will be replaced anyway....he says yes.
    When i get the repair sheet, i dont see anything mentioning display replacement, all i see is a "Flat Rate Repair Charge, PowerBook G4 15"-£170" and Labor Charge, PowerBook G4 15" - £100".
    These don't sound really promising. I then request that they test the replacement display with the crankycat image and he goes."everything will be tested properly before despatch dont worry"
    From what i gather the guy just wanted to rush and get things outta the way so he could go home.
    I really don't think this will get fixed, but lets hope apple proves me wrong this once.

    Update- line issue has been fixed

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

  • I want to create an internal table without using header line and occurs 0?

    hi experts,
    Can anybody help me to declare an internal table without using headerline and occurs 0 options but still i have to use the functionalities that occurs 0 and header line options provide.

    Hi Saisri,
    You can use the internal table without headerline and create a header for then internal table with the same structure. We need to use the header while manipulating with the data of the internal table.
    example:
    types: begin of ty_afpo,
                 kdauf type kdauf,
                 kdpos type kdpos,
                 ltrmp   type ltrmp,
               end   of ty_afpo.
    data : t_afpo type standard table of ty_afpo,  " internal table declaration
             wa_afpo type ty_afpo.                        " work area declaration
    <after populating the data into the internal table>
    loop at t_afpo into wa_afpo.
    write:/ wa_afpo-kdauf, wa_afpo-kdpos, wa_afpo-ltrmp.
    endloop.
    This I think shall give you a basic understanding of how things work.
    <b>Reward points if this helps,</b>
    Kiran

  • Multiple Header Lines in Flat-File read by FileSenderAdapter

    Hello XI and File Sender Adapter Species
    We have the following file with fixed file lengths:
    #H1 F1
    #H2 F1
    #H3 F1
    #H4 F1
    #H5 F1
    #H6 F1
    #D1 Field1 - Fieldn
    #D2 Field1 - Fieldm
    #D2 Field1 - Fieldm
    #D1 Field1 - Fieldn
    #D2 Field1 - Fieldm
    #D2 Field1 - Fieldm
    #F F1
    Concrete example as follows:
    #H1 150
    #H2 ECH150_20070709_026745152.dat
    #H3 20070709_1600
    #H4 9.0
    #H5 8712423010208
    #H6 8712423009202
    #MDDTD3 146307732 146202845 871687940006178374E70871687910000219120200707090032B 040235031             Noordkant               28         SINT ANTHONIS           5845EW                                   8716879000004871242300920287124230091962007070909550113533533                 8716948000010501000L
    #MDDTD4 59664          E10
    #MDDTD4 30180          E11
    #MDDTD3 146309776 146202839 871694840030212726E70871694830000000309200707090031B 0411   8              Flierakkers             21         VROOMSHOOP              7681XV                                   8716948000003871242300920287124230091962007070909590113533515                 8716948000010503000L
    #MDDTD4 3562           E10
    #MDDTD4 2422           E11
    #F6
    This File Should be read via the File Sender Adapter and afterwards mapped into the following idoc structure:
    IDOC-Type
    ZUECH_010
      Header Segment: H1, H2, H3, H4 , H5 ,H6
      Detail1Segment: Field1, Field2 …. Fieldn
      Detail2Segment: Field1, Field2 …. Fieldm
      Detail2Segment: Field1, Field2 …. Fieldm
      Detail1Segment: Field1, Field2 …. Fieldn
      Detail2Segment: Field1, Field2 …. Fieldm
      Detail2Segment: Field1, Field2 …. Fieldm
      FooterSegment: Field1
    Now my Questions:
    1.     As far as I know it is not possible to configure in the filesender adapter 2 different Record sets? We need two record sets, one for the header lines whose occurrences are once per File and one for the detail lines? Does anybody know if this is possible?
    2.     Any other ideas for a simple solution?
    Thanks for a soon answer.
    Regards Marlies

    Thanks all very much for your answers:
    The hint from Praveen was very helpful.
    If possible we need a solution with the graphical mapping tool and as far as possible without UDF, because at the moment there is no java developer.
    The file adapter now produces the following xml structure:
    <ZUECH_0150>
      <recordset>
        <H1>     
         <KH1>#H1</KH1>
         <H1>150</H1>
        </H1>
        <H2>
         <KH2>#H2</KH2>
                       <H2>ECH150_20070709_026745152.dat</H2>
              </H2>
              <H3>
                   <KH3>#H3</KH3>
                   <H3>20070709_1600</H3>
              </H3>
              <H4>
                   <KH4>#H4</KH4>
                   <H4>9.0</H4>
              </H4>
              <H5>
                   <KH5>#H5</KH5>
                   <H5>8712423010208</H5>
              </H5>
              <H6>
                   <KH6>#H6</KH6>
                   <H6>8712423009202</H6>
              </H6>
              <MDDTD3>
                   <KMDDTD3>#MDDTD3</KMDDTD3>
                   <MDDTD3>146307732 146202845 </MDDTD3>
              </MDDTD3>
              <MDDTD4>
                   <KMDDTD4>#MDDTD4</KMDDTD4>
                   <MDDTD4>59664          E10</MDDTD4>
              </MDDTD4>
              <MDDTD4>
                   <KMDDTD4>#MDDTD4</KMDDTD4>
                   <MDDTD4>30180          E11</MDDTD4>
              </MDDTD4>
         </recordset>
    </ ZUECH_0150>
    I would prefer the following structure, because it fits exactly to the structure of the idoc.
    That means the mapping is very simple:
    <ZUECH_0150>
          <HEADER>
                  <H1>150</H1>
                  <H2> ECH150_20070709_026745152.dat</H1>
          </HEADER>
          <MDDTD3>
                 <KMDDTD3></KMDDTD3>
                 <MDDTD3>146307732 146202845</MDDTD3>
                    <MDDTD4>
                   <KMDDTD4>#MDDTD4</KMDDTD4>
                   <MDDTD4>59664          E10</MDDTD4>
              </MDDTD4>
              <MDDTD4>
                   <KMDDTD4>#MDDTD4</KMDDTD4>
                   <MDDTD4>30180          E11</MDDTD4>
              </MDDTD4>
          </MDDTD3>
    </ZUECH_0150>
    Now my new questions:
    1.     Is it possible to configure the file adapter to produce a xml structure which afterwards can be mapped with a simple graphical mapping into the idoc structure?
    (I can live with the suggestion from Praveen, that the header information is in each recordset but only has content in the first one.)
    2.     What about the MDDTD4? It is a substructure from MDDTD3. Is it possible to configure this in the file adapter?
    Thanks a lot for your help and a soon answer.
    Regards Marlies
    Message was edited by:
            Marlies  Nowotka
    Message was edited by:
            Marlies  Nowotka

Maybe you are looking for

  • Why does Acrobat suddenly not work on my Mac (won't open pdf files from a web page), yet I can open them from my iPhone? Everything worked fine yesteray.

    Hello: I have a Mac running OS 10.8.5 and I use Acrobat Pro and Acrobat Reader. Today for some reason, any time I try and access a pdf file from a web page, it won't open. I get a blank window. PDF files already on my computer open fine and I can cre

  • Upgrading Oracle database 10.2.0.4 to 11.2.0.3  -2 questions

    Hello,   I am upgradeing a single oracle instance from 10.2.0.4 to 11.2.0.3 on AIX 6.1. I have installed the 11.2.0.3 to a new instance(with the latest  PSU  and Fixes)  and am preparing to run DBUA. I have review serveral documents and done several

  • Canon S100 RAW color issues

    Hello, all. I created a thread with this similar issue a few months ago but never really got it resolved. Instead of reviving an old thread, I decided to just recreate it with updated information. I have the new Canon S100 and I am having an issue wi

  • Lion Server Colocation

    I'm setting up a mac mini lion server for co-location. This will primarily be used as a web server, so the standard ports 80 and 443 need to be accessible to the outside. I also want to be able to gain remote access to the server to manage it from ti

  • Using Terminal to edit Hosts

    This is probably a really basic question but I cannot seem to find the answer. I wanted to add a local hosts entry so that I can see a Server which does not have a dns entry without having to use the ip address. I have worked out where the hosts file