¡Caminando hacia el éxito!

Aprende en Comunidad

Avalados por :

Cómo imprimir múltiples documentos al mismo tiempo en SAP Business ByDesign

  • Creado 01/03/2024
  • Modificado 01/03/2024
  • 22 Vistas
0
Cargando...
The existing scenario is, each document should print separately. But this article helps to save your time and print multiple documents at the same time.

I would like to document it here and let you know the same so that it will stay as a reference for everyone.

Tenant : SAP Business ByDesign.

Scenario : Implement Mass Print for Customer Invoice consequently.

Process Flow



  1. Prerequisites

  2. Create Standard Business Object, Screen & Script file

  3. Configure SAP Business ByDesign

  4. Scripting

  5. Add standard button on the customer invoice screen

  6. Configure SAP Print Manager

  7. Testing






Prerequisites


You have to download software from SAP Store and install it your local system.

  1. SAP Business ByDesign – User License

  2. SAP Cloud Application Studio

  3. SAP Print Manager Software






Create a Standard Business Object, Screen & Script



  1. Create a Customer Invoice standard business object and an OWL Screen.

  2. Create Action Validation: Release script file.

  3. Save and Activate.


Finally, your solution looks like in the below screenshot.,

Mass Printing Byd




Configure SAP Business ByDesign



  1. Login into SAP Business ByDesign as a Business User.

  2. Navigate to the Application and User Management -> Print Queues -> New
    New Queue window will open. Here,

    1. Enter Queue ID as Customer_invoing

    2. Assigned User: Click New button and create a new user.

    3. Click Save and Close .




Mass Printing Byd




Script



  1. Double click Release Action file which we generated in step 2.

  2. Copy & Paste below code.

  3. Save & Activate Script file.
    var Useraccountid : UserAccountID;
    
    var PDF : basisGlobal:BinaryObject;
    
    var title = “CustomerInvoiceDoc”;
    
    // Retrieve the attachment document’s content and assign to the PDF variable
    
    //Assign the content
    
    PDF.content = Document_content;
    
    // PD002 is an assigned user which we created in the previous step.
    
    Useraccountid.content = “PD002”;
    
    /*
    
             Useraccountid : This is assigned user id
    
              Title :  Title of the document
    
              Numberic value(1) : No of copies
    
              PDF : Content of file
    
              “Customer_Invoice” : Print queue ID which we created in previous step
    
    */
    
    var PrintDocument = OutputManagementUtilities.CreatePrintQueueItem(Useraccountid, title, 1, PDF, “Customer_Invoice”);
    
    return ture;​
Pinterest
Telegram
Linkedin
Whatsapp

Sin respuestas

No hay respuestas para mostrar No hay respuestas para mostrar Se el primero en responder

contacto@primeinstitute.com

(+51) 1641 9379
(+57) 1489 6964

© 2024 Copyright. Todos los derechos reservados.

Desarrollado por Prime Institute

¡Hola! Soy Diana, asesora académica de Prime Institute, indícame en que curso estas interesado, saludos!
Hola ¿Puedo ayudarte?