Skip to Content
author's profile photo Former Member
Former Member

Problem on Get Entity Set

Hi Experts,

Have you ever got the following error message when trying to execute get EntitySet method ?

Error Info : Dereferencing the NULL reference

Class : CX_SY_REF_IS_INITIAL

My data definition :

DATA : ls_payment TYPE zcl_zgw_ebpp_mpc=>ts_payment,

INSERT ls_payment INTO TABLE et_entityset.

initially i have 'Payment' Entity Type with Navigation Property and Association link to another Entity.

if I delete Navigation Property and Association - it works fine.

I am NOT sure if i need to define the data into something else because of navigational property and Association.

Please let me know what you think.

Thank You in advance !

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Jan 07, 2014 at 03:28 PM

    Hi Martin,

    As you know both Navigation Property and Association Sets refer to Association.

    When you play around with these artifacts (delete/create), sometimes you might end up with wrong names of associations, thus loosing the reference for association sets and navigations resulting in above error.

    As I understand, you do require Association Sets for Associations to work. Association Set tells which Entity Set need to be used for an Association's End. If one of your Association End (Entity Type) is Partner, Association will tell if this Partner refers to Buyers or Sellers. (Entity Set).

    Regards

    Krishna

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 07, 2014 at 04:54 AM

    Hi Atanu,

    I got an error from /IWFND/IF_MED_MDL_OBJECT_CLASS~GET_ASSOCIATION_SET_BY_ASSOC Method

    this is the code where error came from

    lv_base_eset_name = lo_base_type->/iwfnd/if_med_mdl_node~get_entity_set_name( ).

    I am not sure why they are trying to get association set.

    Now, I am thinking maybe i should delete association set that i created before.

    Do you know if we need to create association sets for Deep_insert_entity ?

    Thank You,

    -Martin-

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 07, 2014 at 04:38 AM

    Hi Martin,

    From whihc class are you getting the error? I do not think that the dump is comig for association/navigartion property .Did you try putting a breakpoint in the DPC get_entitySet() method

    and check the data that is being returned from the method?



    Regards,

    Atanu

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.