‎2008 May 06 10:45 AM
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.
‎2008 May 06 10:51 AM
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
‎2008 May 06 10:48 AM
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
‎2008 May 06 11:08 AM
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.
‎2008 May 06 10:51 AM
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
‎2008 May 06 11:03 AM
hi Ashish,
Does it gives any search help like DATS or SY_DATUM.
regards,
sreelatha gullapalli.
‎2008 May 06 11:34 AM
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
‎2008 May 06 10:54 AM
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,
‎2008 May 06 11:29 AM
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^
‎2008 May 06 11:37 AM
‎2008 May 07 6:24 AM
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