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

SELECT-OPTIONS remains empty in Module Pool

Hi,

I have an issue where SELECT-OPTIONS remains empty in Module Pool Program

when I enter

value in Matnr the fields remains empty after checking in debugging.

Screen Shots are attached.

Please Help.

Regards,

Abhishek S.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

9 Answers

  • Posted on Sep 18, 2016 at 07:56 AM

    In the PAI of your dynpro 100, you probably called USER_COMMAND_0100 before the CALL SUBSCREEN of your selection subscreen 400.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 18, 2016 at 09:44 AM

    Another possibility is that you didn't press Enter but you pressed a function key assigned to a function code of type Exit (in your GUI status), i.e. which does not transfer values from dynpro to the corresponding variables in your program.

    Of course, all my answers are only assumptions of what you exactly did, as you don't provide much information!

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 18, 2016 at 10:38 AM

    Hi Abhishek,

    you have defined selection parameters in screen 400 and using these values in screen 100.

    May be the parameters are not in global scope and are not bound to selection parameters in screen 100.

    you can check in the PBO of screen 100.

    Regards,

    Aditya

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 19, 2016 at 05:26 AM

    Hi,

    Whats the code in the PAI and PBO of the screen 100.

    Here Gv_400 should be the name of your subscreen area that you create on the screen 0100.

    It should be :

    PBO :

    MODULE STATUS_9000.

    call SUBSCREEN gv_400 INCLUDING sy-cprog '0400'.

    PAI.

    CALL SUBSCREEN gv_400.

    Hope this helps.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 19, 2016 at 06:10 AM

    Off topic, but TABLES is obsolete. You should use something like

    DATA v_matnr TYPE MATNR.

    SELECT-OPTIONS m_matnr FOR v_matnr.

    instead.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 19, 2016 at 06:14 AM

    Hi,

    in debugging your cursor is not at PAI, check once

    only in PAI of the screen you can see values of the select options..

    regards,

    vinay.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 19, 2016 at 06:26 AM

    Hi,

    Try,

    SELECTION-SCREEN BEGIN OF SCREEN 200 AS SUBSCREEN.

    SELECT-OPTIONS: s_plt for resb-werks no intervals DEFAULT '1000' OBLIGATORY,

    s_ven for ekko-lifnr obligatory,

    s_dat for ekko-bedat,

    s_po for ekko-ebeln,

    s_pord for ekkn-aufnr,

    s_mat for ekpo-matnr,

    s_comp for resb-matnr,

    s_ord for resb-kdauf.

    SELECTION-SCREEN SKIP 1.

    SELECTION-SCREEN COMMENT /1(50) text-001.

    SELECT-OPTIONS: s_rloc for mseg-umlgo no intervals no-extension.

    SELECTION-SCREEN END OF SCREEN 200 .





    PROCESS BEFORE OUTPUT.

    MODULE STATUS_0100.

    Call subscreen SEL including sy-repid '200'.

    PROCESS AFTER INPUT.

    CALL SUBSCREEN SEL.

    CHAIN.

    MODULE fill_values.

    ENDCHAIN.



    MODULE FILL_VALUES INPUT.

    FIELD-SYMBOLS: <wa> LIKE LINE OF it_dis.

    SELECT

    a~rsnum

    a~rspos

    a~rsart

    a~ebeln

    a~ebelp

    a~matnr

    a~werks

    a~kdauf

    a~kdpos

    a~sobkz

    a~lifnr

    a~J_3ASIZE

    a~bdmng

    a~meins

    b~bedat

    b~loekz

    b~autlf

    c~elikz

    INTO TABLE it_resb

    FROM resb as a

    INNER JOIN ekko as b

    on b~ebeln = a~ebeln

    INNER JOIN ekpo as c

    on c~ebeln = a~ebeln

    and c~ebelp = a~ebelp

    AND c~loekz ne 'L'

    WHERE a~baugr in s_mat

    AND a~matnr in s_comp

    AND a~werks in s_plt

    AND a~ebeln in s_po

    AND a~aufnr in s_pord """""Yuvaraj R

    AND a~kdauf in s_ord

    AND b~lifnr in s_ven

    AND b~bedat in s_dat.

    CALL SCREEN 300.

    ENDFORM.


    Hope it helpful,


    Regards,

    Venkat.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 19, 2016 at 06:29 AM

    Inside the screen create a sub screen by using the sub screen tool bar. There is no need to create that sub screen separately. I think you have created a sub screen separately. Please create sub screen by Screen Painter with sub screen toolbar

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 19, 2016 at 06:29 AM

    Hi Abhi,

    If you want to place Selection screen on Modulepool ,

    You need to mention that as subscreen in both PBO and PAI Like as below shown..

    PBO...

    Call subscreen [Subscreen_name] including sy-repid '400' .

    PAI...

    Call Subscreen [Subscreen name].

    And you need to mention those fields in your PAI as using Field Keyword....Like as below...shown

    PAI....

    Field : m_matnr ,

    m_mtart ,

    m_matkl .

    Like that then value u entered,will be placed into that corresponding field.

    It will helps you..

    Thanks ,

    Vamsi.

    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.