cancel
Showing results for 
Search instead for 
Did you mean: 

Search help import parameter

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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".

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Got the solution.

I will use F4UT_PARAMETER_VALUE_GET function module to get the value of import parameter.

Thanks,

Feroz