Creating an object type referencing GUID
Hilsbos, Margaret A
Margaret.Hilsbos at dayzim.com
Mon Mar 14 09:26:22 EST 2005
Hi Paul,
Thanks for your reply. I have found that function module but I am afraid I don't know how to use it to accomplish my purpose.
I am trying to create a custom object that can be triggered by the user status in the business object. BSVZ wants a 32-character GUID like BBP_BOR_KEY.GUID. This means that the Business Partner object types (BUS1006 and subtypes) cannot be linked to a status profile in BSVZ, because the key of those objects is BUT000.PARTNER, which is not compatible with BBP_BOR_KEY.GUID - ** never mind that the object type for the profile is declared as business partner in BS02! **
So next I try to create a custom business object type that uses the GUID as key. But here I find that the GUID field is stored as data type "RAW" even though it displays as 32 characters. When creating a key for a business object type, if I try to use the field for the GUID, I get error message OL387 "Only ABAP data types C, N, D and T are permitted as key fields".
My question is, how do I create a custom business object type for business partner, with a key that is compatible to BBP_BOR_KEY.GUID (32-char GUID) so that I can trigger an event off the user status?
Thanks,
Margaret
-----Original Message-----
From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu]On Behalf
Of Paul.Bakker at osr.treasury.qld.gov.au
Sent: Saturday, March 12, 2005 5:34 PM
To: SAP Workflow Users' Group
Subject: Re: Creating an object type referencing GUID
Hi Margaret,
You can use the function module BBP_BUPA_GET_NUMBER to convert a 10-char
Business Partner number into 32-char GUID or a 16-raw GUID.
cheers,
Paul
"Hilsbos, Margaret
A" To: "SAP-WUG \(E-mail\)" <sap-wug at mit.edu>
<Margaret.Hilsbos@ cc:
dayzim.com> Subject: Creating an object type referencing GUID
Sent by:
sap-wug-bounces at mi
t.edu
12/03/2005 08:16
Please respond to
"SAP Workflow
Users' Group"
Hello all,
Please somebody help! I am desperately trying to build a workflow in CRM
4.0 (WAS 6.20) and I keep running into the problem that *everything* in CRM
is apparently based on a GUID - except of course the delivered business
object types for Business Partner! However, in BSVZ the linkage will not
accept the business partner object types.
I have written an OSS message on this but so far the response is not
promising. I am trying to do a workaround. I looked at the table CRM_JCDS
and saw that the GUID is part of the key for that table. However when I try
to create a business object type with CRM_JCDS (I know, is this crazy?) it
turns out the GUID is stored as RAW, not CHAR - and therefore is not usable
in a business object type key.
YET, there are plenty of delivered business object types in CRM that use a
GUID as the key, just *not* business partner.
I need to find some way to trigger the workflow based on a status change to
business partner. Why is this so hard? I do not have programming resources
available at this time and my own programming skills are limited. Can
anyone help or are we just out of luck until I learn more ABAP?
This seems so basic that I must be missing something. I posted this
question awhile ago and no one responded. I hope I have better luck this
time - thanks to anyone who can help!
Margaret Hilsbos
(215) 299-5630
_______________________________________________
SAP-WUG mailing list
SAP-WUG at mit.edu
http://mailman.mit.edu/mailman/listinfo/sap-wug
_______________________________________________
SAP-WUG mailing list
SAP-WUG at mit.edu
http://mailman.mit.edu/mailman/listinfo/sap-wug
More information about the SAP-WUG
mailing list