Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9052

Re: Defult price list in inventory transactions

$
0
0

Johan Hakkesteegt wrote:

 

Hi Liat,

 

With the DI API you cannot set the base price list like you can in the client.

 

You will have to determine the price with a recordset, or a query, or through an items object.

 

Good luck,

Johan

 

Well, with SAP 8.8x or 9.x you can set the base price list from DI API with the field "PaymentGroupCode" when you're trying to create objects like Goods Receipt, Goods Issue and Inventory Transfer. In a nutshell, you just should use that field with the number of the price list in the object which you're using from SDK. For instance:

 

 

// Now, I've got a GoodReceipt object
oGR = (SAPbobsCOM.Documents)oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInventoryGenEntry);
// I set the "Last Evaluated Price" to my GoodReceipt object
oGR.PaymentGroupCode = -2;
// more code to create the object ...
xxxxxxxxxx

 

With that code you could get a document like this one:

imgPGC002.png

 

UI API would be something like that, I think.


Viewing all articles
Browse latest Browse all 9052

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>