Skip to Content
0
Former Member
Jun 09, 2006 at 03:17 AM

data download

22 Views

Hi everyone,

I've been ask to modify a program that downloads data into a file.

the internal table of the program is the following

before downloading the data they want me to group it as fallow

DATA: BEGIN OF t_extra1 OCCURS 0,
        BLDAT  LIKE BSIS-BLDAT,    " Fijo
        BLART  LIKE BSIS-BLART,    " Fijo
        BUKRS  LIKE BSIS-BUKRS,
        BUDAT  LIKE BSIS-BUDAT,    " Fijo
        WAERS  LIKE BSIS-WAERS,
        BELNR  LIKE BSIS-BELNR,    " Fijo
        BKTXT  LIKE BKPF-BKTXT,    " Fijo
        BSCHL  LIKE BSIS-BSCHL,    " Regla
        HKONT  LIKE BSIS-HKONT,
        WRBTR  LIKE BSIS-WRBTR,
        GSBER  LIKE BSIS-GSBER,
        KOSTL  LIKE BSIS-KOSTL,
        PRCTR  LIKE BSIS-PRCTR,
        ZUONR  LIKE BSIS-ZUONR,    " Fijo
        SGTXT  LIKE BSIS-SGTXT,    " Fijo
        BSCHL2 LIKE BSIS-BSCHL,
        HKONT2 LIKE BSIS-HKONT,
        WRBTR2 LIKE BSIS-WRBTR,
        GSBER2 LIKE BSIS-GSBER,
        ZUONR2 LIKE BSIS-ZUONR,
        SGTXT2 LIKE BSIS-SGTXT,
        SHKZG  LIKE BSIS-SHKZG,
      END OF t_extra1.

hkont kostl

hkont kostl prctr (in the same group)

hkont prctr

and

hkont zuonr

My question is how can I take all the data from the internal table t_extra1 and collect the data in this three different groups and then put it together in a internal table to download it.

Any help will be appreciate it.

Regards,

Fidel