Module - pool Question..?

Advertisement
Hi,
The select-option functionality is not working in the Module pool...
SELECTION-SCREEN BEGIN OF SCREEN 1030 AS SUBSCREEN.
SELECTION-SCREEN BEGIN OF BLOCK b4 WITH FRAME TITLE text-003.
SELECT-OPTIONS: o_ledger FOR zsfiglscr_chead-nrldnr .
SELECTION-SCREEN END OF BLOCK b4.
SELECTION-SCREEN END OF SCREEN 1030
Then we are calling that selection screen in sub-screen  area. For that the developers have written following code in the PBO of module pool screen.
CALL SUBSCREEN sub1 INCLUDING 'SAPMZFIGL_ALLOCATION'  v_dynnr.
Now the select options functionality is not working...i chked the field zsfiglscr_chead-nrldnr and it has a search help attached to the data element...what can be the reason...please provide some inputs...
Cheers:Sam
Advertisement

Replay

I've tried various combinations and they all work in an ECC system... can you try the report below out in your system and check which of the 3 options used work and don't work for that F4 help (you'll need to create a screen 9999 as described in the sample code:
report zlocal_jc_sdn_query1.
tables:
  bpvc,  "a structure with rldnr in it
  t881.  "Ledger Master
data:
  g_char2(2)            type c,
  g_dynnr               like sy-dynnr.
*=======================================================================
* subscreen demo 1
selection-screen begin of screen 1030 as subscreen.
selection-screen begin of block b4 with frame title text-003.
select-options:
  s_rldnr               for bpvc-rldnr,
  s_rldnr2              for t881-rldnr,
  s_rldnr3              for g_char2    matchcode object h_t881.
selection-screen end of block b4.
selection-screen end of screen 1030.
* subscreen demo 2
selection-screen begin of screen 1040 as subscreen.
selection-screen begin of block b2 with frame title text-003.
parameters:
  p_1                   type c length 10.
selection-screen end of block b2.
selection-screen end of screen 1040.
* Main screen
selection-screen:
  begin of tabbed block mytab for 10 lines,
    tab (20)    button1 user-command push1 default screen 1030,
    tab (20)    button2 user-command push2 default screen 1040,
  end of block mytab.
*=======================================================================
start-of-selection.
  clear: g_dynnr.
  call screen '9999'. "screen with a bit of text + sub1 subscreen
**which has just:
** process before output.
**   module pbo_9999.
**   call subscreen sub1 including sy-repid g_dynnr.
** process after input.
**   module pai_9999.
*  MODULE pbo_9999 OUTPUT
module pbo_9999 output.
  if g_dynnr is initial.
    g_dynnr = '1030'.
  else.
    g_dynnr = '1040'.
  endif.
endmodule.                    "pbo_9999 OUTPUT
*  MODULE pai_9999 INPUT
module pai_9999 input.
  if sy-ucomm = 'ZEXIT'. "Exit button on screen
    leave program.
  endif.
endmodule.                    "pai_9999 INPUT