Hi everyone,

Here is how to use OutputManagementUtilities.CreatePrintQueueItem to send custom PDFs to Print Queue.

Prerequisite:

Please check this help document : Set Up Printing Using the Print Manager

Here is ABSL code.

Print ABSL.png

There is alsoĀ  OutputManagementUtilities.CreatePrintQueueItemWithFormTemplate method. But we cannot use it successfully, yet. Please share us back if you know how.

Best Regards,

Fred

To report this post you need to login first.

11 Comments

You must be Logged on to comment or reply to a post.

    1. Fred K Post author

      Hi Rudhra,

      According to the error message, you are using invalid Print User ID.

      Is “99994” the print user assigned to the print queue “Queue1” ?

      Like this:

      Queue setting.png

      Best Regards,

      Fred

      (0) 
      1. Rudhra Udayakumar

        Dear Fred,

        Thanks for the support,

        I tired as the same and currently the scripting is successfully passed.

        but no result in the printing

        Untitled.png

        Untitled1.png

        Untitled11.png

        Regards

        Rudhra

        (0) 
        1. Fred K Post author

          Hi Rudhra,

          PrintUUID is just a temp variable. You don’t event have to use it.

          After CreatePrintQueueItem has been successfully processed, your PDF will be added to Queued Document of the print queue (in your case CustomForm)”.

          Have you checked it in Queued Document?

          Queued Document.png

          Printing from the print queue to the printer is handled by Print Manager.

          Please check Help Document : Set Up Printing Using the Print Manager

          Best Regards,

          Fred

          (0) 
            1. Fred K Post author

              Hi Rudhra,

              1. You need to set “Save After Execution” in BOAction. Did you check it?

              2. Have you done setting up SAP Print Manager? Sometimes, SAP Print Manager works a bit strange. It set print tasks to “Processed” before the documents have been actually printed. Please also check your PDF in Processed Documents.

              Best Regards,

              Fred

              (0) 
              1. Rudhra Udayakumar

                Dear Fred,

                Thanks for your continuous support , we got up-to the Queued document,

                but dont know how to do the printing from here

                can you guide me

                Untitled.png

                regards

                Rudhra

                (0) 
                1. Fred K Post author

                  Hi Rudhra,

                  1. Download SAP Print Manager from Download Center

                  2. Install on a server  (just like we do for a print server) which needs to run 24/7.

                  3. Configure Print Manager (Connecting Print Queue and Print Manager)

                  Please check : Help Document : Set Up Printing Using the Print Manager in Help Center.


                  Best Regards,

                  Fred

                  (0) 

Leave a Reply