cancel
Showing results for 
Search instead for 
Did you mean: 

DG Text Patterns

sruthi_srinivasan
Participant
0 Kudos

Hi,

Can anybody please help me with a document on how to create Text Patterns for DG?

Thank you,

Sruthi

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello Sruthi

DG Text Patterns are used for outputting the DG information in Logistics Documents ,Like Delivery Note, Multi Model Dangerous Form , Picking List , Bill of Lading documents etc....

Text patterns are designed in Technical Language and  use the same in Phrase Management for outputting the data in Scripts/ Smart forms through driving programme


Pl.Find the  Model Text pattern coding  for "IATA" Regulation printing , you can adopt the same for other Regulations also by changing the Field Lables .

...............Text Pattern for DG Instructions for Regulation -IATA..................

DEFINE &DGDES& := &RDGPRINT-DESCRIPTION&

DEFINE &NAME& := &RDGPRINT-HAZINDSUB&

DEFINE &MP& := &RDGPRINT-HAZINDSUBMP_HIS&

DEFINE &RQ& := &RDGPRINT-HAZINDSUBRQ&

DEFINE &HAZ& := &RDGPRINT-HAZNOTES&

DEFINE &HYG& := &RDGPRINT-HYGROS&

DEFINE &OBJ& := &RDGPRINT-TPOJ&

DEFINE &ID& := &RDGPRINT-TPID&

DEFINE &LG& := &RDGPRINT-TPLK&

------------------------------------------------------------------------

&RDGPRINT-LWDGN': '&

- Dangerous Goods Description --

INCLUDE &DGDES& OBJECT &OBJ& ID &ID& LANGUAGE &LG& PARAGRAPH DP

- HAZARD INDUCING SUBSTANCES --

INCLUDE &NAME& OBJECT &OBJ& ID &ID& LANGUAGE &LG& NEW-PARAGRAPH =

,&RDGPRINT-DGCL', '&&'('RDGPRINT-HPN2'), '&&'('RDGPRINT-HPN3'), '&&'('RDGPRINT-HPN4'), '&&'('RDGPRINT-HPN5'), '&&'('RDGPRINT-HPN6'), '&&'('RDGPRINT-HPN7'), '&&RDGPRINT-TKUI' '&&RDGPRINT-DGNU', '&&RDGPRINT-PGRO' // '&&RDGPRINT-PIN&

------------------------------------------------------------------------

Balajee

former_member212503
Participant
0 Kudos

hello Balajee ,

do we have to hard code these dg text patterns in smart form for all regulations ?

christoph_bergemann
Active Contributor
0 Kudos

Dear Krishna

as shown by Balajee: there is a "standard" example in place delivered by SAP (

Pl.Find the  Model Text pattern coding  for "IATA" Regulation printing , you can adopt the same for other Regulations also by changing the Field Lables .))


Now on high level this is the story:

a.) let us assume you use the regulation "IATA" (and not a dffierent one)

b.) Based on SAP SD process you know the "modes" of transport (e.g. by air)

c.) and you need to print DG data using sap script etc. on SAP SD documents


Therefore: first: try to find the SAP example for IATA as indicated by Balajee, Understand the structure etc.


Based on the "IATA" example you need to check: is the DG information per regulation always the same? Is there any regulation to be printed and if yes which one etc.


Refer to my answers in thread

as well. Check deep: do you use one time materials/Template materials? I am not sure if SAP delivers here by standard a useful "print" example...

If you start a SAP EHS project and integrate SAP SD with SAP EHS (especially SAP EHS DG part) the DG document print part can be/is a "nightmare"; you need to have knowledge in SAP SD, sap script/smart forms; you need to understand teh DG framework.


What Balajee explained is only part of the "full" story. (e.g. on phrase level you need to have established for special phrases as well "exits")  or you will not succeeed to print DG data in sap script etc.


As mentioned: any SAP SD / SAP EHS DG integration is in > 80% of the cases done customer specific


C.B.


PS: for DG: there is some "best Practise documentation" available. This can be helpful as a starter. Check document:

EH&S Dangerous Goods Management (936)

Business Process Documentation






former_member212503
Participant
0 Kudos

thank you Chris ,

this helps a lot ! Definetely these are nightmares .