SAP Knowledge Base Article - Preview

2517364 - Runtime error DATA_LENGTH_0 occurs when using Generic Object Services

Symptom

When using Generic Object Services (GOS) in an application transaction, following dump occurs:

Runtime Errors DATA_LENGTH_0
Except. CX_SY_RANGE_OUT_OF_BOUNDS
ABAP Program CL_GOS_SRV_RELATIONS==========CP
Application Component BC-SRV-GBT-OBL

Short Text
    Invalid substring access: Length 0

"DATA_LENGTH_0" CX_SY_RANGE_OUT_OF_BOUNDS
"CL_GOS_SRV_RELATIONS==========CP" bzw. CL_GOS_SRV_RELATIONS==========CM006
"GET_OBJECT_KEY"

Source Code Extract

   13     CALL FUNCTION 'SWO_QUERY_KEYFIELDS'
   14       EXPORTING
   15         OBJTYPE        = ls_borident-objtype
   16       TABLES
   17         INFO           = lt_object_info
   18               .
   19     lv_len = 0.
   20     Loop at lt_object_info into ls_object_info.
   21       lv_len = lv_len + ls_object_info-ddlength.
   22     Endloop.
>>>>>     rv_object_key = is_lporb-instid(lv_len).
   24   else.
   25     rv_object_key = is_lporb-instid.
   26   endif.


Read more...

Environment

SAP NetWeaver basis release independent

Product

SAP ERP 6.0 ; SAP NetWeaver all versions

Keywords

SWO1, Object type does not have any key fields, OL586, OL 586, delegate, delegation type, OL800, OL 800, Object type is not defined , KBA , BC-SRV-GBT-OBL , Object links , BC-SRV-GBT-GOS , Generic Object Services , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.