Skip to Content

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

help to buield period table

HI,

i need to build a period table like if i have in input 01.10.2007

until 31.10.2007

the table sould look like that.

itab

01.10.2007

02.10.2007

03.10.2007

04.10.2007

....

31.10.2007

what is the best way to do that?

Regards

Tags:
Former Member
Former Member replied

Hi Tal,

try it:

DATA: BEGIN OF ti_date OCCURS 0,

date TYPE sy-datum,

END OF ti_date,

date1 TYPE sy-datum VALUE '20070901',

date2 TYPE sy-datum VALUE '20071030',

date(4).

date = date2 - date1 + 1.

DO date TIMES.

  • WRITE: / date1.

ti_date-date = date1.

APPEND ti_date.

date1 = date1 + 1.

ENDDO.

Regards,

Allan Cristian

Message was edited by:

Allan Cristian

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question