Quantcast
Channel: SCN : Popular Discussions - SAP Cloud Applications Studio
Viewing all articles
Browse latest Browse all 1333

Cloud Studio SDK: Can we create embedded reports

$
0
0

Hi All

 

Hopefully someone can just let me know if this is possible or not. If not possible then hopefully this requirement will be noticed for a future release.

 

 

Requirement:

We need the ability to embed our custom data source report into the Account TI screen and pass account number to the report so we can display customer sales data.

 

Background Info:

I have created a report we wish to embed in the Accounts TI screen. Report was defined as follows.

EmbedReport1.png

I have extended the COD_Account_TI and created an embedded component called Report_EC in the charts tab.

EmbedReport2.png

I have used extensibility explorer and passed AccountID to my Report_EC as follows:

EmbedReport3.png

OK now that my component is successfully embedded, I need to attempt to call the Analytics components.


ATTEMPT #1 - Using ANA_ICP.EC

1. I have embedded the ANA_ICP.EC component inside the Report_EC:

EmbedReport4.png

2. I entered all the report details as follows:

EmbedReport5.png

Result 1: Report starts loading but never opens as below... (Loading Forever)

EmbedReport6.png

I then removed the references to Variant and View ID.

EmbedReport7.png

Result 2: Report loads with default variant, however I can't pass an account number to the report?

EmbedReport8.png

 

ATTEMPT #2 - Using ANA_ICP_Embedded.EC

 

  1. I have created an ANA_ICP_Embedded.EC component inside the Report_EC:
    EmbedReport9.png
  2. I created an outport on my Report_EC and configured as follows:

EmbedReport10.png

 

3. Data Model structure was added 'StructureForNavToSalesCycleReport'.

EmbedReport11.png

When I check the standard ACCOUNT_TI page, the following values are defined for the sales cycle report navigation:

EmbedReport12a.pngEmbedReport12b.png

 

EmbedReport13a.pngEmbedReport13b.png

4. I tried to replace __ROOT with Report_ID below and __TARGET with Report View ID below.

EmbedReport14.png

EmbedReport15.png

EmbedReport16.png

5. I clicked on the bind button in designer view from Report_EC and created a navigation link as follows:

EmbedReport17.png

EmbedReport18.png

6. I configured my Inport AccountID and bound to my data structure 'StructureForNavToSalesCycleReport' field (AccountID_ANA). Now I don't really expect this to work but I just followed the standard SAP configuration.

Note that I configured "Onfire" to eventhandler EV_ToSalesReport

EmbedReport19.png

7. EV_ToSalesReport has the following configuration:

EmbedReport20.png

EmbedReport21.png

Result: Report will not open

EmbedReport22.png

Question:

Is there any way I can achieve the requirement using the SDK tools available. None of this is documented and I am just trying to mimic the standard solution. What should be passed to __ROOT and __TARGET for this to work with a custom report/data source?

 

I changed the __ROOT and __TARGET (In data model) to the standard sales cycle report values and the embed works... as below:

EmbedReport23.png

 

This makes me think that everything I have done is correct except the data values passed.. however something happens behind the scenes I think.. maybe a SAP employee can help how I might pass to custom?


Viewing all articles
Browse latest Browse all 1333

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>