Application Development and Automation 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: 
Read only

Empty Selection with F4IF_INT_TABLE_VALUE_REQUEST

Former Member
0 Likes
2,056

Hello

I have a strange problem.

I'm using the Function F4IF_INT_TABLE_VALUE_REQUEST.

When I try the Programm, I have the problem that the selection box box is empty. But at the end of the Popup Box it says 99 values are found (thats the right number).

The Table ipefcp_tab2 is also filled with the right values.

The Code:

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

retfield = 'FILESTRUCTURE'

value_org = 'S'

DYNPPROG = SY-REPID

DYNPNR = '2000'

DYNPROFIELD = 'lb'

TABLES

value_tab = ipefcp_tab2

EXCEPTIONS

parameter_error = 1

no_values_found = 2

OTHERS = 3.

Thanks for your help

Hello

I have a strange problem.

I'm using the Function F4IF_INT_TABLE_VALUE_REQUEST.

When I try the Programm, I have the problem that the selection box box is empty. But at the end of the Popup Box it says 99 values are found (thats the right number).

The Table ipefcp_tab2 is also filled with the right values.

The Code:

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

retfield = 'FILESTRUCTURE'

value_org = 'S'

DYNPPROG = SY-REPID

DYNPNR = '2000'

DYNPROFIELD = 'lb'

TABLES

value_tab = ipefcp_tab2

EXCEPTIONS

parameter_error = 1

no_values_found = 2

OTHERS = 3.

Thanks for your help

10 REPLIES 10
Read only

former_member226999
Contributor
0 Likes
1,398

Hi Jan,

I don't see anything wrong in your code. Check if the screen number is correct and spelling matches with the screen 'FILESTRUCTURE'.

All I could think is of SY-REPID.... If you assign that to a variable and then check if it works.



data: lv_repid type sy-repid.

lv_repid = sy-repid.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'FILESTRUCTURE'
value_org = 'S'
DYNPPROG = lv_repid
DYNPNR = '2000'
DYNPROFIELD = 'lb'
TABLES
value_tab = ipefcp_tab2

EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.

Hope this works.

Read only

Former Member
0 Likes
1,398

hey check this sample code....

DATA: l_return LIKE ddshretval OCCURS 0 WITH HEADER LINE.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

retfield = 'FIELD'

dynpprog = sy-repid

dynpnr = '1000'

dynprofield = 'S_PZ-LOW'

value_org = 'S'

TABLES

value_tab = t_pz

return_tab = l_return

EXCEPTIONS

parameter_error = 1

no_values_found = 2

OTHERS = 3.

IF sy-subrc <> 0.

MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ELSE.

  • Read return table and pass it to

  • the low value of S_PZ

READ TABLE l_return INDEX 1.

s_pz-low = l_return-fieldval.

Read only

Former Member
0 Likes
1,398
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'FILESTRUCTURE'  <---is it part of ipefcp_tab2.
value_org = 'S'
DYNPPROG = SY-REPID
DYNPNR = '2000'
DYNPROFIELD = 'lb'  "<----what is this field, anyway use caps
TABLES
value_tab = ipefcp_tab2

EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.
Read only

Former Member
0 Likes
1,398

Hi,

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'FILESTRUCTURE'  .
value_org = 'S'
DYNPPROG = SY-REPID
DYNPNR = '2000'
DYNPROFIELD = 'lb'  
TABLES
value_tab = ipefcp_tab2
 
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.

retfield should contain the field name whose value should come in the screen field after selecting the row from F4.

Regards,

Saba

Read only

Former Member
0 Likes
1,398

retfield = 'FILESTRUCTURE' is part of Table ipefcp_tab2

==>

DATA: BEGIN OF ipefcp_tab2 OCCURS 0,

FILESTRUCTURE TYPE c LENGTH 50,

END OF ipefcp_tab2.

Read only

0 Likes
1,398

> retfield = 'FILESTRUCTURE' is part of Table ipefcp_tab2

>

> ==>

> DATA: BEGIN OF ipefcp_tab2 OCCURS 0,

> FILESTRUCTURE TYPE c LENGTH 50,

> END OF ipefcp_tab2.

Instead of declaring FILESTRUCTURE field using "TYPE" addition using a standard type, declare using LIKE with reference to a dictionary field

like

 DATA: BEGIN OF ipefcp_tab2 OCCURS 0,
 FILESTRUCTURE  LIKE LAW_TEXT-FILENAME,
 END OF ipefcp_tab2.

Ensure that the value passed to the parameter 'DYNPNR' 2000 is correct

Ensure that the screen field name 'lb' is correct, also as suggesed above pass the value in CAPS, i.e., as 'LB'

Read only

Former Member
0 Likes
1,398

Thanks for your help!!

I tried all your advices.

But I still havn't found the solution.

The F4 Selection Box still shows no values

Only in the footer and heading it say 99 values found which is correct

Read only

0 Likes
1,398

Hi,

I think you should create a work area for the FILESTRUCTURE (retfield), and then to append it to FILESTRUCTURE table with the fields that you want to see in the input help.

eg. wa_filestructure type line of filestructure

then fill in parameters FIELDNAME - 'column 1 from internal

table with data that you want to get

LANGU

POSITION

OFFSET

DOMNAME

CHECKTABLE

LENG

INTLEN

OUTPUTLEN

APPEND wa_filestructure TO FILESTRUCTURE.

Check which are optional or not from the function documentation and / or syntax check.

Hope it helps,

Florin

Read only

0 Likes
1,398

I'm having exactly the same problem in a very simple program I've created to test the function module 'F4IF_INT_TABLE_VALUE_REQUEST'. I'm told that 12 values where found but these are not displayed on the screen. The result screen is empty.

REPORT ztest.

PARAMETERS: p_ebeln LIKE ekko-ebeln.

DATA: w_ekko LIKE  dfies-fieldname,
      i_ekko LIKE ekko OCCURS 0,
      i_tab LIKE dfies OCCURS 0,
      i_tab2 LIKE ddshretval OCCURS 0,
      w_repid LIKE sy-repid,
      w_dynnr LIKE sy-dynnr.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_ebeln.

  SELECT * FROM ekko
           INTO TABLE i_ekko
  WHERE ebeln GE '6000000000'
    AND ebeln LE '7000000000'.

  w_repid = sy-repid.
  w_dynnr = sy-dynnr.

  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
*      ddic_structure         = 'EKKO'
      retfield               = 'EBELN'
      dynpprog               = w_repid
      dynpnr                 = '1000'
      dynprofield            = 'P_EBELN'
      window_title           = 'TEST'
      value_org              = 'S'
    TABLES
      value_tab              = i_ekko
*      return_tab             = i_tab2
    EXCEPTIONS
      parameter_error        = 1
      no_values_found        = 2
      OTHERS                 = 3
            .
  IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.

Read only

Former Member
0 Likes
1,398

CALL FUNCTION 'DYNP_GET_STEPL'

IMPORTING

povstepl = step_line.

  • SORT ipefs_tab ASCENDING BY FILESTRUCTURE.

tmp = sy-repid.

tmp2 = sy-dynnr.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

retfield = 'SELECTIONFORMAT'

value_org = 'S'

dynpprog = tmp

dynpnr = tmp2

stepl = step_line

dynprofield = 'SF-low'

TABLES

value_tab = ipess_tab2

EXCEPTIONS

parameter_error = 1

no_values_found = 2

OTHERS = 3.