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 data types of the abap/4 layer?
which of the following is more efficient when we are retrieving data from more tables. select statement using innerjoins or select statement using for all entries?
What is Routine in ABAP and Types of routines?x
What are the field and chain statements?
what is set cursor and get cursor command in module pool
How do you set up background jobs in sap? What are the steps?
Shall we use the tables existing in the system for related applications directly (by directly selecting from the database in the pgm) What is the common practice in industries regarding the same? Can anybody help me?? THANKS IN ADVANCE
why do you selected sap abap as your career as there are many technical modules are there?
What is PS structure
If pass table name as parameter how can i get table contents?
Hi i am surya, i have faced this questions plz give me the answer. I have requirement like this, i have two internal tbale like itab and itab1 in itab i have 50 records, in itab1 100 records are there. When execute this question what will be the output a]50 b]100 c]150? And how to join two internal tables what is the syntax for that?
12 Answers Satyam, TCS, Wipro,
What is BDC?