Quantcast
Channel: SCN : Discussion List - SAP Fiori
Viewing all 1804 articles
Browse latest View live

Issues in Decoding and Storing a Base64 Encoded String of an Image in SAP

$
0
0

Hi All,
I am developing a Mobile App, where any picture i send from the Mobile Device to SAP comes in Base64 Encoded Format.
Now, when i decode it and pass the xstring to store the image. The image comes as a complete BLACK Picture.

 

IF o_mr_api IS INITIAL.

     o_mr_api = cl_mime_repository_api=>if_mr_api~get_api( ).

   ENDIF.

   CONDENSE mimepath.

   x = STRLEN( mimepath ) - 1.

   IF mimepath+x(1) NE '/'.

     CONCATENATE mimepath '/' INTO mimepath.

   ENDIF.

   CALL METHOD server->request->get_cdata

     RECEIVING

       data = lv_cdata.

  

   CALL METHOD server->request->if_http_entity~get_form_fields

     CHANGING

       fields = lt_query_params.

   READ TABLE lt_query_params INTO ls_query_params WITH KEY name = 'filename'.

   IF sy-subrc = 0.

     lv_filename = ls_query_params-value.

   ENDIF.

   IF lv_filename CS 'null'.

     CONCATENATE sy-uzeit '.png' INTO lv_filename.

   ENDIF.

   CALL METHOD cl_http_utility=>if_http_utility~decode_x_base64

     EXPORTING

       encoded = lv_cdata

     RECEIVING

       decoded = lv_decoded_xstring.

 

IF lv_decoded_xstring IS NOT INITIAL.

     l_content = lv_decoded_xstring.

     CONCATENATE mimepath lv_filename INTO l_url.

     TRANSLATE l_url USING '\/'.

     CALL METHOD o_mr_api->put

       EXPORTING

         i_url                     = l_url

         i_content                 = l_content

         i_dev_package             = '$TMP'

         "i_suppress_package_dialog = 'X'

       EXCEPTIONS

         parameter_missing         = 1        "i_new_loio = wa_file_loio-loio

         error_occured             = 2

         cancelled                 = 3

         permission_failure        = 4

         data_inconsistency        = 5

         OTHERS                    = 6.

     IF sy-subrc = 0.

       lv_json_output = 'The Photo was Uploaded Successfully to SAP'.

     ENDIF.

   ENDIF

 
CALL METHOD server->response->set_cdata( data = lv_json_output ).
.

 

 

 


Thanks
Sahil


SAP Fiori on Portals Issue

$
0
0

Hello Experts,

 

We have Fiori on Portals 7.4. When a user try to assign a Tile from Catalog to Homepage, it is giving error - Tile "tile" could not add group "Group".

From the Portal log's I see this below error message.

 

Error: Could not set Personalization Data - xsrfProtector.isValidXsrfToken returned false

No xsrf token found in the session associated with the request[com.sap.portal.prt.util.PortalServletRequestWrapper@4653d5a2].

 

Caused by: java.lang.RuntimeException: com.sap.portal.navigation.flp.pl.persistency.PersonalizationDAOException: Failed to save personalization data for key: User: XXXX. Personalization Data: DeviceType.Desktop

  at com.sap.portal.navigation.flp.pl.launcher.FioriLaunchpadPlUtilitiesManager.setPersonalizationDataForUser(FioriLaunchpadPlUtilitiesManager.java:60)

 

Some reason it is appending '#' at end of the URL. It is showing URL like - https://<>:<port>/irj/portal#.

 

Any suggestions on this issue?

 

Thanks,

Sri

On-Prem Fiori Launchpad Newstile empty URLs

$
0
0

Hi experts,

 

We have developed an on-premise launchpad with a newstile with the following appearance:

 

News1.png

News2.png

 

We want to be able to disable clicking when no URL or <link> tags are supplied in the rss feed. For example, we have hardcoded the following xml feed for testing:

News3.png(No URL is provided.)

 

However, we are still able to click the news item, which leads us to an about:blank tab.

 

Looking at the demo Cloud Launchpad version (https://www.sapfioritrial.com/sites?helpset=trial&sap-client=001), there is a NewsReader tile that has the behaviour we want (i.e. doesn't open a new tab when no URL is provided in the xml rss feed). How do we achieve the same results in our on-premise version?

 

Here are our system settings/ installed software:

News4.png

News5.png

 

Any guidance is appreciated!

 

Thanks,

 

Kylie

Fiori launchpad home screen is blank and couldnt load all catalogs

$
0
0

Hi Guys,

 

We have a new installed S/4HANA 1511 system and i have activated required services from /IWFND/MAINT_SERVICE, SICF.

 

 

i Couldnt display the file catalogs from the top right hand side dropdown.

 

How can i able to view all the available tiles and catalogs in the Fiori launchpad?

 

Do i need to add any role in PFCG, i have been assigned with SAP_ALL already.

 

Is it something that we have to activate the relevant services for all the fiori apps?

 

Please advise

 

Thanks

Open PO Approval Fiori App to specific PO

$
0
0

I would like to alter the PO Approval Workflow link so that it opens the specific PO approval item in the Fiori App, but I can't determine how to build the URL to do that.

 

For example, given a workitem where the PO is 4500000012, I would like to generate a link that will open the Fiori PO Approval app with that PO already selected, bypassing the master view altogether. Is this possible?

Activate O-Data Service for my app

$
0
0

Hi All,

 

I am new to Fiori so just starting with building my own launchpad.

 

I have configured the group/catalog in launchpad and I can see an app tile on the launchpad. However when I click on the app, I get the message "Cannot open APP, Try gain later". I read through the help and found that I need to activate O-Data service in front end server.

 

Problem is when i am running the transaction "/IWFND/MAINT_SERVICE" on front end server, I got the following message (check attached image):


Capture.PNG


 

 

Could you please let me know the reason of this error and what I need to do to resolve this.

 

Regards

Karan

Set Datepicker MaxDate at render

$
0
0

Hi Experts,

 

Can anyone give me some guidance on the best way to set the MaxDate value for a Datepicker that is added to a table as part of a model.

 

I need to set the MaxDate for an end date input field based on an employee type we get from a different function.

 

The xml, used for the datepicker in the table column is:

 

<DatePicker valueFormat="MM/dd/yyyy"

  displayFormat="MM/dd/yyyy"

  value="{path: 'cart>ValidTo',

            type: 'sap.ui.model.type.Date',

            formatOptions: {pattern: 'MM/dd/yyyy'}}"/>

 

 

Thanks!

-Kevin

Performance problem in fiori app "Approve Requests"

$
0
0

Hello,

 

we have performance problem with fiori application "Approve Requests" (CA_ALL_APV). For some users the application is not able to read selected workitem's detail because it falls down on timeout error. SAP NW Gateway sends request for workitem's data into backend system but the function module /IWWRK/WF_TGW_EXPAND on the backend side is not able to send response until 1 minute. After we increased value of timeout parameter on gateway we are able to  get workitem's detail but this is not permanent solution. Users can not wait 2 minutes for response of backend system.


I found out that problem is caused in method GET_TGW_WORKLIST of class /IWWRK/CL_TGW_WF_USER_INBOX on backend. There is read all workitems assigned to current user included completed workitems. The subsequent filtering this workitems takes too much time. Therefore the problem affects only users who had assigned large number of workitems in the past.

 

Do you have any experience with this issue? Do you know any relevant SAP note?

 

Thanks in advance for any advice!

 

Zbynek


Rendering Issue in view after Inter app Navigation

$
0
0

Hello Folks,

 

Need your help and suggestions here.

 

I am having two custom fiori like application , where i am doing inter app navigation between two application.

 

My first application is basically a search app where , the user can set the search criteria and on clicking on search button the list of related records gets binded into the sap.m.table. Screen shots mentioned below

 

search app.JPG

on clicking the record second application gets called . screen shot mentioned below:

secondapp.JPG

There is a nav back button which will take me to the first application from where i landed to this page.

 

Now the issue what i am facing is that if i select the Order id from the sap.m.select  in my search criteria , an oData Call is being triggered and the  second cell of the select criteria should get binded. I checked during debugging that all is going perfectly and the cells are getting binded but in my screen its not visible.

 

Basically i am facing the rendering issue after inter application navigation. If i use only the first application and no inter app navigation takes please then its works perfectly.

 

The same code gets triggered for both  scenario but  after doing  inter app navigation the rendering issue takes place.

 

Your help is really appreciated.

 

Thanks,

Vikash

Fiori Launchpad not loading From SAP Enterprise Portal using IE

$
0
0

Hello Friends,

 

We are facing an issue while trying to access SAP Fiori Launchpad from Enterprise Portal (iView) having all configurations completed using the SAP Help https://help.sap.com/saphelp_nw74/helpdata/en/4d/fc657c6af64172bee7a140d616902b/content.htm .

We faced an issue with chrome and IE both - After checking the errors in Chrome we found click-jacking issue. We resolved it through following the KB Note No. 2057847 and it is fixed in Chrome only.

 

However in IE we are facing issue where the fiori launchpad still loading and nothing is being displayed and no errors.

 

IE Issue.JPG

 

was wondering if anyone has faced similar issue and has any valuable suggestion / advice?

It would be very much appreciated.

 

Best Regards,

Material - displayFactSheet - S/4HANA1511 FPS01 - navigation to app does not supply leading zeros on material number

$
0
0

Hello,

 

I am running S/4HANA 1511 FPS01.

 

When I'm in the "Manage Sources of Supply" app I can see a list of Materials for the various sources. Clicking on them fires up the "Material displayfctSheet" app (which had to be manually configured in the Launchpad Designer).


The ICF node for the app /sap/bc/ui5_ui5/sap/md_products1.


The OData service is located at /sap/opu/odata/sap/cb_material_srv


Both of these are active and working.


The problem

When I click on a material in any other app, and it navigated to teh Material factsheet app an OData request is made for the Material details

The URL for the request looks like this:


/sap/opu/odata/sap/CB_MATERIAL_SRV/Materials('20072794')


This request return no data (and empty structure, not an error).


HOWEVER if I modify the URL to bring the ID length up to 18 characters with leading zeros ( 0s ) I get back the expected data.


Either the ID is being passed "wrong" from the source app, it should be passed with leading zeros, OR the OData service should be interpretting and converting the ID to the appropriate length internally, but isn't.

 

Has anyone seen this and found a fix?

 

Thank you,

Lindsay

What is the best strategy for having non S/4 HANA in the same Fiori Launchpad?

$
0
0

Hi all,

 

We are implementing S/4HANA apps and our client want to have some non S/4HANA apps as well, which are not yet available in S/4HANA. We can create another launchpad for the non S/4HANA apps but he wants only ONE launchpad as single point of entry for all apps.

What are you think, is the best way to implement it? Any ideas?


Many thanks!

HELIUM Dispatcher?

$
0
0

I've seen reference to HELIUM Dispatcher in some of the architecture diagrams from Vitaly, but have not found any information about what it is and why it is needed. Does someone have a link or a doc that explains what this is?

opening paystub as .pdf shows wrong tab name in Fiori

$
0
0

Hi experts,

 

when opening my pay stub/pay slip as .pdf in FIORI the new tab that opens is named "$value". but I would like to have the name of the selected pay slip in the tab.

1.

...choose the button "als PDF öffnen"

 

2. pdf is opened correctly but the tab-name above is "$value".

 

Thanks for support

 

regards,

Georg

SAP WebIDE error when deploying to ABAP Repository

$
0
0

Hello Experts,

 

Previously, whenever I have made changes to one of our Custom Fiori Applications in the SAP WebIDE, I have pushed them to our on-premise system by using the Deploy to SAPUI5 ABAP Repository function. I am currently training someone new on deploying to our repository, and whenever I have them select the same option, an undefined error appears (with the message "The request to retrieve the transports of the selected application has failed with the following error: undefined") and prevents us from continuing to push the changes to our on-premise system. I have checked and the user has the same roles in SU01D that I do in the target system, but while I am able to create a new transport to add the changes to, they continue running into this error. Is there a configuration step that I have missed?

 

This is what the other user sees when they attempt to deploy:

wcrowe_error.jpg

 

This is what I see when I attempt to deploy:

ychen_nonerror.jpg

 

Thanks in advance,

 

Ying


Failed to load Component.js: 403 - Forbidden - Fiori App Error

$
0
0

Hi All,

 

 

I am working on "MyOpportunity" Fiori App Customization. The Standard Application was working fine. But all of a sudden both the Standard and Customized Fiori "My Opportunity" Application is throwing an error like

 

GET https://webidetestingcrmopprtntyextension-xxxxxx.dispatcher.hanatrial.ondemand.com/sap/bc/ui5_ui5/sap/CRM_OPPRTNTY/Component.js 403 (Forbidden)


Uncaught Error: failed to load 'cus/crm/opportunity/CRM_OPPRTNTYExtension/Component.js' from ./Component.js: Error: failed to load 'cus/crm/opportunity/Component.js' from /sap/bc/ui5_ui5/sap/CRM_OPPRTNTY/Component.js: 403 - Forbidden



 

 

Please help me in resolving this issue.

 

 

 

 

Thanks,

Divya

MyInbox: Task description not visible.

$
0
0

Hello Fiori Experts.

 

I have searched the forum, but apparently no one has experienced this error. I hope my post will reach someone who can give me a hint to what can be wrong.

 

Fiori MyInbox shows the tasks that I have in the backend inbox correctly, but the "Info" tab where the task description should be, is empty, meaning no task description as it can be seen in the backend. If I click on another item in the left pane to view another task, a message on the botton of the screen saying "task no longer exists in your inbox" is shown. I wonder if this can be related to the description not being shown. The other tabs, "Attachments", "Related Objects" and "Task Histoty" all contain the correct contents.

 

I have had a look at /IWFND/ERROR_LOG in the backend and can see the message "Invalid or no mapping to system data types found" exactly at the same time when I try to access the "Info" tab.

 

Another piece of information. I have implemented BAdI /IWPGW/BADI_TGW_TASK_DATA, which gives the possibility to change the task description, and I am able to see the task description in variables CV_DESCRIPTION and CV_DESCRIPTION_HTML as they are in the backend task inbox. But nevertheless, nothing is displayed in "Info" in MyInbox.

 

 

Anyone would be able to give a hint.

 

Thanks in advance.

 

Lande

Add external Javascript Library/Bootsrap to Fiori App

SAP Fiori on Portals Issue

$
0
0

Hello Experts,

 

We have Fiori on Portals 7.4. When a user try to assign a Tile from Catalog to Homepage, it is giving error - Tile "tile" could not add group "Group".

From the Portal log's I see this below error message.

 

Error: Could not set Personalization Data - xsrfProtector.isValidXsrfToken returned false

No xsrf token found in the session associated with the request[com.sap.portal.prt.util.PortalServletRequestWrapper@4653d5a2].

 

Caused by: java.lang.RuntimeException: com.sap.portal.navigation.flp.pl.persistency.PersonalizationDAOException: Failed to save personalization data for key: User: XXXX. Personalization Data: DeviceType.Desktop

  at com.sap.portal.navigation.flp.pl.launcher.FioriLaunchpadPlUtilitiesManager.setPersonalizationDataForUser(FioriLaunchpadPlUtilitiesManager.java:60)

 

Some reason it is appending '#' at end of the URL. It is showing URL like - https://<>:<port>/irj/portal#.

 

Any suggestions on this issue?

 

Thanks,

Sri

Creating a BusinessObjects destination within HCP to use for Fiori App?

$
0
0

Hello all,

 

Is it possible to create an oData destination within HCP that would connect to a BusinessObjects 4.1.  The purpose of this exercise is to be able to read data from BusinessObjects into a Fiori Launchpad on HCP.

 

I believe I've gotten the destination within HCP to be correct (http://server address:port/biprws).  However, when creating the Fiori app, I'm stuck at the "service url".  Nothing I enter seems to work.

 

Any help would be appreciated.

 

Thanks,

~Adam

Viewing all 1804 articles
Browse latest View live


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