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 with default value

Former Member
0 Likes
3,316

I have one parameter P_kunnr. my requitrment is when i click for search help for customer then it shuold give some prefild value

like sales org,distribution chnnel,division,customer, sales office. When I check standard search help 'DEBIS' then name1 dont have parameter ID so I am unable to pass name1 value. any idea how can i do.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,162

Copy search help to z.

Then do ur default coding for name1 in seach help exit.

you can ataached this z seach help in you prog.

Dhiraj

7 REPLIES 7
Read only

Former Member
0 Likes
2,163

Copy search help to z.

Then do ur default coding for name1 in seach help exit.

you can ataached this z seach help in you prog.

Dhiraj

Read only

0 Likes
2,162

Thanks Dhiraj but I want some exsisting option.

Read only

0 Likes
2,162

Hi,

There is nor existing way available , you can directly change standard search help DEBIS which is not recommended.

Dhiraj

Read only

AlexanderOv
Product and Topic Expert
Product and Topic Expert
0 Likes
2,162

Hi,

you can create a custom search help.

Read only

eduardo_hinojosa
Active Contributor
0 Likes
2,162

Hi,

You have one option (user by user). It's set paratmeters for users if this field have a SET PARAMETER. In the search help, in the field press F1 and technical info. When you have the dynpro to enter the data (for sales org, and so on), in technical info if you have a field called Parameter ID you can populate it with a value for one user in SU01 in parameters. Try it and check if it works.

I hope this helps you

Regards

Eduardo

Read only

Former Member
0 Likes
2,162

Hi,

Here getting the search help depends on different ways:

1) Already you are aware of how the search help is working for SPFLI table and the field is CARRID, where the search help selection method is SCARR.

2) Another method was : Search help has to respond based on some input value. then only it has to fetch the entries from different tables. In this case you are going to write your own Search help exit for your input value.

Again writing the search help exit means you are going to write the Funtion module, where you are going to export some paramenters for that Funcition modle. Based on the exporting parameters it process the FM and return the resultant values from the funtion module.

hope this can be helpful

Thanks

Read only

Former Member
0 Likes
2,162

Hello,

Exampel for you:

FUNCTION Z_test

""Lokale Schnittstelle:

*" TABLES

*" SHLP_TAB TYPE SHLP_DESCR_TAB_T

*" RECORD_TAB STRUCTURE SEAHLPRES

*" CHANGING

*" VALUE(SHLP) TYPE SHLP_DESCR_T

*" VALUE(CALLCONTROL) LIKE DDSHF4CTRL STRUCTURE DDSHF4CTRL

*"----


TYPES: BEGIN OF ty_result,

variant TYPE variant,

vtext TYPE rvart_vtxt,

END OF ty_result.

DATA: lt_result TYPE TABLE OF ty_result.

SELECT * INTO CORRESPONDING FIELDS OF TABLE lt_result

FROM varid

WHERE report = 'RIEQUI20'.

  • I have to map the results

CALL FUNCTION 'F4UT_RESULTS_MAP'

  • EXPORTING

  • SOURCE_STRUCTURE =

  • APPLY_RESTRICTIONS = ' '

TABLES

shlp_tab = shlp_tab

record_tab = record_tab

source_tab = lt_result

CHANGING

shlp = shlp

callcontrol = callcontrol

EXCEPTIONS

illegal_structure = 1

OTHERS = 2

."point

ENDFUNCTION.

Your Ementar Search Help should have the same Paramter for Exampel: VARIANT and VTEXT. as you see above