cancel
Showing results for 
Search instead for 
Did you mean: 

DI Server Messsage

Former Member
0 Kudos

Dear all,

In case, i want to query the latest PO added in B1. Which DI message should i use?? Is the PO reponse message follow the schema defined in "Program Files\SAP Manage\SAP Business One ServerTools\SBODI_Server\Schemas"??

Regards,

Kit

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Kit,

How about 'querying last index of PO'?

After you get the result, you can use 'getbykey' method.

Regards,

Hyunil.

Former Member
0 Kudos

Dear Hyunil,

GetByKey is the DI API method. My question is about the DI Server(SOAP message) message.

Regards,

Kit

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Kit,

I know that, but you can use 'getbykey' via DI Server.

When you send these kind of request, you can get the response of what you need. Sample are Below.

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

<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">

<env:Header>

<SessionID></SessionID>

</env:Header>

<env:Body>

<dis:GetByKey xmlns:dis="http://www.sap.com/SBO/DIS">

<Object>oPurchaseOrder</Object>

<-- I don't know this element name is correct or not. just try some column names such as 'DocEntry', 'DocNum' or 'Number' -->

<DocEntry></DocEntry>

</dis:GetByKey>

</env:Body>

</env:Envelope>

Regards,

Hyunil.