Fetching Report's Data From ECC To C4C Via CPI (Alternative For Mashups in C4C Integr
Fetching Report's Data From ECC To C4C Via CPI (Alternative For Mashups in C4C Integr
SCENARIO:
There is a report in ECC, and the idea is to show the report's data in C4C. Now,
the C4C experts will say that you can create Webservices in ECC and they can be
displayed in the "HTML Mashups"which has been provided by SAP, out-of-the-
box i.e. by standard.
Now I will tell you what is the problem with Mashups. In the configuration for
Mashups you maintain the link to access the report, and the credentials to ECC.
Your client's ECC runs in their private network, and hence, the moment the end-
user is outside the company's network, these reports won't run. To run these
reports you shall need VPN. But, isn't it much of a trouble for the client, and their
end-users? The idea should always be to provide ease to the end-users while
transacting.
SOLUTION:
end-points.
5. [ABAP /CPI] Enter the TCode, SOAMANAGER. Typically this TCODE when
entered, opens in your webbrowser. Now, go to Web Service Configuration.
6. [ABAP/ CPI] Search for the consumer proxy program as show below:
7. [ABAP/ CPI] By Manual Configuration, create Logical Ports using the same
Logical Port, as mention in the proxy program (refer point number 4).
8. [ABAP/ CPI] Below is the configuration details for the Logical Port created:
9. [ABAP/ CPI] Execute the program in SE80 to send the report data to CPI,
so that you can see the incoming Payload which is to be shared with the
[C4C] consultant.
10. [CPI] Below is the Payload which you can see in the TRACE mode.
12. [C4C] Here is the code for the Business Object, which you can creting
seeing the payload shared by the [CPI]. Basically, the elements decalred
are going to be the columns of the Data Store which you are going to
39. [C4C] A script (.absl) for the "Event-BeforeSave" to be created, and below
is the script for it.
}
76. [C4C] Create a Data Source on the custom Business Object created.
Follow the screeshots below
77. [C4C] Create a custom OData Service. Select the Business Object, Select
the elements/ fields, Assign the workcenter, Save the OData Service, and
Activate it. Share the link with [CPI] Consultant.
78. [CPI] Connect the End event to the Receiver using an OData adapter.
79. [CPI] In the Message Mapping, maintain the .xsd file generated in the
Target, and seeing the incoming payload from ECC, create a structure for
the source.
80. [CPI] Make the necessary mapping as per the Mapping Sheet shared by
Business Team.
81. [ABAP/ CPI] Now run the program in SE38, and this will do the following:
o From SE38, the consumer proxy program will send the data from the ERP
to CPI, bases on the Transport Settings mainted in SOAMANGER.
o The Data comes to CPI, and gets consumed by the Receiver i.e. C4C on
the basis of the OData Adapter Connection setting, and hits C4C.
o In C4C, you may create a report on top of the Data Source created in
step number 14, and view the data.