Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Subtyping bus1001006

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

Not what you were looking for? View more on this topic or Ask a question