SAP Knowledge Base Article - Public

1614039 - When using Web Services and I try and get the securityInfo2 off of an object, it always returns null, why is that?

Symptom

When using the web services sdk and trying to access the SecurityInfo2 off of an infoobject, it always returns null.

Cause

This occurs when you do not set the security options to true off of the getoptions object.

Resolution

You need to make sure that you set

boGetOptions.IncludeSecurity = true;
boGetOptions.IncludeSecuritySpecified = true;

for the GetOptions object and pass it to the biplatform object you are using to query.

Something like

boResponseHolder = boBIPlatform.Get(query, boGetOptions);

Keywords

getoptions security securityinfo2 null web services , KBA , BI-DEV-NET-SDK , .NET SDK / COM SDK , Problem

Product

Crystal Reports 2008 V1