The server threw an exception when running print sequence

Alvin Li

Hi all,

I am using Macro to automate the Print Sequence after a new invoice is added. It will print one invoice in PLD format, and another invoice in Crystal Report format. During the testing phase, I encounter B1up add-on crash randomly. The error message show below

Is It something to do with what is descripted in SAP note 2316048? If yes, my system version is B1 9.3 PL:02, do I need upgrade the system to 9.3 PL14 to solve the problem?

If it is not related to that SAP note, any suggestion?

Thanks for your time

Alvin

Comments

2 comments

  • Comment author
    Kevin Cross

    I'm not an expert on this but my best guess it is something to do with how the macro was written. You usually get errors like that if the macro fails. Can you add it to your post? Also if you haven't already try running the 1 print first before adding the 2nd.

    0
  • Comment author
    Alvin Li

    Hi Kevin,

    Thanks for the feedback.

    The Macro will be triggered after new invoice data is added into database. The Macro is below

    OpenForm(13|$[NEWID]); //open invoice form with new invoice number

    Activate(5984); //open Print Sequence dialog window

    AutoPressNextPopup();  // prepare the system to auto-press the next Popup message

    Click($[$410000006.0.0]); // Click on the Print Button

     

    //system will pop up “Print Options” dialog window and wait for user input. I don’t know how to use Macro to auto-press the default button, so I just manually click on “OK” button.

    //system start printing the invoice

    //once printing finish, system pop up another dialog window and wait for user input, I just manually click on “Ok” button

    Activate(514); //system pass process control back to Macro, this function close the Print Sequence main window

    Macro running finish here.

    I tested it number of times, most of trials have no problem until I get the error message mentioned previously.

     

    0

Please sign in to leave a comment.