Passing a multiline BOR Object to an ABAP OO class

Dart, Jocelyn jocelyn.dart at sap.com
Mon Aug 27 18:56:52 EDT 2007


Yes, Markus - that's the idea.    Except do you really want to set co_bo_sofm to initial??? That undoes the value settings in your data statement. 
 
If you want to take this further I humbly suggest you also go for the best practice approach and make CO_BO_SOFM_T a TYPE if you are needing to use it in multiple places - e.g. for your table and for the explicit work area you are bound to need inside your methods to fill your table.  
 
Also if you want to use it in multiple classes, the best approach would be to put it in a type-pool that can be shared by the various classes. 
 
But full marks anyway for working it out. 
 
 

Regards, 
Jocelyn Dart 
Senior Consultant 
SAP Australia Pty Ltd. 
Level 1/168 Walker St. 
North Sydney 
NSW, 2060 
Australia 
T   +61 412 390 267 
M   + 61 412 390 267 
E   jocelyn.dart at sap.com 
http://www.sap.com <http://www.sap.com/>  

The information contained in or attached to this electronic transmission is confidential and may be legally privileged. It is intended only for the person or entity to which it is addressed. If you are not the intended recipient, you are hereby notified that any distribution, copying, review, retransmission, dissemination or other use of this electronic transmission or the information contained in it is strictly prohibited. If you have received this electronic transmission in error, please immediately contact the sender to arrange for the return of the original documents. 

Electronic transmission cannot be guaranteed to be secure and accordingly, the sender does not accept liability for any such data corruption, interception, unauthorized amendment, viruses, delays or the consequences thereof.

Any views expressed in this electronic transmission are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of SAP AG or any of its subsidiaries. SAP AG, its subsidiaries, and their directors, officers and employees make no representation nor accept any liability for the accuracy or completeness of the views or information contained herein. Please be aware that the furnishing of any pricing information/ business proposal herein is indicative only, is subject to change and shall not be construed as an offer or as constituting a binding agreement on the part of SAP AG or any of its subsidiaries to enter into any relationship, unless otherwise expressly stated. 

 

________________________________

From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf Of Markus Klein
Sent: Monday, 27 August 2007 7:13 PM
To: SAP Workflow Users' Group
Subject: AW: Passing a multiline BOR Object to an ABAP OO class


Hi all,
 
seems i got it :)
 
instead of :
 
    constants:
    Begin of CO_BO_SOFM,
              instid type sibfboriid value is initial,
              typid type sibftypeid value 'SOFM',
              catid type sibfcatid value 'BO',
    end of CO_BO_SOFM . 
 
  class-methods BOR_HANDLER
    importing
      !BO_SOFM type SIBFLPORB default ZCL_WF_BOR_HANDLER=>CO_BO_SOFM . 
 
 
 
 
 
i just have to use:
 
  data:
   Begin of CO_BO_SOFM_T,
              instid type sibfboriid value is initial,
              typid type sibftypeid value 'SOFM',
              catid type sibfcatid value 'BO',
    end of CO_BO_SOFM_T . 
 
    constants:
      co_bo_sofm like table of co_bo_sofm_t value is initial. 
 
    class-methods BOR_HANDLER
    importing
      !BO_SOFM type SIBFLPORBT default ZCL_WF_BOR_HANDLER=>CO_BO_SOFM . 
 
 
regards,
Markus

____________________________________

Markus Klein
SAP Senior Consultant

ABS Team GmbH
Muehlenweg 65
37120 Bovenden

Tel +49 551 820 33 0
Mobil +49 151 126 23 047
Email klein at abs-team.de

www.abs-team.de

Geschäftsführer: Dr. Andreas Rupprecht - HRB Göttingen 1535

Diese e-mail kann Betriebs- oder Geschäftsgeheimnisse oder sonstige vertrauliche Informationen enthalten. Sollten Sie diese e-mail irrtümlich erhalten haben, ist Ihnen eine Kenntnisnahme des Inhalts, eine Vervielfältigung oder Weitergabe der e-mail ausdrücklich untersagt. Bitte benachrichtigen Sie uns und vernichten Sie die empfangene e-mail Vielen Dank.

This e-mail may contain trade secrets or privileged, undisclosed or otherwise confidential information. If you have received this e-mail in error, you are hereby notified that any review, copying or distribution of it is strictly prohibited. Please inform us immediately and destroy the original transmittal. Thank you for your cooperation.

 

________________________________

Von: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] Im Auftrag von Markus Klein
Gesendet: Montag, 27. August 2007 10:51
An: SAP Workflow Users' Group
Betreff: Passing a multiline BOR Object to an ABAP OO class


Hello,
 
i have read Jocelyn's Blog about "Referencing BOR objetcs in ABAP OO classes". Nice read. 
 
My question is, how do i pass a multiline BOR object to an ABAP OO class?
 
regards,
Markus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20070828/3963b85d/attachment.htm


More information about the SAP-WUG mailing list