Skip to content

Instantly share code, notes, and snippets.

@dantesco
Created November 11, 2013 17:07
Show Gist options
  • Save dantesco/7416630 to your computer and use it in GitHub Desktop.
Save dantesco/7416630 to your computer and use it in GitHub Desktop.
Matchcode para mes y año
PARAMETER: p_spbup TYPE spbup OBLIGATORY.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_spbup.
CALL FUNCTION 'POPUP_TO_SELECT_MONTH'
EXPORTING
actual_month = sy-datum(6)
IMPORTING
selected_month = p_spbup
EXCEPTIONS
factory_calendar_not_found = 1
holiday_calendar_not_found = 2
month_not_found = 3
OTHERS = 4.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment