Sunday, July 26, 2009

Integration of BW in SAP EP (Enterprise Portal)

Introduction:

I think a lot of people after installing SAP Enterprise portal, look at how to connect it to existing SAP systems (BW, R/3, CRM etc.). Me too. I spent a lot of time searching for a guide that describes it in detail. And in one piece also. There are a lot of documents on activities in backend systems, portal itself. But I couldn't find The-One-Full-How-To. So I prepared it with all sequence of steps need to be followed including some troubleshooting tips.

You will need basic knowledge of J2EE tools, SAP Basis and Portal. Please note that these steps worked for me. But depends on your scenario, some extra settings might be required to complete the integration.
Prerequisites:

Before you are starting BW system integration, you need to check whether following BI Components were deployed to Portal system or not.

  1. BI INFORM. BROADCASTING 7.00
  2. BI WEB APPLICATIONS 7.00
  3. BI BASE SERVICES 7.00
  4. BI REPORTING AND PLANNING 7.00
  5. BI WEBDYNPRO ALV 7.00
  6. VCKITBI
Sequence of Steps:
  1. User Management in BW and Portal systems
  2. Java to ABAP and ABAP to Java communication
  3. SSO Configuration
  4. Maintain portal system settings for portal
  5. Create BW System in portal
  6. Maintain ABAP system in Portal SLD
  7. Create Webdynpro Jco Connection
  8. Create PUBLIC Logon Group in BW system
  9. Activate BI Templates in RSA1
  10. Troubleshooting

Step 1: User Management in BW and Portal Systems:
  1. Create a user on ABAP system with “SAP_BC_JSF_COMMUNICATION”, “SAP_BC_USR_CUA_CLIENT_RFC” roles.
  2. Probably you will have to generate profiles for these roles.
  3. Assign following BI Roles to the portal user which is a copy of Administrator user (This user can be used to maintain the settings related to portal).
  4. Also assign the groups “SAP_BC_JSF_COMMUNICATION”, “SAP_BC_USR_CUA_CLIENT_RFC” to the user to which above roles assigned.








Step 2: Java to ABAP and ABAP to Java Communication:
  1. Create RFC Connection in BW system with below input values (you can use the same naming convention):
Technical Settings:

RFC Destination: <BW-SID>_<portal_hostname>_<Portal-SID>
Connection Type: T (TCP/IP Connection)
Description: Mention some description for the connection







Program ID: <Portal-hostname>_PORTAL_<Portal-SID>
Gateway Host: BW System Hostname
Gateway Service: sapgw<BW System number>


















Logon & Security:

Logon Procedure: Select Send SAP Logon Ticket
MDMP & Unicode:If your system is Unicode, you need to select Unicode under this tab.
Save your entries. Once you create the RFC connection in Java System, you can test this connection.
  1. Create JCo RFC Connection in Portal system with below input values:
Open Visual Administrator from \usr\sap\<SID>\sap\j2ee\admin\go.bat and Goto Server -> Services -> Jco RFC Provider -> select any existing connection and edit the properties as below:

Program ID: <Portal_Hostname>_PORTAL_<Portal-SID> (should be same as the Program ID given in BW RFC Destination)
Gateway Host: Fully Qualified Domain of BW system
Gateway Service: sapgw<Bw System Number>
Server Count(1….20): 20
Application Server Host Name: Fully Qualified Domain of BW system
System number: System number of BW system
Client: <BW_PROD_Client>
Language: EN
User: Provide the user which was created in Step 1.
Pwd: Password for the user
Once all the input values are entered, click on Set button to save the RFC Connection. And start the connection.

Step 3: SSO Configuration:

To enable the communication between BW and Portal systems through logon ticket, SSO Configuration is required. Follow below steps to configure SSO.
  1. Below two profile parameters need to be maintained in instance profile of BW system to generate and accept logon tickets.
    1. login/create_sso2_ticket = 2
    2. login/accept_sso2_ticket = 1
  2. Export BW system certificate and import to Portal system:

    1. Go to tcode: strustsso2 in BW system and double click on Own Certificate.
    2. Click on Export button as below:
    3. Give file name to certificate: <Portal-SID>_Certificate.crt and save. Here the File format to should be Binary.


    1. Now import the saved certificate to portal system through Visual Admin. Open Visual Admin of Portal system and go to <SID>-> Server#-> services-> Key Storage. There under Views select Ticketkeystore. Under Entry click Load and select the saved BW system certificate.
  1. Export Portal system certificate and import to BW system:

    1. Login to portal using user Administrator and go to System Administration-> System Configuration-> Keystore Administration.
    2. There select SAPLogonTicketKeypair-cert and click on Download verify.der File

    1. Login to BW system and go to tcode strustsso2
    2. Click on Import Certificate button.
    3. Browse for the file verify.der and click on OK.
    4. Now click on Add to Certificate List button. It will add the new certificate to the list of cerficates.
    5. Click on Add to ACL to add the Access Control List for the certificate:
    6. You should be provide the valid entries for the Access Control List as below
System ID: <Portal_SID>
Client: <Value of the parameter – login/ticket_client: this can be checked in configtool of the Portal system-see below screen shot)






  1. Entries to be done in service Security provider:
Note: In the Service Security Provider under Ticket, perform the following steps to ensure that the SAP J2EE Engine accepts the SAP Logon Tickets from the BI system as an external system.
Start the SAP J2EE Engine Administrator with %INSTALLATION_ROOT%\admin\go.
    1. Connect to the portal server.
    2. In the tree, choose <SID>/Server<#>/Services/Security Provider.
    3. Under Component, choose Ticket.
    4. Choose the Authentication tab page.
    5. Change the options for com.sap.security.core.server.jaas.EvaluateTicketLoginModule and enter the following values:
      • trustedsys<Number>=<BW_SID>, <BW_CLIENT> (for example, BWP, 000)
      • trustediss<Number>=<ISSUER_DISTINGUISHED_NAME> (z. B. CN= BWP, OU=SAP Web AS, O=SAP Trust Community, C=DE)
      • trusteddn<Number>=<SUBJECT_DISTINGUISHED_NAME> (z. B. CN= BWP, OU=SAP Web AS, O=SAP Trust Community, C=DE)

  1. In addition, you have to maintain the values under evaluate_assertion_ticket:

    1. Start the SAP J2EE Engine Administrator with %INSTALLATION_ROOT%\admin\go.
    2. Connect to the portal server.
    3. In the tree, choose <SID>/Server<#>/Services/Security Provider.
    4. Under Component, choose evaluate_assertion_ticket.
    5. Choose the Authentication tab page.
    6. Change the options for com.sap.security.core.server.jaas.EvaluateAssertionTicketLoginModule and enter the following values:
      • trustedsys<Number>=<BW_SID>, <BW_CLIENT> (for example, BWP, 000)
      • trustediss<Number>=<ISSUER_DISTINGUISHED_NAME> (z. B. CN= BWP, OU=SAP Web AS, O=SAP Trust Community, C=DE)
      • trusteddn<Number>=<SUBJECT_DISTINGUISHED_NAME> (z. B. CN= BWP, OU=SAP Web AS, O=SAP Trust Community, C=DE)
Note: The values correspond to the values listed above under Application Ticket.



Step 4: Maintain Portal Server settings for portal:
In this activity you designate a default portal. You can also make settings that are relevant to information broadcasting. If you do not maintain this table, the corresponding menu entries for publishing in the BEx Web Application Designer and BEx Query Designer are deactivated.

Execute the following steps to maintain the portal server settings for the portal:
  1. Start table view maintenance (transaction code SM30).
  2. Enter RSPOR_T_PORTAL as the table.
  3. Choose Maintain.
  4. Choose New Entries to create a new entry.
  5. Maintain the connected portal:
    • RFC destination: <RFC_DESTINATION>
    • System name: <SYSTEM_ALIAS>
    • Default: <DEFAULT>
    • Portal-URLprefix:<PORTAL_URL_PREFIX>,for example, http://<portalserver><domain>:<port>
    • Prefix of RM for BW Metadata: <KM_RM_METADATA_PREFIX>, for example, /bw_metadata
    • KM service URL: <blank>



Step 5: Create BW system in portal
Execute the following steps to create a BI system in the portal:
  1. Log on to the portal.
  2. Start the iView System Administration -> System Configuration -> System Landscape.
  3. The systems are maintained with the Portal Content Studio.
  4. Choose New -> System from the portal catalog context menu.
  5. Choose R/3 with Load Balancing (SAP_R3_LoadBalancing) or Dedicated Application Server for R/3 System(SAP_R3_Dedicated) as the template.
  6. Maintain the most important properties with the property category Display All:
    • Logon methods: SAPLOGONTICKET or UIDPW
    • Type of user mapping: admin,user
    • Type of ticket authentication: SAP Assertion Ticket
    • Name of logical system: <SID>CLNT<MANDANT>
    • The recommended convention for logical system names consists of the system ID and client.
    • Remote host type: 3
    • SAP client: <CLIENT>
    • SAP system ID (SID) [R/3 Name]: <SID>
    • System type: SAP_BW
    • System name: <SID>CLNT<CLIENT>
    • WAS description: <DESCRIPTION>
    • WAS host name: <HOSTNAME>:<PORT>
    • WAS path: /sap/bw/bex
    • WAS protocol: http or https
Note: You can determine the WAS host name, WAS path and WAS protocol settings using function module RSBB_URL_PREFIX_GET(transaction code SE37).


  1. You must also maintain the following BI properties for SAP NetWeaver 2004s:
    • BI Directory Provider: true
Note: If the indicator is set, the BI system is displayed in open dialog when selecting queries or InfoProviders. This property is usually activated.
    • BI Documents for InfoProvider : <KM_REPOSITORY_PATH>
    • BI Documents for Master Data: <KM_REPOSITORY_PATH>
    • BI Documents for Metadata:<KM_REPOSITORY_PATH>
The properties BI Documents for InfoProvider, master data and metadata contain the paths to Knowledge Management

BI Master System: true
Note: The property BIMaster System means that the BI system is the central persistence storage for the portal. The BI master system is used to read and execute Web templates. The running BI Web runtime requires exactly one BI master system within a portal.
  1. In the System Aliases view, maintain an alias for the system.
  2. Save your entries.



Step 6: Maintain ABAP system in Portal SLD
  1. Go to RZ70 in BW system and enter fully qualified Portal host name and the gateway as below.



  1. Click on icon Start Data Collector without Job Scheduling


  1. Click on Yes in the dialog box below:


d. This will create the ABAP Technical System in portal system SLD.

Step 7: Create Webdynpro Jco Connections
To start Planning Modeler and Planning Wizard without any errors, the below Jco RFC Connections must be created with the respective settings
BI_METADATA, WD_ALV_METADATA_DEST & BI_MODELDATA, WD_ALV_MODELDATA_DEST
The following settings are required for the two JCo connections BI_METADATA and WD_ALV_METADATA_DEST:
  • The data type must be set to Dictionary MetaData.
  • The connection type must use load balancing.
  • You need to select the Message Server of the ABAP system.
  • Authentication must be set using a user/password.
  • The user defined in the authenication must have authorization to access BW system








The following settings are required for the two JCo connections BI_MODELDATA and WD_ALV_MODELDATA_DEST:
  • The data type must be set to Application Data.
  • The connection type must use load balancing.
  • You need to select the Message Server of the ABAP system & Logon Group PUBLIC.
  • Authentication must be set ticket.
Note: The only difference between BI_METADATA, WD_ALV_METADATA_DEST & BI_MODELDATA, WD_ALV_MODELDATA_DEST is, the datatype and Authentication mode.
Step 8: Create PUBLIC Logon Group in BW system:
Create the logon group with PUBLIC in BW system if not exists.
  1. Go to tcode SMLG and click on New to create the Logon group and provide the name PUBLIC for the new logon group.


Step 9: Activate BI Templates in RSA1:
  1. Goto RSA1 Tcode in BW system and select BI Content


  1. Select Object Types -> BEx Web Template -> Select Objects -> 0ANALYSIS_PATTERN -> Transfer Selections.

  1. Drag “Analysis” to the right side box and expand all. Click on Select All button as below

  1. Click on Install button

       e.  Save all the setting what you did and exit from RSA1.




        f. Once above all steps are done, it would be good practice to restart Portal and BW systems to take some settings affect.

Step 10: Trouble shooting:

Error: Error loading template 0BROADCASTING_TEMPATE70



Solution: Goto RSA1 in BW system. BI content -> Object Types -> Web Template -> Select Objects -> 0BROADCASTING_TEMPLATE -> Transfer Selections.



Drag 0BROADCASTING_TEMPLATE to right side box. And click on Select All button.



Click on Install button.



Save all the changes



Error: RSOBJS 171 Unable to generate history entry error when saving or executing the webtemplate in BEx Web Application Disigner



Solution: Activate the personalization using tcode: RS_PERS_ACTIVATE



Error: This system rejects all logons using SSO tickets error when accessing the BW tcodes from Portal system

\

Solution: The parameter Login/accept_sso2_ticket = 1 might be missing in instance profile of the BW system. Add this parameter to the profile.

Error: Could not load of refresh node Tree creation failed on node: pcd:portal_content/com.sap.pct/platform_add_ons/com.ip.bi/iViews when you try to access the BI Default iViews provided by SAP.



Solution: Deploy Portal Core Services latest Patch (SAP Note: 1105800) to avoid this error
Error: The error RSWWW 240 The Object cannot not be processed due to transport problem can be occurred when saving the Webtemplate in BEx Web Application Designer.


Solution: Go to tcode RSA1 and select Transport Connection. Now click on Object Changeability.


Right click on BTMP and select Everything changeable


12 comments:

  1. Hi,

    I found this blog very usefull...

    Thanks for sharing this info.

    Regards,
    Sharib Tasneem
    SAP Basis Consultant

    ReplyDelete
    Replies
    1. Thanks for sharing great information in your blog. Got to learn new things from your Blog . It was very nice blog to learn about SAP SF.
      http://thecreatingexperts.com/sap-training-in-chennai/sap-success-factors-training-in-chennai/

      Delete
  2. Hi,

    Do u have screenshot on how to configure PORTAL to R3? For example JCO connection, user mgt pull out from R3. Roles created in R3 also been pull out to Portal?

    my email is andirossi@gmail.com

    Regards,

    Andi Rossi

    ReplyDelete
  3. INTERNATIONAL CONCEPT OF WORK FROM HOME
    Work from home theory is fast gaining popularity because of the freedom and flexibility that comes with it. Since one is not bound by fixed working hours, they can schedule their work at the time when they feel most productive and convenient to them. Women & Men benefit a lot from this concept of work since they can balance their home and work perfectly. People mostly find that in this situation, their productivity is higher and stress levels lower. Those who like isolation and a tranquil work environment also tend to prefer this way of working. Today, with the kind of communication networks available, millions of people worldwide are considering this option.

    Women & Men who want to be independent but cannot afford to leave their responsibilities at home aside will benefit a lot from this concept of work. It makes it easier to maintain a healthy balance between home and work. The family doesn't get neglected and you can get your work done too. You can thus effectively juggle home responsibilities with your career. Working from home is definitely a viable option but it also needs a lot of hard work and discipline. You have to make a time schedule for yourself and stick to it. There will be a time frame of course for any job you take up and you have to fulfill that project within that time frame.

    There are many things that can be done working from home. A few of them is listed below that will give you a general idea about the benefits of this concept.

    Baby-sitting
    This is the most common and highly preferred job that Women & Men like doing. Since in today's competitive world both the parents have to work they need a secure place to leave behind their children who will take care of them and parents can also relax without being worried all the time. In this job you don't require any degree or qualifications. You only have to know how to take care of children. Parents are happy to pay handsome salary and you can also earn a lot without putting too much of an effort.

    Nursery
    For those who have a garden or an open space at your disposal and are also interested in gardening can go for this method of earning money. If given proper time and efforts nursery business can flourish very well and you will earn handsomely. But just as all jobs establishing it will be a bit difficult but the end results are outstanding.

    Freelance
    Freelance can be in different wings. Either you can be a freelance reporter or a freelance photographer. You can also do designing or be in the advertising field doing project on your own. Being independent and working independently will depend on your field of work and the availability of its worth in the market. If you like doing jewellery designing you can do that at home totally independently. You can also work on freelancing as a marketing executive working from home. Wanna know more, email us on workfromhome.otr214426@gmail.com and we will send you information on how you can actually work as a marketing freelancer.


    Internet related work
    This is a very vast field and here sky is the limit. All you need is a computer and Internet facility. Whatever field you are into work at home is perfect match in the software field. You can match your time according to your convenience and complete whatever projects you get. To learn more about how to work from home, contact us today on workfromhome.otr214426@gmail.comand our team will get you started on some excellent work from home projects.


    Diet food
    Since now a days Women & Men are more conscious of the food that they eat hence they prefer to have homemade low cal food and if you can start supplying low cal food to various offices then it will be a very good source of income and not too much of efforts. You can hire a few ladies who will help you out and this can be a good business.

    Thus think over this concept and go ahead.

    ReplyDelete
  4. It was really a nice article and i was really impressed by reading this article We are also giving all software Course Online Training.The Sap BI ABAP Online Training is one of the leading Online Training institute in the world.

    ReplyDelete
  5. After reading this post I got an idea about on this note.Really something grate in this article ,Thanks for sharing this. We are providing SAP courses training online. After reading this slightly am changed my way of introduction about my training to people. To know more Visit Us SAP PM Online Training Course

    ReplyDelete
  6. This Article is very interesting thank you very much for the information .really a nice article and i was really impressed .

    ReplyDelete
  7. Thanks for sharing this wonderful information, this will be very helpful for my informatica training. Once again thank you and keep up this good work.
    Sap Online Tutorials | SAP Help Portal

    ReplyDelete
  8. Thank you for sharing this kind of useful information,
    It is very useful to me and who are ready to begin their career SAP EP online training.

    ReplyDelete

  9. نصائح لتخزين العفش

    من التحف التي لا تناسب تماما الديكور الخاص بك، إلى العناصر التي تقوم بحفظ لأطفالك، فإنه من السهل للأثاث لخلق فوضى. بدلا من وجود هذه القطع الثمينة تأخذ مساحة قيمة في منزلك، قد يكون الوقت قد حان للتحرك تلك في حالة جيدة إلى منزل خاص بهم.
    ارقام شراء الاثاث المستعمل بالرياض
    التخزين الذاتي يوفر لك في الغرفة التي تحتاجها للحفاظ على الأثاث تحب، حين كنت في وقت واحد إزالة فوضى من منزلك. أدناه، نسلط الضوء أربع خطوات أساسية لإعداد بنجاح وحماية قطع الأثاث للحصول على التخزين الذاتي على المدى الطويل.
    1. نظيفة والإعدادية
    شركة شراء اثاث مستعمل بجدة
    قبل تخزين الأثاث الخاص، وإعطاء كل عنصر نظيف شامل. تبدأ من خلال مسح أسفل القطع بقطعة قماش جديدة. ثم، استخدام منظف مناسب لنوع من المواد (المعادن والخشب والزجاج وغيرها)، ومسح أسفل مرة أخرى لطبقة إضافية من الحماية.
    حقين شراء الاثاث المستعمل بالرياض
    كخطوة نهائية، والسماح للبند التنفس في منطقة جيدة التهوية ويجف تماما. وهذا ضمان عدم وجود بقع من الرطوبة المحاصرين يمكن أن تتواجد على البند الخاص بك كما كنت تغطية وتغليف قطعة للتخزين. يمكن بقع الرطوبة المحاصرين تترك وحدها تلف البند الخاص بك على مر الزمن، وخلق علامات تغير لونها.
    2. تفكيك لسهولة النقل
    شركة شراء اثاث مستعمل بالرياض
    لأكبر البنود، مثل الأزياء، الأسرة والطاولات والارائك، الإعدادية لنقل أكثر سلاسة. يمزق قطعة قبل رحلة كبيرة إلى وحدة تخزين ليخفف من العبء الخاص بك.
    على سبيل المثال، وإزالة الساقين من الجداول والأرائك، واخراج الأدراج من الأزياء وسائد من الأرائك، وإزالة ألواح من هياكل الأسرة. مجموعة، والتفاف وتسمية هذه القطع معا لبقاء المنظمة.
    3. تغطية وحماية
    بعد أن كنت قد هيأهم الأثاث الخاص للتخزين على المدى الطويل، حمايته مع المواد المناسبة. التفاف فقاعة يمكن أن تكون مفيدة للالتفاف العناصر التي كسر بسهولة، مثل الصور مؤطرة، والمرايا والمصابيح أو أجزاء حادة مثل الكراسي وأرجل الطاولة.
    محلات شراء الاثاث المستعمل بالرياض
    كقاعدة عامة، وتجنب المواد حزمة من البلاستيك عندما يكون ذلك ممكنا، لأنها يمكن أن خنق بعض المواد مثل الخشب والأقمشة. هذا يمكن أن يؤدي إلى التكثيف أو غير سارة الروائح في وحدتك. بدلا من ذلك، استخدم الملابس قطرة أو الأغطية والملاءات أو البطانيات للحفاظ على الغبار بعيدا والسماح للهواء بالتوزيع.
    شراء الاثاث المستعمل بالمدينة المنورة

    حافظ على الخشب والأثاث المرتفعة

    ReplyDelete

  10. I want to share a testimony on how Mr Pedro loan offer helped my life,
    It isn't a good idea to use a payday loan on a regular basis. In the event that you endlessly prolong your repayment date and borrow often towards your subsequent paycheck, it could run you a good amount of money. However, it is just as sensible to decide on payday loans as they can be swiftly approved exactly the same day you put in your loan application form. You can contact Mr Pedro loan offer because my payday loan was very fast to proceed, email pedroloanss@gmail.com to request any kind of loan. Whatsapp +18632310632

    ReplyDelete