Object with over 70 chars key

Shai Eyal shai.eyal at yahoo.com
Sun Mar 28 14:51:55 EDT 2010


Hi Mike,

I read about persistence classes - the concept looks great. But I after I tried to implement, either I'm missing something or either it is not that useful. I tried to implement using table STXH but did not find any difference then standard class; in method FIND_BY_LPOR I can instantiate the object only by instid; such means I must extend standard table with GUID; however this is exactly what I tried to avoid using persistence classes....
Am I missing something or is that the way it suppose to work?

Thanks again,
 
Regards,
Shai Eyal
SAP Logistics senior consultant
SAP Workflow & BPM specialist
http://www.linkedin.com/in/shaieyal
Mobile: 972-52-5816633




________________________________
From: "sap-wug-request at mit.edu" <sap-wug-request at mit.edu>
To: sap-wug at mit.edu
Sent: Friday, March 26, 2010 13:26:46
Subject: SAP-WUG Digest, Vol 64, Issue 48

Send SAP-WUG mailing list submissions to
    sap-wug at mit.edu

To subscribe or unsubscribe via the World Wide Web, visit
    http://mailman.mit.edu/mailman/listinfo/sap-wug
or, via email, send a message with subject or body 'help' to
    sap-wug-request at mit.edu

You can reach the person managing the list at
    sap-wug-owner at mit.edu

When replying, please edit your Subject line so it is more specific
than "Re: Contents of SAP-WUG digest..."


Today's Topics:

  1. RE: Object with over 70 chars key (Dart, Jocelyn)
  2. RE: Need help to work with work flow (Y Ramakrishnaiah)
  3. RE: Object with over 70 chars key (Mike Pokraka)


----------------------------------------------------------------------

Message: 1
Date: Fri, 26 Mar 2010 04:04:41 +0100
From: "Dart, Jocelyn" <jocelyn.dart at sap.com>
Subject: RE: Object with over 70 chars key
To: "SAP Workflow Users' Group" <sap-wug at mit.edu>
Message-ID:
    <8C507B5E0BA5114E933C3C6E2E9729E0065E2B597F at DEWDFECCR01.wdf.sap.corp>
Content-Type: text/plain; charset="us-ascii"

Forgot about CL_GUID_SERVICES .... agree that's better than any function  module. 
Regards,
Jocelyn 

________________________________________
From: sap-wug-bounces at mit.edu [sap-wug-bounces at mit.edu] On Behalf Of Mike Pokraka [wug at workflowconnections.com]
Sent: Friday, 26 March 2010 2:03 AM
To: SAP Workflow Users' Group
Subject: Re: Object with over 70 chars key

Yes you will either need a Z-table to map the GUID to your key, or else
you can extend/enhance your table to add a field for your GUID.
Use class CL_GUID_SERVICES to generate them.

If you have time for a bit of a learning curve, you can also look at
persistent classes (my preferred approach in most cases). You never need
to touch GUIDs, the persistent class provides a DB abstraction layer that
handles all DB interaction & GUID generation etc. Integrating them into a
WF class is also very simple and brings a few other benefits too.

Cheers,
Mike



On Thu, March 25, 2010 5:31 am, Shai Eyal wrote:
> Hello all,
> I'd like to create customer object type for table STXH. Since its key is
> over 70 chars, I thought of using Abap OO. For my understanding I need to
> create a class with GUID as key cause 70 chars is way too much.
>
> How do I generate the GUID values? to I need to store these in another
> Z-table?
> Any guidance will be appreciated.
>
>
> Regards,
> Shai Eyal
> SAP Logistics senior consultant
> SAP Workflow & BPM specialist
> http://www.linkedin.com/in/shaieyal
> Mobile: 972-52-5816633
>
>
>      New Email addresses available on Yahoo!
> Get the Email name you've always wanted on the new @ymail and
> @rocketmail.
> Hurry before someone else does!
> http://mail.promotions.yahoo.com/newdomains/aa/_______________________________________________
> 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


------------------------------

Message: 2
Date: Fri, 26 Mar 2010 11:28:07 +0530
From: Y Ramakrishnaiah <y.ramakrishnaiah at tcs.com>
Subject: RE: Need help to work with work flow
To: sap-wug at mit.edu
Cc: sap-wug at mit.edu
Message-ID:
    <OF7E5CF4CD.E6E8B7FA-ON652576F2.0020C962-652576F2.0020C964 at tcs.com>
Content-Type: text/plain; charset="us-ascii"

An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20100326/fdb4058c/attachment-0001.htm

------------------------------

Message: 3
Date: Fri, 26 Mar 2010 10:26:42 -0000 (GMT)
From: "Mike Pokraka" <wug at workflowconnections.com>
Subject: RE: Object with over 70 chars key
To: "SAP Workflow Users' Group" <sap-wug at mit.edu>
Message-ID:
    <587fae594beaab11526ef333c48ac1e1.squirrel at g.mail.aaisp.net.uk>
Content-Type: text/plain;charset=iso-8859-1

Ironically I heard about that one from you :-)


On Fri, March 26, 2010 3:04 am, Dart, Jocelyn wrote:
> Forgot about CL_GUID_SERVICES .... agree that's better than any function
> module.
> Regards,
> Jocelyn
>
> ________________________________________
> From: sap-wug-bounces at mit.edu [sap-wug-bounces at mit.edu] On Behalf Of Mike
> Pokraka [wug at workflowconnections.com]
> Sent: Friday, 26 March 2010 2:03 AM
> To: SAP Workflow Users' Group
> Subject: Re: Object with over 70 chars key
>
> Yes you will either need a Z-table to map the GUID to your key, or else
> you can extend/enhance your table to add a field for your GUID.
> Use class CL_GUID_SERVICES to generate them.
>
> If you have time for a bit of a learning curve, you can also look at
> persistent classes (my preferred approach in most cases). You never need
> to touch GUIDs, the persistent class provides a DB abstraction layer that
> handles all DB interaction & GUID generation etc. Integrating them into a
> WF class is also very simple and brings a few other benefits too.
>
> Cheers,
> Mike
>
>
>
> On Thu, March 25, 2010 5:31 am, Shai Eyal wrote:
>> Hello all,
>> I'd like to create customer object type for table STXH. Since its key is
>> over 70 chars, I thought of using Abap OO. For my understanding I need
>> to
>> create a class with GUID as key cause 70 chars is way too much.
>>
>> How do I generate the GUID values? to I need to store these in another
>> Z-table?
>> Any guidance will be appreciated.
>>
>>
>> Regards,
>> Shai Eyal
>> SAP Logistics senior consultant
>> SAP Workflow & BPM specialist
>> http://www.linkedin.com/in/shaieyal
>> Mobile: 972-52-5816633
>>
>>
>>      New Email addresses available on Yahoo!
>> Get the Email name you've always wanted on the new @ymail and
>> @rocketmail.
>> Hurry before someone else does!
>> http://mail.promotions.yahoo.com/newdomains/aa/_______________________________________________
>> 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
> _______________________________________________
> 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


End of SAP-WUG Digest, Vol 64, Issue 48
***************************************



      Get your preferred Email name!
Now you can @ymail.com and @rocketmail.com. 
http://mail.promotions.yahoo.com/newdomains/aa/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20100328/217446da/attachment.htm


More information about the SAP-WUG mailing list