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

Dump while calling FM - F4IF_INT_TABLE_VALUE_REQUEST ?

Former Member
0 Likes
1,544

Hi All,

I using FM F4IF_INT_TABLE_VALUE_REQUEST as follows and getting dump:-

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

retfield = 'EBELN'

dynpprog = sy-repid

dynpnr = sy-dynnr

dynprofield = 'P_POHEADER'

value_org = c_valorg_s

TABLES

value_tab = lit_ekko

return_tab = lit_return_tab

EXCEPTIONS

parameter_error = 1

no_values_found = 2

OTHERS = 3.

Dump:-

Invalid subfield access: Offset too large

Exception - CX_SY_RANGE_OUT_OF_BOUNDS

The current ABAP program "SAPLSDH4" had to be terminated because it has

come across a statement that unfortunately cannot be executed.

Where am I going wrong ?

Regards,

Ashish

Hi All,

I using FM F4IF_INT_TABLE_VALUE_REQUEST as follows and getting dump:-

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

retfield = 'EBELN'

dynpprog = sy-repid

dynpnr = sy-dynnr

dynprofield = 'P_POHEADER'

value_org = c_valorg_s

TABLES

value_tab = lit_ekko

return_tab = lit_return_tab

EXCEPTIONS

parameter_error = 1

no_values_found = 2

OTHERS = 3.

Dump:-

Invalid subfield access: Offset too large

Exception - CX_SY_RANGE_OUT_OF_BOUNDS

The current ABAP program "SAPLSDH4" had to be terminated because it has

come across a statement that unfortunately cannot be executed.

Where am I going wrong ?

Regards,

Ashish

7 REPLIES 7
Read only

Former Member
0 Likes
1,150

Hi,

I think you have entered wrong field at DYNPROFIELD, the field length of the P_POHEADER is to big.

Read only

Former Member
0 Likes
1,150

Hi Asish,

keep retfield and dynprofield lengths same

Thanks

Read only

Former Member
0 Likes
1,150

Hi Ashish,

You could comment the dynprofield exchange parameter and then execute ur FM. If you dont get the dump then we can process the return tab.

Revert with results if possible.

Read only

0 Likes
1,150

Hi All,

I tried all the above suggestions, but it gives the same dump.

This is such a simple thing which normally works, but somehow I am stuck in this now.

Please suggest anything else that I can try.

Regards,

Ashish

Read only

Former Member
0 Likes
1,150

Hi,

Please give value_org field as 'S'.

This field can take only one character.

I dont know what your variable c_valorg_s contains.

Check on that.

Here is a sample code



AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_screen.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
*     DDIC_STRUCTURE         = ' '
      retfield               = 'VBELN'  "Name of the field in the internal table
*     PVALKEY                = ' '
     DYNPPROG               = 'ZTRIAL'
    DYNPNR                 = SY-DYNNR
     DYNPROFIELD            = 'S_SCREEN'  "Screen field name
*     STEPL                  = 0
*     WINDOW_TITLE           =
*     VALUE                  = ' '
     VALUE_ORG              = 'S'
*     MULTIPLE_CHOICE        = ' '
*     DISPLAY                = ' '
*     CALLBACK_PROGRAM       = ' '
*     CALLBACK_FORM          = ' '
*     MARK_TAB               =
*   IMPORTING
*     USER_RESET             =
    tables
      value_tab              = T_VBELN
*     FIELD_TAB              =
*     RETURN_TAB             =
*     DYNPFLD_MAPPING        =
   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.
ENDIF.

Read only

Former Member
0 Likes
1,150

Hi ,

i think you have given some wrong referance field.check all the referance type of variables with that of the function module.

Please let me know if you still have any issues on this.

Thanks and regards,

Rajeshwar.

Read only

Former Member
0 Likes
1,150

Dear All,

I just found the mistake.

The table I had mentioned in value_tab i.e.

value_tab = lit_ekko

was defined as follows :-

lit_ekko type ccrctt_ekko.

Now, ccrctt_ekko is a table type of EKKO. And EKKO contains 159 fields.... that was the problem.

I just declared a local type .... with some 4 or 5 fields.

Now it works fine

Regards,

Ashish