inserting a record in database using Java
Hello All,
i have connected a Java Application to the SAP BO Database using DI API and would like to insert a record in the demo database without using an SQL Query "Insert into table1...." but using the following snippet though i dont know if am using the right classes :
ICompany company = conn.getCompany();
IItems items = SBOCOMUtil.newItems(company);
items.setItemCode("124");
items.setItemName("VXC");
items.setItemsGroupCode(1);
items.setItemType(0);
items.add();
What i am trying to do here is insert a new record but i dont know where i should mention the table name for e.g. there is table called OITM in the demo database from BO where i would like to create a new Item.
Could anyone help me here.
Regards,
Amit Hingher