table control in module pool
Iam using table control in module pool.
when i enter and save items, it should move into the internal table.
here i have header details and table control comes under item details where iam using 2 different tables one for header and another for item and the common field is the gatepass no. which iam generating dynamically by using FM (number_get_next) as soon as i save the record.
i have declared it like this.
loop at zmseg.----
>>(my internal table for items)
> (here under save i have moved the data)
but iam facing problem when i item contains more than one item as it is generating gatepass no for every item. do i need to declare both seperately.
Under this i have declared: when 'save'.
moved all the data into header and item tables.
Please let me know where iam doing mistake.