10.05.2013 Views

DI-API

DI-API

DI-API

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>DI</strong>‐<strong>API</strong>: Objetos transaccionales<br />

'Crear un pedido de cliente:<br />

Dim oOrder As SAPbobsCOM.Documents<br />

Set oOrder = oCompany.GetBusinessObject(oOrders)<br />

oOrder.CardCode = "C40001" 'Especifica el código del cliente<br />

oOrder.DocDate = Date 'Especifica la fecha del documento<br />

'Añade una línea<br />

oOrderLine.ItemCode = "A00001"<br />

oOrderLine.Quantity = 5<br />

oOrder.Add<br />

Tema 2 SGE ‐ POP Informática ‐ ETSII<br />

28

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!