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

Objects instantiation - variable value

Former Member
0 Likes
529

Hello,

I am curious about what is the number in an object value for... (when in debug mode).

Example:

What is the number 13 for? Is that a pointer to the object?

I am creating an object like this:

TRY.
      CREATE OBJECT ob_inb_dlvry
        EXPORTING
          i_vbeln = lips-vbeln.
    CATCH cx_root INTO ex_ob_cx_root.
      ex_text      = ex_ob_cx_root->get_text( ).
      ex_text_long = ex_ob_cx_root->get_longtext( ).
endtry.

When in debug mode my object looks like this:

Variable: ob_inb_dlvry
Value: {O:13*\CLASS=ZCL_INBOUND_DELIVERY}

What is the number 13 for? Is that a pointer to the object?

Your response is greatly appreciated! Thank you very much in advance.

1 ACCEPTED SOLUTION
Read only

naimesh_patel
Active Contributor
0 Likes
489

Yes it is in identifier to identify the object reference.

You can see that it is noted in this page: [Names for Anonymous Storage Objects|http://help.sap.com/saphelp_nw70/helpdata/en/7f/061640033ae569e10000000a155106/frameset.htm]

.. Instance of my_class class with internal identification 3

Regards,

Naimesh Patel

3 REPLIES 3
Read only

Former Member
0 Likes
489

Hi,

Well I guess this is just an object identification number. Looks like it is beeing increased each time you create a new object...

If you are using a local class, you will see that the first time your create your object, the number will be 1.

Not able to search for any formal documentation right now on the subject however...

Kr,

Manu.

Read only

naimesh_patel
Active Contributor
0 Likes
490

Yes it is in identifier to identify the object reference.

You can see that it is noted in this page: [Names for Anonymous Storage Objects|http://help.sap.com/saphelp_nw70/helpdata/en/7f/061640033ae569e10000000a155106/frameset.htm]

.. Instance of my_class class with internal identification 3

Regards,

Naimesh Patel

Read only

0 Likes
489

Thank you all.