cancel
Showing results for 
Search instead for 
Did you mean: 

YYYYMMDD to CCYYMMDD.......

Former Member
0 Kudos

Hi Experts,

how to convert date format YYYYMMDD into CCYYMMDD?

thanks and regards.

santosh

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

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

former_member387317
Active Contributor
0 Kudos

Hi Santosh Kapse,

I think both YYYYMMDD and CCYYMMDD are same...

Please be more specific about your requirement with example then we can provide you the solution...

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

matt
Active Contributor
0 Kudos

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

former_member181995
Active Contributor
0 Kudos

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.

former_member181995
Active Contributor
0 Kudos

what is CC?

andreas_mann3
Active Contributor
0 Kudos

date = sy-datum .

add 1 to date(2).

A.