How many of you have had to write just 2 lines of code to the SAP portal, but to find this at the edge of the impossible?

I wrote a small guide on how deployare application for the SAP portal.

I hope you find it useful.

Antonietta

__________________________________________

  • Download and install JRE

http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html

ScreenHunter_321 May. 22 15.43.jpg

  • Download and Install NWDS

https://nwds.sap.com/swdc/downloads/updates/netweaver/nwds/nw/730/doc/auto_latest_distributions.html

ScreenHunter_321 May. 22 15.42.jpg

Unzip the nwds-extsoa-7.3-SP11-PAT0002-win32.zip
and launch SapNetweaverDeveloperStudio.exe

ScreenHunter_321 May. 23 08.50.jpg


    • Create a Portal Application Project

    File –-> New -> Other.

    /wp-content/uploads/2014/05/filwnew_459076.jpg

    /wp-content/uploads/2014/05/proj_459086.jpg


    Give a project name and click Finish.

    /wp-content/uploads/2014/05/b_459087.jpg


            1. Create a Portal Application Object

    Now we need to create
    a component within our portal application project. For this right click on the
    project and select New -> Other.

    /wp-content/uploads/2014/05/filwnew_459076.jpg


    Then select Portal Application-> Create a new Portal Application Object

    /wp-content/uploads/2014/05/c_459110.jpg


    Select yor project and click Next

    /wp-content/uploads/2014/05/e_459111.jpg

    Expand Portal Component and select AbstractPortalComponent and click Next.

    /wp-content/uploads/2014/05/f_459112.jpg


    Give the name, leave location Core, anc Packege Name blank and click Finish

    /wp-content/uploads/2014/05/g_459116.jpg


              1. Put your code

    ScreenHunter_323 May. 23 09.42.jpg

    HelloWork.java

    import com.sapportals.portal.prt.component.*;

    public class HelloWord extends AbstractPortalComponent

    {

    public void doContent(IPortalComponentRequest request,

    IPortalComponentResponse response)

        {

          response.write(“Hello World”);

        }

    }

                1. Export the project in EAR file

    Now we have to deploy this component to the portal. For this first we will export this project as an EAR file. For this right click on the project and select the

    option Export from the context menu.

    /wp-content/uploads/2014/05/6_1_459133.jpg


    Select the option SAP NetWeaver Portal -> EAR File and click Next.

    /wp-content/uploads/2014/05/6_2_459143.jpg


    Select Next on the following screen, the project will be selected by default.

    /wp-content/uploads/2014/05/6_3_459144.jpg


    Click Finish on the next screen.

    /wp-content/uploads/2014/05/6_4_459145.png


    Now you will be able
    to see the EAR file in the project structure.


    /wp-content/uploads/2014/05/6_5_459149.jpg

                  1. Set connection beetween portal SAP and NWDS

    Forl
    deploy this EAR file to our portal. For this first make sure that the portal
    system has been added and set as the default system

    under Window -> Preferences -> SAP AS Java

    /wp-content/uploads/2014/05/7_1_459150.jpg


    If no SAP system are present , click to Add.


    /wp-content/uploads/2014/05/7_2_459151.jpg

    User and Password of Java Administrattor are required

                    1. Deploy view on Portal

    Navigate  to the Deploy view by clicking Window -> Show View -> Other.

    ( If you have a javanullpunt error follow the thread http://scn.sap.com/thread/3152087  )

    /wp-content/uploads/2014/05/8_1_459158.jpg


    Expand the node Deploy View and select Deploy View.


    /wp-content/uploads/2014/05/8_2_459159.png

    In the deploy view, right click on the option External Deployable Archives and select Add.

    /wp-content/uploads/2014/05/8_3_459160.jpg


    From your file system, navigate to the path where the project lies and select the EAR file that we created earlier.

    /wp-content/uploads/2014/05/8_4_459161.jpg


    The EAR now appears under External Deployable Archives.


    /wp-content/uploads/2014/05/8_5_459162.jpg

    With the EAR file selected, select the Deploy button (or right click on the EAR file and select the option Deploy from the menu).

    /wp-content/uploads/2014/05/8_6_459167.jpg


    You will be able to view the deployment progress in the lower right corner.

    /wp-content/uploads/2014/05/8_7_459168.jpg


    You will get a confirmation message upon successful deployment.

    /wp-content/uploads/2014/05/8_8_459169.jpg


                      1. Test the portal application

    Navigate  to Content Administration-> Portal Content Management and expand the node Portal Applications.


    ScreenHunter_329 May. 23 09.57.jpg

    ScreenHunter_327 May. 23 09.57.jpg

    Preview

    And we win

    ScreenHunter_330 May. 23 09.58.jpg

    _________________________________________________________________________________

    I suggest
    another usefull document that help me to create this guide :

    How to
    Deploy HTML5 applications to 7.3 portal

    http://scn.sap.com/community/developer-center/front-end/blog/2013/05/07/how-to-deploy-html5-applications-to-73-portal#comment-492348

    To report this post you need to login first.

    Be the first to leave a comment

    You must be Logged on to comment or reply to a post.

    Leave a Reply