cancel
Showing results for 
Search instead for 
Did you mean: 

ABAP Code

Former Member
0 Kudos
48

Hi,

I am not good in ABAP, could any one give me the Routine - syntax to populate the right values.....

Field in PSA:

DATE --> MMDDYYYY

Tranformation Routine:

1) 0CALQUART1:

1 --> If MM = 1 or 2 or 3

2 --> If MM = 4 or 5 or 6

3 --> If MM = 7 or 8 or 9

4 --> If MM = 10 or 11 or 12

2) 0CALQUARTER:

YYYY1 --> If MM = 1 or 2 or 3

YYYY2 --> If MM = 4 or 5 or 6

YYYY3 --> If MM = 7 or 8 or 9

YYYY4 --> If MM = 10 or 11 or 12

Please provide me the ABAP code for this.

Thanks,

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Just assign DATE to 0CALQUART1 and 0CALQUARTER directly, system will take care.

Best Regards,

Rajani

Former Member
0 Kudos

Hi

Convert ur date to normal format (internal representation is yyyymmdd)Just map the date directly to 0Calquarter it will calculate on its own.similarly for 0CALQUART1 also. Check it out