on 08-07-2009 9:46 AM
Hi,
I have 2 columns in my ALV table. COL_A and COL_B.
My requirement is to populate the search help entries of COL_B based on COL_A. but if COL_A is left blank then search help of COL_B should display all values based on user access.
Can I access value of import parameter (COL_A) of dictionary search help in search help exit so that i would know whether COL_A is empty or not.
Please let me know how can I access value of import parameter of dictionary search help in search help exit .
Thanks,
Feroz
Hi Feroz,
It is easy..
Just mention both column A and column B as importing paramenter.
and use this code skeleton..
use it in the "select" call control step
CALL FUNCTION 'F4UT_RESULTS_MAP'
EXPORTING
source_structure = 'XXXXXXXXX'
apply_restrictions = ' '
TABLES
shlp_tab = shlp_tab
record_tab = record_tab
source_tab = 'XXXXXXXX'
CHANGING
shlp = shlp
callcontrol = callcontrol
EXCEPTIONS
OTHERS = 0.
CALL FUNCTION 'F4UT_PARAMETER_RESULTS_PUT'
EXPORTING
PARAMETER = 'XXXXXXX' "this can be your column A
fieldname = 'XXXXXXXXX'
TABLES
shlp_tab = shlp_tab
record_tab = record_tab[]
source_tab = lt_time_range
CHANGING
shlp = shlp
callcontrol = callcontrol.
callcontrol-step = 'DISP'.
CALL FUNCTION 'F4UT_PARAMETER_RESULTS_PUT'
EXPORTING
PARAMETER = 'XXXXXXX' "this can be your column B
fieldname = 'XXXXXXXXX'
TABLES
shlp_tab = shlp_tab
record_tab = record_tab[]
source_tab = lt_time_range
CHANGING
shlp = shlp
callcontrol = callcontrol.
callcontrol-step = 'DISP'.
here, source_structure is the structure of the table where the data is available which is the "source_tab".
Parameter field is the name of parameter specified in search help. and fieldname is the field corresponding to the paramer in the table "source_tab".
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Got the solution.
I will use F4UT_PARAMETER_VALUE_GET function module to get the value of import parameter.
Thanks,
Feroz
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.