Coresuite Service ExecutePrintDef + Optimizer Rule PrintDef Event
Hi Experts,
I'm using Coresuite customize Optimizer to launch rules on Printdef Event (before or after). It works fine as long the print is launched inside SAPB1.
I did not manage to have the rule triggered if the printDefinition is executed by coreSuite Service.
Is it possible ? is there a way to achieve this ?
-
Hi Emmanuel,
as far as I know it is not possible to catch the event.
What is your goal after/before printing?
regards Lothar
0 -
Basically, user LD.AddAttachment or run an update query to add timestamp after the mail is sent.
We also have some scenarios where we want to execute a test and stop some sendings if condition are not filled.
we could write this inside the service rule, but we would like to keep a unique code to manage this, wether the print is launched inside SAPB1 or not.
Would be a nice evolution of CoreSuite Service if it could come with an update.
0 -
So you could use the service-log itself
CoresuiteServiceAPI.DebugLog.Info(companyDatabase, "Processed Sales Order Document No: " + docNum + " (DocEntry " + docEntry + ")");
or you build your own UDT
0 -
oh BTW I think in the layout is a new parameter in the SYSPAR: SWA_LD_IsService.
I haven't used it yet, perhabs it helps
0 -
thanks for the ideas Lothar, i will keep digging into this subject.
Having duplicated code moved into the Layout with testing SWA_LD_IsService param could be a good workaround.
0
Please sign in to leave a comment.
Comments
5 comments