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

month field

Former Member
0 Likes
1,104

how to get month in a field ?is there any function module to get month?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,016

If u need current month , then

tables : T247.
data : v_mon(2).
v_mon = sy-datum+4(2).
select single ltx from T247 into T247-ltx wher mnr eq v_mon.
write : v_mon , T247-ltx.

6 REPLIES 6
Read only

Former Member
0 Likes
1,016

use FM MONTH_NAMES_GET

can u explain what exactly u require?

Read only

Former Member
0 Likes
1,016

Hi,

u can get it by using GET_DATE_MONTH.

thanx.

Read only

Former Member
0 Likes
1,016

data : idate like sy-datum value '20070323',

mon(2).

mon = idate+4(2).

write : / mon.

regards

shiba dutta

Read only

Former Member
0 Likes
1,017

If u need current month , then

tables : T247.
data : v_mon(2).
v_mon = sy-datum+4(2).
select single ltx from T247 into T247-ltx wher mnr eq v_mon.
write : v_mon , T247-ltx.

Read only

Former Member
0 Likes
1,016

Hello ,

date is stored in system field sy-datum .

if you have a field like data mon(2) type c .

Use : mon = sy-datum+4(2)

Thanks .

Read only

Former Member
0 Likes
1,016

hai,

month = date+4(2).

regards,

ananth