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

Year Month validation

Former Member
0 Likes
920

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.

4 REPLIES 4
Read only

Former Member
0 Likes
679

Use FM POPUP_TO_SELECT_MONTH ..

Read only

Former Member
0 Likes
679

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

Read only

0 Likes
679

Thanks for your answers, indeed it's valuable. But mainly I am looking for validation part than popup/f4 help.

Read only

0 Likes
679

Well if you use the popup, you dont have to do any validations.