There exists already a SAP Add-On Solution from a Third Party company written in ABAP to genereate a GS1 Datamatrix , GS1 QR Code and GS1 Code128.
Take a look on the webseite: http://www.europe-it-consulting.ch/en/solutions/sap-gs1-barcode-generator...