‎2008 Jun 11 3:38 PM
Hi,
In report selection screen, I require a Year & Month parameter(YYYYMM or any year & month format), currently I am using NUM6 field and doing the validation manually using substring function to validate month & etc. Like to know whether any standard SAP domain/data element available... is there any way I can use some SAP standard functionality instead of doing it manually?
Thanks in advance.
Regards,
Balaji Viswanath.
‎2008 Jun 11 3:47 PM
‎2008 Jun 11 3:51 PM
Hi,
PARAMETER: V_MONTH LIKE ISELLIST-MONTH.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR V_MONTH.
CALL FUNCTION 'POPUP_TO_SELECT_MONTH'
EXPORTING
ACTUAL_MONTH = '200205'
LANGUAGE = SY-LANGU
START_COLUMN = 8
START_ROW = 5
IMPORTING
SELECTED_MONTH = V_MONTH
RETURN_CODE = V_CODE
EXCEPTIONS
FACTORY_CALENDAR_NOT_FOUND = 1
HOLIDAY_CALENDAR_NOT_FOUND = 2
MONTH_NOT_FOUND = 3
OTHERS = 4.
Regards
Adil
‎2008 Jun 11 4:04 PM
Thanks for your answers, indeed it's valuable. But mainly I am looking for validation part than popup/f4 help.
‎2008 Jun 11 4:23 PM
Well if you use the popup, you dont have to do any validations.