on 01-22-2019 5:40 AM
I am trying to insert data into Purchase Request using DI API.
These are 2 lines from the beginning of a method im working on.
SAPbobsCOM.Documents oPR;
oPR = (SAPbobsCOM.Documents)ZSBO.oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oPurchaseRequest);
I can't seem to assign BoObjectTypes.oPurchaseReuqest to oPR.
I only get an errror saying "Can't find the definition of oPurchaseRequest in SAPbobsCOM.BoObjectTypes".
Please help. Thanks in advance.
In your project,
Are you referencing SAPBusinessOneSDK.dll or directly DI API?
If you reference direct to DI API, does it work?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am using version 8.8.0.0 of interop.SAPbobsCOM if that's what you meant by SBO version. Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Christine,
May I know which SBO version are you using?
I have no error with your code.
Regards
Edy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
99 | |
9 | |
9 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.