Thursday, September 25, 2014

Process to setup SAP Lumira Data Access Extensions

This is beginner's guide to Lumira Data Access Extensions

What are Data Access Extensions (DAE) for SAP’s Lumira?

Simply they are self-contained console applications that present Lumira data from data sources that Lumira currently cannot connect to. Though Lumira can connect to many different databases right-out-of-the-box there are other data sources out there that it currently does not natively connect to. For example you may have a proprietary in-house database, open source system, online service, plain text data or something unique that it would be useful to have Lumira connect to.

What does the DAE have to do?
As mentioned it is a console application. Unlike other types of data connectors or plug-ins they are not loaded and kept in session. They are executed each and every time they are needed. The DAE at minimum has to:
  1. Return a block of data that describes the format of the data being returned.
  2. Append to the data format block any information or variables that have to be persisted if needed. Remember DAE are executed every time, so variables, like a username or password would be lost between data refreshes. This block is used by Lumira to send these variables back to the DAE so user does not need to be prompted for this information again.
  3. Return a block of CSV data.
  4. Respect the command line parameters sent to it by Lumira such as the action required and max row count requested.

How to enable Lumira to make use of DAE:

Lumira will not make use of DAE, you will need to enable this functionality by:

  1. In C:\Program Files\SAP Lumira\Desktop, open the SAPLumira.ini file.
  2. Add the following entries to this file and save it:

    -Dhilo.externalds.folder=C:\Program Files\SAP Lumira\Desktop\daextensions
    -Dactivate.externaldatasource.ds=true
  3. Create the folder "C:\Program Files\SAP Lumira\Desktop\daextensions"

The next time Lumira is opened it will search the daextensions directory for subdirectories containing DAE executables and present them to you under the item External Datasource in the New Dataset dialog.

 Parameters that Lumira sends to the DAE?

  • mode : This will either be preview, refresh or edit. Preview is used when first obtaining the data, before designing visualizations. Refresh is for
    obtaining the full dataset and edit is when the user selects Edit from the Data menu.
  • size : The max number of rows to return back. Typically this is used for the preview and edit. A value of 0 means to return the whole data set.
  • locale : The language locale being used.
  • params : A semicolon delimited line that contains name value pairs describing the format of the CSV data and any other data you wish Lumira to persist. For example:
csv_separator=,;csv_first_row_has_column_names=true;csv_trim=true;row_limit=0;csv_encoding=windows-1252;csv_date_format=yyyy-m-d;csv_number_grouping=,;csv_number_decimal=.;


Actual work flow

The first and most important workflow is adding a new dataset. This happens when the user creates a new document or adds a data set to an open document.

workflow 1.PNG
When the user selects to refresh from the data menu Lumira starts on step 3 in the above diagram. When the user selects Edit from the data menu the
process is the same as the above diagram except that the mode in step 1 is now edit, and the params are populated:

workflow 2.PNG
  Note: Process flow diagrams are not my strong suite

The DAE is only open until it is finished returning the data to Lumira, simply if your DAE does not stop executing, Lumira will wait until it deems a database time out has occurred and the connection will fail. This means that best practices would be to open your connection be it to a server or a stream, retrieve the data, output the data and close your connections and then your application.


CreatingData Access Extension For Lumira


Please follow the link below

http://scn.sap.com/community/lumira/blog/2014/09/12/creating-my-first-data-access-extension-for-lumira

Tuesday, September 23, 2014

Business Objects Barcode setup for webi and crystal reports

Copy custom fonts to All APS servers installed or respective servers where APS installed and also while using on Webi use * before and after the Value.

We have seen issues on Crystal and this going to fix in SAP BOBJ Business Intelligence Platform 4.1 SP03 Patch 5

1. To use locally,  add the fonts locally to Control Panel\All Control Panel Items\Fonts

2.  Go to C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\win32_x86\fonts

on servers where ever you installed BO go to that. If it's windows

\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\win64_x64\fonts

and edit fontalias.xml

In terms of the Free 3 of 9 Extended font, the FONT NAME parameter should be changed to the same value as the Title of the font file. 

  <FONT NAME="Free 3 of 9 Regular">
    <FONTFAMILY PLATFORM="ttf" NAME="Free 3 of 9">
      <FONTATTRIBUTE BOLD="false" ITALIC="false" LOGICAL="Free 3 of 9" PHYSICAL="FREE3OF9.TTF"/>
    </FONTFAMILY>
    <FONTFAMILY PLATFORM="win" NAME="Free 3 of 9"/>
    <FONTFAMILY PLATFORM="java" NAME="Free 3 of 9"/>
    <FONTFAMILY PLATFORM="html" NAME="Free 3 of 9"/>
  </FONT>


<FONT NAME="Free 3 of 9 Extended Regular">
    <FONTFAMILY PLATFORM="ttf" NAME="Free 3 of 9">
      <FONTATTRIBUTE BOLD="false" ITALIC="false" LOGICAL="Free 3 of 9" PHYSICAL="FRE3OF9X.TTF"/>
    </FONTFAMILY>
    <FONTFAMILY PLATFORM="win" NAME="Free 3 of 9"/>
    <FONTFAMILY PLATFORM="java" NAME="Free 3 of 9"/>
    <FONTFAMILY PLATFORM="html" NAME="Free 3 of 9"/>
  </FONT>

Friday, September 12, 2014

Timeout session for Application Server on Business objects or 4.1 Tomcat

To make the changes to timeout for laumchpad/infoview

there will be XML file called web under

note: By default, it will be 10 mins.

E:\webApps\Tomcat7\webapps\BOE\WEB-INF



       <session-config>
        <session-timeout>20</session-timeout>
    </session-config>

</web-app>

Note: Before you make any changes, always take a backup of the file you like to change

Custom configuration files on Business objects Windows the

Add custom configuration files to the <BOE_Install_Dir>\<Enterprise_DIR>\warfiles\webapps\BOE\WEB-INF\config\custom

E:\webApps\Tomcat7\webapps\BOE\WEB-INF\config\custom

folder, and then run wdeploy. Include only properties that you want to customize in the file; do not copy all properties from the associated default properties files.

Note: Adding customization files directly to the web app server and running wdeploy removes the files.


DO NOT MODIFY FILES IN THIS FOLDER! (customizations)

E:\webApps\Tomcat7\webapps\BOE\WEB-INF\config\default

To customize settings in any of these files, create a new file in <BOE_Install_Dir>\<Enterprise_DIR>\warfiles\webapps\BOE\WEB-INF\config\custom and run wdeploy. Only changes in the custom directory will be maintained over patches. The new file has to have the same file name as the one in this folder and shall only contain the properties that you would like to customize.

Where to make any customizations:

BIlaunchpad.properties:

app.name= BI Development
app.name.greeting= BusinessObjects Development
app.name.short=Development - BI LaunchPad
app.custom.product.name=Company name
authentication.default=secWinAD
authentication.visible=true
cms.default=@servername.company.net:6400

sso.types.and.order=vintela

CMCApp properties:
authentication.default=secWinAD
authentication.visible=true
cms.default=@servername.companyname.net:6400
cms.visible=true

globalproperties:
sso.enabled=true
siteminder.enabled=false
vintela.enabled=true
idm.realm=company.NET
idm.princ=instance name
idm.allowUnsecured=true
idm.allowNTLM=false
idm.logger.name=simple
idm.keytab=C:/Windows/bossoD.keytab
idm.logger.props=error-log.properties

Opendocument properties:
authentication.visible=true
authentication.default=secWinAD
cms.default=@servername.companyname.net:6400
sso.types.and.order=vintela

PlatformServices.properties
cms.clusters=@servername

cms.clusters. servername = servernameA:6400, servernameB:6400



How to customize the SAP Business objects/ BO / BI home screen logo


By default with the installation, we can only see Business Objects logo as above screen shots.

If you want to customize that image with your own company logo, add those logos in PNG format under where you have installed Tomcat/websphere/weblogic

I have my Application Server on Tomcat (Windows is my OS)
We have made the changes to original PNG file and added our own customized logo.

under  E:\webApps\Tomcat7\webapps\BOE\WEB-INF\eclipse\plugins\webpath.CmcApp\web\images

Notes: Always rename the original or keep backup of original files when making any changes

To reflect the changes, redeply the files
Error: 'Internal error: "Open Session: Unexpected error" ' when logging in Universe Designer

(Universe Designer TOOLD - UDT) 4.1 Sp3

Steps to reproduce:

Open UDT --> Enter your ID and Pwd --> Error pops up instead of logging you in (Error: 'Internal error: "Open Session: Unexpected error")

Fix:

Delete the Lsi files related to that Server from Path below

C:\Users\<user id>\AppData\Roaming\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\lsi

NOTE: Make sure your id belongs to valid group that have access to use Designer