2009 Aug 11 9:05 AM
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
2009 Aug 11 9:09 AM
Hi,
I think you have entered wrong field at DYNPROFIELD, the field length of the P_POHEADER is to big.
2009 Aug 11 9:18 AM
2009 Aug 11 9:43 AM
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.
2009 Aug 11 10:13 AM
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
2009 Aug 11 10:18 AM
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.
2009 Aug 11 10:18 AM
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.
2009 Aug 11 10:21 AM
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
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |