Skip to Content

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

ABAP Program : Ultimo ??

Dear All,

I am new to ABap and learning by seeing some sample programs.

I could understand some basic programs but Here I am stucked up, Can Anybody help me.

data : Ultimo type d.

ultimo = sy-datum.

ultimo+6(2) = '01'. 'What this statment is doing'

ultimo = ultimo - 1.

write ultimo.

please take some time and Suggest me,

Also let me know some good material for ABAp,

Thanking you.



Former Member
Former Member replied


ultimo+6(2) = '01'. 'What this statment is doing'

The date will have dd,mm and yy components, This statement is setting the dd (DATE) to the first day of the month.

ultimo = ultimo - 1.

After getting the first day of the month, this is setting subtracting a day from that, that means now the month will have the last day of the previous month.



Note : Please close the thread, if the question is answered

0 View this answer in context

Helpful Answer

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