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

Re: Convert Timestamp to Date foarmat

$
0
0

Hi Anil,

 

In your code, you do not have any derivation of month. Please make following changes to your code and you should be good.

------------------------------------------------------

Source Field-->RESOLVE_Time(15)

BI Field----->BRESLD(08)

 

 

data: lc_timestamp type timestamp,

 

RESOLVE_TIME type  SY-TZONE,

 

   /BIC/BRESLD(08)  type sy-datum.

data: lv_mon type c length 2.

 

 

lc_timestamp = RESOLVE_TIME

 

   CONVERT TIME STAMP lc_timestamp  TIME ZONE sy-zonlo INTO

DATE /BIC/BRESLD .

 

   /BIC/BRESLD = SOURCE_FIELDS-RESOLV_TIME+0(8).

 

lv_mon = /BIC/BRESLD+4(2).

 

     RESULT = /BIC/BRESLD.

RESULT = lv_mon.

-------------------------------------------------------

 

Let me know if I understood your requirement incorrectly.

 

Thanks

Amit


Viewing all articles
Browse latest Browse all 8078

Trending Articles