‎2005 Jan 21 10:25 AM
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
‎2005 Jan 21 2:30 PM
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
‎2005 Jan 21 4:36 PM
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.
‎2005 Jan 24 5:32 AM
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
‎2007 Oct 15 10:36 AM
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
‎2007 Oct 15 10:41 AM
<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>