Outputting Dangerous Goods Standard Texts

Introduction

This example describes how you configure the SAP system so that a dangerous goods standard text is output at the header level or item level of a delivery note.

Prerequisites

  • Phrase sets exist.

  • Phrasing is activated.

  • With the selected phrase set, you have specified that phrases are to be output at header level or item level.

    For this, choose Start of the navigation path Basic Data and Tools Next navigation step Phrases Next navigation step Edit Phrase Set-to-Attribute Assignments End of the navigation path. In the property tree, choose Start of the navigation path Tables/Structure Fields Next navigation step RDGTPOSPSET End of the navigation path and enter the phrase sets. The phrase set-to-attribute assignment enables you to freely define the name of the phrase set.

  • The dangerous goods standard text exists in the language of the form.

    Note Note

    If you have already been using dangerous goods standard texts, you can continue using them. For this you must do the following:

    • In Customizing for Basic Data and Tools, in the activity Manage User Exits, enter the user exit category HR_TEXT (required entry) and the function module HAZMAT_PRI_COND_ADAPT (required entry). You can enter any text for the name of the user exit.

    • You start the conversion report DGCONVERT using the transaction DGU2. The Converting Dangerous Goods Texts and Descriptions to Phrases screen appears. Set the Standard texts indicator and choose the corresponding phrase group. Dangerous goods standard texts that you had previously stored as SAPscript texts are stored as phrases and assigned automatically to the phrase sets.

      Recommendation Recommendation

      To avoid losing data, you should run the DGCONVERT report if you are changing to a higher release from a release lower than 2.5/2.7.

      End of the recommendation.
    End of the note.

Procedure

  1. In Customizing for Basic Data and Tools in the activity Manage User Exits, specify the user exit for outputting the dangerous goods standard text.

    Enter the following data:

    • User exit category: PHR_TEXT

    • User exit name: EXCPQUAN

    • Function module name: DG50_PRICOND_EXCPQUAN_STDT

    • Sort seq.: 1

    • User exit identifier: Begrenzte Menge

    • Function module name: Automatically entered by the system

  2. Create a phrase for the marginal 10011 and assign it to the user exit.

    1. In the Basic Data and Tools menu, choose Start of the navigation path Phrases Next navigation step Edit Phrases End of the navigation path.

      The Edit Phrase: Initial Screen appears.

    2. Choose Create (Create).

      The Create Phrase: Header screen appears.

    3. Enter the following data:

      • Phrase: EHS

        In this field, you need to enter the key for the active phrase library. The system generates the phrase key.

      • Phrase group: Gruppe_01

      • Source language: DE

      • Phrase text: Limited quantity

      • User exit name: EXCPQUAN

    4. Choose Enter (Enter) .

      The system generates the phrase key for the phrase that you created.

    5. Save your entries.

  3. Assign the phrase to a phrase set.

    1. In the Basic Data and Tools menu, choose Start of the navigation path Phrases Next navigation step Edit Phrases End of the navigation path.

      The Edit Phrase: Initial Screen appears.

    2. Enter the required selection criteria and choose Hit List (Hit List).

      The Edit Phrase: Hit List screen appears.

    3. Select the appropriate phrase and choose Phrase Set (Phrase Set).

      The Edit Phrase: Phrase Set Assignment screen appears.

    4. Using the input help, choose the phrase sets you require.

    5. Save your entries.

Note Note

You can use the sample function modules that are stored in the system:

  • DG50_PRICOND_ADR10011_STDT

  • DG50_PRICOND_ADRDECLA_STDT

  • DG50_PRICOND_ADNRDECLA_STDT

  • DG50_PRICOND_SHIPDECLA_STDT

For more information about the function modules, see the function module documentation.

From the SAP Menu, choose Start of the navigation path Tools Next navigation step ABAP Workbench Next navigation step Development Next navigation step Function Builder End of the navigation path. Enter the name of the function module and choose Display. You use the Function module doc. pushbutton to access the documentation for the corresponding function module.

End of the note.