cancel
Showing results for 
Search instead for 
Did you mean: 

How to remove the Payment Draft

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Noor,

Thanks a lot. Then, let me try the work around method.

Former Member
0 Kudos

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()

Former Member
0 Kudos

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

Former Member
0 Kudos

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