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

Create data illegal length

Former Member
0 Likes
1,027

hi experts,

im having a short dump error:

Runtime Error: CREATE_DATA_ILLEGAL_LENGTH

Exceptions: CX_SY_CREATE_DATA_ERROR

im using CL_ABAP_CONTAINER_UTILITIES=>READ_CONTAINER_C.

Syntax:


read dataset datei_mit_ext into ls_buffer.

call method cl_abap_container_utilities=>read_container_c
exporting
im_container = ls_buffer
importing
ex_value = gs_ausgabe
exceptions
illegal_parameter_type = 1
others = 2.
if sy-subrc <>0.
endif.

please help.

thank you

4 REPLIES 4
Read only

Former Member
0 Likes
922

Cause: Invalid value for the addition LENGTH.

Occurs when you have passed value more than Length defiend.

Read only

Venkat_Sesha
Product and Topic Expert
Product and Topic Expert
0 Likes
922

Just Do this, if it is getting at Read Data set

TRY.

READ DATASET file INTO gv_string.

CATCH cx_sy_file_open INTO oref.

lv_text = oref->get_text( ).

CATCH cx_sy_file_io INTO oref.

lv_text = oref->get_text( ).

ENDTRY.

Also you know the exxception you got for the CL_GUI_FRONTENT_SERVICES Read_container.

Do the sam above code here by changing the catch exceptions. Hope This Helps.

Regards,

Bhargav.

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
922

Hello,

It'll help if you provide more details viz., the type of the variables ls_buffer & gs_ausgabe ?

Did you debug the method call & get the exact location of the dump?

BR,

Suhas

Read only

Former Member
0 Likes
922

Hello experts,

i think i know the problem im getting a sy-index = 107 but the total number of data in application server is only 106

i think there's a space at the end that causes the error..

Thank you for all the suggestions.

Kind regards,

bernadette