Technology Blogs by SAP
Learn how to extend and personalize SAP applications. Follow the SAP technology blog for insights into SAP BTP, ABAP, SAP Analytics Cloud, SAP HANA, and more.
cancel
Showing results for 
Search instead for 
Did you mean: 

Analyzing Web Dynpro Adaptations

   

Motivation

Adaptations are one of the most powerful concepts in Web Dynpro ABAP.
 
Having an SAP delivered Web Dynpro Component ready for use you are enabled to perform complex adjustments concerning your business needs without coding a single line of code.
For details of the adaptation concept and how to use adaptations please follow read the blog by Regina Breuer http://scn.sap.com/community/web-dynpro-abap/blog/2013/08/09/team-wda-configuration-customizing-pers....
However - having such a highly adapted component in place may generate the demand to investigate why a certain adaptation is working or is not working as expected.
 
Several tools are available supporting different entries to view the adaptation details.

 

Analyzing an adapted component

Before having a look at various tools first we need an adapted component to play around.

 
Build up an adapted component by customizing and personalization of the SAP delivered test application wdr_test_pers_imp_exp.
 
If you want to work with an own configuration you can use the configuration editor to create it.
Configuration editor works quite similar to customizing editor. For details see customizing a Web Dynpro component at design time.

Customizing a Web Dynpro Component

Customizing a Web Dynpro Component can be done in two different modes:
 
  • Runtime
    Customizing is switched on in runtime mode when you run your application with the additional url-parameter sap-config-mode=X.
    Customizing at runtime shall be used for Build-In adaptations.

  • Design time
    Design time customizing takes place in the customizing editor – application (customize_component).
    Customizing at design time shall be used for Component-Defined adaptations.

Customizing a Web Dynpro Component at runtime

  • Start the application (wdr_test_pers_imp_exp) with url-parameter sap-config-mode=x.
  • Hide one plane icon. Click the right mouse button on this field and choose “Settings for current configuration” in the context menu.

  • Set the image to invisible input. And press button “Save and Close”.
  • In the transport request popup box choose “No Transport Request”.
  • Press Settings and change the treshold settings. And press button “Save”.
  • In the transport request popup box choose “No Transport Request”.

  • Changes are applied instantly:

Personalization of a Web Dynpro Component at runtime 

  • Start the application (wdr_test_pers_imp_exp).
  • Adjust the flight table. click the right mouse button and choose "More...".
  • Remove the Date column and press OK..
  • Changes are applied instantly and saved automatically:
     
   

Analyzing all Adaptations at runtime with Runtime Analysis Tool (RAT)

The runtime analysis tool (RAT) enables you at runtime to ascertain the levels in which adaptations have been made to the user interface of a Web Dynpro ABAP application. It is available since NW 7.31 SP07 and NW 7.40 SP0.
 
Be sure you have developer permissions assigned to your user.
 
Activate the runtime analysis tool (RAT) in transaction WD_TRACE_TOOL:
 
    • Press Button “Activate for this user”.
    • Select WD Component Configuration
    • OK
       
  • Start the application.
  • Customized and personalized adaptations are active.

 
  • Analyze the adaptation by clicking right mouse button on any position of this screen and select “Technical Help” from context menu.

  • Choose tab “Adaptations”
  • The following levels of adaptation may exist:
    • ENH – enhancement
    • CON – configuration
    • CUS – customizing
    • PRS – personalization

  • For each level of available adaptation you can select the entry in the adaptation list.
  • Selecting an adaptation level will show the details for Build-In and Component Defined adaptations up to this level.
  • Comparing the changes it is easy to find out on which level which adaptation is applied.
    In our case you see that the value of attribute "CONFIG_LOW" has been changed  in customizing to value “30”.

  • The Built-In adaptations are also available for each level:

  • Keep in mind that showing up in the adaptation details doesn’t mean that this entity has been adapted at the selected level.
    It means that there is an adaption changing this entity on this level. The adaption may exist on a level below or on the selected level.
  • The adaptations details always show the actual adaptation that influences the entity on the selected level. It will not show the delta from the underlying level.

Analyzing Configurations with WD_ANALYZE_CONFIG_COMP

The WD_ANALYZE_CONFIG_COMP is a tool to analyze a certain configuration of a WebDynpro component in a static way.
This tool is not available at runtime.

Deletion and transport of configurations is also possible.

Only configuration – no customizing is supported.
Since we did not change configuration, here only a short introduction to this tool:

  • In SE80 search for Web Dynpro application “WD_ANALYZE_CONFIG_COMP” and start it.
  • Enter your configuration to be analyzed.
  • From a list of available configurations you can select your desired configuration for inspection of adaptation details.
    It is also possible to delete or transport a configuration.

  • Selecting a configuration will show the details of Build-In and Component Defined adaptations.

Analyzing Customizing and Personalization with WD_ANALYZE_CONFIG_USER

The WD_ANALYZE_CONFIG_USER is a tool to analyze a certain customizing and personalization of a WebDynpro component in a static way.
 
Deletion of personalization and customizing and transport of customizing is possible.

  • Start your application and call technical help via context menu.
  • Click on the Personalization ID to navigate directly to the WD_ANALYZE_CONFIG_USER - tool.
    Navigation is not supported in older releases. Start the WD_ANALYZE_CONFIG_USER application and search with your Personalization ID.

  • The list of Component Personalizations contains personalizations and customizings of the selected configuration.
  • Entries with user „*“ and User Scope „A“ identify customizings whereas entries with a real username and User Scope “U” are personalizations.
  • Selecting a personalization / customizing will show the details for Build-In and Component Defined adaptations.


3 Comments