08-03-2012 4:46 PM
Dear Experts,
I am working in the EH&S WWI Reporting space. I am trying to create a WWI document that will contain the ouput of an ABAP report into the WWI report.
I currently have a template that contains 1 symbol. That symbol calls a function module that passes the symbol and the specification ID to an ABAP report.
I currently have it set up so when I view the report via template, the ABAP report pulls up. Is it possible to package the ABAP report output so the entire output is being passed back to the Function Module then read directly to the WWI report? This way the report is still using WWI functionality and the users are still able to generate the report into DMS.
Let me know if you have any questions.
Thanks,
Lindsey
08-03-2012 9:17 PM
Lindsey, I am not sure how WWI Reporting works but what I understood is you are trying to get the same output from an ABAP Report out of a Function Module so that this can be called from your WWI framework.
If this is the case, in the Function Module call the ABAP program using SUBMIT statement with option EXPORTING LIST TO MEMORY. Once the ABAP program is executed you can pass the list contents as export parameters.
You can find more about this option at the below link
http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db9d7535c111d1829f0000e829fbfe/frameset.htm
But if the program logic can easily built into the FM, I would just add the data extraction logic into FM.