cancel
Showing results for 
Search instead for 
Did you mean: 

Alternate FM for HRVE_CONVERT_TIME

former_member625937
Participant
0 Kudos

Hi Team,

As the HRVE_CONVERT_TIME is not the released one and can i know the alternate one for it.

tried few other Function module,but it was full fill my requirement.

Regards,

KArthik S

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member808116
Participant
0 Kudos

I hope this helps you

DATA: LV_TIME TYPE TZONREF-TSTAMPS. " format YYYYMMDDhhmmss.
CALL FUNCTION 'IB_CONVERT_INTO_TIMESTAMP'
EXPORTING
I_DATLO = SY-DATUM
I_TIMLO = SY-UZEIT
I_TZONE = SY-ZONLO
IMPORTING
E_TIMESTAMP = LV_TIME.


DATA: LV_TIME_2 TYPE TIMS.
CALL FUNCTION 'HRVE_CONVERT_TIME'
EXPORTING
TYPE_TIME = 'A'
INPUT_TIME = SY-UZEIT
INPUT_AM_PM = 'AM'
IMPORTING
OUTPUT_TIME = LV_TIME_2
* OUTPUT_AM_PM =
EXCEPTIONS
PARAMETER_ERROR = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.

BREAK QUYNHBC.

former_member625937
Participant
0 Kudos

Hi,

Thanks. but, again you have suggested for the un-released same FM.

I am looking for the alternate FM which holds same functionality which are released one.

Regards,

KArthik S