Data sources

Function Modules for SAP Reports

To use SAP reports in Peakboard, it is necessary to install a customer-specific function module in the SAP system. If you cannot do this yourself, ask a colleague from your SAP Basis department to help you. First create a function group (for example, with the name EXTRACT) to create the module. Then create a new function module. The name should be Z_XTRACT_IS_REMOTE_REPORT, but can also be changed if necessary. Define the module in its attributes as remote-capable and create the import, export and table parameters as shown in the following screenshots.

Function Builder Import

Function Builder Export

Function Builder Tables

Copy the source code by Ctrl+C and Ctrl+V from this text file into the code editor (Source Code tab). Save the module and activate it. Now it is ready for use. The individual steps (program execution, spool retrieval, job monitoring, and so on) are documented in the code accordingly. This way, if you are interested, you can easily find out how the ABAP code works.

SAP Standard Data Type TAB512

Instead of using the SAP standard data type TAB512 for the LIST_OUTPUT table parameter, you can create your own Z data type. This is necessary if the output length of a report line is longer than 512 characters. The maximum possible length is 1023 characters.


We are learning from you!

Did you find this article helpful?

Be enlightened!

Do you need more support?

Peakboard Youtube icon Visit our YouTube channel

Our numerous videos for beginners and advanced users explain exactly how to design your dashboard.

Peakboard Templates icon Visit the Peakboard Templates

Download our templates for various use cases for free.

Peakboard icon Visit

Find out all about Peakboard and browse our different use cases and success stories.