Skip to Content
avatar image
Former Member

How update Retrieve(ORTI) use sdk

Good day, i need help.I learned help, but did not understand how i can update the data in this table using SDK.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Dec 21, 2016 at 02:12 AM

    Hi Pavel,

    Use the AssetDocumentService to access this object

            Dim oCS As SAPbobsCOM.CompanyService = oCompany.GetCompanyService
            Dim oAS As SAPbobsCOM.AssetDocumentService = oCS.GetBusinessService(ServiceTypes.AssetRetirementService)
            Dim oAssetDoc As SAPbobsCOM.AssetDocument = oAS.GetDataInterface(AssetDocumentServiceDataInterfaces.adsAssetDocument)
            Dim oAssetDocParm As SAPbobsCOM.AssetDocumentParams = oAS.GetDataInterface(AssetDocumentServiceDataInterfaces.adsAssetDocumentParams)
            Dim oAssetLine As SAPbobsCOM.AssetDocumentLine = Nothing
            'Create a New Asset
            oAssetDoc = oAS.GetDataInterface(AssetDocumentServiceDataInterfaces.adsAssetDocument)
            oAssetDoc.DocumentType = AssetDocumentTypeEnum.adtScrapping
            oAssetLine = oAssetDoc.AssetDocumentLineCollection.Add
            oAssetLine.AssetNumber = "MyAsset"
            oAssetLine.Quantity = 1
            oAssetDocParm = oAS.Add(oAssetDoc)
            'Get an existing AssetDoc 18 to update
    oAssetDocParm As SAPbobsCOM.AssetDocumentParams = oAS.GetDataInterface(AssetDocumentServiceDataInterfaces.adsAssetDocumentParams)<br>oAssetDocParm.Code
            oAssetDocParm.Code = 18
            oAssetDoc = oAS.Get(oAssetDocParm)
            oAssetDoc.Reference = "Test"


    Add comment
    10|10000 characters needed characters exceeded

  • Dec 20, 2016 at 04:09 PM

    Hi Pavel,

    I believe there is no object exposed for this table on the DI API.

    Kind Regards,

    Diego Lother

    Add comment
    10|10000 characters needed characters exceeded