10-09-2007 2:29 PM
10-09-2007 2:32 PM
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
10-09-2007 2:32 PM
In tables it is sometimes written that header data and item data? what does it mean? plz help.
10-09-2007 2:35 PM
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 ?
10-09-2007 2:37 PM
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.
10-09-2007 2:37 PM
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.
10-09-2007 2:45 PM
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