‎2011 Jun 28 9:39 AM
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
‎2011 Jun 28 10:03 AM
Cause: Invalid value for the addition LENGTH.
Occurs when you have passed value more than Length defiend.
‎2011 Jun 28 11:28 AM
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.
‎2011 Jun 28 11:52 AM
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
‎2011 Jun 29 1:47 AM
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