Quantcast
Viewing all articles
Browse latest Browse all 2794

Re: PCR for find Leap Year

Hi,

 

1) option 1 - Writing a abap function. You can write a abap function to return a value true or false for leap year condition.

 

2) option -2 - You can write a time PCR with operation HRS=BCURYR which will get the current year and further you can divide by 4 and branch it accordingly and finally will return a value using SCOND=T or SCOND=F. This true/false can be read by another calling PCR.

 

But the question is, how many leap years do you want to compare? (if it is very few, you can hardcode by actual value of the year itself, instead of generalizing).

 

Because, in PCR, we have very limited options to do this kind of tasks and it is very difficult to do also.

 

regards,

Bala.


Viewing all articles
Browse latest Browse all 2794

Trending Articles