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 Exit

Former Member
0 Likes
497

Hi Expert,

I am having a collective search help ZTEST, I have attached a FM ZEXIT to its search help exit parameter.

Now after user selects a corresponding record, I want to know the elementary search help from which the record is selected.

I get the collective search help name in runtime but not clear from where to get the elementary search help name out of those.

Can any one tell me the parameter name which will give me the details of the elementary search help at runtime.

Help will be appreciated.

Best regards

Sourabh

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
453

Hi Sourabh,

You have a global internal table TABC_SHLPTAB which contains a structure named SHLP_CURR. This structure contains all informations on current elementary search called.

In particular, you can have a look at field SHLPNAME which is the name of elementary search.

So you can retrieve the name like this :

READ TABLE tabc_shlptab ASSIGNING <fs_shlp> INDEX 1.
IF sy-subrc = 0.
  ld_shlpname = <fs_shlp>-shlp_curr-shlpname.
ENDIF

Best regards!

Samuel

Hi Expert,

I am having a collective search help ZTEST, I have attached a FM ZEXIT to its search help exit parameter.

Now after user selects a corresponding record, I want to know the elementary search help from which the record is selected.

I get the collective search help name in runtime but not clear from where to get the elementary search help name out of those.

Can any one tell me the parameter name which will give me the details of the elementary search help at runtime.

Help will be appreciated.

Best regards

Sourabh

2 REPLIES 2
Read only

Former Member
0 Likes
453

Hi Saurabh,

Use these links to solve issue.

https://wiki.sdn.sap.com/wiki/display/Snippets/Implementing%20Search%20Help%20Exits

I hope this will help you.

Regard,

Vijay

Read only

Former Member
0 Likes
454

Hi Sourabh,

You have a global internal table TABC_SHLPTAB which contains a structure named SHLP_CURR. This structure contains all informations on current elementary search called.

In particular, you can have a look at field SHLPNAME which is the name of elementary search.

So you can retrieve the name like this :

READ TABLE tabc_shlptab ASSIGNING <fs_shlp> INDEX 1.
IF sy-subrc = 0.
  ld_shlpname = <fs_shlp>-shlp_curr-shlpname.
ENDIF

Best regards!

Samuel