AW: Different object keys
Werner Koessl
Werner.Koessl at hirschvogel.de
Mon Jul 12 02:26:18 EDT 2004
Hi Jocelyn,
yes that incorrect line is shown on EMPLOYEET.
I will report it to OSS.
Regards,
Werner.
-----Urspr=FCngliche Nachricht-----
Von: SAP Workflow [mailto:Owner-SAP-WUG at MITVMA.MIT.EDU]Im Auftrag von
Dart, Jocelyn
Gesendet: Montag, 12. Juli 2004 02:11
An: SAP-WUG at MITVMA.MIT.EDU
Betreff: Re: Different object keys
Werner,
If you are seeing the line
"key like swotobjid-objkey"
this is incorrect.
I've had this happen a few times when creating business objects -
something to do with the generation program not always picking up the =
key correctly the first time around.
Usually coming out of the transaction, restarting SWO1, and entering the =
business object program in change
mode fixes it.
If this is truly showing on the EMPLOYEET object itself and not on a =
custom subtype that you have
created please report it to OSS/service.sap.com
Regards,
Jocelyn
-----Original Message-----
From: SAP Workflow [mailto:Owner-SAP-WUG at MITVMA.MIT.EDU] On Behalf Of =
Werner Koessl
Sent: Friday,9 July 2004 5:54 PM
To: SAP-WUG at MITVMA.MIT.EDU
Subject: Different object keys
Hi everybody,
i've noticed a difference between the keys of object types.
I take 2 object types as an example: EMPLOYEET and DRAW.
The key of DRAW consists of 4 fields: DocumentType, -Number, -Version, =
-Part.
The key of EMPLOYEET consists of 2 fields: Number and ValidityBegin.
I've implemented a method for both object types.
In the DRAW-method i can use the key fields with e.g. =
object-key-DocumentNumber.
In the EMPLOYEET-method i cannot use e.g. object-key-Number.
I know why it doesn't work but i don't know the reason for that =
implementation of SAP.
In DRAW the key-fields are implemented like this:
BEGIN OF key,
documenttype LIKE draw-dokar,
documentnumber LIKE draw-doknr,
documentversion LIKE draw-dokvr,
documentpart LIKE draw-doktl,
END OF key.
But in EMPLOYEET the key field looks like the following:
key LIKE swotobjid-objkey.
I thought it have to look like this:
BEGIN OF key,
Number LIKE pakey-pernr,
ValidityBegin LIKE pakey-begda,
END OF key.
But why is it different ???
Regards,
Werner.
More information about the SAP-WUG
mailing list