2009 Sep 11 9:40 AM
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
2009 Sep 11 10:17 AM
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.
ENDIFBest 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
2009 Sep 11 9:53 AM
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
2009 Sep 11 10:17 AM
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.
ENDIFBest regards!
Samuel
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |