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

Data element for Month and Year

Former Member
0 Likes
25,276

Hello All,

Is there any data element which will have only Month and Year.

I have to introduce this field in a table. It should have convesion exits also.

Ex: If i give 092009, it sould come like 09.2009

Thank you.

Best Regards,

Sasidhar Reddy Matli.

1 ACCEPTED SOLUTION
Read only

rvinod1982
Contributor
11,396

Hi,

Check data element SPMON.

Regards,

Vinod

Hello All,

Is there any data element which will have only Month and Year.

I have to introduce this field in a table. It should have convesion exits also.

Ex: If i give 092009, it sould come like 09.2009

Thank you.

Best Regards,

Sasidhar Reddy Matli.

5 REPLIES 5
Read only

rvinod1982
Contributor
11,397

Hi,

Check data element SPMON.

Regards,

Vinod

Read only

Former Member
0 Likes
11,396

Data element /BI0/OICALMONTH,it has std F4 also

Read only

Former Member
0 Likes
11,396

FTI_MONTH_YEAR - but you must give the data year and month say 200909 (having conversion exits) then it converts into 09-2009.

RSCALMONTH,

Read only

siva_subramanian2
Participant
0 Likes
11,396

Dear Sasi,

You can make use of the table /BI0/SCALMONTH

and the field name is CALMONTH

Using of this will give you F4 help also

For Ex:-

TABLES:/BI0/SCALMONTH.

SELECT-OPTIONS :DATE FOR /BI0/SCALMONTH-CALMONTH.

WRITE :DATE-LOW ,'to' , DATE-HIGH.

With Thanks and Regards,

Siva Subramanian.A

Read only

Former Member
0 Likes
11,396

Kindly Try this code for Month and year as input and having standard F4 help..

INCLUDE RMCS0F0M.

TYPES : BEGIN OF TY_SELECT,

MONTH TYPE FTI_MONTH_YEAR,

END OF TY_SELECT.

DATA : WA_SELECT TYPE TY_SELECT.

SELECTION-SCREEN : BEGIN OF BLOCK SANDEEP WITH FRAME.

SELECT-OPTIONS : S_MONTH FOR WA_SELECT-MONTH OBLIGATORY NO INTERVALS NO-EXTENSION.

SELECTION-SCREEN : END OF BLOCK SANDEEP.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_MONTH-LOW.

PERFORM MONAT_F4.

SANDEEP JAIN