2009 Jan 09 4:00 AM
Hi All,
I have a standard SAP ABAP dictionary Search help. I want to execute that search help programmatically and get the return values in a internal table. Please note that I dont want the pop-up's for the Selection screen of Search help. Also I dont want the return values to be displayed as pop-up. I want the return values in internal table. Any suggestions to do this?
Thanks & Regards,
Mayank Agarwal
Hi All,
I have a standard SAP ABAP dictionary Search help. I want to execute that search help programmatically and get the return values in a internal table. Please note that I dont want the pop-up's for the Selection screen of Search help. Also I dont want the return values to be displayed as pop-up. I want the return values in internal table. Any suggestions to do this?
Thanks & Regards,
Mayank Agarwal
2009 Jan 09 4:13 AM
Hi Mayank,
Can you please explain where do you want to use this thing?
So that people can help you in better way.
Otherwise if you have excees to edit screen elements.
just go to screen -> Element List -> Reference.
just remove search help from there.
And if You want to fill up internal table on pressing F4 , then just add event in report that
AT SELECTION-SCREEN ON VALUE-REQUEST FOR <var>.
Here You can write your code for filling internal table.
Regards,
Pratik Vora
2009 Jan 09 4:26 AM
Hi,
If u don't want search help pop up screen, then no need to go for search help.
Anyway search help also doing database retrieval only, it is fetching data from database.
so u can directly fetch the data from database and put it into an internal table.
The execution time also will be reduced.
What u have to do is , analyse that search help from which table it is fetching data at wat condition.
there will be a search help exit for that search help in the elementary search help . This exit is FM.
In this FM They might have done validation or check that elementary search help to get the fields displayed on the pop up and the table from it is fetching the data.
2009 Jan 09 4:46 AM
Thanks for your answers.
I can copy search help and also copy the code. But this will lead to having redundancies in the system. I dont want to copy the code. Rather i want to use the code already writtem in the Search help exit by just calling the Search help. Is there any way to achieve this?
Regards,
Mayank
2009 Jan 09 5:20 AM
Hi,
If u use search help, then u can't avoid pop up screen.
I think u can't use search help as FM to get the result in an internal table.
Just do the database retrieval using select query and specified where conditions as search help works.
just refer this link
http://www.sapdevelopment.co.uk/dictionary/shelp/shelphome.htm
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |