2008 Feb 12 6:36 AM
Hi all,
Can anyone please help me? In the selection criteria, When the user selects the year as 2008 and the month as 04 then I'd like the date in my report to be displayed as April-2008. Thanks in advance
2008 Feb 12 6:46 AM
Hi,
PARAMETERS:
year(4) type n,
month(2) type n.
data:
w_month(10) type c,
w_format(20) type c.
case month.
when '01'.
w_month = 'jan'.
when '02'.
w_month = 'feb'.
endcase.
concatenate w_month '-' year into w_format.
write: / w_format.
like there u mention all the months
plzz reward if it is usefull to u
plzz dont forget to reward....
Thanks
Hi all,
Can anyone please help me? In the selection criteria, When the user selects the year as 2008 and the month as 04 then I'd like the date in my report to be displayed as April-2008. Thanks in advance
2008 Feb 12 6:40 AM
Shaheen
I guess this is your 3rd post.
Can you clarify what is in your selection screen
Date?
OR
Month and Year?
Maybe sending your selection screen definition and expected result can help you receive better advices.
Regards
Eswar
2008 Feb 12 6:43 AM
HI,
You can call the FM 'MONTH_NAMES_GET'. Then after CONCATENATE month '-' year into v_date.
Rgds,
Bujji
2008 Feb 12 6:46 AM
Hi,
PARAMETERS:
year(4) type n,
month(2) type n.
data:
w_month(10) type c,
w_format(20) type c.
case month.
when '01'.
w_month = 'jan'.
when '02'.
w_month = 'feb'.
endcase.
concatenate w_month '-' year into w_format.
write: / w_format.
like there u mention all the months
plzz reward if it is usefull to u
plzz dont forget to reward....
Thanks
2008 Feb 12 6:47 AM
Hi,
Check this function module:
CONVERSION_EXIT_LDATE_OUTPUT
By passing date e.g. 20080401 (i.e. 01.04.2008 in YYYYMMDD format)
it returns
01. April 2008.
You can use this to get your requirement.
Cheers,
Aditya
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |