on 10-13-2015 11:51 AM
Hi Experts,
Does anyone know how to add or modify a record in UDT using the SAP UI code.
I more preferred the UI not the DI.
Thanks in Advance,
Jim
Hi Jim,
The correct way to achieve this is using DI API.
But to achieve this with UI API you need do this, when your SAP B1 is open:
1. Open your form.
2. Define the value to the fields in screen with something like this:
SAPbouiCOM.Item oItem = null;
oItem = oForm.Items.Item(5);
oItem.Specific.value = "Test";
3. Simulate click in the Add/update button
SAPbouiCOM.Item oItem = null;
oItem = oForm.Items.Item("1"); //1 is id of Add/update button
oItem.Click();
Regards,
Diego
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
92 | |
11 | |
11 | |
6 | |
6 | |
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.