on 05-27-2010 3:52 AM
Hi,
Would I know how to remove the Incoming/outgoing payment draft by DI commands? i try to use oInPay.remove but it doest work.
Thanks!
Edited by: Bowie Ho on May 27, 2010 4:52 AM
Noor,
Thanks a lot. Then, let me try the work around method.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Noor,
Thanks for your reply.
oPaymentDrafts 140 object means to use "oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oPaymentsDrafts)", right?
I have already tried this but it still prompts me error: "The object does not support this method, Or method not implemented yet."
My code is:
oInPay = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oPaymentsDrafts)
oInPay.DocObjectCode = SAPbobsCOM.BoPaymentsObjectType.bopot_IncomingPayments
oInPay.GetByKey(442)
oInPay.Remove()
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Bowie,
I tried your code. It is clear from the message that the object does not support the method to remove the draft through DI. I am using B One 8.8. Refer the below thread. You can delete it directly through sql query using recordset from opdf table. But it is not a recommended practice.
Regards,
Noor hussain
Hi Bowie,
Use oPaymentDrafts 140 object to remove the Incoming and Outgoing Payment drafts through DI commands.
Regards,
Noor hussain
Edited by: noor_023 on May 27, 2010 11:06 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
107 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
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.