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

select options in madulupool

Hi Friends,

I need to add select-option in my modulepool screen.

the select option is for material Group.

how to add select options in madulepools?

thanks,

Sridhar

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 12, 2007 at 12:41 PM

    hi,

    take two text box and two I/O fields in one line.

    After all in module pool u have to design ur screen .

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 12, 2007 at 12:42 PM
    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi I have gone through the thread and the code is given like:

      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.

      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

      Thanks,

      Sridhar

  • author's profile photo Former Member
    Former Member
    Posted on Sep 12, 2007 at 12:46 PM

    hi

    good

    if you want to use select-option directly in module pool then it is not possible.

    but you can do other way.

    create two varaiables

    data : v_kun_low like kna1-kunnr,

    v_kun_high like kna1-kunnr.

    use these two variables in layout ,let user knows that he can not give options like gt,lt,eq ,it will be always BT.

    and also when you see normal report program,you can use multiple values in either low or high,but here it is not possibel.

    use can enter only low value and high value.

    when you come to program point of view

    declare one range

    ranges r_kunnr for kna1-kunnr.

    do the coding like

    r_kunnr-low = v_kun_low.

    r_kunnr-high = v_kun_high.

    r_kunnr-options = 'BT'.

    r_kunnr-sign = 'I'.

    append r_kunnr.

    now you can use r_kunnr in select query ,it will work like select-option.

    other than this there is no option.

    thanks

    mrutyun^

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 12, 2007 at 12:47 PM

    Hi,

    Select-options can be added in module pool...

    Design screen according to ur requirement

    then add code for Low and High fields

    s_matnr Low to High

    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.