2005 Nov 15 6:05 AM
Hi
We are using ARCHIV_CONNECTION_INSERT to insert an entry into archive link table. I want to know whether there is some general algorithm used by SAP to generate the field OBJECT_ID which is a unique index identifying SAP business object .
I have studied some business object types and for some object types it is obtained by adding zeroes to the left to obtain a 10 digit no ,and for some it is obtained by concatenating a SAP business object id with fiscal year. We want to generalize our ID generation algorithm for all SAP business object types.
So I want to know is SAP having some general method to generate OBJECT_ID field which we can use to generate our own generic algorithm.
Please help
Thanks in advance
Neha
2005 Nov 15 6:27 AM
basically the object_id is the key of the object.
for example for cost center it will be
controlling area + cost center number.
how do you find the the key:
if you go to the business object(SWO1 transaction) enter the object and click display.
you would see a node called key fields. they form the object id in the same sequence.
Regards
Raja
Hi
We are using ARCHIV_CONNECTION_INSERT to insert an entry into archive link table. I want to know whether there is some general algorithm used by SAP to generate the field OBJECT_ID which is a unique index identifying SAP business object .
I have studied some business object types and for some object types it is obtained by adding zeroes to the left to obtain a 10 digit no ,and for some it is obtained by concatenating a SAP business object id with fiscal year. We want to generalize our ID generation algorithm for all SAP business object types.
So I want to know is SAP having some general method to generate OBJECT_ID field which we can use to generate our own generic algorithm.
Please help
Thanks in advance
Neha
2005 Nov 15 6:27 AM
basically the object_id is the key of the object.
for example for cost center it will be
controlling area + cost center number.
how do you find the the key:
if you go to the business object(SWO1 transaction) enter the object and click display.
you would see a node called key fields. they form the object id in the same sequence.
Regards
Raja
2005 Nov 15 6:44 AM
Thanks a lot Raja.
Is there any way to obtain the key fields of a business object type programmatically by running some query ? This will help us to create OBJECT_ID which can be further used to insert entry into Archive Link table.
Please help
With Regards
Neha
2005 Nov 15 7:43 AM
use FM
SWO_QUERY_KEYFIELDS
to get the key fields of a business object.
(SDN was slow thus the delay in reply. )
Regards
Raja
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |