Skip to Content
0

SAP DOCUMENT CENTRE S4 HANA

Feb 21, 2017 at 12:28 PM

483

avatar image
Former Member

Hi Experts,

We need some clarification for SAP DOCUEMNT CENTRE before we adopt this product:

1) integration with S4 HANA.

2) Custom Fiori App upload document in SAP document centre.

3) how we can access document , which is being uploaded via DMS.

4) Do we need to have DMS in place if want to use it for SAP Business application Purchase order etc.

Regards,

Priyanka

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Ashwani Kumar Sharma
Feb 22, 2017 at 08:16 AM
0

Hi,

  • Can you be more precise in your first question?
  • You can create fiori apps and upload\download document from SAP Document Center. We also have nice fiori component what can be embed in other UI5 apps.
  • Yes, you can access documents from DMS
  • Can you elaborate your fourth question further?

You may find this link useful: https://wiki.scn.sap.com/wiki/display/ATopics/SAP+Document+Center+-+Integration+How-To+Guides

Regards, Ashwani Kr Sharma

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Feb 22, 2017 at 03:07 PM
0

Hi Ashwin,

Many Thanks.

1) How the Integration with S4 hana on cloud or on premise system can be done with Sap document centre which we can use for business application such as po, sales order etc.

2)Kindly suggest which Fiori app / componant we can integrate for building the custom fiori app or enhancing standard fiori app, If possible pl share the approach.

4) for my 4th query, i can see some standard fiori apps for business scienrio which has the attachment functionality, how we can use Sap document centre here.

Share
10 |10000 characters needed characters left characters exceeded
Ashwani Kumar Sharma
Mar 07, 2017 at 04:57 AM
0

Hi,

For integration scenario with PLM see these blogs:

All integration scenario's are mentioned here: https://wiki.scn.sap.com/wiki/display/ATopics/SAP+Document+Center+-+Integration+How-To+Guides

SAP Document Center provides a re-usable fiori UI which can be imbedded in other UI5 apps. See this for more details: https://help.sap.com/viewer/c5bc243e9e824373a5e8de7c37b1dee1/Cloud/en-US/6c23535de38f4e71bfff239ed5fb8fac.html

For your 4th query, can you name the fiori app and which screen. Then i can answer better.

Regards, Ashwani Kr Sharma

Show 8 Share
10 |10000 characters needed characters left characters exceeded

Hi Ashwani,

With regards to the above subject matter, we are currently doing PoC on the Document Center with SAPUI5/FIORI app integration based on the link you presented above.

We are presently stuck with an exception that is thrown when this line is executed: box.addItem(docCenterComponent);

The exception is thrown within the controller called: documentlist.controller.js (part of the 'mcm' module).

We believe that the "docCenterComponent" is not null or undefined but the "addItem" method of the VBox control is unable to add this component to itself and thus, the view is partially constructed and rendered as shown here:


Kindly help us

Thanks

0
Former Member
Bakau Onafuwa

Hi Bakau Onafuwa ,

Based on the error you are experiencing, I understand that the destinationPath might have been incorrectly configured.
Could you please verify if the destination passed in the component and mentioned in neo-app.json are same:

i.e demodestination in the sample snippets

docCenterComponent = factory.create({
                // required parameters
                type: "DocumentList”,
                destinationPath: "/demodestination",
                repositoryId: "[REPOSITORY_ID]",
                objectId: "[OBJECT_ID]",
                ...
            });

neo-app.json

...

{
        "path": "/mcm",
        "target": {
            "type": "destination",
            "name": "DEMO_DESTINATION",
            "entryPath": "/mcm"
        },
        "description": "Destination to SAP Document Center"
    },
        {
            "path": "/demodestination",
            "target": {
                "type": "destination",
                "name": "DEMO_DESTINATION"
            },
            "description": "Destination to SAP Document Center"
        },
...


Thanks,
Kamesh

0

Hi Kamesh,

We have done the configuration by the books.

We tried to debug the program from chrome with the following findings:

1. Exception is being thrown in the "load: function()" of the "documentlist.controller.js" within the "mcm" modules.

Because "u = t.getConfigurationProperty("/startId")" is undefined, then "u.displayPopup()" throws the exception.

The reference blog did not indicate what value should be set for "startId".

2. In the "Component.js" within the "mcm" module, we have this metadata being performed:

c.prototype.setStartId = function(n) {

this.setProperty("startId", n);

this.getModel("configuration").setProperty("/startId", n)

};

Do help us update the blog to reflect the the "startId" key, we have been on this PoC for well over 2 weeks.

Thanks.

loadfunction.png (31.8 kB)
componentjs.png (15.0 kB)
0
Former Member

Hi Bakau Onafuwa

1. startId is an optional parameter, it need not be defined and shouldn't be causing the problem. You may pass a child objectId and the Fiori Component would navigate to this child object on load(helpful for quick access).

Eg.

Repository

ObjectId (Parent)
 |
 +-- file 1
 |    
 +-- Dir (Child Object) //startId


2. The getRepository() call is failing which causes you to go into the fail block.This is occurring since the GET json call failed with a 404 as earlier mentioned.

Ideally this passes as shown below if the destination to Document Center i.e demodestination is correctly configured

you may verify your destination by hitting the destination URL, it needs to redirect to the Document Center instance as shown below if correctly configured.

https://webidetesting4639003-i309833trial.dispatcher.hanatrial.ondemand.com/demodestination

3. If you observe the redirection to SAP Document Center not taking place. please verify your demodestination configuration in SAP Cloud Platform Cockpit > Connectivity > Destinations


4. Once destinations are all in place, please verify the repostioryId and ObjectId being passed (mandatory parameters).

Hope that helps.

Thanks,
Kamesh

0

Hi Kameshwar,

Sincere thanks to you for your painstaking efforts; they have been very helpful in resolving our issues.

We have progressed passed the exception above; and what change did we make?

Answer: We now pass "/demodestination" as the value to the key "destinationPath" in the call "factory.create({.......})"; and refresh the browser cache to test. No value to the "startId" key. Like we expect, it does not matter the name of the "Destination" configured in the Cloud Platform for usage in "neo-app.json" of the FIORI apps.

Do confirm if the value "/demodestination" will be amenable to change when move to production environment.

Our current issue is with the Upload functionality (highlighted in the image below) of the component within the app which throws an exception viz:

Do help us check this please.

sdc-fiori.png (14.6 kB)
fileuploader.png (23.4 kB)
0
Former Member
Bakau Onafuwa

Hi Bakau,

Did you include sap.ui.unified in the UI5 bootstrap tag? e.g. below

<script src="/sapui5/resources/sap-ui-core.js" id="sap-ui-bootstrap" data-sap-ui-libs="sap.m, sap.ui.unified" data-sap-ui-theme="sap_bluecrystal"></script>

Best regards,

Bikash

0

Hi Bikash,.

I did further checks and discovered that the issue was coming from the server; it was throwing an exception because no value was passed for the argument "VersioningState".

Everything is working now.

Thanks to you and Kameshwar

0

Hi Bakau,

I am facing the same upload problem. What do you mean by passing the argument "VersioningState" ? Where shall I pass this value ?

Regards,

Mayank

0