Skip to Content
author's profile photo Former Member
Former Member

Adding Minutes to date and time

hi,

Is there any direct way/FM to add minutes to date and time..

keeping in mind that adding minutes may change the date ...

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 09, 2007 at 02:30 AM

    Hi Anuradha,

    Pass the negative value to the same FM and check it out.

    -Satya Priya

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 09, 2007 at 12:41 AM

    Use this FM.

    DATA V_DATE TYPE SY-DATUM VALUE '20060726'.

    DATA V_TIME TYPE SY-UZEIT VALUE '170746'.

    DATA V_DATE1 TYPE SY-DATUM VALUE '20060726'.

    DATA V_TIME1 TYPE SY-UZEIT VALUE '170746'.

    CALL FUNCTION 'CATT_ADD_TO_TIME'

    EXPORTING

    idate = V_DATE

    itime = V_TIME

    stdaz = '2400' -->Specify hours with minutes

    IMPORTING

    EDATE = V_DATE1

    ETIME = V_TIME1.

    WRITE:/ V_DATE1, V_TIME1. -->Will contain new date and time afte adding STDAZ hours with mintues.

    - Guru

    Reward points for helpful answers

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.