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

search help

Former Member
0 Likes
456

Hi Friends,

Please do favour to me for the below querry.

type-pools: slis,

kkblo.

i had a selection-screen with.

SELECTION-SCREEN BEGIN OF BLOCK sec WITH FRAME TITLE text-002.

PARAMETERS: p_var LIKE disvariant-variant.

SELECTION-SCREEN END OF BLOCK sec.

at the event at selection-screen.

at selection-screen on value-request for p_var.

perform p_var_help_variants using p_var.

form p_var_help_variants using p_field.

data: wa_variant like disvariant-variant.

if sy-subrc = 0.

call function 'HR_F4_FOR_ALV_VARIANT'

EXPORTING

current_report = g_repid

IMPORTING

variant = wa_variant.

if sy-subrc = 0.

p_field = wa_variant.

endif.

endif.

endform. " P_VAR_HELP_VARIANTS

my question is in the selection screen field P_Var there is search help

with pop-up having some value as in alv layout.

there should be some table where the data must be populated but no table found in the entire program.

following code in Include.

FORM initialized_alv USING p_var.

**-- prepare alv_list_attributes

g_repid = sy-repid.

PERFORM eventtab_build_alv USING gt_events[].

PERFORM s_print_build_alv USING gs_print.

PERFORM fbuild_alv_layout_alv USING gs_layout.

PERFORM sort_build_alv USING gt_sort[] waversion.

  • Set Option: userspecific save variant

g_save = 'A'.

PERFORM initialize_variant.

  • Get default variant

gx_variant = g_variant.

CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET'

EXPORTING

i_save = g_save

CHANGING

cs_variant = gx_variant

EXCEPTIONS

not_found = 2.

IF sy-subrc = 0.

p_var = gx_variant-variant.

ENDIF.

ENDFORM. " initialized_alv

needful answer can be appraisal..

Advance thanks .

1 ACCEPTED SOLUTION
Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
415

Hi,

Check the fields Data element if it has any Search help associated with it, if there is one then from the search help you can find out from which table you are getting the data.

If there is not search help at the Data element level, goto Domain and check if there is any VALUE TABLE assgined at the domain level.

If it is there then values can come from here also.

Also check if the domain has any Fixed values.

Regards,

Sesh

3 REPLIES 3
Read only

Former Member
0 Likes
415

Hi,

Goto SE11 and open the associated data element.

Here go to Further Characheristics Tab.

Double click on the search Help.

In the search help, tehre is data collection tab. there is selection methoid and the entry of the data base table.

The search help values are fetched from this table.

Hopw this helps.

Reward if useful.

thnx

Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
416

Hi,

Check the fields Data element if it has any Search help associated with it, if there is one then from the search help you can find out from which table you are getting the data.

If there is not search help at the Data element level, goto Domain and check if there is any VALUE TABLE assgined at the domain level.

If it is there then values can come from here also.

Also check if the domain has any Fixed values.

Regards,

Sesh

Read only

Former Member
0 Likes
415

Hi,

The search help for any elementcan com from two places

1. search help

2. fixed values

3. value table

2,3 are stored in the domain level.. goto se11 and see the domain details.. in the values tab.. u can see the fixed values that the domain can take..

in se11 type table name at disvariant..

double click on the data type of field variant..

here u double click on the domain name in the data type tab

wat u see now is the domain that the field belongs to..

here see the values tab.. u can see the fixed values and value table

else click on the name of the filed in the table view itself.. the window that opens shows th search help table

You must be able to find the data in one of the three placess..

Reagrds,

Aparna