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: 

please help

Former Member
0 Kudos

what is the difference between header table and item table ?

6 REPLIES 6

Former Member
0 Kudos

suppose you have a sales order.

all the data like To address, from address, date, sales order no etc. are called Header data and this data is stored in the header table.

all the data like what items are ordered, what quantity are ordered, the unit of measure, total quantity ordered etc. are called the item data. they are stored in the item table.

Regards,

srinivas

Former Member
0 Kudos

In tables it is sometimes written that header data and item data? what does it mean? plz help.

0 Kudos

So if there is a field which is present in both the table

one of which contain header data and

another one contain itam data

from which i should take the field....i mean which table i should declare to create the internal table ?

Former Member
0 Kudos

Hi

Header table is a table which stores header information which will not be changed frequently. Item table is dependent on the header table information. It will changed frequently.

Ex. for header tables: vbak, mara, likp etc.

Ex. for item tables: vbap, lips, makt, mard etc.

Regards

Haritha.

rodrigo_paisante3
Active Contributor
0 Kudos

Hi,

when you declara a internal table like this:

data: ti_tab type standard table of scustom with header line

You create a table that have a header. You can use it to append values.

ti_tab-field = 'Test'.

append ti_tab.

when you use loop, the header read the current index.

loop at ti_itab.

write ti_itab-field.

endloop.

Or you can create a header line (a structure) to manipulate and/or to append.

data: wa_tab like line of ti_itab.

wa_tab-field = 'test'.

append wa_tab to ti_itab.

Header is used for temp manipulate; the item is the stored header in the itab.

Regards.

Former Member
0 Kudos

hi,

i ll give u one example , it ll help u..

suppose there are two tables 1> employee and 2> department table

for each department number u have corresponding details in employee table.. i.e all empname , salary etc

so in this case department is header table and employee is item table

i.e for each header there are items in item table

reward points if helpful

thanks

nikesh kumar