Skip to Content
0
Former Member
Jun 08, 2005 at 04:59 AM

GetObjectKeyBySingleValue in DI Server not returning oUsers result

17 Views

I am trying to use GetObjectKeyBySingleValue in the DI Server to retrieve the user key for a user by passing in the User Code property however am getting an error stating that the property is incorrect - I have tried lots of other properties with the oUsers object but get the same error!

I can get back other objects like oItems and oBusinessPartners etc, but why won't the oUsers work??

Response and Request xml below:

  • REQUEST BELOW *****************

<?xml version="1.0" encoding="UTF-16"?>

http://schemas.xmlsoap.org/soap/envelope/">

<env:Header>

<SessionID>32D83BB6-F3AD-985F-D4BC-655B3D9ACBE2</SessionID>

</env:Header>

<env:Body>

http://www.sap.com/SBO/DIS">

<ObjNum>oUsers</ObjNum>

<PropName>UserCode</PropName>

<Value>manager</Value>

<Condition>bqc_Equal</Condition>

</dis:GetObjectKeyBySingleValue>

</env:Body>

</env:Envelope>

  • RESPONSE BELOW *****************

<?xml version="1.0"?>

http://www.w3.org/2003/05/soap-envelope">

<env:Body>

<env:Fault><env:Code>

<env:Value>env:Sender</env:Value></env:Code>

<env:Reason><env:Text xml:lang="en">Invalid Property</env:Text>

</env:Reason>

<env:Detail>

<Property>UserCode</Property>

<Object>oUsers</Object>

<Command>GetObjectKeyBySingleValue</Command>

<SessionID>32D83BB6-F3AD-985F-D4BC-655B3D9ACBE2</SessionID></env:Detail></env:Fault></env:Body>

</env:Envelope>