on 09-24-2008 6:57 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.