on 06-20-2015 3:01 AM
Hello,
I need to make the integration of asynchronous data, need to implement a function in my application that collects changes that have occurred in my DB and update the SAP Business One DB .
Suggestions on how to do this with DI API JCo ?
In this document http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/82b5cac2-0401-0010-f2a2-95f55425d... Transaction Notification speak of , but I found samples and details.
Sorry for bad English .
Thank you all for attention!!
Hi,
An SBO transaction notification is a stored procedure that gets notified when 'almost' any of SBO object is updated.
Note that this is only when there are changes in SBO DB.
For your requirement, is your source DB your own DB ? or is it from another accounting system ?
Can you create a trigger on this DB ?
If yes, this is what I propose,
1. Create triggers on tables that you want to listen to changes. (SQL Server/Database trigger)
2. In this trigger, log down the key field in a log table. Probably, The ObjType, IdKey, DateTime of changes.
3. Your JCO should periodically check on this table for any new entries, and based on this log, try to update the SBO.
Regards
Edy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Anderson
If your DB engine is SQL Server you may also want to check Service Broker and CLR.
Here is a blog entry showing how to use CLR with DI API connection to SAP B1's database:
Also there is a tool called SAP B1 Integration Framework designed exactly for this kind of operations that you need.
Kind regards,
Radek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Edy's solution is fine, but I won't use triggers because they are not supported.
Try to use TransactionNotification or PostTransaction stored procedures instead.
Regards
Pierre
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
103 | |
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.