3.3.3.5.2.13. Text Preprocessing

In the [TEXT_PREPROCESSING] block in the configuration file Sapectr_public_api.cfg, you have the option of presetting different editing processes for the use of texts using the individual keys:

Beispiel: Ersetzung von leeren Werten bei Dokument-Langtext durch "xxx"

Beispiel: Ersetzung von leeren Werten bei Dokument-Langtext durch "xxx"

Activate the desired keys.

  • activate_whitespace_trimming

    Bitfield to activate whitespace trimming for certain text values. Set value to 0 to deactivate whitespace trimming. Default is 31 (summation of all single values).

    • 1: document_shorttext

    • 2: document_longtext

    • 4: material_shorttext

    • 8: material_longtext

    • 16: characteristic_value

    Determine specific text values, add up the numbers and enter the resulting value.

  • document_shorttext_max_len

    Maximum length for document short text values. Set to 0 to deactivate length restriction. Default is 40.

  • document_longtext_max_len

    Maximum length for document long text values. Set to 0 to deactivate length restriction. Default is 132.

  • material_shorttext_max_len

    Maximum length for material short text values. Set to 0 to deactivate length restriction. Default is 40.

  • material_longtext_max_len

    Maximum length for material long text values. Set to 0 to deactivate length restriction. Default is 132.

  • characteristic_value_max_len

    Maximum length for characteristic_value values (classification). Set to 0 to deactivate length restriction. Default is 30.

  • document_shorttext_empty_value_handling

    Empty text value handling for document short texts:

    • Deactivated key: Remove empty values entirely (do not set in SAP)

    • Activated key with empty value: Keep empty text values

    • Activated key with any non empty value: Replace the empty value with the value from this setting

  • document_longtext_empty_value_handling

    Empty text value handling for document long texts:

    • Deactivated key: Remove empty values entirely (do not set in SAP)

    • Activated key with empty value: Keep empty text values

    • Activated key with any non empty value: Replace the empty value with the value from this setting

  • material_shorttext_empty_value_handling

    Empty text value handling for material short texts:

    • Deactivated key: Remove empty values entirely (do not set in SAP)

    • Activated key with empty value: Keep empty text values

    • Activated key with any non empty value: Replace the empty value with the value from this setting

  • material_longtext_empty_value_handling

    Empty text value handling for material long texts:

    • Deactivated key: Remove empty values entirely (do not set in SAP)

    • Activated key with empty value: Keep empty text values

    • Activated key with any non empty value: Replace the empty value with the value from this setting

  • characteristic_value_empty_value_handling

    Empty text value handling for characteristic values (classification):

    • Deactivated key: Remove empty values entirely (do not set in SAP)

    • Activated key with empty value: Keep empty text values

    • Activated key with any non empty value: Replace the empty value with the value from this setting