on 06-22-2007 7:45 AM
Hi All,
I am using DIEventService to execute a storedprocedure whenever an ARInvoice added to B1.For this I wrote an event handler .This works fine when we add Invoice through B1 Invoce form or by adding invoice through code.But it does not work when we create invoices through Document Generation wizard.Why this event handler doesnt work when executing DGWizard? I tried the DIServiceClient sample also, but the same result again.AnyOne have any idea why this happens?
Code is as follows..
evtService.AddListener( _
SAPbobsCOM.BoObjectTypes.oInvoices.ToString(), _
B1DIEventsService.B1DIEventsTransactionTypes.Add.ToString(), _
New B1DIEventsService.B1DIEventsListenerDelegate(AddressOf CreateInvoiceEventHandler))
CreateInvoiceEventHandler is a function in which we executes the storedprocedure..
Anybody have an idea on which event i have to add listener on which i can catch the invoice addition on execution of document generation wizard.?
Plz help,
Deepesh
Hi Deepesh,
Gopal (V.) has raised that problem too - see
I suggest that you try to isolate the problem with the suggestions I had given to him; maybe there's a general problem that the SBO_SP_TN stored procedure doens't get called?
...BTW: you could use the DBProfiler from the B1TE tools to chekc that as well - you just need to add some more lines in the SBO_SP_TN for that purpose...
HTH,
Frank
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
6 | |
4 | |
4 | |
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.