Quantcast
Channel: SCN : All Content - SAP Enterprise Portal
Viewing all 3876 articles
Browse latest View live

Using the broadcast messaging (BCM) client side API

$
0
0

The portal broadcast messaging feature is provided with an out-of-the-box sample UI.

Most customers would want to customize the UI to fit their framework page.


You can find more on the BCM here:

New Development: Broadcast Messages in SAP NetWeaver Portal


If you wish to use the BCM out of the box sample UI you will need to add it to your classic/afp framework page,

The application can be found under Portal Content>> com.sap.portal.broadcast.message.framework >> Sample_BroadcastMessageIview

 

 

In order to allow this we have opened a client-side API that allows developers to create their own iView and interact with the BCM service.

 


Prerequisites:

  1. You have installed SAP NetWeaver Portal (EP) 7.31 SP11 or above.
    • You have created a delta link for the Broadcast Message Framework iView in your framework page and set it to visible. This iView is located under Portal Content>>Portal Users>>Standard Portal Users>>iViews >>Broadcast Messages
    • BroadcastMessageFramework.png
  2. You have enabled the BCM service by setting the BCM is active property to true.

                bcmService.png

 

The API

 

 

The client side API is under the object window.BCM.API and contains the following methods:

 

 

isPollingActive() - this method checks if the BCM polling mechanism is active. If the mechanism is not active, the broadcast messages will be taken from the server only once.

 

 

getPollingIntervalTime() - This method returns the number of minutes between each request to the server.

 

 

getActiveMessagesForCurrentUser(success callback function, fail callback function) - This method gets all of the user’s broadcast messages (according to the user’s roles and groups) and return them to the success callback function in a JSON format (if successful) or returns a JSON with the status "fail".

 

 

Each message in the JSON has the following attributes:

    • messageId - The message ID, which is a unique ID for the message in the server.
    • messageBody - The actual message body.
    • isRead - A boolean stating if this message has already been read by this specific user.
    • isPriority (added in SP12) - A boolean that indicates whether this message has a higher priority.

 

setMessageAsRead(message ID, callback function for status) - Sets the message state to "already read" for this user in the UCD.

The callback function will receive a JSON with a "success" or "fail" status.

 

 

Example:

 

window.BCM.API.getActiveMessagesForCurrentUser(onMessagesReceived, onNotMessagesReceived);

 

   function onMessagesReceived(messagesJSON){    //check that the actual size of the messagesJSON is more than 0.    if(messagesJSON.length > 0)    {     var newMessagesArrived = false;     for(var i = 0; i < messagesJSON.length; i++)     {      createMessage(messagesJSON[i].messageId, messagesJSON[i].messageBody, messagesJSON[i].isRead, messagesJSON[i].isPriority);      // check that this message was not already read and update the new messages flag.      if(!messagesJSON[i].isRead)      {       newMessagesArrived = true;      }     }    }   }

------------------------------------------------------------------------------------------------------

 

       window.BCM.API.setMessageAsRead(messageId,function(data){        // check if the operation has failed or succeeded.        if(data.status !== "success"){         if(window.console){          window.console.log("couldn't set message: "+data.messageId+" as read");         }        }        else{         // if operation succeeded mark message as read in the user interface         changeMessageBackground(messageId);        }       });

If you would like to learn more regarding the BCM API please ask for information in the comments and I will try to add it to the article.

 

Saar


Feedback on EP SAP NOTE1995970

$
0
0

Dear,

 

Do you upload patch for Patch for PORTAL BASIS 7.40 SP04  with urbrowser.jar?  where is it?

 

 

Thanks

Can't select any value in radio to query report.

$
0
0

Dear Support,

 

About BI-BASE-B version is 1000.7.40.2.20.20130621014800 in portal,when we select value in radio to query report which lend to white screen,so i think that may be issue.But if i set manual value to query report,it is fine.So Connection is  available for system NBPCLNT800  in portal.

 

error msg:

#2.#2014 03 30 20:16:38:377#+0800#Error#/Applications/BI#

#BW-BEX-ET-WJR#sap.com/com.sap.ip.bi.base#C000C0A8183501B60000000300007621#118639550000000004#sap.com/com.sap.ip.bi.web.portal.integration#com.sap.ip.bi.base.portal.connection.Localization#SYSADM#26##100FCD4DB80411E39272000007124BBE#113b773bb80511e3c097000007124bbe#113b773bb80511e3c097000007124bbe#0#Thread[HTTP Worker [@847096065],5,Dedicated_Application_Thread]#Plain##

BI exception with class "ConnectionException" and message "Connection is not available for system NBPCLNT800". See default trace for log ID "null".#

 

Thanks

Blank WPC page on Netweaver Portal 7.3

$
0
0

Hi Experts

 

We are running a Netweaver Portal in a cluster with 4 server instances and a web dispatcher in front. The welcome page is developed in WPC (Area Management), and sometimes we see a blank welcome page on one of the instances, after a short while, the page is fine again.

The server instance, with the problem, is not overloadet, so the webdispatcher redirects the users to that instance and they see a blank page.

 

Has anybody experienced this problem and have found a solution?

 

We are running Netweaver 7.3 SP09

 

 

Thanks

 

Best regards,

Christian

Unable to display SAP BOBJ iview in Portal Content Area in SAP EP7.3

$
0
0

Hi Experts,

 

I have created iview with template name SAP BusinessObjects Document List Viewer & system name property is SAP_BOBJ & Launch new window property is 'Display in Portal Conent Area'. While I was used to checking preview option with in iView, it connected to BO system successfully. An obstacle started from here as I have added iview to Role & assigned to specific user & tested then i has not displayed in portal content area. It overhidden & connected to BOBJ system directly & portal system is not apprearing.

 

I'm expecting that it would be displaying with in portal content area.

 

Please help me how to resolve this issue.

 

 

Thanks in advance.

 

 

Regards,

Venkatesh

custom message for dispatcher running but no server connected CE7.31

$
0
0

Hi All,

 

We are on CE7.31 server and have requirement to configure /show custom html page /message when portal is down .

 

Query: How to achieve same?

 

I have got this sap note reference 1718909

it says com.sap.portal.runtime.dispatcher.ear (part of EPBASIS.SCA) needs to be adjusted in order for custom error handling to be added for the portal


Need exact location to download same from server ?

 

Also any other way to achieve same like I modified http error page layout by creating a custom properties file.

 

 

Regards,

Madhvika

Default Tab Pesrsonalization through Code

$
0
0

Hi All,

 

We have a requirement wherein user can set/choose his default tab by radio button selection (jsp ).Radio buttons with Role names.

Client doesn't want to go by standard drag and drop functionality.

 

Please guide how we can achieve this.

 

Regards,

Madhvika

Single SignOn in webdynpro ABAP

$
0
0

Hi,

 

I am pretty new in Netweaver Portal side and recently got an requirement from a customer for single Sign on:

 

Requirement -

 

We already had a SSO set up with MS Windows with SAP Portal. Hence in order to open SAP Portal, user has to use his Window's credential (Usually Company's own network credentials) instead of SAP credentials.

Now customer also has another legacy portal where  client has similar SSO set up.

 

Recently we had implemented SAP Learner Portal (SAP LSO Solution) and now user should directed to legacy portal only when he/she clicks a button in SAP portal's application (Webdynpro ABAP).

 

Therefore, we need to implement same SSO inside Webdynpro Action. Please suggest me what should be our approach of doing so.

 

Will APIs like IF_WD_PORTAL_MANAGER be handy ?


Issue with Iview Analyze

$
0
0

Hi Experts - I'm just trying to create a simple page with 3 i views which display the PDF documents.

 

I used KM Document I View template and the preview works perfectly.

 

When i add them to a page, sometimes it display them properly and sometimes it throws exceptions.

 

So i tried using the "Analyze" option on the i view and enabled all the categories. When i execute, i'm getting the below error.

 

Iview.png

 

Errors in NWA when i access the page -

 

com.sap.portal.prt.broker.PortalModuleNotFoundException: Could not retrieve portal application ~0_files

at com.sap.portal.prt.broker.PortalAppBroker.ensurePortalModuleIsStarted(PortalAppBroker.java:640)

at com.sap.portal.prt.broker.PortalAppBroker.getPortalModule(PortalAppBroker.java:319)

at com.sap.portal.prt.component.PortalComponentContextFactory.createPortalComponentContext(PortalComponentContextFactory.java:140)

at com.sap.portal.prt.component.PortalComponentContextFactory.getPortalComponentContext(PortalComponentContextFactory.java:82)

at com.sap.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:442)

at com.sapportals.portal.prt.connection.ServletConnection._handleRequest(ServletConnection.java:224)

 

 

 

--------------------------------------------------------

 

java.lang.NullPointerException: while trying to invoke the method java.lang.Object.equals(java.lang.Object) of a null object loaded from local variable 'design'

at com.sapportals.htmlb.enums.TrayDesign.getDesignClass(TrayDesign.java:69)

at com.sapportals.portal.pb.PageUtilHook.onComponentBegin(PageUtilHook.java:125)

at com.sapportals.portal.pb.PageUtilHook.doDocumentHook(PageUtilHook.java:77)

at com.sapportals.portal.pb.PageUtilHook.doDocumentHook(PageUtilHook.java:46)

at com.sapportals.portal.pb.fpm.FPM.doDocumentHook(FPM.java:222)


Has anyone faced such issues? The Analyze option works perfectly?


I noticed some difference with KM document template and i created the thread for the same.. 

KM document Iview template - Issues after upgrade



Please share your thoughts..

 

Thanks for your time..

remove details option in Tool area

$
0
0


Hi team,

 

We are in EP 7.31 SP7, i am trying to hide the Details option in Options in Ajax Tool area.

 

1. i triied making invisible all options (personalize, open in new window etc) from Framework configuration in Content administration, but there is no option to hide for details.

 

2. i tried hiding it from the iview Ajax tool area iview, but the details option is not hiding,

 

had anyone faced this issue<? please suggest

 

regards,

chandra

Featured Content for SAP NetWeaver Portal

$
0
0

Subscribe to New SAP Portal and HANA Cloud Portal Newsletter

Subscribe to receive the quarterly SAP Portal e-mail newsletter. Each issue contains valuable information about SAP Portal's new portfolio, including SAP HANA Cloud Portal, Cloud for Service, SuccessFactors Extension Platform, Mobile Portal and Fiori Launchpad. The first edition is planned to be published on April 14. 1 April 2014

 

Join SAP Portal Movie Challenge: Share Your SAP Portal Scenario Story

We have started our new SAP Portal movie challenge on SCN about 6 weeks ago, and today I would like to ask you to share your SAP NetWeaver Portal scenario story with us. This questions aims to discover how SAP customers, partners, and consultants use SAP Portal: what were the projects you worked on? What Portal scenario was implemented? How did it solve your problems, what were the values of the solution for your customer, for your company? Tell us about your challenges, "pain points," and the ways in which SAP Portal and its product components helped to resolve those challenges. 28 March 2014

 

Announcement of SAP Portal and HANA Cloud Portal Gamification Movie Challenge

Today we start our first SAP Portal and HANA Cloud Portal gamification campaign on SCN. We would like to invite you to join this challenge: Play the role of a movie jury member, review  existing SAP Portal/HANA Cloud Portal movies and share with us your review  expertise.  Or play the role of a movie director and producer: this is the chance for you to produce your own SAP Portal/HANA Cloud Portal movie story and share your product expertise. 20 February 2014


New SAP Portal Roadmap Presentation

This presentation gives an overview on the Portal portfolio and also on future directions of SAP Portal in direction of Cloud and HANA. 11 February 2014

 


See more Recently Featured Content in this space.

while uploading excel need to show progress bar

$
0
0

Hi all,

 

Scenario : I have to display the progress bar while uploading the Excel sheet data.

 

I have created JSPDynpage component  and created upload button with HTMLB tags.

 

 

any suggestions how to get it in SAP EP component.

 

 

 

Thanks,

Prasad.

iview error using SAP BusinessObject Document Viewer Template

$
0
0

Hi Guys,

 

While creating the iview as SAP BusinessObjects Document Viewer Template getting the error as "Error component failed , reason : Access is denied: com.sap.businessobjects.iviews.SAP_Document_Viewer_Wizard - user: test1, Original Exception : Access is denied:com.sap.businessobjects.iviews.SAP_Document_Viewer_Wizard - user: test1"

 

Please check the screen-shots.

 

T1.JPG

T2.JPG

 

 

Could anybody suggest how to get rid off this error.

 

Thanks & Regards

Venkatesh

How to... UI Theme Designer - Migration

$
0
0

Migrating from an old theme version to the new UI Theme Designer is new for me. Previously I had the chance to start from scratch and build a new theme from the sap_goldreflection. Now my customer has a current theme and I need to migrate it from an 7.30 SP08 to SP10 version.

 

This blog will describe the step by step instructions I followed.

 

1) Backup old theme

Since I have some CSS hacks in the old theme, I am not convinced these hacks will be migrated as well. So before starting, I have copied the old portal theme - even before the technical upgrade - and saved it locally (twice).

 

It is important that you make a local copy before upgrading / activating the new UI Theme Designer! Otherwise migration will fail.

 

 

2) Write down all CSS hacks

Now I need to know which elements are not standard (e.g. the famous css hack in the old theme studio => add a semicolumn and add new css styles to the element).


If you don't have CSS hacks, just proceed with step 3.

 

Screenshot - 1-4-2014 , 9_29_22.png

In this example the border-width of every iview is 10 pixels and has been added to the definition of the borders color (#CCC).

 

I am not sure if these hacks will survive the migration, so I need to write them down and remove them. I have created a folder with the old theme in it. I have unzipped the theme.  If you unzip/zip it often, check this blog: Tired of zipping / unzipping portal theme?

 

Now go to the folder UR and open the default.properties. This file has all the definitions in it for unified rendering (UR) elements. Search for a semi-column for any css hacks. In my example you will see a lot of hacks

 

Screenshot - 1-4-2014 , 9_43_46.png

 

Do the same for the portal elements: open the portal folder and the default.properties. Now I know all the elements that might fail during migration. To be sure I will remove them all!

 

After doing this I will zip the theme.

 

Upload the portal theme again in the portal. After a successfull import, export it again. Now you are ready for the upgrade.

 

 

3) Upgrade the portal and enable the LESS functionality

Make sure you have the latest patch levels for EP_BASIS. Enabling the lafservice is something I did before -> How to... UI Theme Designer - Installation

Don't forget to restart the portal.

 

4) Check if UI Theme Designer is working

Login to the portal and go to Content Administration > Portal Display. The UI-themedesigner should be visible.

 

Screenshot - 1-4-2014 , 10_07_55.png

 

5) Migrate the theme

Go to System Administration > Transport > Transport themes.

Select your changed portal zip file and upload it.

 

2014-04-01 10_35_16-Transportmotieven - SAP NetWeaver Portal.png

 

Please note: this takes a while - in my case several minutes!

 

 

Now open the Theme Designer and your theme should be listed. Happy branding!


/*

Noel Hendrikx - SAP Portal consultant @ Peppie Portals.

Specialized in Corporate branding SAP Portal / Adobe Interactive Forms.

 

UI Theming blog series

Portal theming - also waited a couple of years?

How to... UI Theme Designer - Installation

How to... UI Theme Designer - Migration

How to... UI Theme Designer - Locating elements

How to... UI Theme Designer - Transportation

 

 

Other blogs:

Tired of zipping / unzipping portal theme?

Tips for the Portal Content Studio

DSM Terminator and popup blockers (or not)

My best development friend - Autoresponder FTW

/*

Spnego with Different SAP username and AD username

$
0
0

Hi, I am working to configure SSO between Portal and AD. SSO works fine when username are same in Portal and AD with Mapping as "Principal Only and Logon id". Now we have users which have different SAP user and AD user. We are working to maintain an attribute in AD for SAP username. But i am not sure of the user mapping that will be used. PS - I am using New Spnego as my Portal version is higet then 7.01 SP10 Thanks Manish


Material number detail ot displaying in portal.

$
0
0

Hi,

 

 

As a administrator when i selecting the particular material number and
clicking on search it displaying the detail but same material number detail is
not displaying certain portal end user.

 

 

Someone can provide the region and solution for the same.

 

 

  1. Thanks.

EP7.0 BI7 Report Export to excel - unable to read file

$
0
0

Hello

we have a EP7.0 portal that calls a BI7.0 BW report.

Once the report is displayed and we select "export to excel" a pop up comes up and if we select "open" it calls MS Excel but then a pop up shows inside excel - "unable to read file".

This also displays if we save the file locally then try and open it.

 

Our Excel 2003 application is running on a citrix desktop.

 

any help or ideas?

Simon.

Difference between IPortalComponentRequest and Http Request

$
0
0

Hi all ,

 

Can any body explain me what's the difference between IPortalComponentRequest and Http Request.

 

Regards

Prasad

Can we Deploy EC 3.0 on NW Portal as per PAM without composite environment

$
0
0

Hello,

 

I have to deploy Environment Compliance 3.0 business package on Portal. Can it be deployed on NW Portal as guide only says that we require NW CE environment to deploy EC 3.0.

 

 

Even the PAM says that it's possible -

 

ScreenHunter_01 Apr. 02 14.50.gif

 

 

 

But Guide only point to NW CE-

 

ScreenHunter_02 Apr. 02 14.52.gif

 

I have checked below thread as well where Murali Shanmugham confirms the same thing but I still thought to reconfirm if EC 3.0 can be deployed on Netweaver Portal.

 

http://scn.sap.com/thread/3311808

 

Thanks,

Saurabh

Default Tab Pesrsonalization through Code

$
0
0

Hi All,

 

We have a requirement wherein user can set/choose his default tab by radio button selection (jsp ).Radio buttons with Role names.

Client doesn't want to go by standard drag and drop functionality.

 

Please guide how we can achieve this.

 

Regards,

Madhvika

Viewing all 3876 articles
Browse latest View live


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