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

select-options

how can we create select-options for a field in a module pool?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Feb 13, 2006 at 09:07 AM

    For module pool, u have to drag and drop the controls similar to that in ur screen painter.

    Eg: see this link for Table control

    http://www.sapdevelopment.co.uk/dialog/tabcontrol/tchome.htm

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 13, 2006 at 09:19 AM

    Hi

    You can use CALL SELECTION-SCREEN statament.

    - You have to define a selection-screen in the TOP-INCLUDE:

    SELECTION-SCREEN BEGIN OF SCREEN 101.

    SELECT-OPTIONS: SO_.... FOR ....

    PARAMETERS: P_....

    SELECTION-SCREEN END OF SCREEN 101.

    - Create a main dynpro where selection-screen has to be called:

    PROCESS PBO.

    MODULE CALL_SEL_SCREEN.

    PROCESS PAI.

    MODULE CALL_SEL_SCREEN.

    CALL SELECTION-SCREEN 101.

    IF SY-SUBRC = 0. "=> User has pressed F8

    ELSE. "=> User has pressed BACK or EXIT

    ENDIF.

    ENDMODULE.

    max

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Max,

      Thanks for your replay,

      I have writen the code as per your suggesion but its throughing me the syntax error like:

      "SUBSCREEN..." or "CUSTOMER-SUBSCREEN..." expected after 'CALL.

      please give me some idea where i am doing the mistake

  • Posted on Feb 13, 2006 at 09:25 AM

    Hi,

    after creating the field, just double click on it , in the window select the tab program there you have option

    Possible entries just choose <b>'1'</b> from dropdown. this will behave like a select option.

    regards

    vijay

    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.