CRM Bol programming Make fields editable and display only
CRM Bol programming Make fields editable and display only
This blog explains how to Control CRM UI elements to edit /display using CRM BOL programming & Control the UI property.
Introduction
This article covers the basics of how you could control the UI element using CRM bol programming. We will discuss more about 5 sections of how you could control the UI element using CRM bol programmings.
The UI element using CRM bol programmings has been divided into these 5 sections where
- Requirement
- Then find the UI component
- Opening the corresponding UI component from the backend
- Then find relevant technical objects to modify
- Code changes to make the field display only or editable
Requirement: Disable a UI element on
Find the UI component in CRM BOL programming.
Open the UI component in the backend
Find the UI component and View associated with it
It shows the different view components as seen below
In order for us to change the section for communication then, we need to focus on the controller implementation class Implementation Class ZL_BP_ADDR_ACCOUNTCOMMNUM_IMPL
And View layout AccountCommNumbersEL.htm
Find relevant technical objects to modify in CRM BOL programming
This is one of the important classes which has a method DO_PREPARE_OUTPUT where you can control to make the view editable or display only
Class time in a bol entity for implementation is of the type CL_BSP_WD_VIEW_CONTROLLER
In this class, you get attributes by default which you can use to control the context behavior
For this case, we would be using VIEW_GROUP_CONTEXT
This further reference an associated interface IF_BSP_WD_VIEW_GROUP_CONTEXT
Code changes to display /edit the section
Let’s add an additional line of code that says
me->zaddress_display = ‘ ‘.
Now when the program runs, it is able to show the field as display only.
The additional setting is to create an attribute in the class
This attribute value is passed on the BSP page below
Then the code should say:
display mode = “<%= controller->zaddress_display %>”
To make all fields editable below then, you should use
me->view_group_context->set_all_editable( ).
me->zaddress_display = ‘ ‘.
After that, the HTML page, the value of Zddress, would now be passed as Blank, making the field editable.
To read more: https://blogs.sap.com/2019/10/07/crm-bol-programming-basics-of-how-to-control-display-property/ Share us
Get A Quote
Get in touch and Know more!
Email Us
info@peritosweb-d0074db2fc-evccgwfjhbbbd6gw.z01.azurefd.net
Proud Blogs that
make us stand out
Recent Home
S/4 Hana
SAP Fieldglass Resume Ranking setup
Ensure seamless SAP Integration | Secure Access | Auth0 with third-party APIs. Secure authentication &…
Recent Home
sub -O365
Choosing the Right O365 Subscription: Monthly, Annual & Hybrid Commitments
This article explores the various Microsoft 365 subscription models—monthly, annual, and hybrid—and helps you choose…
Recent Home
Awards
Peritos Wins Globalisation Excellence Award | MSME Star Stories 2024
Peritos Solutions is proud to be a winner in the “Globalisation Excellence” category at MSME…
Recent Home
Awards
Peritos Wins at NABH Quality Connect Fiesta 2024
Peritos proudly receives the NABH Quality Connect Healthcare Quality Pitch Award at the 2024 Competitions…
Recent Home
Awards
Peritos: New Zealand ICT Award Finalist for Technical Award 2025
Peritos Solutions has been named a finalist for the 2025 New Zealand ICT Technical Award,…
Thinking about a project? Get in touch with us.
Connect with Us Today through the Details Below or Fill
Out the Form for a Prompt Response
Book Free Consultation
Guaranteed response within 8 business hours.
Trusted by Startups and Fortune 500 companies
We can handle projects of all complexities.
Startups to Fortune 500, we have worked with all.
Top 1% industry talent to ensure your digital success.









