Skip to main content

Coresuite Service ExecutePrintDef + Optimizer Rule PrintDef Event

Comments

5 comments

  • Lothar Hasenkämper

    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
  • Emmanuel Albert

    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
  • Lothar Hasenkämper

    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
  • Lothar Hasenkämper

    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
  • Emmanuel Albert

    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.