06-09-2006 4:17 AM
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
06-09-2006 4:35 AM
Hi,
You could separate your downloads by your groupings so that means you would have 3 different files. I don't see the reason why 3 different groupings will all be joined together in a single file.
Regards!