Show TOC

Background documentationDefining Labels in Loftware Design 32 Locate this document in the navigation structure

 

Configuring Printer/Device

You need to configure a device pointing to your printer. Use the Device Wizard and if you are connecting to a local printer, use the Windows Family. It does not allow you to create a printer alias, so this name must match the name of the printer and the name of the printer defined in Document Maintenance (see Document Maintenance).

Generating New Label

You may configure your label to include the use of Variable Fields which vary their printing based on the values passed in the label file.

When you print the label file from SAP ME, a .PAS file is generated in the directory defined in System Rule Maintenance. You can move this directory temporarily as the LPS print server gobbles it up as soon as it appears in the directory.

  1. Grab the .PAS file, which may look as follows:

    *FORMAT,ETS_sfc_LABEL.lwl *PRINTERNAME, BAG-TAG *QUANTITY, 1 ;DOCUMENT,

    ETS_SFC_LABEL ;DATA_TYPE,DATA_BY_SFC ;DATA_TYPE,DOCUMENT_DATA

    ;DATA_TYPE,DOCUMENT_REQ_DATA header_site_0,RIVR header_print_date_0,Tue

    Apr 01 10:22:40 EDT 2008 header_print_user_0,DEMO

    header_workstation_0,PACKAGE header_document_notes_0, ;DATA_TYPE,SFC_DATA

    ;DATA_TYPE,SFC_HEADER_DATA sfc_header_sfc_number_0,RIVR-377

    sfc_header_sfc_quantity_0,1 sfc_header_sfc_priority_0,500

    sfc_header_item_0,ASM2160 sfc_header_item_revision_0,16

    sfc_header_shop_order_0,ETS-2160-001 sfc_header_bom_name_0,BOARD-ASSY

    sfc_header_bom_revision_0,B sfc_header_labor_charge_code_0,DIRECT-OH

    *PRINTLABEL

  2. Strip the .PAS file and create a .LST file which is a list of the field names that is comma delimited. This is the list of fields that you can put on the label.

  3. Put the .LST file to the c:/program files/loftware labeling directory.

    header_site_0,RIVR

    header_print_date_0,Tue Apr 01 10:22:40 EDT 2008

    header_print_user_0,DEMO

    header_workstation_0,PACKAGE

    header_document_notes_0,

    sfc_header_sfc_number_0,RIVR-377

    sfc_header_sfc_quantity_0,1

    sfc_header_sfc_priority_0,500

    sfc_header_item_0,ASM2160

    sfc_header_item_revision_0,16

    sfc_header_shop_order_0,ETS-2160-001

    sfc_header_bom_name_0,BOARD-ASSY

    sfc_header_bom_revision_0,B

    sfc_header_labor_charge_code_0,DIRECT-OH

  4. When you create a new label in Design 32, select a device you are designing the label for.

  5. Define the Field List Selection.

  6. Define the label dimensions:

    1. Drag the A text object over to the label to insert and apply Fixed Text.

    2. Right-click the field and choose Edit Field to get to the properties and adjust font type and size.

    3. Drag the ab variable text object over to the label to drop a field with 12345678 to the label.

    4. Right-click the field and choose Edit Field to get to the properties screen.

    5. Choose the Field Name to get a list of the fields in the .LST file that you can position on the label. You can also adjust font type and size on this screen.

  7. Save the label with the file name entered on the Document Maintenance screen in SAP ME.

Testing the Label Generation
  1. In the DESIGN 32 application, choose the ODP pushbutton on the toolbar to open the On Demand Print application, which runs separate from the print server.

  2. On the On Demand Print screen, choose Options — Create PASS Sample.

    This creates a sample .PAS file that has some more information about file formatting and data passing. Note that this is a debug step.