Problem downloading (nested type) internal table into file..
I wanted to download an file in the following structure
for which i have declared an internal table as below in the source code.. When i download the file
the file is not coming in the above format the KK record is getting merged with H and comes in single line..
how to get it in the above format.. can anyone help me
Type declaration for the header record
TYPES: BEGIN OF TY_Header,
RECTY TYPE CHAR2, "Record ype
LGSID TYPE CHAR10, "Legacy ystem ID
RLOUT TYPE CHAR8, "Rollout ID
ACTIO TYPE CHAR1, "Action Flag
KUNNR TYPE CHAR30, "Customer
KKBER TYPE CHAR4, "Credit Control Area
KRAUS TYPE CHAR11, "Credit Information No.
END OF TY_header.
Type declaration for the Knkk records of the output
TypeS: Begin of TY_KNKK,
RECTY TYPE CHAR2, "Record Type
kraus type kraus_cm. "Credit info number
INCLUDE STRUCTURE J_1FAKNKK.
"Credit control mgmnt
TypeS: END OF TY_KNKK.
Type declaration for the Knka records of the output
TYPES: BEGIN OF TY_KNKA,
RECTY TYPE CHAR2. "Record Type
INCLUDE STRUCTURE J_1FAKNKA."Credit.Contl Extn
TYPES END OF TY_KNKA.
Type declaration for defining structured type
TYPES: BEGIN OF TY_OUT.
INCLUDE TYPE TY_HEADER
as ty_rec renaming with suffix ty_rech.
INCLUDE TYPE TY_KNKK
as ty_KNK renaming with suffix ty_sKNKk.
INCLUDE TYPE TY_KNKA
as ty_KKA renaming with suffix ty_sknka.
TYPES END OF TY_OUT.
Thanks in advance