cancel
Showing results for 
Search instead for 
Did you mean: 

f.m to get month of a year

Former Member
0 Kudos

Hi,

please tell me function module to get month of a year.

Regards

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Is there a training for this new function module? I hope so.

Former Member
0 Kudos

>

> Is there a training for this new function module? I hope so.

Probably to complex for training. Better to get in a team of consultants.

Rob

Former Member
0 Kudos

Wait until dark and go outside and look up. (Make sure it is not raining or otherwise cloudy). Determine the hour angle of a bright star. After converting sidereal to solar time, it should be failry simple to determine the month.

Not sure if there's a FM to do this, so you may have to write some ABAP code yourself.

Rob

matt
Active Contributor
0 Kudos

Use the green one. The red one is likely to cause the Helvetica Scenario.

Former Member
0 Kudos

I think CACS_DATE_GET_YEAR_MONTH f.m works to extract month.

matt
Active Contributor
0 Kudos

The red or the green one?

Former Member
0 Kudos

Actually this is really useful function module. If we ever fundamentally change the structure used to store dates it will only need changing in the one place. Genius.

Regards,

Nick

Former Member
0 Kudos

I am not getting your question.what is red or green?

Former Member
0 Kudos

There is no standard function which randomly generates a name of a month based on a random calendar type, so I will move this to the Coffee Corner incase someone wants to brainstorm this a bit...

I was thinking of a webservice which returns your geographic location based on IP address and using that will work out which calendar you should be using and accordingly whether you are thinking of the month of October, or the cold dew phase of the earthly ox is currently thinking about you, or what ever...

Cheers,

Julius

GauthamV
Active Contributor
0 Kudos

Plz SEARCH in SCN before posting.