how to calculate the difference between two date type of
variables ?
Answers were Sorted based on User's Feedback
Answer / kapil
data : date1 type sy-datum ,
date2 type sy-datum ,
days type i .
date1 = sy-datum.
date2 = sy-datum - 7.
days = date1 - date2.
write : days. "Answer should be 7
Is This Answer Correct ? | 16 Yes | 9 No |
Answer / amit
You can use the function
module 'DAYS_BETWEEN_TWO_DATES' and pass the start date in
i_datum_bis and end date in i_datum_von then you get the
accurate result!!!!!!!!!!!!!!!!!!!!!!!!!
Is This Answer Correct ? | 3 Yes | 1 No |
Answer / sandeep
You can use the function
module 'FIMA_DAYS_AND_MONTHS_AND_YEARS' and pass the dates
to & from to get the job done....
Is This Answer Correct ? | 2 Yes | 2 No |
Answer / vijay
data: x type i value '10',
y type i value '6',
z type i .
z= x - y.
write:/ z.
Is This Answer Correct ? | 5 Yes | 10 No |
What are the select-option fields?
What is difference between inner join and outer join?
What is Table maintenance generator?
How to get the table name from a field? NOTE:if only the field name is given in a flat file.
How to maintain subtotals n grand totals in smart forms?
Can we call reports and transactions from interactive reporting lists?
What are lock objects?
what is a ticket?
4. You are given functional specs for a BDC program and you need to decide whether to write a method call transaction or a session. How u will decide?
Processing data from data base?
Explain what is runtime analysis?
What is view? Different types of view.