17 Kasım 2009 Salı

Sap portal Themes Examples

You can download portal themes from those links;

Blue Theme: http://rapidshare.com/files/308210193/BestBlue.rar.html
Brown Theme : http://rapidshare.com/files/308211470/bestbrown.rar.html
Red Theme : http://rapidshare.com/files/308211753/BestRed.rar.html

the portal themes can be change under system administration --> portal display --> themes --> import & export.

16 Kasım 2009 Pazartesi

Java Mail Example

Using Yahoo Webmaster Tools

Firstlly you may have a yahoo mail account, you can get a new yahoo accout from the bellow URL;

https://edit.yahoo.com/registration?.src=fp&.intl=us&.done=http://m.www.yahoo.com/



Yahoo mail account using the above page after opening via the link below
yahoo web master tool can be done with page access to the system with yahoo mail login information
should be done;

WEB Master tools URL : http://siteexplorer.search.yahoo.com/



Seen on the screen above the desired action to be entering the address of the site whether the Explore button URL
should be clicked, then this process operation of the site belongs to us to prove
yahoo wants a confirmation from us, this check on a website. html file or yahoo
will be transferred to us by adding a meta-tag can be done with the site. These files and
meta-tag in the following screen will come against us;



12 Kasım 2009 Perşembe

Creating And Using SAP Portal Job's

Working with specific period on the Portal and "jobs" are defined as services;

This structure was created on the portal follow the map, this map work times specified in the java code Incentives can be defined. Java code specified times time maps are loaded onto the system. "PAR" project with their own functions in this manner specified çalıştırılar times the requested operation is implemented as periodically.
Using Netweaver Developer Studio to create a job;

Netweaver Developer Studio enables the creation of over jobların java classes and types of projects are available, created a job'un stages are as follows;

• NWDI (NetWeaver developer studio) should be opened on a new portal project.


• Create name of the project be required to determine the project will be initiated.


• Press the right mouse click on the project created new --> other choice must be made.


• The selection of the options should be made repositroy framework --> shecduler task wizard.


• Create specifications and must have job'ın be desired areas are determined and job formation has been completed.


Built to be associated with a job'ın java functions;

After creating a job in the job for NWDI. Açılmıl java extension would run this file in the desired functions can be created java or another field that was created is a java function call, sample code is as follows;

public void run (String id, Properties properties) ( / / Implement the tasks to be scheduled util utility = new utility (); / / Receive processing changes util.process (2); )

The above code is to be held explanation for this java class as a function of each class is run util fonksiyonuda process is executed. In this way, the map used in this job function, the process will run as close as you periyodlarına.

Transactions determined to be created and developed job'ların java code;
These codes are created pure java applications java classes of functions within the portal, or portal than on the structures associated with whether the process can perform. As an example, to connect oracle database performs code is as follows blog;

public Connection connect () ( Connection conn = null; try ( InitialContext ctx = new InitialContext (); DataSource datasource = (DataSource) ctx.lookup ( "jdbc/OracleJ2EDB"); conn = (Connection) dataSource.getConnection (); ) Catch (NamingException ex) ( ) Catch (SQLException ex) ( ) return conn; ) public void disconnect (Connection conn) ( try ( conn.close (); ) Catch (Exception ex) ( ) ) SAP portal that provides database connection code sample; lconnect public Connection () ( Connection lconn = null; try ( InitialContext ctx = new InitialContext (); DataSource datasource = (DataSource) ctx.lookup ( "jdbc/SAPSR3DB"); lconn = (Connection) dataSource.getConnection (); ) Catch (Exception ex) ( ) lconn return; ) public void ldisconnect (lconn Connection) ( try ( lconn.close (); ) Catch (Exception ex) ( ) )

Created to be used on a portal that provides job'ların iView and use features;

Use features that provide Jobların iView, the portal has been developed for the determination of the characteristics of each structure by the creation of methods that are portalaap.xml file. Within this structure, a portal will be connected as iview'inin visual and functional structures are indicated. This process portalapp.xml file " name" feature is provided with. This feature runs every specified iView provides java code to work. Visual features used in building "jsp" pages, and in addition to this page through the use of html element is created. Java code to the routing process within the jsp page is provided with the following code blog;

IResource jspResource = request.getResource ( "jsp", "Example.jsp"); response.include (request, jspResource);

Time maps are created on the portal jobs regulation;

Portal created maps on job'ların time that the System Administration System Configuration --> Knowledge Management Content Management Tasks --> Global Services directory under Schuduler --> can be displayed. A screenshot of this field is as follows;


This area has been selected job on the action required to be the time this job'a map is displayed, the screen image is as follows;


On-screen by clicking the edit button in the desired shape changes can be made.

Important points on usin Time Map;

Time will run parallel on a map for actions to be considered when a point is to prevent conflicts. For example, a daily, instant, weekly and monthly information on a system which processes all of these different job if they use one of them is the map of the likelihood of conflict is high, because this sebebten maps done on time schedules should be subjected to careful calculations.

10 Kasım 2009 Salı

Google Optimization and SEO on SAP Portal

SAP Portal Google Optimization

Adding Meta - tag And Title to Framework

Portal is based on the meta-tag and title to the Framework source code to be included steps performed are as follows.

• Meta - Tag and Title "to add com.sap.portal.runtime.system.connection_api.jar" Archive file in the "meta.addElement ();" and "htmlDocument.setTitle ();" java functions are used. This function is an area on the framework of the Framework will be placed in order to operate. Java functions a blank page (Page) and placing the structure and framework to solve the problem.

• A page creation process into consideration is to be taken, each page created during a customLayout structure kullanlır this customlayout meta - to add a tag to use for functions suited is a field so that every page is loaded function again, the meta - and the title tag at a time desired loaded.

• This operation system for the existing on CustomLayout is used. (System Administration Support --> Portal Runtime Deployment -->Portalapps Browse Directory located under CustomLayout) layout'un new to be created in the system with the layouts with the same name not to be considered is a point that the new building, created a name that is installed in the structure and standards will crush the old structure structures are lost. Picture - 1, the area located on the portal to be used CostumLayout'un indicated.

Image - 1 "is located on the portal area CostumLayout'un"

• The layout will be processed on the new structure began to be opened with Netweaver. This structure contains features in the portal "portalapp.xml" has a file named. Picture - 2 portalapp.xml file shows. This file structure is to be examined;

Picture - 2 "Portalapp.xml "

... syntax;

Created on the system or the layout structure of the new iView is the area of the system was introduced, to be constituted within the syntax required for each new structure "" should be added in the form of a line of code. This line of code will be created within the structure determines the properties of the code are available. Eg
Used for building a new iView ComponentType feature at the new layout is used for ComponentType property; is in the form in this area any given instance is created on the portal features of the structure can be observed and can be used.
Meta - Tag and Title in relation to the process of adding; java functions mentioned above (the "meta.addElement ();" and "htmlDocument.setTitle studies are needed during the installation ();") page, these requirements created structure" portalapp.xml " file additional "" line will be abolished with, the actions of this line of code; layout'un work created during runtime with his wife as a term to indicate the presence of triggering a jsp page and found that this file is transferred to the location system. These features after the completion of the structure created in the portal to use this file has the attributes of a structure must be created this process for a ivew files - 3, as shown, create a new iView process has been selected to screen the options "Create an iView from a portal component contained in a Deployed portal archive (PAR file) "is performed by selecting in this process after the completion of the forward button to be selected with the desired structure of the portal will have been completed.

Image - 3 "Creating instances of the created iView structure"

AddMeta.jsp page;

That operate simultaneously with Layout'un work and java codes where this page is to be reviewed;
At the top of the page html code in the structure of the Framework and the functions are connected wound to be müdale java classes can be observed, they are defined as follows;

<% @ Page import = "com.sapportals.portal.prt.util.html.HtmlDocument"%>
<% @ Page import = "com.sapportals.portal.prt.util.html.HtmlMeta"%>
<% @ Page import = "com.sapportals.portal.prt.util.html.HtmlTitle"%>
<% @ Page import = "com.sapportals.portal.prt.util.html.HtmlDocType"%>
In the use of this method to work one of the key points of the functions is to recognize the work area, this system currently located on the clients (on request) and servers (response) is achieved with determination, this process was carried out in lines of code are given below;
PortalNode portalNode = componentRequest.getNode (). GetPortalNode ();
IPortalResponse portalResponse =
(IPortalResponse) portalNode.getValue (
IPortalResponse.class.getName ());
HtmlDocument htmlDocument = null;
if (portalResponse instanceof PortalHtmlResponse) (
PortalHtmlResponse htmlResponse =
(PortalHtmlResponse) portalResponse;
htmlDocument = htmlResponse.getHtmlDocument ();
)
the above line of code is to be more open;
First, the systems currently available on the request and response are determined, the request and response through the system is transferred to the new request, if the system currently located on the answering users requested a position to respond to requests action starts. This process is provided with the following line of code;
if (portalResponse instanceof PortalHtmlResponse) (
PortalHtmlResponse htmlResponse =
(PortalHtmlResponse) portalResponse;
htmlDocument = htmlResponse.getHtmlDocument ();
)
After establishing the conditions on the system "meta.addElement ();" and "htmlDocument.setTitle ();" functions can be used, and this process is the following line of code;
HtmlMeta meta = htmlDocument.getMeta ();
meta.addElement ( "\ r \ n ");
meta.addElement ( "\ r \ n ");
htmlDocument.setMeta (meta);
HtmlTitle ttl = new HtmlTitle ( "Title");
htmlDocument.setTitle (general);
After finishing the design of the page AddMeta.jsp to be done on the process instance created CustomLayout structure is the creation of the portal.

Creating new CustomLayout

• create a requested file Layoutun right-clicking the mouse on; layout--> new election is required.


Selecting projects Netweaver'le created;
During this process created and portalapp.xml file created Netweaver'de a layout of the structure can be viewed projects oluduğunun transferred from the field to create the desired type is selected;


• Select the desired component exits from the screen be constituted • whether the creation process is completed.



• Create a process that occurs layout'un page to use the system must be in standard form, this situation was created to provide layout'un "object is a template" feature "yes" needs to be changed. Upon completion of this process of creating a new page layout structure will be available on a ready to use.


Framework will be placed into the page (Page) creation;

• requested the file on Layoutun be created by clicking the right button of mouse; Page --> new election is required.


• Page's name and then determination id'sinin forward button to be used with the layout structure is determined in the field would have come, this process is being carried layout created by default layouts may appear, this case layout'un "Is object template" feature "yes" can be done has been achieved, the list will be used The layout is selected and then this layout is added to the structure of the generated pages.



Generated pages on the framework and the inclusion of transactions to be completed;

• intended use of the generated pages to be included on the framework on the Framework needs to be opened by double-clicking Framework.

• Framework After opening the desired inclusion on the page by clicking the right mouse button "Add page to framework" option should be selected, which can be displayed on the framework of this page visibility with the opening process is completed.