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

regarding data type

sreelatha_gullapalli
Active Participant
0 Likes
984

hi all,

i want to create a field which will retrirve month and year together(like MM/YYYY-01/2008). What i want to know is is there any predefined domain or data type for this.

regards,

sreelatha gullapalli.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
961

Data element for a field with the format mm.yyyy is FTI_MONTH_YEAR.

You can use this in selection screen as:

selection-screen begin of block b1 with frame.

parameters:p_date TYPE fti_month_year.

selection-screen end of block b1.

REWARD IF HELPFUL

9 REPLIES 9
Read only

Former Member
0 Likes
961

Hi,

Decalare two variables as:

data: v_date type sy-datum,
        v_date1(7) type c.

v_date = sy-datum.
concatenate v_date+4(2) '/' v_date+0(4) into v_date1.

Regards

Kannaiah

Read only

0 Likes
961

hi kannaiah,

i want to declare a field in table for that i want domain which will give F4 help for (MM/YYYY) like dats or sy-datum.

regards,

sreelatha gullapalli.

Read only

Former Member
0 Likes
962

Data element for a field with the format mm.yyyy is FTI_MONTH_YEAR.

You can use this in selection screen as:

selection-screen begin of block b1 with frame.

parameters:p_date TYPE fti_month_year.

selection-screen end of block b1.

REWARD IF HELPFUL

Read only

0 Likes
961

hi Ashish,

Does it gives any search help like DATS or SY_DATUM.

regards,

sreelatha gullapalli.

Read only

0 Likes
961

Hi Sreelatha ,

There is no search help available to it so far ,

So at the most what you can do is

design a search help in SE11 for your field of this type and attach that to your field using match-code .

reward points for all helpful answers

Read only

Former Member
0 Likes
961

Hi,

The below statement can be used to get the date format as MM/YYYY.

concatenate lv_date4(2) '/' lv_date0(4) into gv_date.

where the lv_date contains the date format and gv_date is also the same format.

Pls reward if useful.

Thanks,

Sirisha,

Read only

Former Member
0 Likes
961

hi

good

there is no such domain or data element as you have mentioned in your query, in this case you have to append month and year value in a new string and display them into the outout.

thanks

mrutyun^

Read only

Former Member
0 Likes
961

use S001-SPMON or dataelement is SPMON

Regards,

Madan.

Read only

0 Likes
961

Hi Srilatha,

I have tried your requirement using Table Maintenance Generator and able to get the required date.

Give me your email id and i will send you the screen shots of what i have done.

Regards

Kannaiah