on 09-17-2008 4:54 AM
Hi all,
I'm very new to SAP B1 development. So please somebody tell me how to update a particular field in database.
Buddhika.
Hi,
Say, suppose u want to update a user-field in the Business Partner Master data then u need to do the follwing,
Dim obp As SAPbobsCOM.BusinessPartners
obp = Me.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oBusinessPartners)
obp.GetByKey("C0001")
obp.UserFields.Fields.Item("U_Bday").Value = "18-07-1983"
Thats how u update,
For samples plz check the samples provided with the SDK. They are avaliable in the following path C:\Program Files\SAP\SAP Business One SDK\Samples
Hope it helps,
Vasu Natari.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I want to overwrite(by using DI API) the "Payment reference" field in the invoice for a particular customer's Invoice when closing the Payment.Because I'm creating add-on and I want to overwrite my Custom generated ID with the currently shown value in the "Payment Reference" field when opens Invoice window.Then in future, can refer the invoice with corresponding payment.
Thank you.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
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.