cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

how run SQL query in SAP EC for reporting?

Former Member
0 Likes
558

How to run SQL query in SAP EC (environmental creation) for reporting? Also, where I can access the SAP EC database in order to understand the Table structure for report creation?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Likes

Dear Varun

Take the developer help for defining & execution of SQL Query , Generally we use T.Code SQVI  . I Hope defination part your are already done any how cross the check the below steps once again in query defination

You have to define the contents(Data Source)  of report  in SQL statement with appropriate restrictions .So it will describes which data is extracted from the system.

Create query variants You can create new query variants that define the layout of the query. The following settings are possible:

  • Configure attributes You can modify the query attribute configuration. For example, you can set a filter attribute as mandatory or allow end-users to modify the settings.
  • Configure key figures You can configure the key figures. For example, you can reorder the key figures or the reporting unit.
  • Define chart You can predefine the analytical query chart type and the dimension.

Executing pivot query You can execute the pivot query to get the chart regarding the query variant settings. Within the chart, the following functions are available:

  • Drilldown/Rollup You can use the drill-down function to add another characteristic to the query for more detailed information. To get a more general result, you can use the rollup functionality.


for your second question "where I can access the SAP EC database in order to understand the Table structure for report creation?


For table structures information see note 1427501.  It has some pdf's of table structures in EC attached.

Balajee


Former Member
0 Likes

Thanks balajee for your inputs.

I also have one more question. I am working on a existing report in SAP EC that requires making some changes in .xdp file. I made changes in .xdp file using Adobe Live Cycle and when I was trying to regenerate the report after uploading the changed .xdp file I am getting an error mesage "Errors while creating report An error occurred during PDF rendering" in SAP EC.

Please assist.


Former Member
0 Likes

Dear varun

Go through the below link for analyzing your error message. it may helps you for resolving your issue

Adobe Rendering Error (SAP Library - SAP NetWeaver? Problem Analysis Guide (PAG))

Balajee

Former Member
0 Likes

Hi Balajee,

I managed to track down the reason why the PDF is not getting generated. It seems after adding a checkbox in the adobe livecycle and placing a data binding value to the checkbox the PDF is not getting generated in EC system.

kindly assit me in fixing this issue.

Former Member
0 Likes

Hi Balajee,

How can I get the input data file in XML format from SAP EC system. I am in the process of updating XSLT file for one of the report variant which has reference to input XML data file which will help me in understanding the XSLT code.

Please assit me on the same.

Former Member
0 Likes

Varun,

  Regarding Checkbox Binding Value in .xdp file - Have you uploaded the output of XSLT sample file in Adobe Data connection. If not please re-execute the Report with the required Report variant and get the XML downloadable file and then upload the same in Input XSLT transformation in Adobe Life cycle designer Data Connection. Once uploaded choose the required checkbox in Adobe design and assign the binding value from the report (which will automatically be seen in binding value tab once you have created the Data Connection).

For understanding XSLT code - just check the XML Data Source for the particular report and verify what are the tables and filed names are included.

Former Member
0 Likes

Thanks Vinoth for your reply. The report I am working on has a SQL data source. Are there any documentation available to understand the SAP EC database since I am finding it difficult to follow the SQL query before understanding the EC database?

What I have is the EC table structure which is very complex and difficult to understand.

Kindly Assist.


Former Member
0 Likes

Are there any good training materials available for SAP EC reporting?

Kindly Assist.