Application Development 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: 

F4 help in module pool program for dictionary field

former_member671224
Participant
0 Kudos

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

4 REPLIES 4

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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