Outputting Dangerous Goods Standard Texts 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.
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.
To do this, in the
Basic Data and Tools
menu choose
Phrases
→
Edit Phrase Set-to-Attribute Assignments
. In the property tree choose
Tables / structure fields
→
RDGTPOSPSET
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.

If you have already been using dangerous goods standard texts, you can continue using them. For this you must do the following:
In the IMG activity
Manage User Exits
in Customizing for
Basic Data and Tools
, enter user exit categoryPHR_TEXT(required entry) and the function moduleHAZMAT_PRI_COND_ADAPT(required entry). You can enter any text for the name of the user exit.
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.

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.
In Customizing for
Basic Data and Tools
in the IMG activity
Manage User Exits
, specify the user exit for outputting the dangerous goods standard text.
Enter the following data:
UExit cat.:PHR_TEXT
UExit name:EXCPQUAN
Function module name:DG50_PRICOND_EXCPQUAN_STDT
Sort:1
User exit description:Limited quantity
Function module name: entered automatically by the system
Create a phrase for the marginal 10011 and assign it to the user exit.
In the
Basic Data and Tools
menu, choose
Phrases
→
Edit Phrases
The
Edit Phrase: Initial Screen
appears.
Choose
with the quick info text
Create
The
Create Phrase: Header
screen appears.
Enter the following data:
Phrase:EHS
In this field you must enter the key for the active phrase library. The system generates the phrase key.
Phrase group:Group_01
Source language:EN
Phrase text:Limited quantity
User exit name:EXCPQUAN
Choose
with the quick info text
Enter
.
The system generates the phrase key for the phrase that you created.
Save your entries.
Assign the phrase to a phrase set.
In the
Basic Data and Tools
menu, choose
Phrases
→
Edit Phrases
The
Edit Phrase: Initial Screen
appears.
Enter the
required
selection criteria and then choose
with the quick info text
Hit List
The
Edit Phrase: Hit List
screen appears.
Select the appropriate phrase and choose
Phrase Set
.
The
Edit Phrase: Phrase Set Assignment
screen appears.
Using the input help, choose the phrase sets you require.
Save your entries.

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.
To do this, on the
SAP Easy Access
screen choose
Tools
→
ABAP Workbench
→
Development
→
Function Builder.
Enter the name of the function module and then choose
Display
Choose
Function Module Documentation
to access the documentation for the corresponding function module.