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: 

Help! F4IF_INT_TABLE_VALUE_REQUEST - no values on hitlist displayed

Former Member
0 Kudos

Hello everybody,

maybe some of you are able to help me, please!

My problem is, that i want to display an F4-help-list that is based on the structure LQUA, but i restricted the shown fields by making some entries in fieldtab.

The value-tab i do import is correctly filled, the F4-Windows shows 1 Row, but is lacking of the expected values.

Furthermore i want to fill depending dynpro-fields on the go, but that doesn't work either. hmmm, its really enerving me...

where's the point? what am i doing wrong?

Thnx a lot for getting me out of my mess!

Here is the coding i use:

-

-


PROCESS ON VALUE-REQUEST.

FIELD lqua-lgtyp MODULE F4_lagerplatzliste.

-

-


CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

RETFIELD = 'LGTYP'

VALUE_ORG = 'S'

DYNPPROG = 'ZPI_AUFTRAG_MELDEN_CFX'

DYNPNR = '0100'

DYNPROFIELD = 'LQUA-LGTYP'

WINDOW_TITLE = 'Lagerplätze'

TABLES

VALUE_TAB = IT_LAGER *** is already filled by another module.

FIELD_TAB = FIELD_TAB

RETURN_TAB = RETURN_TAB

DYNPFLD_MAPPING = MAP_TAB

EXCEPTIONS

PARAMETER_ERROR = 1

NO_VALUES_FOUND = 2

OTHERS = 3.

-

-


Example of the Table_Definition:

*LGNUM

MOVE 'IT_LAGER' TO FIELD_TAB-TABNAME.

MOVE 'LGNUM' TO FIELD_TAB-FIELDNAME.

MOVE 'D' TO FIELD_TAB-LANGU.

MOVE '0001' TO FIELD_TAB-POSITION.

  • MOVE '0000' TO FIELD_TAB-OFFSET.

  • MOVE '003' TO FIELD_TAB-LENG.

  • MOVE '003' TO FIELD_TAB-INTLEN.

  • MOVE '003' TO FIELD_TAB-OUTPUTLEN.

CLEAR: WA_MAP.

WA_MAP-FLDNAME = FIELD_TAB-FIELDNAME.

WA_MAP-DYFLDNAME = 'LQUA-LGNUM'.

APPEND WA_MAP TO MAP_TAB.APPEND FIELD_TAB.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Call the Function module as below in POV

      CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
           EXPORTING
               tabname             = tabname
               fieldname           = fname
*            SEARCHHELP          = ' '
*            SHLPPARAM           = ' '
*            dynpprog            = progname
*            dynpnr              = dynnr
*            dynprofield         = ' '
*            stepl               = dynp_stepl
               value               = value_bef_f4
*            MULTIPLE_CHOICE     = ' '
*            DISPLAY             = ' '
*            SUPPRESS_RECORDLIST = ' '
               callback_program    = progname
               callback_form       = 'CALLBACK_F4'
          TABLES
               return_tab          = return_tab
          EXCEPTIONS
               field_not_found     = 1
               no_help_for_field   = 2
               inconsistent_help   = 3
               no_values_found     = 4
               OTHERS              = 5.
....
........
..........
ENDMODULE.

Regards,

Satish

5 REPLIES 5

Former Member
0 Kudos

Hi,

Call the Function module as below in POV

      CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
           EXPORTING
               tabname             = tabname
               fieldname           = fname
*            SEARCHHELP          = ' '
*            SHLPPARAM           = ' '
*            dynpprog            = progname
*            dynpnr              = dynnr
*            dynprofield         = ' '
*            stepl               = dynp_stepl
               value               = value_bef_f4
*            MULTIPLE_CHOICE     = ' '
*            DISPLAY             = ' '
*            SUPPRESS_RECORDLIST = ' '
               callback_program    = progname
               callback_form       = 'CALLBACK_F4'
          TABLES
               return_tab          = return_tab
          EXCEPTIONS
               field_not_found     = 1
               no_help_for_field   = 2
               inconsistent_help   = 3
               no_values_found     = 4
               OTHERS              = 5.
....
........
..........
ENDMODULE.

Regards,

Satish

0 Kudos

Thanx a lot for your fast reply,

but i'm afraid, that isn't exactly what i need. You're coding only sends one return value back to the dynpro, right?

I have a dynpro with fields of the tables lqua and ZPZAUFTRP0

My question is about the two fields lqua-lgtyp and lqua-lgpla.

The values are restricted by material and batch, which are provided in an own created 'z'-table zpzauftrp0.

What i want is, that if you use the value help on lgtyp, it should show all entries of lgtyp + lgpla + mantr + batch.

After choosing one line-value, lqua-lgtyp AND lqua-lgpla should be filled automatically.

Maybe i'm completely on the wrong way, perhaps its better to choose SE11-Customizing?

Cheers, Sabrina

Former Member
0 Kudos

Hello,

I just had the same problem recently that the F4 popup displayed it had found one entry (or the like), but the list itself was empty. In my case I solved it by manually recreating the data type I used for the table, and not use the one I originally thought would work.

In the end I defined the table type like

data: begin of lt_order_values occurs 0,

key type char14,

text type qtxt_code,

end of lt_order_values.

instead of the originally used

data: lt_order_values like vrm_values.

I never really knew what the difference was, but for me, that worked.

Regards

Thomas

0 Kudos

Thanx for your answer,

yes, sometimes things work and and you're only hoping it doesn't stop to work in future

I get to know that too

But what you describe is that standard f4help with one return value.

...my problem was, that i wanted a self-written f4-help thats filling more than one dynpro-field at one time!

I did actually quite well with the one-value drop down, but not with the filling of all my fields on the dynpro

now it seems to me it only works over standard-search-help, when a serch help belongs to db-table-fields.

I solved the problem now on my own by creating a dummy tranparent table zpi_lqua (like lqua)

and created a search help(se11) for the table-fields lgtyp and lgpla.

the search method is a view over my z_table plus lqua. the import-values is set over the coding "set parameter" at PBO.

not my favorite, but that works 🐵

Greetz Sabrina

Former Member
0 Kudos

Se11 search help was the right way to solve that problem!