Skip to Content
Mar 02, 2021 at 05:54 AM

SensitiveDataAccess - result data is trimmed.



This is my scenario,

SBO V10FP2011
Enable GDPR
Created a UDF in BP Master Data U_DATA, set the Data structure as 'TEXT'
Set this new UDF as 'Sensitive Personal'
Set 1 of the BP as Natural Person.
In the BP Master Data, i set the value for this U_DATA with a long text, about 150 characters. Update the BP Master Data. Confirmed the data is complete in the BP Master data screen.

From DI API/Service Layer,
I retrieve the decrypted data from this field using the SensitiveDataAccess

SAPbobsCOM.CompanyService cs = ThisAddIn.sboCompany.GetCompanyService();
SAPbobsCOM.SensitiveDataAccessService sdas = cs.GetBusinessService(SAPbobsCOM.ServiceTypes.SensitiveDataAccessService) as SAPbobsCOM.SensitiveDataAccessService;
SAPbobsCOM.SensitiveDataAccess sda = sdas.GetDataInterface(SAPbobsCOM.SensitiveDataAccessServiceDataInterfaces.sdasSensitiveDataAccess) as SAPbobsCOM.SensitiveDataAccess;
sda.Table = "OCRD";
sda.PropertyName = "U_DATA"; 
sda.Key1 = "C23900";
SAPbobsCOM.SensitiveDataAccess sdaResult = sdas.Access(sda); result = sdaResult.PropertyValue;

or service layer:

POST https://sapdev1:50000/b1s/v2/SensitiveDataAccessService_Access HTTP/1.1


Both result trimmed the data to 100 characters only. (Note my original is 150 characters)

Can anyone confirm this?