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

Loading the sub-screen from the search help value

Former Member
0 Likes
1,198

My aim is to load a sub-screen according to the search help value. In my project i have a header area that has a search help attached field and a sub-screen area in that i load a different sub-screen  the sub-screen should be changed according to the search help value.but it should be done when i select the search help value not by pressing ENTER.

My aim is to load a sub-screen according to the search help value. In my project i have a header area that has a search help attached field and a sub-screen area in that i load a different sub-screen  the sub-screen should be changed according to the search help value.but it should be done when i select the search help value not by pressing ENTER.

4 REPLIES 4
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
840

Moderator Message: If there is a relation to the thread mentioned below, then please do not create duplicate post with different id's. It is a serious offence. This lessens the interest of helping.


Read only

0 Likes
840

no i created this thread

Read only

RaymondGiuseppi
Active Contributor
0 Likes
840

To change the subscreen you must trigger a PAI/PBO cycle, as  a search help will not do it.

So, you will have to manage the search help in the POV (you can of course call the FM F4IF_FIELD_VALUE_REQUEST to execute the same search help) and in the module, just after the call of the FM;if selecton has changed then change subscreen number and trigger the PAI.

To trigger the PAI you can either

- Call FM "SAPGUI_SET_FUNCTIONCODE"

- Fill OK_CODE = 'DUMMY'. and execute statement SUPPRESS DIALOG.

- Call method cl_gui_cfw=>set_new_ok_code

Regards,

Raymond

Read only

srijithIBP
Explorer
0 Likes
840

It can be done by using a search help exit.

while creating a search help mention a SEARCH HELP EXIT for the same.

search help exit is a function module (SE37) that can be trigered after or before serch help results are shown.

Try submitting your module pool program inside the search help exit function module.

SUBMIT your program name with parameters(if required).

*got idea ?? reply