Skip to main content

Issue: Batch Printing Delivery Document with Two Layouts Prints Two Copies of Each Layout

Comments

3 comments

  • Lothar Hasenkämper

    Hi,

    please try to leave the PrintMode blank. You have to add the parameter in the xml-File like in the examples

    <?xml version='1.0' encoding='UTF-16' standalone='no' ?>

    <job>

    <!-- use modes: PDF,Print,Email,Fax,Preview -->

    <type mode="Print" layoutid="0" formtype="" />

    <paramsets>

       <paramset>

         <params>

       <!-- Provide all the Parameters which your Layout(s) require -->

      <param key="DocEntry" value="10" />

      <!-- get the PrintDefId from the Printdefinition - Form in the Extended Tab -->

      <param key="PrintDefId" value="DocSalesOrder" />

        </params>

       </paramset>

     </paramsets>

    </job>

    Normally the Copy M. column (PrintDef) is responsible for the copies. 

    regards Lothar

    0
  • Sap-b1 Support

     

    Hi Lothar,

    Thank you for sharing your knowledge.
    Now I have set Print mode as blank in the SAP-B1 core suite configuration. Now also the printer prints the two copies of each layout Here is the screenshot of my configuration and xml file as follows.
     

    And my xml for print is

    <xsl:template name="transform">
    <xsl:variable name="DocEntry" select="//BOM/BO/ODLN/row/DocEntry"/>
    <job>
    <type mode="Print"/>
    <paramsets>
    <paramset>
    <params>
    <param key="DocEntry">
    <xsl:attribute name="value">
    <xsl:value-of select="$DocEntry"/>
    </xsl:attribute>
    </param>
    <param key="PrintDefId" value="DocDeliveryNote"/>
    </params>
    </paramset>
    </paramsets>
    </job>
    <!-- </Fileout> -->
    </xsl:template>






       

    0
  • Lothar Hasenkämper

    Hi,

    nice to hear that it now work for you.

    Your xml is interessting. Do you you excel to generate it?

    regards Lothar

    0

Please sign in to leave a comment.