‎2007 Aug 30 10:08 PM
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
‎2007 Aug 30 10:28 PM
‎2007 Aug 30 10:52 PM
It's only been 20 minutes! I will be having a look when I get to work later, but can you clarify the original question a little... do you mean that the select options functionality is not working (i.e.low and high values not displaying, not "More" button to the right), or is it a problem with the searchhelp / F4 functionality you need help with.
Jonathan
‎2007 Aug 30 10:59 PM
Thanks for the reply....The search help feature is not working...and no values are being displayed...once u click on the more button to the right...
zsfiglscr_chead is a structure.....i chked the data element that is attached to the field NRLDNR it is RLDNR and it has a search help attached to it H_T881....what can be the reason....the selection screen where this select options is defined is being called from another subscreen...
Thanks a lot for ur response...i will be more patient...thanks for reminding me....
Cheers:Sam
‎2007 Aug 30 11:12 PM
Thanks for the quick reply and the clarification - have you tried sticking "matchcode id" on the select-options statement if there is an appropriate one available (I will try this out later on myself too), and do you get the searchhelp when you just have a select-options for the same field in a standalone report i.e. not embedded as a subscreen?
‎2007 Aug 30 11:31 PM
Yes I Do...The search help is visible when we do select options in a standalone report...
Thanks
‎2007 Aug 31 2:49 AM
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
‎2007 Sep 04 7:02 PM
Thanks for the reply Jonathan...
I will try this and then let you know...
Many thanks for ur time and effort..
Cheers: Sam