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 is runtime analysis?
What is the syntax for ‘call transaction’?
What are the components of sap scripts? : abap hr
After Uploading logo into SAP-SCRIPT How To Check Whether It is Success fully Uploaded or not?
What is difference between dialog program and a report?
What are the differences between table and structure in data dictionary?
how do you send the BDCDATA table in a Call Transaction statement
how to send mail on smart form
What is the use of the raising exception? : abap modularization
What two statements are required in an abap program to output an icon using a written statement?
How do u know that updation is successful in BDC
What are the parameter types for a method?