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_member384574
Active Participant
0 Likes
699

Hi Experts,

I need help with this. I've created a Search help Exit for my Search Help, the problem is that I need to look for the Objid that is being used (is a client OM infotype field). So, in order to select the differents values depending on the Objid, I need to select the Objid number and pass it to the search help... can anybody help me with this? How can I select the corresponding Objid?

Thanks in advance,

Regards,

Rebeca

1 ACCEPTED SOLUTION
Read only

former_member209703
Active Contributor
0 Likes
638

Hi Rebeca.

I guess the best option is using ABAP Memory (IMPORT/EXPORT)

Since your match-code would be associated to a Custom Z Infotype, you could export the value of your OBJID at the beginning of the process (PBO of your MP****** program) and get the value back using IMPORT in your Search Help Exit

Regards

Edited by: Jose Maria Otero on Sep 5, 2011 3:33 PM

Hi Experts,

I need help with this. I've created a Search help Exit for my Search Help, the problem is that I need to look for the Objid that is being used (is a client OM infotype field). So, in order to select the differents values depending on the Objid, I need to select the Objid number and pass it to the search help... can anybody help me with this? How can I select the corresponding Objid?

Thanks in advance,

Regards,

Rebeca

4 REPLIES 4
Read only

Former Member
0 Likes
638

there are generally a table in search help exit for making any changes to the fetched records. If you want to select data based on your query , you have to make changes in fetched record it can be done by modifying the table.

i think there is one table for setting some crietria or select condition as well. You can put a break point in the exit and check if modifying search crieteria will help.

Read only

0 Likes
638

Hi Madhumati,

Thanks a lot for your response. Yes, I know that there is a table (Record_tab) that have all the query data, the problem is the connection between this ones. Let me explain it better:

I have a client IT with a client field. This client field search help should display data according to the field HRP1000-short. The problem is that the HRP1000-Short has 5 characters and the corresponding table for fill the client field only has 3 characters, so my problem is how to join the HRP1000-Short with the XXX_Tab-field.

When I make the search help exit I don't have the necessary data from HRP1001 so I can't read the Short field...

Any idea?

Thanks a lot!

Read only

former_member209703
Active Contributor
0 Likes
639

Hi Rebeca.

I guess the best option is using ABAP Memory (IMPORT/EXPORT)

Since your match-code would be associated to a Custom Z Infotype, you could export the value of your OBJID at the beginning of the process (PBO of your MP****** program) and get the value back using IMPORT in your Search Help Exit

Regards

Edited by: Jose Maria Otero on Sep 5, 2011 3:33 PM

Read only

0 Likes
638

Thanks a lot Jose María Otero!! Now it works perfectly!!!!

Best Regards,

Rebeca