on 08-12-2015 5:30 AM
Hi,
I am new to Fiori ,I have a requirement to display an image as thumbnail on Fiori Apps .I have created a document in CV01N .I tried using CVAPI_DOC_VIEW but this opens the image in image viewer.I also used C_DESK_DOC_GET_URL which internally calls SDOK_PHIO_GET_URL_FOR_GET to get the URL but the URL it returns is SAPR3://SAPR3CMS/get/001/DMS_5FC1/FA163EDF73161EE58DB6A68453C5D7B8/images.jpg .I have no idea how to use this URL to display the image on Fiori App.
Questions:
1.Is my approach correct to store the image in DMS and use it on Fiori App?
2.How to retrieve the image stored in DMS and display on fiori app,explanation with piece of code will be really helpful?
Regards,
sujeet
Hi Sujeet,
I searched for useful Fiori related information as this is one of the first tickets on Fiori and DMS. During this search I found the app catalogue which can be accessed at http://help.sap.com/fiori_bs2013/helpdata/en/ed/e1e153ddf60466e10000000a423f68/frameset.htm .
Here I think that the following apps could be useful for you:
- Document Info Record: http://help.sap.com/fiori_bs2013/helpdata/en/55/789653c4833d27e10000000a44538d/frameset.htm
- Document Info Record Structure: http://help.sap.com/fiori_bs2013/helpdata/en/f7/059653d0c4f763e10000000a4450e5/frameset.htm
I hope that this information could be useful for you.
Best regards,
Christoph
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Christoph,
Thanks for your reply,my requirement is to get the image from the content server via browser using HTTP URL to use it in UI. I used the function
SDOK_PHIO_GET_URL_FOR_GET which has two importing parameters
CALL FUNCTION 'SDOK_PHIO_GET_URL_FOR_GET'
EXPORTING
object_id = lf_phio
* REQUESTED_COMPONENTS =
* CLIENT = SY-MANDT
* standard_url_only = 'X'
* DATA_PROVIDER_URL_ONLY =
* URL_LIFETIME =
IMPORTING
urls = lt_url
document_url = lf_doc_url
EXCEPTIONS
not_existing = 1
not_authorized = 2
no_content = 3
bad_storage_type = 4
no_urls_available = 5
OTHERS = 6.
when I use this lt_url gives SAP internal URL which cannot be used in browser whereas lf_doc_url gives HTTP url . When i use this http url in browser it shows 'SSF error: Decoding not possible' . I even used CALL_BROWSER function to call lf_doc_url but still the same error appears.
Can you please guide me how can i get the image from DMS through the browser so that i can consume in my UI.
Regards,
Sujeet .
User | Count |
---|---|
99 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.