Skip to Content
avatar image
Former Member

extracts1

In each field group , fields of same structure are grou8ped together

Q] How do we iknow that the referred fields have the same structure?

.....please tell me the process

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Oct 05, 2007 at 01:17 PM

    I put this back agaig --pls anyone

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 05, 2007 at 07:37 PM

    Hi

    Field groups are used when the data is too high, in which case Internal tables are not used due to memory problems

    see this links and example

    fieldgroups

    http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/field_gr.htm

    http://www.geocities.com/SiliconValley/Grid/4858/sap/ABAPCode/Fieldgroups.htm

    Sample Report Code

    REPORT demo_extract.

    NODES: spfli, sflight.

    FIELD-GROUPS: header, flight_info, flight_date.

    START-OF-SELECTION.

    INSERT: spfli-carrid spfli-connid sflight-fldate

    INTO header,

    spfli-cityfrom spfli-cityto

    INTO flight_info.

    GET spfli.

    EXTRACT flight_info.

    GET sflight.

    EXTRACT flight_date.

    END-OF-SELECTION.

    SORT STABLE.

    LOOP.

    AT FIRST.

    WRITE / 'Flight list'.

    ULINE.

    ENDAT.

    AT flight_info WITH flight_date.

    WRITE: / spfli-carrid , spfli-connid, sflight-fldate,

    spfli-cityfrom, spfli-cityto.

    ENDAT.

    AT flight_date.

    WRITE: / spfli-carrid , spfli-connid, sflight-fldate.

    ENDAT.

    AT LAST.

    ULINE.

    WRITE: cnt(spfli-carrid), 'Airlines'.

    ULINE.

    ENDAT.

    ENDLOOP.

    Regards

    Anji

    Add comment
    10|10000 characters needed characters exceeded