当前位置: 代码迷 >> 综合 >> Webnbsp;Dynpronbsp;fornbsp;ABAPnbsp;Config…
  详细解决方案

Webnbsp;Dynpronbsp;fornbsp;ABAPnbsp;Config…

热度:71   发布时间:2024-01-18 14:03:11.0
原文地址:Web Dynpro for ABAP Configuration 作者:bryant

Configuration

SAP的技术总是搞得很复杂,WDA的涉及到配置如下:

1. Internet Communication Manager

确认ICM中提供的HTTP/HTTPS运行正常.

Tcode: SMICM -> Display service.

[转载]Web <wbr>Dynpro <wbr>for <wbr>ABAP <wbr>Configuration

ICMSAP系统中应用中起着很重要的角色,HTTP请求到达ICM后,由ICMHTTP请求转发到相应的Work process中,它还可以控制HTTP 对象的缓存等。

2. Internet Communication Framework

ICF提供了ABAP AS中的工作进程处理HTTP请求的环境。 有一系列WDA需要的ICF service必需激活,可以使用Report: rsicf_service_activation来激活,有三组

l WEB DYNPRO ABAP

     WDA运行时环境所需要的ICF Service

l WEB DYNPRO ABAP DESIGN TIME

    ABAP Workbench中的开发WDA时使用的view designer所需要的ICF Service

l WEB DYNPRO ABAP TEST APPS

    测试WDA时所需要的ICF Service.

Tcode: SICF

[转载]Web <wbr>Dynpro <wbr>for <wbr>ABAP <wbr>Configuration

参考:

Note 1088717 - Active services for Web Dynpro ABAP in transaction SICF
Note 1009930 - (Display) problems in View Designer when you load a view
Note 517484 - Inactive services in the Internet Communication Framework

3. 设置Fully Qualified Domain Names FQDN

配置参数icm/host_name_full

Tcode: RZ10

[转载]Web <wbr>Dynpro <wbr>for <wbr>ABAP <wbr>Configuration

4. 设置IP,域名映射

如果域名能够被DNS解析的话,可以省略此步。

C:WINDOWSsystem32driversetc中设置IP到上一步设置域名的映射

为什么学习WDA

20082月份开始接触Web Dynpro for Java 开发中发现SAP中大部分核心业务还是基于ABAP实现的,WDJ虽然提供了Adaptive RFC 来访问后端的ABAP系统,但总不如原生代码来的快一些,而且从Oracle 收购SUN之后, JAVASAP的开发中其重要程度恐怕会减少许多。虽然WDA是在WDJ之后出现的,但也说明SAP还是喜欢自家的ABAP,不然再把WebDnypro实现一遍干嘛。


 

Note 1088717 - Active services for Web Dynpro ABAP in transaction SICF

Summary
Symptom

After you install the Application Server ABAP (AS-ABAP), all Internet Communication Framework (ICF) services are delivered as inactive (this is for security reasons). Following the installation you must decide, on an application-related basis, which services you must manually activate.

Other terms

ICF, Service
You are not authorized to view this page
RAISE_EXCEPTION
Forbidden,
HTTP error 403
Host is not active
Service is not active
CL_WDR_UCF=>STARTUP_CHECKS,
Exception CX_WD_GENERAL: In the call list of the dump, you find the method CL_WDR_CLIENT_ABSTRACT_HTTP=>STARTUP_CHECKS.

Reason and Prerequisites

Since several services may be executed when you call a URL, you must activate all service nodes in the SICF tree. As a result, the URL path is represented in ICF subnodes (services). If, for example, you want to activate services for the URL /sap/public/icman , you must activate the service tree default_host in transaction SICF. You must then activate the individual services sappublicandicman 
You can activate an ICF service as follows:

1. In transaction SICF, select the ICF service in the ICF tree.
2. Use one of the following methods to activate the ICF service:
  • Use the menu option Service/Host -> Activate
  • Use the context menu and the entry Activate Service

If the default_host node is inactive in transaction SICF, the HTTP request may produce a "RAISE_EXCEPTION" ABAP runtime error
              stating that the HOST_INACTIVE exception condition was triggered.

If a service is inactive in transaction SICF, the system displays the error text "Forbidden" when you access this service.
You can also use the report rsicf_service_activation to activate a group of ICF nodes that can be predefined. When you execute this report, you can use the following predefined groups (technical name):

  • WEB DYNPRO ABAP
  • WEB DYNPRO ABAP DESIGN TIME
Group for the Web Dynpro ABAP development. Note that this setting is not supported for production operation.
  • WEB DYNPRO ABAP TEST APPS
Group for test applications. Note that this setting is not supported for production operation.
Solution
Services for Web Dynpro ABAP

For Web Dynpro ABAP (WDA), you must activate the following services in the system:

  • Using WDA applications
  • /default_host/sap/bc/webdynpro
    Note that, in this case, you should activate only the node itself, not the subnodes.
  • /default_host/sap/public/bc
    This node is automatically activated when you activate the subnodes described below. Similarly, in this case, you must activate only the node itself and the following subnodes:
    /default_host/sap/public/bc/ur
    /default_host/sap/public/bc/icons
    /default_host/sap/public/bc/icons_rtl
    /default_host/sap/public/bc/webicons
    /default_host/sap/public/bc/pictograms
    /default_host/sap/public/bc/webdynpro/* (ssr, mimes, and so on)
    /default_host/sap/public/myssocntl
  • In addition to these general WDA services, you still have to activate the relevant application services in the ICF tree. The service for the application <application> is generally located under the ICF node /default_host/sap/bc/webdynpro/sap/ <application>.
  • Using the WDA development environment
  • /default_host/sap/public/bc/webdynpro/viewdesigner
  • /default_host/sap/bc/wdvd/
  • The following five nodes are allowed to be active only in a development system, and under no circumstances in a production system (due to a security risk):
    /default_host/sap/bc/webdynpro/sap/configure_application
    /default_host/sap/bc/webdynpro/sap/configure_component
    /default_host/sap/bc/webdynpro/sap/wd_analyze_config_appl
    /default_host/sap/bc/webdynpro/sap/wd_analyze_config_comp
    /default_host/sap/bc/webdynpro/sap/wd_analyze_config_user
  • WDA test applications for troubleshooting
  • /default_host/sap/bc/webdynpro/sap/wdr_test_events
  • /default_host/sap/bc/webdynpro/sap/wdr_test_ui_elements
  • /default_host/sap/bc/webdynpro/sap/wdr_test_table
  • /default_host/sap/bc/webdynpro/sap/wdr_test_adobe
  • /default_host/sap/bc/webdynpro/sap/wdr_test_popups_rt

Other services
  • Support for the Internet protocols (HTTP, HTTPS and SMTP) in the AS-ABAP
  • /default_host/sap/public/icman
    After you install AS-ABAP, you must ensure that this service is activated in transaction SICF. As a result, the ICM may (for example) make decisions concerning the distribution of HTTP requests to the relevant server.
  • Using the load distribution
  • with the message server
    /default_host/sap/public/icf_info
    /default_host/sap/public/icf_info/logon_groups
    /default_host/sap/public/icf_info/urlprefix
  • with the SAP Web Dispatcher
    /default_host/sap/public/icf_info
    /default_host/sap/public/icf_info/icr_groups
    /default_host/sap/public/icf_info/icr_urlprefix
  • ICF test applications:
  • /default_host/sap/bc/echo
    Among other things, this service returns information about the registration procedure being used, the header and form fields, and the generated SSO cookie for the executed request. Therefore, this service should only be activated for troubleshooting purposes.
  • /default_host/sap/bc/error
    This service generates some error situations in the system and you should activate it only for troubleshooting purposes.

Related SAP notes
  • 1009930
  • 1008689

 

 

 

Affected Releases
Software Component Release From Release To Release And subsequent
SAP_BASIS 70 700 700 X

 

 

Related Notes
1461387 Web Dynpro View Designer | Error in ICF node
1429942 Activating ICF services for PLM Web UI
1245200 DBA: ICF Service-Activation for WebDynpro DBA Cockpit
1131945 Active services for SRM 6.0 in transaction SICF
1129700 Installing GRC Process Control 2.5-GRCSPC 250 on NW 7.0
1124553 Inaktive ICF services of Web Service runtime
1120682 Missing ICF node for Web Dynpro application
1120589 Web dynpro applications can be executed without ICF nodes
1109215 A Web Dynpro ABAP application requires an ICF node
1009930 (Display) problems in View Designer when you load a view
1008689 No layout preview due to inactive ICF nodes
517484 Inactive services in the Internet Communication Framework

 

 

Note 1009930 - (Display) problems in View Designer when you load a view

Summary
Symptom


Various problems may occur when you load a view in the View Designer, mainly with the preview display.


1) A Java Script error dialog box ("Object expected") appears immediately after the loading process or when you switch to change mode.


2) The preview is not displayed. Instead, the error message "403 Forbidden" appears.


3) When you try to start the View Designer using a proxy, an error message appears, indicating that the page cannot be displayed, or that the DNS or server cannot be found.


4) The entire preview area in the View Designer remains white, but no error message is issued.


5) The preview is not displayed. Instead, the system issues the error message "The page cannot be displayed".

Other terms


Web Dynpro ABAP, view, View Designer, layout, preview, JavaScript, proxy, HTTPURLLOC

Reason and Prerequisites


1 a) An error occurred while urgently required Java Script files were read from the Mime Repository (-> Note 979039).

  b) This error stems from a timing problem between the View Designer and HTML Control. The mode is changed before the preview is fully loaded. This Java Script error therefore occurs during the reloading operation (which is connected to the mode change). No feasible options are available to solve this problem.


2 a) One or more services required by the View Designer are not available. These must be activated in transaction SICF.
(-> Notes 1008689, 1088717, 603624)

  b) The HTTP protocol (standard) is mistakenly used, where HTTPS should in fact be used. In transaction SMICM, deactivate the HTTP service for all affected application servers.


3) The proxy connection requires a corresponding entry in the HTTPURLLOC table. Either the entry cannot be read, or it is not available (-> Notes 979039, 983386)


4) Check the HTTPURLLOC table. It may contain an incorrect entry.


5) Using transaction SMICM or RZ11, check the setting of the profile parameter icm/host_name_full. This should display a fully specified host name, but under no circumstances must it display entries of the form "localhost".

Solution


In addition to the notes specified above, refer to the notes listed under "Related Notes".


In addition, the following documentation links may be useful (you can directly access the links in the attached HTML file):

HTTPURLLOC: http://help.sap.com/saphelp_nw2004s/helpdata/en/42/d547ab30b6473ce10000000a114e5d/frameset.htm

url generation:
http://help.sap.com/saphelp_nw2004s/helpdata/en/59/31ae42e0fac911e10000000a1550b0/frameset.htm

SMICM and service functions:
http://help.sap.com/saphelp_nw2004s/helpdata/en/ac/8f813a34872769e10000000a114084/frameset.htm

profile parameters:
http://help.sap.com/saphelp_nw2004s/helpdata/en/95/1528d8ca4648869ec3ceafc975101c/frameset.htm

 

 

Affected Releases
Software Component Release From Release To Release And subsequent
SAP_BASIS 70 700 701
SAP_BASIS 71 710 711

 

 

Related Notes
1122599 load_application does not correctly generates absolute URL
1088717 Active services for Web Dynpro ABAP in transaction SICF
1008689 No layout preview due to inactive ICF nodes
983386 HTMLViewer: SSO Navigation using HTTPURLLOC settings.
979039 JavaScript error when you load a Web Dynpro ABAP View
773830 FQHN determination in ICM
677118 SP31-> Fully Qualified Domain Names Check
654982 URL requirements due to Internet standards
603624 HTTP error 403 - Forbidden / You are not authorized to view
434918 Configuration for fully qualified host names for BSP
  相关解决方案