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

Assign Search help dynamically

SudhirMakam
Advisor
Advisor
0 Likes
1,253

Hi,

I have two fields(issue_status and remarks)in a table control. I want to assign a search help to the 'REMARKS' field of the table control only when the user selects the value 'REJECTED' in the 'issue_status' field of the table control.

could some one please help me in solving this problem.

Regards,

Makam

5 REPLIES 5
Read only

Former Member
0 Likes
908

Hi Makam,

you should be using "process on help-request." event in the flow logic of your dynpro.

next you should read the contents of the "issue_status" field via function module DYNP_VALUES_READ. Then, if the value for "issue_status" is "REJECTED", then program your own "on help-request" module.

Hope it helps. BR,

Alvaro

Read only

nablan_umar
Product and Topic Expert
Product and Topic Expert
0 Likes
908

Hi Sudhir,

You can use SCREEN-VALUE_HELP in your PBO of your screen to populate the search help dynamically. Your code should be something like this,

PBO

loop at itab with control TcontrolName cursor line.

module put_searchhelp.

endloop.

In your module put_searchhelp.

if itab-issue_status = 'REJECTED'.

loop at screen.

if screen-name = 'REMARKS'.

screen-value_help = 'YOURSEARCHHELP'.

modify screen.

endif.

endloop.

endif.

Read only

0 Likes
908

Hi Umar,

i had tried a similar solution earlier. but the problem is , that the control does not go to the application layer from the presentation layer for the specified module to work .

Thanks anyways

Read only

Former Member
0 Likes
908

You can enter ':' followed by variable name in the module pool screen field .

Now you can populate this variable with required search help name at runtime depending on some conditions.

If u still cant understand, just press F1 at the search help textbox given in the module pool for the required field and u will get it.

Pls reward points if useful.

Regards, Neetu

Read only

hymavathi_oruganti
Active Contributor
0 Likes
908

<b>at selection-screen.

call the fn module dynp_values read and get the value for the fied issue_status.

at selection screen on value request for reamrks.

if issue_staus = 'rejected'

call the function module f4if_int_table_value_request.

endif.</b>