cancel
Showing results for 
Search instead for 
Did you mean: 

Subtyping bus1001006

0 Kudos

On casting BUS1001006, I see that the methods used in steps from Z1001006 execute properly. However if I have created new attributes on Z1001006, in fact inherited attributes too, and use them in the steps, they do not show up. Is there something I need to do for this?

Here is my code for CreateMe method:

BEGIN_METHOD CREATEME CHANGING CONTAINER.

DATA:

OBJECTIN TYPE SWC_OBJECT,

OBJECTOUT TYPE SWC_OBJECT.

TABLES: MARA.

DATA: local_object_key LIKE MARA-MATNR.

SWC_GET_ELEMENT CONTAINER 'ObjectIn' OBJECTIN.

SWC_GET_ELEMENT CONTAINER 'ObjectOut' OBJECTOUT.

SWC_GET_OBJECT_KEY ObjectIn local_object_key.

SWC_CREATE_OBJECT ObjectOut 'ZB1001006' local_object_key.

END_METHOD.

My other observation is when I create the ObjectIn and ObjectOut parameters, the Object Type defaults to Z1001006. I can select the required 'Data Reference Type'.

Regards,

Gayathri

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

If you are using the business object BUS10010006 and if you have not delegated the Z10010006 to the parent business object, u will not see any method from the child. Similarly if you do not delegate but just create a subtype then you have to use Z10010006 to get all the custom attributes defined in Z10010006 as BUS10010006 will not have them.

Hope this clarifies.

Regards,

Hari