how to calculate the difference between two date type of
variables ?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between leave transaction and call transaction?

604


Event handling in oops

1121


In SAP Script,How to display a single field(like matnr)at the right end of the form.

1973


How can the standard tables of sap be modified?

628


What are the time related infotypes? : abap hr

606






how can we use the text randomly or circularly in smartforms.... means... suppose i have 'abap' horizantally... but i want it in vertically... how can... plz any body tell me this....

1568


Explain the advantage of structures?

542


What are the function module in bdc?

633


Differentiate between abap memory and sap memory?

631


IN SCRIPTS IF WE HAVE EMPTY SECOND LAYOUT AND IF WE HAVE MENTIONED ABOUT IT IN NEXT PAGE ATTRIBUTE THEN IN OUTPUT HOW WE GET THE SECOND PAGE OUTPUT.

1492


How many main windows are allowed in sapscript?

567


What is a table attribute? : abap data dictionary

560


Explain the use of insert and append statement in sap abap?

584


Why are insert and append statement used in sap abap?

664


In the abap/4 dictionary tables can be defined independent of the underlying database (t/f). : abap data dictionary

699