Object-Key retrieval in subtype

Knoske George - NAO Florence Office SAP Analyst George.Knoske at zf.com
Tue Feb 10 08:39:26 EST 2004


Not sure if my question is specifically delegation related - SuperType to
SubType - but I am unable to access the Object Key within my subtype.  The
key field is empty/blank.
 
I created a subtype, ZU1_FORMAB, from SAP delivered object type FORMABSENC.
Within my subtype I have created a new method.  Within the implementation
program of my subtype I need to reference the FORMNUMBER, which is the key
for the object type FORMABSENCE, and thus, the key for my subtype ZU1_FORMAB
as well.  I need this key value, FORMNUMBER, in order to execute my new
method.  Prior to the call of my new method I have the following statement:
 
SWC_GET_OBJECT_KEY SELF FORMNUMBER.
 
I find that this macro calls function SWO_OBJECT_ID_GET, and returns a
structure, SWOTOBJID.  This structure has the field OBJTYPE filled with
ZU1_FORMAB, but the OBJKEY value returned is empty/blank.  I have made the
necessary delegation entry where FORMABSENC is the object type, and
ZU1_FORMAB is the delegation type.
 
Any suggestions you have as to how to retrieve or find the Object-key would
be much appreciated.
 
 
George Knoske
SAP Analyst
george.knoske at zf.com
 


More information about the SAP-WUG mailing list