3 weeks ago
Hi Experts,
I am new to SAP Commerce Cloud and have a question. When an order is created in SAP ERP through Commerce using CPI, is there a standard integration available to retrieve the associated order document (e.g., order PDF) back into Commerce Cloud? Additionally, is it possible to view a document flow within Commerce Cloud that includes all the relevant documents at different stages, such as order PDFs, invoice PDFs, and delivery PDFs? basically Document services? or we need custom integrations? if custom how can this be invoked and from where?
Any input here will be helpful
regards
Abdul
Request clarification before answering.
Hi @abdnan01
Since Hybris is not a reporting system it do not have any specific mechanism or service to provide documents.
Also, every project has different requirement of documents so there is not a standard rule of how the document will look like, what it will have etc, that is why it doesn't make sense to have a standard way of document generation.
Now, in your case you can generate the documents in many ways, I will mention 2.
1. Generate the PDFs in hybris.
Steps: Create a service in hybris which uses the libraries like itext for pdf generation, write your logic to populate data into the tables, paragraphs, images etc and once the document is ready, convert it into inputstream and then to a media model. Now you can either return the download url of that media model on the storefront or you can send the media as an attachment etc.
2. Export your data and allow the third part to generate the document and get it from them.
You can export your order data to some third party system which can generate either the file itself or send you the base64 response to you which you can decode and create the media out of it. Example - DocGen etc.
Also if you want to provide the PDFs to someone else you can expose the ooc apis to them to fetch the document from commerce cloud.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
21 | |
16 | |
3 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.