To connect to an Oracle instance, you need to configure the MAPPING environment to use the Oracle listener by specifying the instance, user name and password in the environment settings.
The first step in creating a document with MAPREPORT is to specify the input settings and to build the tables containing the data by typing the SQL queries and defining the field names and types. Alternatively, you can also create definition files for existing tables from the MAPPING Web interface. Then, the tables are added to the report. We usually create the base report using a main query that loads the information into a temporary table.
Then, you need to define the different blocks that make up the report. It is usually recommended to fill out the first 10 columns with conditional codes that can be used to simplify the design of the template.
Once the blocks are set up, the document takes shape and the last thing is to add calculations and specify how page breaks occur. In addition to SQL queries, one can also use Oracle functions and stocked procedures in calculation zones in MAPREPORT.

Once the document report is set up, the next step is
to design the layout:
To generate and print this document, one needs to run the MAPRUNRPT command to first generate the document in the TXT format and then run the MAPCPYSPLF command to apply the new formatting in the selected print language. According to the type of report, there are different ways of creating a document: