Skip to Content
Author's profile photo Ramakrishnappa Gangappa

Customize view fields using application configuration in Webdynpro ABAP

Purpose:

Demonstrate the scenario of customizing the properties of view ui elements / hiding view fields using application configuration in SAP Webdynpro ABAP

Scenario:

Here I consider the scenario to hide the view ui elements: SECTIONTITLE_LBL & SECONDTITLE_DDLB in WD component HRRCF_C_PERSONL_DATA_UI using application configuration

Pre-requisite:

Basic knowledge of Webdynpro ABAP

The current output of view is as below

result_before.PNG

Steps:

Right click on application and go to create/change configuration option as below

/wp-content/uploads/2013/11/wd1_327501.png

The application configuration window opens up and give the configuration name: zwd_demo_config1 as below and click on NEW button

/wp-content/uploads/2013/11/wd2_327502.png

Provide the description for configuration and click on OK button as below

wd3.PNG

Save the application configuration in your respective package. Here I am saving it in temporary package

Now we need to create component configuration for customizing, hence click on the button:assign configuration name as below

wd4.PNG

Provide the component configuration name and click on OK button as below

wd5.PNG

Now the component configuration ZWD_DEMO_COMP_CONFIG1 is assigned as below

wd5_1.PNG

Click on component configuration id as show above and save the component configuration with description.

We have successfully created the component configuration as below

wd6.PNG

We are able to see the view and its elements in tree hierarchy as above.

Go the view ui elements SECTIONTITLE_LBL and click to see the properties of view ui element as below

wd7.PNG

We can customize all the properties of view ui elements as show above.

Here, we are going to check the properties INVISIBLE radio button and click on check box FINAL. i.e., Once we check the FINAL, user cannot customize the property.

wd8.PNG

Similarly, customize the ui element: SECONDTITLE_DDLB and SAVE the settings

Now go the WD application and add url parameter WDCONFIGURATIONID: ZWD_DEMO_CONFIG1 and save as below

wd9.PNG

Output:

result_after.PNG

Assigned Tags

      7 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo chandan mishra
      chandan mishra

      Its really helpful document.

      Author's profile photo Ramakrishnappa Gangappa
      Ramakrishnappa Gangappa
      Blog Post Author

      Thank you Chandan 🙂

      Author's profile photo Venu P
      Venu P

      Nice document rama..

      Thank you.

      Author's profile photo kartheek Reddy
      kartheek Reddy

      Hi Rama,

      I am unable to find web dynpro built in option like below, when can i find the same.

      can you please let me know

      Author's profile photo Ramakrishnappa Gangappa
      Ramakrishnappa Gangappa
      Blog Post Author

      Hi Kartheek,

      You have to click component's configuration name to view the elements tree.

      Regards,

      Rama

      Author's profile photo kartheek Reddy
      kartheek Reddy

      Hi Rama,

      Thanks for your reply but i couldn't find the option when i clicked on component's configuration, i have got the below screen , is this anything to do with FPM_GAF_COMPONENT

      Capture.JPG

      Capture1.JPG

      Author's profile photo Former Member
      Former Member

      Hi Ramakrishna,

      Its really useful document.

      I have requirement to add additional field religion under date of birth.

      Kindly suggest me ...