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 question

Former Member
0 Likes
340

Hi,

I have a selection screen with 3 fields.

xblnr, kunnr and bukrs

I created a search help exit for xblnr.

It finds my values perfectly and returns it on screen.

How do I make it return kunnr and bukrs values on the screen as well(they do appear on search help pop-up already).

I tried filling up the shlp_tab and shlp manually, but that didn't help.

right now, my search help exit is like that to delete duplicates.

I think I should add some code to the elseif callcontrol-step = 'RETURN', but all I've tried doesn't work.

Please note that I don't want to do it on my report program with at selection-screen on value-request for xblnr, I would like to solve this inside that userexit. Setting parameters doesn't help either as that requires the selection-screen to be refreshed.


if callcontrol-step = 'DISP'.
delete adjacent duplicates from record_tab comparing string.
elseif callcontrol-step = 'RETURN'.
exit.
else.
exit.
endif.

thank you all

Hi,

I have a selection screen with 3 fields.

xblnr, kunnr and bukrs

I created a search help exit for xblnr.

It finds my values perfectly and returns it on screen.

How do I make it return kunnr and bukrs values on the screen as well(they do appear on search help pop-up already).

I tried filling up the shlp_tab and shlp manually, but that didn't help.

right now, my search help exit is like that to delete duplicates.

I think I should add some code to the elseif callcontrol-step = 'RETURN', but all I've tried doesn't work.

Please note that I don't want to do it on my report program with at selection-screen on value-request for xblnr, I would like to solve this inside that userexit. Setting parameters doesn't help either as that requires the selection-screen to be refreshed.


if callcontrol-step = 'DISP'.
delete adjacent duplicates from record_tab comparing string.
elseif callcontrol-step = 'RETURN'.
exit.
else.
exit.
endif.

thank you all

1 REPLY 1
Read only

Former Member
0 Likes
321

solved it.

needed to give the parameters like


parameters: xblnr like ztable-xblnr,
                  kunnr like ztable-kunnr,
                  bukrs like ztable-bukrs.

then add the search help exit to the table properties for each parameter that i use in the report assigning the corresponding field and voila