Skip to Content
avatar image
Former Member

Time from minutes to days , hours , mins ..

Hi,

Is there a FM that would convert minutes to days , hours, mins

eg 1510 mins = 1 day 1 hour 10 mins

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

6 Answers

  • Best Answer
    avatar image
    Former Member
    May 18, 2006 at 11:30 AM

    Hai

    DATA: LV_TIMESTAMP_NUMC TYPE CACS_TECHTIME_B.

    PARAMETERS: PA_KNWD TYPE CACSKNOWDAT.

    PARAMETERS: PA_KNWT TYPE CACSKNOWTIM.

    call function 'CACS_TIMESTAMP_GET_DATE'

    exporting

    i_timestamp = lv_timestamp_numc

    importing

    e_date = pa_knwd

    e_time = pa_knwt.

    Thanks & regards

    Sreeni

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 18, 2006 at 11:24 AM

    hi

    try this fm

    <b>RH_SCHEDULE_TIME</b>

    plz reward if useful

    Add comment
    10|10000 characters needed characters exceeded

  • May 18, 2006 at 11:26 AM

    Hi Arup,

    Please check this sample codes from other thread.

    report abc.
    
    *-----------------------
    DATA : DAYS TYPE I.
    DATA : HRS TYPE I.
    
    *------------------------
    parameters : h type i DEFAULT '107'.
    
    perform getfigure using H CHANGING DAYS HRS.
    WRITE : DAYS , HRS.
    
    *---------------------------------
    * FORM
    *---------------------------------
    
    form getfigure using phours changing days hrs.
    
    DATA : MYDAYS TYPE P DECIMALS 2.
    MYdays = phours / 24.
    DAYS = TRUNC( MYDAYS ).
    hrs = phours mod 24.
    
    endform.

    or you can check this FM.

    <b>SD_CALC_DURATION_FROM_DATETIME

    C14Z_CALC_DATE_TIME</b>

    Hope this will help.

    Regards,

    Ferry Lianto

    Please reward points if helpful.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 18, 2006 at 11:30 AM

    HI arup,

    try:

    *

    REPORT ZGRO_TEST .

    *

    data: d type i,

    h type i,

    m type i.

    *

    m = 1510.

    *

    d = m / 1440.

    m = m - 1440.

    h = m / 60.

    m = m - 60.

    write: / d, h, m.

    regards, Dieter

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 18, 2006 at 11:31 AM

    Hii

    use this func. modules

    FM /SDF/CMO_DATETIME_DIFFERENCE

    also Check FM C14Z_CALC_DATE_TIME

    Regards

    Naresh

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 18, 2006 at 11:39 AM

    HI

    GOOD

    TRY WITH FOLLOWING FUNCTION MODULES

    WEEK_GET_FIRST_DAY For a given week (YYYYMM format), this function returns the date of the Monday of that week.

    DATE_GET_WEEK will return the week that a date is in.

    CALCULATE_DATE Increase/decrease DATE by a specific number of Days/Months

    HR_SEN_CRULE_0100_DATE Increase/decrease DATE by a specific number of Days/Months/Years

    THANKS

    MRUTYUN

    Add comment
    10|10000 characters needed characters exceeded