Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Dynamic table - some fields of different rows in one column

Hey guys,

i have the following problem:

i habe a itab with some data like:

name | id | date | number

pete | 1 | 27.07 | 2

pete | 1 | 28.07 | 2

pete | 1 | 30.07 | 2

ann | 1 | 28.07 | 3

ann | 2 | 30.07 | 2

the user can define a period of time, e.g. 28-29.07

so my dynamic table will consist of the "hard" columns name and id and the dynamic added columns for every day:

name | id | 28.07 | 29.07

that's what i already have!

so my problem is, that i have to read the data from the itab into the new dynamic table (field-symbol) like:

name | id | 28.07 | 29.07

pete | 1 | 2 | 2

ann | 1 | 3 | -

i hope you can understand what i want! please give me code sample or a example report!

many thanks in adance!

best regards,

ludwig

Tags:
Former Member
replied

Hi Heinz,

As per my understanding you are not clearing the work area <FS_LINE>.

Clear it once you append it.

AT END OF NAME.
  APPEND <FS_LINE> TO <FS_TABLE>. 
  CLEAR: <FS_LINE>.  " >> Change in Here <<
ENDAT.

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question