04-02-2008 3:15 PM
Hi,
There is a table type TDT_DOCFLOW and TDS_DOCFLOW as line type.
How to define internal table and workarea for above.
Thanks in advance.
Zakir.
04-02-2008 5:54 PM
Hi,
you have table type TDT_DOCFLOW and line type TDS_DOCFLOW.
first you have to know what is the use of table type and line type.you will create table type in se11 using line type (which is nothing but name of a structutre or table).you will find the use of table type in ooabap.while creating any class you dont have tables parameter for mathods like functional modules.so you will create a table type and you will use this table type as export parameter.
usage of table type and line type in abap program.
data:it_docflow type TDT_DOCFLOW.
data:wa_docflow type TDs_DOCFLOW.
wa_docflow-field = 'value'.
append wa_docflow to it_docflow.
loop at it_docflow into wa_docflow.
write: / wa_docflow-field.
endloop.
<REMOVED BY MODERATOR>
Edited by: Alvaro Tejada Galindo on Apr 2, 2008 1:02 PM
04-02-2008 3:19 PM
04-02-2008 3:21 PM
data: I_DOCFLOW type TDT_DOCFLOW,
WA_DOCFLOW type TDS_DOCFLOW.
"Populate table I_DOCFLOW...
....
LOOP AT i_docflow INTO wa_docflow.
....
ENDLOOP.
04-02-2008 5:54 PM
Hi,
you have table type TDT_DOCFLOW and line type TDS_DOCFLOW.
first you have to know what is the use of table type and line type.you will create table type in se11 using line type (which is nothing but name of a structutre or table).you will find the use of table type in ooabap.while creating any class you dont have tables parameter for mathods like functional modules.so you will create a table type and you will use this table type as export parameter.
usage of table type and line type in abap program.
data:it_docflow type TDT_DOCFLOW.
data:wa_docflow type TDs_DOCFLOW.
wa_docflow-field = 'value'.
append wa_docflow to it_docflow.
loop at it_docflow into wa_docflow.
write: / wa_docflow-field.
endloop.
<REMOVED BY MODERATOR>
Edited by: Alvaro Tejada Galindo on Apr 2, 2008 1:02 PM
04-02-2008 6:01 PM
hi ,
do like this ....get the structure of the table first and declare like this....
data: itab type <structure of the table> occurs 0 with header line.
regards,
venkat.