Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

function module giving month number

Former Member
0 Likes
707

Hi Experts,

can u please tell FM that gives month number of given date.

Thanks,

Rahul

7 REPLIES 7
Read only

Former Member
0 Likes
681

Query the table T247.

select single LTX

from t247

where mnr = 4.

Read only

Former Member
0 Likes
681

Hello Rahul,

Please make use of the FM:

<b>HR_E_NUM_OF_DAYS_OF_MONTH</b>

Vasanth

Read only

Former Member
0 Likes
681

Try also:

MONTH_NAMES_GET

Read only

Former Member
0 Likes
681

do this way ...

SELECT SINGLE * FROM t247
       WHERE spras = sy-langu
         AND  mnr  = sy-datum+4(2).

Read only

Former Member
0 Likes
681

Hi,

Use the following method

CL_RECA_DATE=>GET_DATE_INFO --> Getting all details about date.

See the FM REAL_ESTATE_CALC_DATE_SLST

if helps plz reward points.

Regards

Bhupal Reddy

Read only

Former Member
0 Likes
681

You can do this as

data : date like sy-datum.
     date = sy-datum.

      write:/ 'month number' , date+4(2) .

regards,

vijay

Read only

Former Member
0 Likes
681

Hi,

use this FM DATE_TO_DAY.

It will correctly work.

regards,

sreevani