2011 Jul 14 10:54 AM
Hi All,
I am using one standard search help to get the ORG STRUCTURE in my ABAP selection screen. When the user is pressing the F4 option it will display the standard org structure using the standard search help and the user can select the ORG UNIT (multiple org unit selection is also possible) from that help. Now my requirement is little tricky.
1. When the user is pressing the F4 option it has to display the org structure only from his current org unit till the end of the org structure instead of whole org structure.
2. The user should be able to select only one org unit which is his current org unit(the selection checkbox should be available only for his org unit instead of all). The selection should not be available for other org units.
I am actually checking all the search help exits. Please let me know if any one can help me in this.
<< Moderator message - Please do not promise points >>
Note: To view the standard Search help Plz look into *HRBAS00OBJID*
Thanks,
Karthik
Edited by: Rob Burbank on Jul 14, 2011 10:35 AM
Hi All,
I am using one standard search help to get the ORG STRUCTURE in my ABAP selection screen. When the user is pressing the F4 option it will display the standard org structure using the standard search help and the user can select the ORG UNIT (multiple org unit selection is also possible) from that help. Now my requirement is little tricky.
1. When the user is pressing the F4 option it has to display the org structure only from his current org unit till the end of the org structure instead of whole org structure.
2. The user should be able to select only one org unit which is his current org unit(the selection checkbox should be available only for his org unit instead of all). The selection should not be available for other org units.
I am actually checking all the search help exits. Please let me know if any one can help me in this.
<< Moderator message - Please do not promise points >>
Note: To view the standard Search help Plz look into *HRBAS00OBJID*
Thanks,
Karthik
Edited by: Rob Burbank on Jul 14, 2011 10:35 AM
2011 Jul 14 12:53 PM
Hi,
u can use search help exit.
[http://help.sap.com/saphelp_nw70/helpdata/en/cf/21ee52446011d189700000e8322d00/content.htm]
Best regards,
Burak
2011 Jul 14 1:09 PM
Hi Burak,
Thanks for your response. I have gone through the link. There is a Help search Exit attached with the standard search help for this Org unit display. But could you please give me some more idea how can I use that?
Thanks,
Karthik
2011 Jul 14 1:12 PM
Via the exit, insert code to modify the contents in the table returned, considering the transaction that is running and the requirements you have already stated.
2011 Jul 14 1:25 PM
Dave,
If I understand correctly I need to get the access key to do the necessary changes in the exit as per my requirement and implement the restriction in the Exit?
Thanks,
Karthik
2011 Jul 14 1:26 PM
Hi Karthik,
go to se19 tr.Create badi implementation for "HRBAS00_SEARCH_EXCL".
Activate this badi.
And in this badi u will see a method called "EXCLUDE_SEARCHHELPS".In this method you can make development.The data to show user is in SHLPTAB table.just exclude what u want.
Best Regards,
Burak
2011 Jul 14 1:31 PM
HI,
Yes I made the implementation. I will include the necessary code changes in it now. But When ever the standard search help is being called it will go via this BADI and exclude the details and will display only the necessary value. Is it correct?
Thanks,
Karthik
2011 Jul 22 7:39 PM
this can be achieved by the below process as well.
- append a collective searchhelp to this standard searchhelp(x).
- in the collective searchhelp, include all the standard searchelp which are there in 'X' and mark them as HIDE.
- at the end include a new custom elementary searchhelp.
- right ur logic to fetch/display what you want in this custom searchhelp.
hope this helps.
rgds
2012 May 14 3:19 PM
Hi Karthik,
Can you please explain in detail on how did you solve this issue ?
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |