Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
former_member197479
Active Participant

2023 Update - This Blog Post is referenced by SAP's Official Support Note:


I was told by a colleague that this Blog Post is being referenced as part of the official SAP Support Note regarding SAP Platinum Engineering Libraries, I'll be leaving the link below:

SAP Support Note on Platinum Engineering Libraries



 

 

 

 

 

Original Post:


Since I haven't seen any information about this at all, I would like to start this post, so we can share our experiencies with this so-called Platinum Libraries.

Let's start with the QA

1. What is an SAP Reuse Library?


These are basically a collection libraries with functions that SAP offers to make simple actions, conversions, etc. One good example of this will be the following to convert a string to a Date.
var forDate = Date.ParseFromString("2017-01-01T00:00:00")

 

2. SAP Platinum Engineering Libraries?


Yes, there're a group of these reuse libraries that offer really nice functionalities.

 

What I believe so far, is that these are existing internal functions from SAP, that they've been using all this time to accomplish some of the things that we as 'Partners' didn't have access, at least until now.

 

2.1. How to access the Platinum Engineering Libraries?


This is the easiest part, and you'll be able to visualize all the different functions that are available; in order to do this, just add the following two import lines to your ABSL code
import AP.PlatinumEngineering;
import AP.PlatinumEngineering.Public;

Then, just click Ctrl + Space, and navigate through all the wonderful collection:



And this is just an example of one collection called UserUtils, there're a lot more.

Looks cool doesn't it? But there's something about it that gets me to think

 

2.2. Main Issue using this Libraries


The main issue that I have encounter with this Libraries, is that some of the really cool ones, for example the one that let's you execute a SADL Query has no information at all about the parameters that must be set.

Check this example:



 

Check that the function receives a SADL_UUID, this I have absolutely no idea where to get it.

And the same happens with a lot of them, some are pretty much straight forward, but then you find a really cool function like this, and you have no clue about how to use it.

 

3. Why there's no documentation on this?


Well, at least I haven't been able to find it.

But the main thought that comes to my mind is that all of these are still experimental, and SAP is going to be delivering them officially at some point (please note that I'm not sure of this, perhaps a colleague from SAP can confirm my theory)

 

So, please comment below your experiences with this Libraries and if you were able to make a hard one work please share it with us, I'll leave one myself.


 

4. Platinum Engineering Examples


I'll assume you already made the imports mentioned on 2.1.

4.1. Sending an Email via ABSL

Note: Thanks to solene_roques for reminding me of adding the missing imports to this code snippet

 
import AP.Common.GDT;
import DocumentServices.Global;

//Create sender
var sender : EmailURI;
sender.content = "NoReply@myXXXXXX.sapbydesign.com";

//Assign recipients (receivers)
var recipients : EmailRecepientDataTable;
var dat : EmailRecepientData;
dat.EmailUri.content = "Destination@Email.com";
dat.EmailRecepientTypeCode = "TO";
recipients.EmailData.Add(dat);

//Assign the content of the Email
var bodyMail : XPEStringTab;
bodyMail.XPEString.Add("This is the content of the email");

//Call SAP Platinum Engineering Function
Mail.Send("Email Subject", bodyMail, sender, recipients);


 

5. List of Current Libraries


- Thanks to Former Member

  • AddonSupport

  • Binary

  • BOAction

  • BPHierarchy

  • Calendar

  • ChangeHistory

  • Codelist

  • Context

  • CSV

  • CurrencyConversion

  • Date

  • DateTime

  • DocumentService

  • Duration

  • Fuzzy

  • GlobalDateTime

  • Hash

  • LanguageCode

  • LocalDateTime

  • LocalizedNormalizedDateTime

  • Mail

  • MDRO

  • NumberRange

  • Numeric

  • NumericCharacter

  • Odata

  • OrgUnitUtils

  • Output

  • OutputManagementUtilities

  • Performance

  • QuantityConversion

  • RetailExecution

  • SADLQuery

  • SalesHelpFunctions

  • SessionContext

  • TextAnalysis

  • Time

  • Trace

  • URL

  • UserUtils

  • Utilities

  • UUID

  • WebDav

  • WebserviceUtilities

  • ZXUtil


 

Thanks, and Pura Vida.

 

Melvin

 

 

 
23 Comments
Labels in this area