Show TOC

Background documentationReferencing SAP ME Variables in Printing Template Locate this document in the navigation structure

 

While designing the .XDP template, you can include SAP ME fields and values to be printed. To reference the supported field in a template, you need to add a field to the template as described in the Adobe LiveCycle Designer help and define the Data Binding value for the field object.

SAP ME Data Binding values consist of three parts and depend on the Print By method and data to be printed.

For example, the Data Binding value for the BOM Actual Component field when printing by SFC number is DATA_BY_SFC.SFC_DATA.BOM_DATA.BOM_COMPONENT_DATA.ACTUAL_COMPONENT. In this example, DATA_BY_SFC indicates that document needs to be printed by SFC number, whereas SFC_DATA.BOM_DATA.BOM_COMPONENT_DATA indicates that the field to be printed belongs to the BOM component data, and ACTUAL_COMPONENT indicates the field ID to be printed.

Caution Caution

The first part of the Data Binding value must correspond to the Print By method which you define for a document in Document Maintenance (see Document Maintenance).

End of the caution.

The following table describes how the first part of the binding depends on the desired Print By method:

Print By Method

First Part of Binding (<print method binding>)

Print by SFC

DATA_BY_SFC

Print by Shop Order

DATA_BY_SHOP_ORDER

Print by Process Lot

DATA_BY_PROCESS_LOT

Print by Container

DATA_BY_CONTAINER

Print by Inventory

DATA_BY_INVENTORY

The second part of the Data Binding value depends on the data category and corresponds to the options you select on the Document Options tab page in Document Maintenance. In some cases it also depends on the Print By value.

Caution Caution

The second part of the Data Binding value must correspond to the options which you have selected on the Document Options tab page in Document Maintenance.

End of the caution.

The third part of the Data Binding value represents the field to be printed.

SFC Header Data

To reference a field of the SFC header data category in the template, define the binding for the field object as follows: <print method binding>.SFC_DATA.SFC_HEADER_DATA.<field ID>

For example, to reference the material in document to be printed by SFC number, use the following binding: DATA_BY_SFC.SFC_DATA.SFC_HEADER_DATA.ITEM

The SFC header data binding is used to reference the following field IDs:

  • ITEM

  • ITEM_REVISION

  • SHOP_ORDER

  • SFC_NUMBER

  • ROUTER_NAME

  • ROUTER_REVISION

  • SFC_PRIORITY

  • SFC_QUANTITY

  • PROCESS_LOT

  • BOM_NAME

  • BOM_REVISION

  • LABOR_CHARGE_CODE

  • CUSTOMER

SFC Data

To reference the SFC data fields and values collected using the SFC Data Entry plug-in, define the binding for the field object as follows:

  • Enter <print method binding>.SFC_DATA.SFC_CUSTOM_DATA.ATTRIBUTE for printing data field ID.

  • Enter <print method binding>.SFC_DATA.SFC_CUSTOM_DATA.VALUE for the value.

If there are multiple SFC data fields and values, you must use indexing after ATTRIBUTE and VALUE starting with 0. For example, to reference two data fields and values while printing by SFC number, define four fields with the following bindings:

  • DATA_BY_SFC.SFC_DATA.SFC_CUSTOM_DATA.ATTRIBUTE0

  • DATA_BY_SFC.SFC_DATA.SFC_CUSTOM_DATA.VALUE0

  • DATA_BY_SFC.SFC_DATA.SFC_CUSTOM_DATA.ATTRIBUTE1

  • DATA_BY_SFC.SFC_DATA.SFC_CUSTOM_DATA.VALUE1

Shop Order Header Data

To reference a field of the shop order header data category in the template while printing by shop order, define the binding for the field objects as follows: DATA_BY_SHOP_ORDER.SHOP_ORDER_DATA.SHOP_ORDER_HEADER_DATA.<field ID>

To reference the field of this category in the template while printing by SFC number, process lot, or container, define the binding for the field object as follows: <print method binding>.SFC_DATA.SHOP_ORDER_DATA.SHOP_ORDER_HEADER_DATA.<field ID>

For example, to reference planned start date of the shop order in document to be printed by SFC number, use the following binding: DATA_BY_SFC.SFC_DATA.SHOP_ORDER_DATA.SHOP_ORDER_HEADER_DATA.PLANNED_START_DATE

Caution Caution

You cannot print the shop order header data by inventory.

End of the caution.

The shop order header data binding is used to reference the following field IDs:

  • SHOP_ORDER_QUANTITY_RELEASED

  • SHOP_ORDER_QUANTITY_DONE

  • SHOP_ORDER_QUANTITY_BUILD

  • SHOP_ORDER_QUANTITY_ORDERED

  • SHOP_ORDER

  • CUSTOMER_ORDER

  • CUSTOMER_NAME

  • ITEM_ID

  • ITEM_REVISION

  • ITEM_DESCRIPTION

  • ROUTER_NAME

  • ROUTER_REVISION

  • ROUTER_DESCRIPTION

  • PLANNED_START_DATE

  • PLANNED_COMPLETION_DATE

  • SCHEDULED_START_DATE

  • SCHEDULED_COMPLETION_DATE

  • LABOUR_CHARGE_CODE

  • BATCH_NUMBER

Shop Order Custom Data

To reference the shop order custom data fields and values in the template while printing by shop order, define the binding for the field objects as follows:

  • Enter DATA_BY_SHOP_ORDER.SHOP_ORDER_DATA.SHOP_ORDER_CUSTOM_DATA.ATTRIBUTE for printing data field label.

  • Enter DATA_BY_SHOP_ORDER.SHOP_ORDER_DATA.SHOP_ORDER_CUSTOM_DATA.VALUE for data attribute.

To reference the field of this category in the template while printing by SFC number, process lot, or container, define the binding for the field object as follows:

  • <print method binding>.SFC_DATA.SHOP_ORDER_DATA.SHOP_ORDER_CUSTOM_DATA.ATTRIBUTE

  • <print method binding>.SFC_DATA.SHOP_ORDER_DATA.SHOP_ORDER_CUSTOM_DATA.VALUE

Caution Caution

To print multiple custom data fields and values, you must use indexing after ATTRIBUTE and VALUE starting with 0.

You cannot print the shop order custom data by inventory.

End of the caution.
Material Custom Data

To reference the material custom data fields and values, define the binding for the field objects as follows:

  • Enter <print method binding>.SFC_DATA.ITEM_DATA.ITEM_CUSTOM_DATA.ATTRIBUTE for data field label.

  • Enter <print method binding>.SFC_DATA.ITEM_DATA.ITEM_CUSTOM_DATA.VALUE for data attribute.

Caution Caution

To print multiple custom data fields and values, you must use indexing after ATTRIBUTE and VALUE starting with 0.

End of the caution.
BOM Header Data

To reference a field of the BOM header data category in the template, define the binding for the field object as follows: <print method binding>.SFC_DATA.BOM_DATA.BOM_HEADER_DATA.<field ID>

For example, to reference the BOM type in the document to be printed by SFC number, use the following binding: DATA_BY_SFC.SFC_DATA.BOM_DATA.BOM_HEADER_DATA.BOM_TYPE

The BOM header data binding is used to reference the following field IDs:

  • BOM

  • BOM_REVISION

  • BOM_DESCRIPTION

  • BOM_TYPE

BOM Component Data

To reference a field of the BOM component data category in the template, define the binding for the field objects as follows: <print method binding>.SFC_DATA.BOM_DATA.BOM_COMPONENT_DATA.<field ID>

For example, to reference the actual BOM component in the document to be printed by SFC number, use the following binding: DATA_BY_SFC.SFC_DATA.BOM_DATA.BOM_COMPONENT_DATA.ACTUAL_COMPONENT

The BOM component data binding is used to reference the following field IDs:

  • BOM_COMPONENT

  • BOM_COMPONENT_REVISION

  • ACTUAL_COMPONENT

  • ACTUAL_COMPONENT_REVISION

  • REMOVED_FLAG

  • ASSEMBLED_DATE

  • RESOURCE

  • OPERATION

  • OPERATION_REVISION

  • INVENTORY_ID

  • ASSEMBLED_BY

  • ASSEMBLY_ID

  • ASSEMBLED_QTY

  • REQUIRED_QTY

BOM Assembly Metrics

To reference a field of the BOM assembly metrics data category in the template, define the binding for the field object as follows: <print method binding>.SFC_DATA.BOM_DATA.BOM_ASSEMBLY_METRICS.<field ID>

For example, to reference the excess quantity in the document to be printed by SFC number, use the following binding: DATA_BY_SFC.SFC_DATA.BOM_DATA.BOM_ASSEMBLY_METRICS.EXCESS_QUANTITY

The BOM assembly metrics data binding is used to reference the following field IDs:

  • NON_BOM_QUANTITY

  • CUMULATIVE_REQUIRED_QUANTITY

  • EXCESS_QUANTITY

  • MISSING_QUANTITY

  • TOTAL_QUANTITY

BOM Component Assembly Data

To reference the assembly data fields and values collected for the BOM component, define the binding for the field object as follows:

  • Enter <print method binding>.SFC_DATA.BOM_DATA.BOM_COMPONENT_DATA.ASSEMBLY_DATA.DATA_FIELD for printing the data field ID.

  • Enter <print method binding>.SFC_DATA.BOM_DATA.BOM_COMPONENT_DATA.ASSEMBLY_DATA.DATA_VALUE for the value.

Caution Caution

To print multiple assembly data fields and values for the component, you must use indexing after DATA_FIELD and DATA_VALUE starting with 0.

End of the caution.
Routing Data

To reference a field of the routing data category in the template, define the binding for the field object as follows: <print method binding>.SFC_DATA.ROUTER_DATA.<field ID>

For example, to reference the routing step ID in the document to be printed by SFC number, use the following binding: DATA_BY_SFC.SFC_DATA.ROUTER_DATA.ROUTER_STEP_ID

Caution Caution

If there are multiple fields with the same ID, you must use indexing after the field ID starting with 0. For example, to reference 3 routing steps in the document to be printed by SFC number, use the following bindings for the fields in the template:

  • DATA_BY_SFC.SFC_DATA.ROUTER_DATA.ROUTER_STEP_ID0

  • DATA_BY_SFC.SFC_DATA.ROUTER_DATA.ROUTER_STEP_ID1

  • DATA_BY_SFC.SFC_DATA.ROUTER_DATA.ROUTER_STEP_ID2

End of the caution.

The routing data binding is used to reference the following field IDs:

  • ROUTER_STEP_ID

  • ROUTER_STEP_SEQUENCE

  • ROUTER_STEP_DESCRIPTION

  • OPERATION

  • OPERATION_REVISION

  • REWORK_FLAG

  • STEP_TYPE

Operation Custom Data

To reference the operation custom data fields and values, define the binding for the field objects as follows:

  • Enter <print method binding>.SFC_DATA.ROUTER_DATA.OPERATION_CUSTOM_DATA0.ATTRIBUTE for printing the data field label.

  • Enter <print method binding>.SFC_DATA.ROUTER_DATA.OPERATION_CUSTOM_DATA0.VALUE for the data attribute.

Caution Caution

If there are multiple custom data fields and values, you must use indexing after ATTRIBUTE and VALUE starting with 0.

End of the caution.
Work Instruction Data

To reference a field of the work instruction data category in the template, define the binding for the field object as follows: <print method binding>.SFC_DATA.ROUTER_DATA.WORK_INSTRUCTION_DATA1.<field ID>

For example, to reference the work instruction name in the document to be printed by SFC, use the following binding: DATA_BY_SFC.SFC_DATA.ROUTER_DATA.WORK_INSTRUCTION_DATA1.WORK_INSTRUCTION

The work instruction data binding is used to reference the following field IDs:

  • WORK_INSTRUCTION

  • WORK_INSTRUCTION_DESCRIPTION

  • WORK_INSTRUCTION_TEXT_LINES

NC Code Data

To reference a field of the NC code data category in the template, define the binding for the field objects as follows: <print method binding>.SFC_DATA.NC_DATA.<field ID>

For example, to reference the NC code in the document to be printed by SFC number, use the following binding: DATA_BY_SFC.SFC_DATA.NC_DATA.NC_CODE_DATA.NC_CODE

Caution Caution

If there are multiple NC codes, you must use indexing after the field ID starting with 0. For example, to reference two NC codes in the document to be printed by SFC number, use the following bindings for the fields in the template:

  • DATA_BY_SFC.SFC_DATA.NC_DATA.NC_CODE_DATA.NC_CODE0

  • DATA_BY_SFC.SFC_DATA.NC_DATA.NC_CODE_DATA.NC_CODE1

End of the caution.

The NC code data binding is used to reference the following field IDs:

  • PARENT_SFC_NUMBER

  • NC_SFC

  • INCIDENT_NUMBER

  • NC_CODE

  • NC_DESCRIPTION

  • NC_QTY

  • OPERATION

  • RESOURCE

  • NC_DATE

  • NC_COMMENTS

  • NC_USER

  • NC_COMPONENT

  • USER_DESCRIPTION

  • WORKSTATION

  • NC_COMPONENT_REVISION

  • NC_CATEGORY NC_STATUS

  • DATA_COMPONENT_SFC

NC Code Reference Designator Data

To reference the NC code reference designator, define the binding for the field objects as follows: <print method binding>.SFC_DATA.NC_DATA.NC_CODE_DATA.REFERENCE_DESIGNATOR.REF_DES

For example, to reference the NC code reference designator in the document to be printed by SFC number, use the following binding: DATA_BY_SFC.SFC_DATA.NC_DATA.NC_CODE_DATA.REFERENCE_DESIGNATOR.REF_DES

NC Code Assembly Data

If component was indicated when logging NC code for assembly, you can reference the assembly data fields and values collected for that component. For this, define the binding for the field object as follows:

  • Enter <print method binding>.SFC_DATA.NC_DATA.NC_CODE_DATA.NC_ASSEMBLY.ASSEMBLY_DATA_FIELD for printing the data field ID.

  • Enter <print method binding>.SFC_DATA.NC_DATA.NC_CODE_DATA.NC_ASSEMBLY.ASSEMBLY_DATA_VALUE for the value.

Caution Caution

If there are multiple assembly data fields and values for the component defined while entering the NC code, you must use indexing after ASSEMBLY_DATA_FIELD and ASSEMBLY_DATA_VALUE starting with 0.

End of the caution.
NC Code Custom Data

To reference the NC code custom data fields and values, define the binding for the field objects as follows:

  • Enter <print method binding>.SFC_DATA.NC_DATA.NC_CODE_DATA.NC_CUSTOM_DATA.ATTRIBUTE for printing the data field label.

  • Enter <print method binding>.SFC_DATA.NC_DATA.NC_CODE_DATA.NC_CUSTOM_DATA.VALUE for the data attribute.

Caution Caution

If there are multiple custom data fields and values, you must use indexing after ATTRIBUTE and VALUE starting with 0.

End of the caution.
Parametric Data

To reference the collected parametric data, define the binding for the field object as follows: <print method binding>.SFC_DATA.PARAMETRIC_DATA.<field ID>

For example, to reference the parameter name in the document to be printed by SFC number, use the following binding: DATA_BY_SFC.SFC_DATA.PARAMETRIC_DATA.MEASURE_NAME

Caution Caution

If there are multiple parameters, you must use indexing after the field ID starting with 0.

End of the caution.

The parametric data binding is used to reference the following field IDs:

  • MEASURE_NAME

  • DESCRIPTION

  • MEASURE_GROUP

  • DC_GROUP_REVISION

  • DATA_TYPE

  • ACTUAL

  • TEST_STATUS

  • TEST_DATE_TIME

  • HIGH_LIMIT

  • LOW_LIMIT

  • USER

  • TIMES_PROCESSED

  • RESOURCE

  • OPERATION

  • OPERATION_REVISION

  • ORIGINAL_ACTUAL

  • ORIGINAL_TEST_DATE_TIME

  • START_TIME EDITED

SFC Pack Data

To reference a field of the SFC pack data category in the template, define the binding for the field objects as follows: <print method binding>.SFC_DATA.SFC_PACK_DATA.<field ID>

For example, to reference the packing date in the document to be printed by SFC number, use the following binding: DATA_BY_SFC.SFC_DATA.SFC_PACK_DATA.PACK_DATE

SFC pack data binding is used to reference the following field IDs:

  • PARENT_CONTAINER

  • PACKING_USER

  • PACK_DATE

Container Header Data

To reference a field of the container header data category in the template while printing by container, define the binding for the field objects as follows: DATA_BY_CONTAINER.CONTAINER_DATA.CONTAINER_HEADER_DATA.<field ID>

To reference the field of this category in the template while printing by SFC number, shop order or process Lot, define the binding for the field objects as follows: <print method binding>.SFC_DATA.SFC_DATA.CONTAINER_DATA.CONTAINER_HEADER_DATA.<field ID>

For example, to reference container number in document to be printed by SFC number, use the following binding: DATA_BY_SFC.SFC_DATA.CONTAINER_DATA.CONTAINER_HEADER_DATA.PACKING_CONTAINER_NUMBER

Caution Caution

You cannot print the container header data by inventory.

End of the caution.

The container header data binding is used to reference the following field IDs:

  • PACKING_CONTAINER_DESCRIPTION

  • PACKING_CONTAINER_NUMBER

  • PACKING_CONTAINER

  • HEIGHT

  • WIDTH

  • LENGTH

  • MAX_FILL_WEIGHT

  • CONTAINER_WEIGHT

Container Assembly Metrics

To reference a field of the container assembly metrics data category in the template while printing by container, define the binding for the field objects as follows: DATA_BY_CONTAINER.CONTAINER_DATA.CONTAINER_ASSEMBLY_METRICS.<field ID>

To reference the field of this category in the template while printing by SFC number, shop order or process lot, define the binding for the field object as follows: <print method binding>.SFC_DATA.SFC_DATA.CONTAINER_DATA.CONTAINER_ASSEMBLY_METRICS.<field ID>

For example, to reference packed quantity in document to be printed by SFC number, use the following binding: DATA_BY_SFC.SFC_DATA.CONTAINER_DATA.CONTAINER_ASSEMBLY_METRICS.PACKED_QTY

Caution Caution

You cannot print the container assembly metrics data by inventory.

End of the caution.

The container assembly metrics data binding is used to reference the following field IDs:

  • PACKING_VALUE

  • PACKING_VALUE_REVISION

  • PACKED_QTY

  • PACKING_LEVEL

  • MAX_QTY_REQ

  • MIN_QTY_REQ

Container Custom Data

To reference the container custom data fields and values while printing by container, define the binding for the field objects as follows:

  • Enter DATA_BY_CONTAINER.CONTAINER_DATA.CONTAINER_CUSTOM_DATA.ATTRIBUTE for printing the data field label.

  • Enter DATA_BY_CONTAINER.CONTAINER_DATA.CONTAINER_CUSTOM_DATA.VALUE for the data attribute.

To reference the container custom data fields and values while printing by SFC number, shop order or process lot, define the binding for the field objects as follows:

  • Enter <print method binding>.SFC_DATA.CONTAINER_DATA.CONTAINER_CUSTOM_DATA.ATTRIBUTE for printing the data field label.

  • Enter <print method binding>.SFC_DATA.CONTAINER_DATA.CONTAINER_CUSTOM_DATA.VALUE for the data attribute.

Caution Caution

If there are multiple custom data fields and values, you must use indexing after ATTRIBUTE and VALUE starting with 0.

You cannot print the container custom data by inventory.

End of the caution.
Document Data

To reference a field of the document data category in the template, define the binding for the field objects as follows: <print method binding>.DOCUMENT_DATA.DOCUMENT_REQ_DATA.<field ID>

For example, to reference print date in document to be printed by SFC number, use the following binding: DATA_BY_SFC.DOCUMENT_DATA.DOCUMENT_REQ_DATA.PRINT_DATE

The Document Data binding is used to reference the following field IDs:

  • PRINT_DATE

  • SITE

  • WORK_STATION_BO

  • PRINT_USER_BO

Note Note

To reference document ID in the template, define the binding for the field object as follows: <print method binding>.DOCUMENT

End of the note.
Document Custom Data

To reference the document custom data fields and values, define the binding for the field objects as follows:

  • Enter <print method binding>.DOCUMENT_DATA.DOCUMENT_REQ_DATA.DOCUMENT_CUSTOM_DATA.ATTRIBUTE for printing the data field label.

  • Enter <print method binding>.DOCUMENT_DATA.DOCUMENT_REQ_DATA.DOCUMENT_CUSTOM_DATA.VALUE for the data attribute.

Caution Caution

If there are multiple custom data fields and values, you must use indexing after ATTRIBUTE and VALUE starting with 0.

End of the caution.