Skip to Content
author's profile photo Former Member
Former Member

SAP GLM PDF generation

Dear GLM experts,

I need to setup PDF generation of labels generated from SAP GLM.  I know the settings for conversion of .RTF file for SDS, but has anyone setup PDF conversion for labels?

In this scenario  I am generating labels based on request from a java based web application, I need to return a label in PDF format. With standard setting I am able to return a .RTF file. Is there a way to convert the file within GLM itself.  Please let me know.

Thanks

P.S

Add comment
10|10000 characters needed characters exceeded

6 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 31, 2014 at 05:29 PM

    Gentlemen,

    We had a very good conversion on this topic. Thanks for pointing out several avenues to try this functionality. Finally I am able to generate PDF from GLM. Here is the summary of steps I did

    1. Upgrade to EHP 6 SP 009 (EA-APPL)

    2. Activate LOG_EHS_GLM_CI_4

    3. Upgrade MS Word on generation server to 2010 64 bit

    4. Upgrade WWI generation server to SP 32 64 nit

    5. Complete IMG configurations for print request generation

    6. Execute preview of label and preview is shown in PDF

    Hope this helpful.

    Thanks again.

    Pugal

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 21, 2014 at 06:20 AM

    Hi !

    To print the output file in PDF format, you need to write a macro program to convert the word format to pdf format. And then you have to mention your word document which contains that macro program & that macro program itself in WWI section, [PrintUserExits].

    In std WWI.INI file, it will be mentioned by default as

    [PrintUserExits]

    ; Format=addin(.dot);macro(.main)

    ;PDF=c:\wwi\wwiMkPDF;wwiEConvertToPDF

    PDF=C:\wwi\wwiMKPDF;wwiEConvertToPDF.

    Explanation:

    In the above setting, WWI is expecting a macro program, “wwiEConvertToPDF” in the word file, “wwiMKPDF”.

    So what you have to do is to create a word file and save it as (or you can have your own file and mention those details in the printuserexits section) wwiMKPDF. In that word file write the macro program – wwiEConvertToPDF, like this,


    ActiveDocument.SaveAs FileName:=DocName, FileFormat:=wdFormatPDF.

    Regards

    Subash Sankar

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Christoph Bergemann

      Hi C.B!

      Yes you are true ! IN GLM you can't print labels as PDF as pere this SAP NOTE,

      1535067 - EH&S WWI: Generating PDF files.

      It clearly clarifies that, "The PDF generation cannot be used in labeling processes (Global Label Management (GLM)".

      So my previous reply holds true only for MSDS report shipping context.


      But interesting (confusing) thing is in new Enhanced GLM, you can preview the generated print request as PDF ! I am trying to check that out. But facing an error, .

      But here is the setting for that,

      GLM PDF.jpg

      Regards

      Subash Sankar

      GLM PDF.jpg (33.2 kB)
  • Posted on Jan 18, 2014 at 05:07 PM

    Hello

    quite tricky demand. In GLM process the Labeling Tool is used as well.

    But what is your "real demand"? why do you need to the document as pdf? Can you explain that please?

    May be there is an option: as you may know. the WWI generation server farm for Label printing is different. Therefore may be you can adapt WWI.Ini only on the Label WWI servers. In SDS distribution this is done to generate the pdf file (which you are asking for) but the label process is a little bit complexer; but there might be an option. I found only by hazard the german link:

    http://www.consolut.com/en/s/sap-ides-access/d/s/doc/YX-EHS_SR_220_11

    but if I remember corret: the topic is mentioned as well in SPRO in the context of "WWW.Ini" manipulation. You can add your own "USerexit" Visual Basic code; but you need to make sure (and here I have no idea) that you process only the WWI file after the Labeling tool has been executed.

    I did not investigate the label process that deep in context of labels.

    Check may be: Using the Labeling Tool - Basic Data and Tools (EHS-BD) - SAP Library

    "Using the Labeling Tool"

    Hope this helps.

    C.B.

    Add comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 23, 2014 at 09:24 AM

    Hi,

    only GLM+ can create PDF labels out of the box. GLM+ is available for:

    • EhP7
    • EhP6 SP8
    • EhP6 SP11

    Activation of the business function LOG_EHS_GLM_CI_4 is required.

    The previous version of GLM cannot print PDF labels. As a workaround you can create a preview and use the PDF creation of MS Word. Serial numbers are not working for the workaround.

    Regards,

    Mike

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Michael!

      My system is EHP5 SP11 and I had activated BF, "LOG_EHS_GLM_CI_4" ! and i did the IMG Configuration,

      Environment, Health and Safety -> Global Label Management - > Prerequisites for Global Label Management -> Define WWI Settings -> Configure WWI Server for Print Request Generation.


      Can you provide some more guidance ?

      Regards

      Subash Sankar.

  • Posted on Jan 23, 2014 at 01:48 PM

    You need to sue GLM+ as mentione by Michael, and you need to follow note 1535067 - EH&S WWI: Generating PDF files to setup PDF generation, usually you do not need to do anything when you use the mentioned Word and WWI version. Then do NOT use a [PrintUserExits] entry.

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 01, 2016 at 05:19 PM

    Hi Pugal,

    I have a similar requirement of generating labels from outside of SAP in PDF format.Can you please tell How are you generating labels from a java Based Application. Is there any BAPI or FM that you are using to generate the labels. Can you please tell me the exact steps that you used.

    Appreciate Your Help.

    Thanks

    Add comment
    10|10000 characters needed characters exceeded