‎2010 Aug 20 10:06 AM
Hi ,
I have created a search help with one input parameter and one output using SE11 elementary searchhelp.
I have created the Search help ext .
In my screen, I have 2 fields.
The searchhelp has been attached to the field2.
Based on field1 I need to display the field 2.
But I am not able to get it.
In the Function module(search help help), shlp-selopt is blank.
Can anyone please help on this.
Thanks & regards,
Sumithra
In the future please use a descriptive title and post questions in the right forum.
Moved to the right forum by: kishan P on Aug 20, 2010 5:33 PM
‎2010 Aug 20 12:50 PM
Hi Sumithra,
Try using the FM 'F4UT_PARAMETER_VALUE_GET'. Here's an example:
CALL FUNCTION 'F4UT_PARAMETER_VALUE_GET'
EXPORTING
PARAMETER = 'FIELD1'
FIELDNAME = 'FIELD1'
TABLES
SHLP_TAB = SHLP_TAB
RECORD_TAB = RECORD_TAB
RESULTS_TAB = lt_results
CHANGING
SHLP = SHLP
CALLCONTROL = CALLCONTROL.Regards,
Vladan
‎2010 Aug 20 3:12 PM
No, F4UT_PARAMETER_VALUE_GET is for retrieving values from the search help interface. It stands to reason that if the value isn't in the select options table, then the function call won't work.
To the OP, did you attach the screen field to the search help interface properly? Otherwise, you would need to use DYNP_VALUES_READ to get the value(s).
‎2010 Aug 20 3:30 PM
Ooops... My bad. You're right, Brad.
Edited by: Vladan Vujaklija on Aug 20, 2010 4:32 PM
‎2010 Aug 20 3:38 PM
Hi,
try this waqy..
parameter : p_field1 type char10,
p_field2 type char10.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_field1.
CLEAR t_dynpfields.
REFRESH t_dynpfields.
t_dynpfields-fieldname = p_field2.
APPEND t_dynpfields.
w_repid = sy-repid.
* reading Screen variables and Values
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
dyname = w_repid
dynumb = sy-dynnr
TABLES
dynpfields = t_dynpfields
EXCEPTIONS
OTHERS.
READ TABLE t_dynpfields INDEX 1.
p_field2 = t_dynpfields-fieldvalue.
IF p_field2 = 0.
select * from table into itab where field2 - field2.
if sy-subrc = 0.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'SUPERDEST'
dynpprog = sy-repid
dynpnr = '1000'
dynprofield = w_dynprofld
value_org = 'S'
TABLES
value_tab = t_zssysmap.
IF sy-subrc <> 0.
ENDIF.
ENDIF.
ENDIF.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_field2.
CLEAR t_dynpfields.
REFRESH t_dynpfields.
t_dynpfields-fieldname = p_field1.
APPEND t_dynpfields.
w_repid = sy-repid.
* reading Screen variables and Values
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
dyname = w_repid
dynumb = sy-dynnr
TABLES
dynpfields = t_dynpfields
EXCEPTIONS
OTHERS.
READ TABLE t_dynpfields INDEX 1.
p_field2 = t_dynpfields-fieldvalue.
IF p_field2 = 0.
select * from table into itab where field1 - field1.
if sy-subrc = 0.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'SUPERDEST'
dynpprog = sy-repid
dynpnr = '1000'
dynprofield = w_dynprofld
value_org = 'S'
TABLES
value_tab = t_zssysmap.
IF sy-subrc <> 0.
ENDIF.
ENDIF.
ENDIF.
Prabhudas
‎2010 Aug 23 5:25 AM
Hi,
I was using F4IF_INT_TABLE_VALUE_REQUEST. But the return tab is having the field type C132. But in my F4 help, the field has length of char255.
As the return tab has 132 length, the value is getting truncated. Hence I tried to use the SE11 search help.
In my screen, I am using Dynp_values_read to get the current value and I am getting it.
But I dont know how can I send this value to the F4 Help.
Because the F4 help I have attached is for field2 based on field 1. But how will it take the field1 value.
Can anyone explain the process of creation and usage of Search help using se11(based on search help exit).
Thanks a lot for the answers...
Sumithra
‎2010 Sep 10 10:16 AM
hi,
when u created search help then in import field put both 2 feilds and in export as u want to see feild 2 wrt feild 1 then put feild 2.
as u paste the search help for feild 2 u see all values of feild 1 and feild2 together.
sulabh
‎2010 Sep 24 7:44 AM
Problem Not solved.But closing this cos of the limitation of open questions...