Data Types for RFC Communication
For SAP RFC integrations, parameter data types should be defined in SAP ERP as follows.
Category | Name | Type | Description |
---|---|---|---|
Export Parameters |
LABEL | CHAR255 | Label, Label Type, or Label Group |
PRINTER |
CHAR255 |
Device name |
|
JOBNAME |
CHAR255 |
Unique name for job, echoed in Loftware Enterprise SP |
|
QUANTITY |
INT |
||
DUPLICATES |
INT |
||
Import Parameters |
CONFIRMATION |
STRUCTURE ID (INT) MSG (TEXT100) |
Structure describing the results of the print request |
Table Parameters |
LABEL_FIELDS |
STRUCTURE: LABELNUM (INT) FIELDNAME (CHAR60) FIELDVALUE (CHAR1000) |
List of field names and values |
The LABELNUM value in the LABEL_FIELDS structure is used to send multiple labels in a single print request. All of the fields belonging to a particular label should have the same LABELNUM value. If submitting a request for a single label Job this value can be 0 for all fields.
Example
The following example shows the structure of LABEL_FIELDS to print one label. There will be a row for each field required.
LABELNUM | FIELDNAME | FIELDVALUE |
---|---|---|
0 | PART_NUMBER | GR1287654 |
0 | CUSTOMER_NUMBER | 76234 |
Keywords
Each of the export parameters can be overridden in any particular label by including a LABEL_FIELDS record with the appropriate keyword in the FIELDNAME (with the exception of PRINTER). The following keywords can be used.
- _LABEL
- _JOBNAME
- _QUANTITY
- _DUPLICATES
- _TRAY
- _PAGES
- _INLINE_DOCUMENT
- _INLINE_TYPE
- _LABEL_RANGES
- _PAGE_HANDLING
- _PAGE_CUSTOM
- _FORCE_IMAGE
- _TARGET_MEDIA_HEIGHT
- _TARGET_MEDIA_WIDTH
- _TARGET_MEDIA_UNITS