Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8695

Re: DATE & TIME in Modulepool!!!!!

$
0
0

Hi Naveen Kumar,

 

Try using the FM below as example and convert system timestamp to India or USA and fetch the times and populate your custom screen:

 

* The following function module is used to convert the

* time and date into GMT timestamp

CALL FUNCTION 'IB_CONVERT_INTO_TIMESTAMP'

  EXPORTING

    i_datlo           = sy-datum

    i_timlo           = sy-uzeit

    I_TZONE           = 'INDIA'

IMPORTING

   E_TIMESTAMP       = timestamp.

 

* The following function module is used to convert the

* above obtained timestamp to PST time zone date and time.

CALL FUNCTION 'IB_CONVERT_FROM_TIMESTAMP'

  EXPORTING

    i_timestamp       = timestamp

    I_TZONE           = 'PST'

IMPORTING

    E_DATLO           = date

    E_TIMLO           = time.


Hope this helps.


Viewing all articles
Browse latest Browse all 8695

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>