Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SELECT-OPTIONS remains empty in Module Pool

Former Member
0 Likes
3,616

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.

10 REPLIES 10
Read only

Sandra_Rossi
Active Contributor
0 Likes
3,174

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

Read only

0 Likes
3,174

No it is not picking up the value at all.


Read only

Sandra_Rossi
Active Contributor
0 Likes
3,174

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!

Read only

kjyothiraditya
Participant
0 Likes
3,174

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

Read only

Former Member
0 Likes
3,174

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.

Read only

matt
Active Contributor
0 Likes
3,174

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

DATA v_matnr TYPE MATNR.

SELECT-OPTIONS m_matnr FOR v_matnr.

instead.

Read only

former_member185116
Active Participant
0 Likes
3,174

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.

Read only

VenkatRamesh_V
Active Contributor
0 Likes
3,174

Hi,

Try,

SELECTION-SCREEN BEGIN OF SCREEN  200 AS SUBSCREEN.

SELECT-OPTIONSs_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-OPTIONSs_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.

Read only

0 Likes
3,174

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

Read only

vamsilakshman_pendurti
Active Participant
0 Likes
3,174

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.