2009 Aug 15 9:55 PM
Hello Experts,
In my selection screen, i have select-option for year-month.i have to move the name of all the selected month in the internal table.for eg. select-options: 200911 to 201002.
Internal table should be filled with Nov, Dec,Jan,Feb
do we hav any table or FM available for the same.
Hello Experts,
In my selection screen, i have select-option for year-month.i have to move the name of all the selected month in the internal table.for eg. select-options: 200911 to 201002.
Internal table should be filled with Nov, Dec,Jan,Feb
do we hav any table or FM available for the same.
2009 Aug 15 10:06 PM
If you are just looking for the FM which returns month names, it has been already answered in the forum.
If it's just "is there a FM to do all that", very probably not, and I think you'll code it faster with a little loop than looking for a FM.
2009 Aug 15 10:27 PM
Hi Suman,
Try this,
loop at select options table.
l_month = select option table-date+4(2).
*******the following select fetches the month name.
select ktx
from T247
into l_month_name
where mnr = l_month
and spras = 'EN'.
internaltable-field = l_month_name.
endloop.
The above code snippet fulfills ur requirement.
Regards,
Vimal
2009 Aug 16 2:23 PM
Hi Choudhary Suman,
as sandra said: No FM for your specific requirement.
Note that with SELECT-OPTIONS inclusion, exclusion, EQ, NE, BT, GT, GE, LT, LE mus be considered. Better check all months against the range.
The logic should be implemented as
DO 12 times.
CHECK sy-index IN month selection range.
convert sy-index to month name.
append month name to your table.
ENDDO.Please Post your select-options statement to verify if it can be done that way.
Regards,
Clemens
2009 Sep 16 11:47 AM
Hello All
The issue is resoled.
In my selection screen, whenver i have different years in select-option_low and select-option_high. I
For eg. if i have select-options: 200911 to 201002.
i break it into 200911 to 200912 and 201001 to 201002 and move it to internal table.And nw i fetch the months from table T247.
Thanks
Suman
2009 Sep 16 11:48 AM
Hello All
The issue is resoled.
In my selection screen, whenver i have different years in select-option_low and select-option_high. I
For eg. if i have select-options: 200911 to 201002.
i break it into 200911 to 200912 and 201001 to 201002 and move it to internal table.And nw i fetch the months from table T247.
Thanks
Suman
2009 Sep 16 12:20 PM
use the bellow function module-
"HR_99S_INTERVAL_BETWEEN_DATES" AND INCREMENT MONTH AND YEAR BY 1.YOU WILL GET THE REQUIRED OUTPUT