09-07-2007 6:37 PM
Hi,
I need to set F4 help for the screen field. which has to get values from other table and display. I tried using FM <b>F4IF_INT_TABLE_VALUE_REQUEST</b>. but it is showing that no input values. But in debug mode i vould see entries in internal table.
Below is the coding is used in PAI.
PROCESS ON VALUE-REQUEST.
FIELD vbap-zstate MODULE zzzstate_value.
module zzzstate_value input.
types: begin of ty_values,
bland like t005u-bland,
end of ty_values.
data: t_values type table of ty_values.
refresh t_values.
select bland from t005u
into corresponding fields of table t_values
where spras = 'EN' and land1 = 'US'.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'BLAND'
tables
value_tab = t_values[]
.
Regards,
Amal
09-08-2007 10:29 AM
hi,
if ur condidtion is fix than u can make search help and give that search help to that (BLAND) field.
hope it will b helpful to u.
09-08-2007 7:45 PM
Hi Amal,
I guess you have to pass some parameters to your FM or try giving ZSTATE to your ret_field exporting parameter and see if it works.
I am not connected to SAP ...So, I could not try. Let us know if the message is helpful.
Regards,
Hari
09-09-2007 2:07 AM
If you display the function module in SE37 and select the "Function Module Documentation" button you will get documentation on how to use this function.
It states that if the internal table fields have EXPLICIT reference to a DDIC field or data element, then you do not need to pass DDIC_STRUCTURE or FIELD_TAB parameters to the function module.
This is not how you have defined your internal table - it is with reference to TYPES defined in your program. So you need to pass the function details of your internal table structure for it to work.
You also probably need to define DYNPPROG, DYNPNR, DYNPROFIELD and possibly STEPL to get the value returned.
Check the documentation.
Andrew
09-09-2007 7:41 AM
Hi,
You have to pass DYNPROFIELD to your function module. Pass your screen field name to DYNPROFIELD. The link between your F4 list and screen field gets established only when you pass DYNPROFIELD.
Still if values are not displayed, try to declare the t_values with "With Header Line" Clause.
Reward if answer is useful.....
Regards,
Hema