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: 

Couldn't get F4 help though having Value table for the domain of the field.

Former Member
0 Kudos
904

In VBUK table, the domain of field VBELN has a value table. and this field doesnt have check table. i am getting F4 for this field in SE11. but when i try to get the F4 for this field using the FM F4IF_FIELD_VALUE_REQUEST, passing table name = VBUK, fieldname = VBELN , DYNPROG and DYNNR. i could not get F4 help. FM is returning Sy-Subrc 2..

1 ACCEPTED SOLUTION

Former Member
0 Kudos
255

Hi,

You can try using the FM F4TOOL_CHECKTABLE_HELP. This would work for the value table also.

You need to have the check table/value table and the fieldname.

Hope this helps.

Regards

Krishna

4 REPLIES 4

Former Member
0 Kudos
255

Try this:

TABNAME VBAK

FIELDNAME VBELN

DYNPROFIELD VBUK-VBELN

brad_bohn
Active Contributor
0 Kudos
255

Why don't you use one of the sales document search helps instead? A direct value help for that field isn't very useful.

Clemenss
Active Contributor
0 Kudos
255

Hi San,

if you check field, data element and domain for VBUK-VBELN you will see that no search help is defined at any level. If you use SE16N, you do not have a search help either.

The generated table browser SE16 (as called from SE11/SE12 for value display) will use the table itself as check table if no search help is found at any level. This is not standard SAP behavior.

you may use

CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
    EXPORTING
      tabname    = 'VBAK'
      fieldname  = 'VBELN'
    TABLES
      return_tab = lt_return_tab
    EXCEPTIONS
      OTHERS     = 5.

as VBUK is defined as check table for vbak-vbeln.

Or just turn to the much more powerful standard collective search help CS_VBELN.

Regards,

Clemens

Former Member
0 Kudos
256

Hi,

You can try using the FM F4TOOL_CHECKTABLE_HELP. This would work for the value table also.

You need to have the check table/value table and the fieldname.

Hope this helps.

Regards

Krishna