Skip to Content
author's profile photo Former Member
Former Member

i wnat to select month in selection screen

Hi ., can anyone tell me how to select Month in the selection screen.

POPUP_TO_SELECT_MONTH is displaying both <b>month</b> and the <b>year</b> in the selection-screen.

but i want only month to be displayed in the selection-screen. i.e., like October, december...

my code is like this

parameters : s_month like isellist-month.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_MONTH.

CALL FUNCTION 'POPUP_TO_SELECT_MONTH'

EXPORTING

ACTUAL_MONTH = '200510'

  • FACTORY_CALENDAR = ''

  • HOLIDAY_CALENDAR = ' '

LANGUAGE = SY-LANGU

  • START_COLUMN = 8

  • START_ROW = 5

IMPORTING

SELECTED_MONTH = S_MONTH

RETURN_CODE = S_CODE

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 18, 2005 at 06:06 AM

    try this FM

    REAL_ESTATE_F4_MONTH

    subsequently u can use FM MONTH_NAMES_GET to get month name for a number (eg: January for 01)

    rgds,

    PJ

    Message was edited by: Priyank Jain

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      hi hari,

      try this

      REPORT zanid_test MESSAGE-ID zz.

      parameters : s_month like isellist-month.

      data:p_month like VVIS_SOPTI-SMONTH.

      AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_MONTH.

      CALL FUNCTION 'REAL_ESTATE_F4_MONTH'

      EXPORTING

      I_MONTH = 00

      I_POPUP_TITLE = 'Choose Month'

      IMPORTING

      E_MONTH = p_month.

      • E_SEL_OK =

      s_month = p_month.

  • author's profile photo Former Member
    Former Member
    Posted on Oct 18, 2005 at 06:29 AM

    use this function to change from digit to text as ur requirment.....

    CALL FUNCTION 'MONTH_NAMES_GET'

    EXPORTING

    language = sy-langu

    • mnr = num

    • IMPORTING

    • RETURN_CODE =

    TABLES

    month_names = it_month

    • EXCEPTIONS

    • MONTH_NAMES_NOT_FOUND = 1

    • OTHERS = 2

    .

    IF sy-subrc <> 0.

    • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

    • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

    ENDIF.

    READ TABLE it_month WITH KEY mnr = date+4(2).

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 18, 2005 at 07:22 AM

    hi hari,

    Why don't you try as SAP DO???

    What I mean is an input field for the month number and just on the right an output field for the Month text...

    REPORT zstephan_test MESSAGE-ID zz.

    parameters : p_month type month.

    parameters : p_montht like isellist-month.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.