Skip to Content
avatar image
Former Member

Print WWI without using Report Shipping

Hi Experts,

I have a requirement to print out WWI report in a specification but the printer needs to be specified during the process.

I know that one way of printing WWI reports is through the report shipping, but the printer configuration is fixed and specified in the SPRO(EH&S->Product Safety->Report Shipping->Basic Settings->Assign Default Printer). I need something that I can specify an SAP printer dynamically and report shipping doesn't allow that.

Is there an existing Function Module or BAPI that I can use to trigger a WWI to print?

Thanks in advance!

Regards,

Jorenz Llanes

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Dec 10, 2015 at 11:31 AM

    Hello Jorenz,

    Can't you just use CG54 (you can navigate from CG02 to CG54):

    - select and mark all reports there that you want to print

    - change the printer via the menu 'Utilities' -> 'Change Print Parameters'.

    - Print via menu 'Report' -> 'Print'

    Can you elaborate more on the reason for this requirement?

    Hope this helps


    Mark

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hello Jorenz,

      Jorenz Llanes wrote:

      But even though we utilize GLM, the dynamic printer, will still not be an option right? since the user exit CVFE0001 is only for report distribution?

      You can set up GLM to automatically print labels without user interaction.

      And it should be possible to automatically determine the printer during that process as well.

      But setup / customizing of GLM might be an overkill depending on the complexity of your labels.

      I think generating a EHS print request automatically based on a transfer order - and dynamically selecting the printer during this process - would be a cost effective solution (no need to install and configure another sub SAP EHS Modul like GLM).

      Kind Regards

      Mark

  • Dec 10, 2015 at 06:24 PM

    Dear Jorenz

    as Mark explained: any SAP printer can be used in the CG54 process (with or without subseqeunt shipment). You can differentiate two "subprocess".One using the "MAN_CALL" variant and the second is the "PRINT_CALL": In your case "PRINT_CALL" is may be the "right" option; But I would assume that in >90% of the cases the MAN_CALL is used.

    Here you can use e.g. a "report recipient" having an e.g. assigned printer or an assigned eMailaddress (to get document as SDS) etc.

    You need to prepare proper set upo of customizing (e.g. may be own cover letter etc.)

    For SD_CALL etc. as you correctly explained. one printer per sales organisation is the "standard".

    So as Mark asked. what kind of process do you have in mind? What would be you parameter to define: now print on printer X in comparison to printer Y (and can the SAP system analyse some data to decide this?)

    Check e.g.: Shipping Reason - Product Safety (EHS-SAF) - SAP Library

    and Using the Report Information System - Product Safety (EHS-SAF) - SAP Library

    C.B.

    PS: check as well:

    Error while generating a MAN_CALL | SCN

    Add comment
    10|10000 characters needed characters exceeded

    • Dear Jorenz

      this is my understanding now regarding your requirement:

      1.) per sales organisation you can specify one SAP printer; this is SAP standard (and I can therefore confirm your findings)

      2.) we talk about SD_CALL requirement (and not using CG54)

      I am sorry. There is no SAP standard to "switch" in SD_CALL the printer; anything in this area would be very customer specific; in different thread e.g. it has been asked to have a printer by plant. This is as well not possible (or you need to do your own may be quite complex printing)

      The selection of the printer is very "static" (in SD_CALL and CG54); there is no option by standard to change dynamically the printer; and you need some "parameter" to decide: should now the system use printer A or B.

      in SD_CALL: won't know which parameter you would like to use

      in MAN_CALL: may be you can think about this: part of your "user profile": you can select a SAP printer. This need not to be the "default printer"; then by "clever" programming may be you can try to use the printer from "user profile"

      IF we talk about CG54: the best option might be to use the "Userexits" which are available here to select the printer (dynamically); Nether tried it. You you then e.g.: select material, specificaiotn, report, sales organisation and the using the "exit" you coould get a screen with "SAP default printer" which you could then change

      BUt this is the same if you use the "report recipent"approach; here you have a lot of options using "standard" (without programming !). But this is "manual" work and not "automated"..

      Coming back to your original statement:

      "Currently the business do print the reports via CG54. The requirement is to automate the printing after Transfer Order. Labels needs to be printed after each process automatically without going through CG54."

      If we defined "transfer order" as the "normal EHS" setup: This is the "normal" automatic SDS distribution process to customer (ONLY ONE STATIC PRINTER (refer above); so nothing "special" (check the may threads regarding report shipment and the most important OSS note in which the report distribution process is explained (you will find many references here to the OSS note)

      This part:

      Labels needs to be printed after each process automatically without going through CG54."


      I have not commented yet. This is very special; If we talk about GLM then the story is without CG54 (but you can use it as well) but you use the "label workbench" (depending on your release); If I need to compare the complexity of EHS solutions based on some blue print this is my sequence (roughly)

      GLM (most complex!) > report distribution > set up of reports > DG part; that means GLM projects does have highest complexity (even more complexer as report distribution)


      Regarding:

      And because the printer can vary depending on the market that will use this functionality, I feel that report shipping may or may not be used. It can be used if we configure 1 per market but it will be too many to do


      This is not the SAP approach; in SD_CALL etc. you do not have "enough" information to select a "printer" based on a "market"; Not knowing your "market" definition: I would assume. not possible using SAP approach


      Regarding:

      1. Retrieve DMS of the report/label per spec

      2. Print document to spool

      Just stop your actions here.You will not find solutions without complete reprogramming of EHS;

      For part 2: check the GLM options (BUT ONLY AVAILABLE IN GLM ! and not for SDS etc.); check as well: What is a "Label" and how support SAP EHS Management "Labeling"


      C.B.

      PS: may be check: SDB output(MSDS) for delivery | SCN

      PPS: for SD => interface e.g. check:

      Output Data in SD - Product Safety (EHS-SAF) - SAP Library

      or moste recent SAP help version. Check the structures:

      RCGUSDATA

      RCGSDDOC


      These two structures are the main element of communication between SAP SD and SAP EHS to support SD_CALL related report distribution