This discussion is locked
6 Replies Latest reply: Jul 24, 2008 4:11 PM by Amit Gujargoud

# YYYYMMDD  to CCYYMMDD.......

Currently Being Moderated

Hi Experts,

how to convert date format YYYYMMDD  into CCYYMMDD?

thanks and regards.

santosh

• ###### Re: YYYYMMDD  to CCYYMMDD.......
Currently Being Moderated

date = sy-datum .

A.

• ###### Re: YYYYMMDD  to CCYYMMDD.......
Currently Being Moderated

what is CC?

• ###### Re: YYYYMMDD  to CCYYMMDD.......
Currently Being Moderated

Sorry if I'm being a bit stupid, but aren't YYYYMMDD and CCYYMMDD the same thing.

E.g. 20082407 - YYYY = 2008, MM = 24, DD = 07

20082407 - CC = 20, YY = 08, MM = 24, DD = 07

• ###### Re: YYYYMMDD  to CCYYMMDD.......
Currently Being Moderated

Exactly mat wrote:

```E.g. 20082407 - YYYY = 2008, MM = 24, DD = 07
20082407 - CC = 20, YY = 08, MM = 24, DD = 07

both are same.```

Amit.

• ###### Re: YYYYMMDD  to CCYYMMDD.......
Currently Being Moderated

Hi Santosh Kapse,

I think both YYYYMMDD and CCYYMMDD  are same...

If both  YYYYMMDD and CCYYMMDD  are not same then u can convert YYYYMMDD to CCYYMMDD using Offset and Concatenate...

I don't think any FM is available to do it... so u need to use concatenate statement for it...

Hope it will solve your problem..

Thanks & Regards

ilesh 24x7

• ###### Re: YYYYMMDD  to CCYYMMDD.......
Currently Being Moderated

Hi Santosh.

I would like to suggest,

ISH_CENTURY_SHIFT - CCYYMMDD - "C" - Century.

HR_QTACC_TRANSFER_RULE_13 - Calculate transfer date based on configuration tables (AU)

HR_QTACC_TRANSFER_RULE_43 - Calculate transfer date based on configuration tables (AU)

Hope that's usefull.

Good Luck & Regards.

Harsh Dave