Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Table type and line type

former_member463678
Participant
0 Kudos

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.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

4 REPLIES 4

Sm1tje
Active Contributor
0 Kudos

data: itab type TDT_DOCFLOW.

data: line type TDS_DOCFLOW .

Former Member
0 Kudos

  data: I_DOCFLOW type TDT_DOCFLOW,
          WA_DOCFLOW type TDS_DOCFLOW.

"Populate table I_DOCFLOW...
....
LOOP AT i_docflow INTO wa_docflow.
....
ENDLOOP.

Former Member
0 Kudos

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

Former Member
0 Kudos

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.