Application Development 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: 

HOW TO GET CURRENT MONTH ?

Former Member
0 Kudos

HAI FRENZ...

WE VE SY-DATUM TO GET CURRENT DATE BUT ITS LIKE

FOR E.G., 10.09.2008

LIKE THAT IS THEIR ANY OTHER WAY TO GET CURRENT MONTH LIKE SEPTEMBER AS MY VALUE...

HELP ME...

REGARDS

MEENA

4 REPLIES 4

ThomasZloch
Active Contributor
0 Kudos

> HAI FRENZ...

I don't understand, please elaborate.

Former Member
0 Kudos

Hi ,

You can use :


      DATA: w_t247 TYPE t247,
        w_spras TYPE sy-langu VALUE 'E',
        w_month TYPE month.


      w_month = wa_final3-month+4(2).
*the value of w_month will come from offset calculation of sy-datum.

      CALL FUNCTION 'IDWT_READ_MONTH_TEXT'
        EXPORTING
          langu = w_spras
          month = w_month
        IMPORTING
          t247  = w_t247.

      month = w_t247-ltx.


Former Member
0 Kudos

Hello


data: monum type monum.
monum = sy-datum+4(2).
select single * from t015m where spras eq sy-langu and monum eq monum.
write: t015m-monam.

JanStallkamp
Employee
Employee
0 Kudos

Hi.

Please use proper english for all postings. Please do not write everything in upper case letters. Please search before posting. Please read the rules of engagement.

And for everyone else: Don't answer postings that violate our rules of engagement.

Best regards,

Jan Stallkamp

PS: If your system returns 'September' as the current month you should contact your basis guys...