You are reading the article Sap Demand Management Tutorial: Md61, Md62, Md04, Md74, Md75 updated in December 2023 on the website Daihoichemgio.com. We hope that the information we have shared is helpful to you. If you find the content interesting and meaningful, please share it with your friends and continue to follow and support us for the latest updates. Suggested January 2024 Sap Demand Management Tutorial: Md61, Md62, Md04, Md74, Md75
What is Planned Independent Requirement(PIR)?Planned Independent Requirements (PIR) are used to perform Demand Management functions.
A Planned Independent Requirement contains one planned quantity and one date for a material, or one planned quantity split over time according to dates.
PIR version “00” has an active indicator, which specifies that requirements would be considered in Material Requirement Planning (MRP).
If you want to maintain a number of versions of planned independent requirements, but do not want to include all versions in the material requirement planning run, you can set some versions to active and others to inactive, which could be used for simulations in Long term Planning.
PIR’s are associated with requirement type which is driven from planning strategies in the material master, which determines methods of planning – Make to Stock or Make to Order.
PIR’s are displayed in stock requirement list so that Planner can see and plan the production based on it.
PIR’s are generally used in Make to stock environment where business wants to build the stock based on the forecast and not on sales orders.
Impact of Planning Strategies
Planning strategies are broadly categorized into Make to Stock (MTS) and Make to Order (MTO).
Make to Stock
Make-to-stock production is implemented if you produce stock without waiting for sales orders to arrive because you want to deliver your customers immediately with materials from that stock later on. You might even want to build stock without having sales orders, if you predict that there might be customer demand in the near future.
Make-to-stock strategies are usually associated with a lot-size key or a rounding value. For example, you may want to produce the entire amount for the whole month once in a month only, or you may want to produce for the exact PIR quantity.
In Planning Strategy 10, only PIR quantity is considered for MRP run and sales orders are completely ignored. PIR is reduced when you deliver the stock to the customer. PIR has requirement type LSF.
In Planning Strategy 40, Max of 2 (PIR and sales orders) are considered for MRP and PIR is reduced as soon as sales orders are entered. PIR has requirement type VSF.
Make to Order
You do not want to produce finished products until you receive a sales order from the customer.
PIR are not considered in MTO, and only sales orders are considered in MRP.
You produce sales order stock and can deliver to the specific customer only unlike in MTS scenario.
Planning strategy (20) is widely used for make to order process and strategy 25 is used for MTO with variant where customer asks for variants in products.
In this tutorial- you will learn
How to Create Planned Independent Requirement (PIR)Step 1) From SAP Easy access screen open transaction MD61
Enter single material or Reqmts plan (for multiple materials) for which demand needs to be created.
Enter MRP area and Plant Code “INA2”.
Enter version as “00”, which is active version and requirements would be considered in MRP run.
Enter the Planning horizon dates for which demand needs to be created.
Enter planning period as month M.
or press Enter to go to the next screen.
Step 2) In this Screen we are going to enter the requirement quantity in monthly buckets,
Version “00” and Active check box flagged would come as default which means it is an active requirement and would be considered in MRP run.
Enter the requirement quantity in monthly buckets
How to Change PIR
to save after filling all data, the system will show message
Step 1) From SAP Easy access screen open transaction MD62
Enter parent material for which PIR needs to be changed.
Enter Plant Code.
Enter version as “00”.
Input the planning horizon dates with planning period as month M.
Change the requirement quantity to 900 as shown below.
How to display Stock/Requirement Listto save PIR. The system will show a message likechanged at the lower left corner.
Step 1) From SAP Easy access screen open transaction MD04
Enter material for which stock/requirement list needs to be displayed.
Enter Plant Code.
Display stock/requirements list of the material, where you can see PIR (requirement type VSF driven from planning strategy 40 in material master MRP3 view ) quantity of 1000 EA reduced to 939 by sales orders.
How to delete PIR dataStep 1) From SAP Easy access screen open transaction MD74/MD75
Enter Plant code
Enter Key date before which you need to delete whole PIR data of the plant if no material is selected in the screen.
Flag Record history, delete inactive version and create list check box.
Step 2) In next screen, you will see the messages regarding deletion of PIR.
Check the messages regarding deletion of PIR.
Troubleshooting
There might be the case wherein material master record does not exist. For this, you need to create the material master for the material before creating PIR.
Ensure right planning strategy is in place in material master which drives the requirement type of PIR and based on that PIR is considered in MRP run.
You're reading Sap Demand Management Tutorial: Md61, Md62, Md04, Md74, Md75
What Is Sap Security? Complete Tutorial
In this SAP Security tutorial for beginners, we will learn about SAP Security basic concepts.
What is SAP Security?
SAP Security is a balancing act for protecting the SAP data and applications from unauthorized use and access. SAP offers different tools, processes and measures for security check to protect these data. SAP security helps to ensure that users can only use the functionality of SAP which is a part of their job.
SAP Systems contain very sensitive and confidential data of their clientele and businesses. Hence, there is a need for a regular audit of an SAP computer system to check its security and data integrity.
For instance, an employee in a warehouse who is responsible for creating a purchase order shall not approve a rightful purchase order or otherwise he may create and approve as many purchase order without any use.
In such scenario, the purchase order approval should be controlled by a higher authority which is a standard security feature.
Next in this SAP Security for beginners tutorial, we will learn about various Security concepts in SAP.
Security Concepts for SAP
Below are the main Security Concepts in SAP:
1. STAD DataTransaction codes are the front door to get the access to SAP’s functionality. STAD data provide security against unauthorized transaction access. Does it keep a record of information like who accessed certain critical functionality? And when? STAD data can be used to monitor, analyze, audit and maintain the security concept.
2. SAP Cryptographic librarySAP Cryptographic Library is the default encryption product delivery by SAP. It is used for providing Secure Network Communication (SNC) between various SAP server components. For front-end components, you need to buy an SNC certified partner product.
3. Internet Transaction Server (ITS) SecurityTo make SAP system application available for access from a web browser, a middleware component called Internet Transaction Server (ITS) is used. The ITS architecture has many built-in security features, such as to run the Wgate and Agate on separate hosts.
4. Network Basics (SAPRouter, Firewalls and DMZ, Network Ports)The basic security tools that SAP uses are Firewalls & DMZ, Network Ports, SAPRouter, etc. A firewall is a system of software and hardware components which define the connections that should pass back and forth between communication partners. SAP Web dispatcher and SAPRouter are examples of application level gateways that you can use for filtering SAP network traffic.
5. Web-AS Security (Load Balancing, SSL, Enterprise Portal Security)SSL (Secure Socket Layer), is a standard security technology for establishing an encrypted link between a server and client. With SSL you can authenticate the communication partners(server & client), by determining the variables of the encryption.
With sap cyber security, both partners are authenticated. The data transferred between the server and client will be protected so any manipulation in the data will be detected. In addition to that data transferred between the client and server is also encrypted. Enterprise portal security guide can be helpful to secure the system by following their guidelines.
6. Single Sign-OnThe SAP single sign-on function enables you to configure same user credentials to access multiple SAP systems. It helps to reduce administrative costs and security risk associated with maintaining multiple user credentials. It ensures confidentiality through encryption during data transmission.
7. AIS (Audit Information System)AIS or Audit Information System is an auditing tool that you can use to analyze security aspects of your SAP system in detail. AIS is designed for business audits and systems audits. AI presents its information in the Audit InfoStructure.
Next in this SAP Security tutorial, we will learn about SAP security for mobile apps.
SAP Security for Mobile SAP AppsSAP applications are now available on mobile with an increase in the mobile users. But this exposure is a potential threat. The biggest threat for an SAP app is the risk of an employee losing important data of customers.
The good thing about mobile SAP is that most mobile devices are enabled with remote wipe capabilities. And many of the CRM- related functions that organizations are looking to mobilize are cloud-based, which means the confidential data does not reside on the device itself.
Some of the popular mobile SAP security providers are SAP Afaria, SAP Netweaver Gateway, SAP Mobile Academy and SAP Hana cloud.
Next in this SAP Security for beginners tutorial, we will learn about best practices for SAP security.
SAP Security Best Practices Checklist
Network settings and landscape architecture assessment
OS security assessment where SAP is deployed
DBMS security assessment.
SAP NetWeaver security assessment
Internal assessment of access control
Assessment of SAP components like SAP Gateway, SAP Messenger Server, SAP Portal, SAP Router, SAP GUI
Change and transport procedure assessment
Assessment of compliance with SAP, ISACA, DSAG, OWASP standards
SummarySAP Security is a balancing act for protecting the SAP data and applications from unauthorized use and access.
Security Concepts for SAP
STAD Data
SAP Cryptographic library
Internet Transaction Server (ITS) Security
Network Basics (SAP Router, Firewalls and DMZ, Network Ports)
Web-AS Security (Load Balancing, SSL, Enterprise Portal Security)
Single Sign-On
AIS(Audit Information System)
The good thing about SAP security for mobile apps is that most mobile devices are enabled with remote wipe capabilities.
SAP Security Best Practices
Network settings and landscape architecture assessment
OS security assessment where SAP is deployed
DBMS security assessment
SAP NetWeaver security assessment
Business Intelligence Architect (Sap Bw
Designation – Business Intelligence Architect (SAP BW / Qlikview)
Location – Pune
About employer – Datwyler
Job description:
Responsibilities
Reporting to the Head of ERP Services will have global responsibility for leading and overseeing the complete life cycle design and development of our enterprise data warehouse, data marts, analytics reports and dashboards.
The successful candidate will need to communicate effectively with business stakeholders at all levels of the organization and translate their information needs into technical requirements. Additionally, the successful candidate would apply Business Intelligence design and development best practices to develop and deploy robust analytic solutions.
As new information sources are being integrated into the business intelligence platform, the business intelligence architect would collaborate with the business stakeholders as well as IT stakeholders to ensure and validate that the platform is delivering accurate, complete and timely information that drives informed decision making.
You will be responsible for the technical architecture and maintenance of the Business Intelligence architecture and tools including, SAP BI/BW and QlikView and other 3rd-party data warehouse applications.
You will design and develop ETL, dimensional models, reports and dashboards and work closely with the ERP developers to develop and implement end to end solutions.
You will provide support maintenance, issue management, issue analysis, troubleshooting, issue resolution, validation and testing for existing and new data marts, reports and dashboards in all the BI platforms and tools (SAP BW, Qlikview).
You will identify and analyze existing data sources and develop queries to extract source data to support analytic report and dashboard requirements.
You will analyze quality of existing data and work closely with the ERP Services team to recommend application enhancements to insure data integrity.
You will provide content knowledge to the management and you will support the full lifecycle of solutions from execution of new projects through operation to departure.
You will facilitate the business requirements gathering sessions and ensure the information is captured/ documented as deliverables out from the business requirements gathering sessions.
You will analyze the business requirements comprehensively together with the business process owners, verifying the underlying business needs recommending analytic report/dashboard solutions that meet business needs as well as leverage business intelligence discipline best practices.
You will provide end user training and develop effective training material.
You will assist in outlining new developments business case justification to ensure that proposed solution is capable of delivering articulated business benefits to the business owners.
You will develop, manage and maintain change management documentation to comply with IT change management processes
Qualification and Skills Required
Bachelor’s degree in Business, Information Services, or Computer Science is required
Preferred experience in Life Sciences industries (Pharmaceutical, Medical Devices, Medical Products, Biotech).
Strong experience building and enhancing BI objects such as Info Objects, Info Cubes, Info Sources/Data Sources, Master Data, Transformations, Update Rules, ODS, Extractors, Info sets, Aggregates, Process Chains, User Exits
Strong experience of ETL from SAP and Non-SAP data sources
Experience in ABAP development, as needed for ETL.
Strong experience with BI reporting tools; experience in Qlikview will be considered a strong plus
Business/functional process from an extractor perspective and reporting knowledge in the ERP areas: Sales and Distribution, Production and Planning, Financials and Controlling, Quality Management and Materials Management.
Strong knowledge of ITIL or COBIT frameworks
Expert in implementation of projects (ASAP Methodology)
Planning and estimating the work and resources required to deliver
Monitoring and controlling schedule, cost & effort variance
Client relationship management, strong negotiation and collaboration skills.
Demonstrated skills in creative and critical thinking, teamwork, decision-making and time management.
Excellent written and verbal communication and presentation skills.
Experience of working in a large and complex organization.
Ability to work independently and as part of a team
Willingness to travel
Languages: Fluent English, Dutch or German a plus
Interested people can apply for this job can mail their CV to [email protected] with subject as Business Intelligence Architect (SAP BW / Qlikview) – Datwyler Sealing – Pune
If you want to stay updated on latest analytics jobs, follow our job postings on twitter or like our Careers in Analytics page on FacebookRelated
Linkedin Reports Demand For ‘Creator’ Jobs Up 3X
A new report from LinkedIn shows that job postings have tripled for creator-related positions as brands invest in new ways to drive engagement.
The growth in demand for creators is fuelling a whole ecosystem of new jobs, LinkedIn says.
In addition to hiring creators themselves, companies hire for administrative and support roles such as creator managers, creator educators, creator partnerships, and more.
Job opportunities in the creator economy are most abundant in the technology and information sectors. Social platforms such as TikTok, Instagram, and YouTube are among the most used by businesses hiring creators.
Here’s a complete list of the top ten industries with the most open jobs for creators.
Top Ten Industries For ‘Creator’ JobsThe following list is ordered based on the number of paid U.S. job postings on LinkedIn with “creator” in the job title during the January-through-May periods for 2023 and 2023.
LinkedIn ranks the industries according to the number of creator job postings this year.
Technology & information
Advertising services
Staffing and recruiting
E-learning providers
IT services & IT consulting
Musical groups & artists
Media & telecommunications
Retail apparel & fashion
Computers & electronics manufacturing
Food & beverage services
You may notice the growth of creator jobs isn’t limited to image-focused industries like fashion, travel, dining, and others.
Now numerous industries are looking for creative talent to help produce content for social media.
If you’re wondering what an IT services creator does or what a staffing and recruiting creator does, look by searching for a related keyword on TikTok.
Here are some examples of what comes up when you search for “information technology” and “recruiting.”
Today’s web users are growing up using apps like TikTok as a search engine. They want to consume information quickly and in a video format.
Companies are responding to the demand by producing their own short, vertical videos to share on TikTok, Instagram Reels, and YouTube Shorts.
The growing demand for creators to produce said content aligns with the shift in search behavior we reported last month.
The brands that adapt to this change early are the ones who will maintain their influence over a new generation of consumers.
If you’re currently in the job market or looking to increase your value in your current position, learning a few creative skills to add to your resume can help you stand out.
Source: LinkedIn
Featured Image: metamorworks/Shutterstock
Coded Ui Test Automation Framework Tutorial
A typical software automation Testing requires automation tools like Selenium and QTP. Coded UI is similar to these tools and can be particularly useful for functional tests.
Coded UI Test ( CUIT) uses Visual Studio IDE to write scripts, as the recording can be done using Visual Studio.
In this Coded UI tutorial for beginners, you will learn-
What is Coded UI Test?
Coded UI Test (CUIT) is an automated test that drives applications through its user interface (UI). Hence, the name Coded UI Test (CUIT). This test involves functional testing of the UI controls. It checks the functionality of the whole application, including the user interface. It is also used to automate an existing manual test.
UI Test Architecture
Coded UI Test FeaturesCoded UI features include
Functional Testing
Generate code in VB/C#
Integrated with ALM story
Build, deploy & test in the lab or as part of a build
Local, remote runs, data collection
Rich Extensibility
Intent-aware recording and resilient playback
Coded UI Test (CUIT) Supported TechnologiesWith coded UI, an application which has UI (User Interface) can be easily tested. The application can be either window based or web based.
Coded UI supports technologies like
Window based desktop applications
Web Services (SOAP, ASPX, etc.)
Window phone applications
WPF (Windows Presentation Foundation)
Web applications (HTML, Silverlight, HTML5)
Why use coded UI for Test AutomationThe reason why coded UI for test automation is preferred
Developers and Software Testers can collaborate effectively using the same tools/language.
It supports both web as well as Windows projects.
The element identification mechanism is a great feature in Coded UI. Also, it supports synchronization
The Playback Engine supports features such as ‘WaitForControlExist’ , ‘WaitForReadyLevel’, etc
With the help of ‘Tests Agents,’ automation tests can be run on remote machines
Automation teams can develop sophisticated tests, using coded UI with a layered framework
Software testers can capture exceptions and record the result effectively utilizing log4net.dll
Coded UI tool supports descriptive programming. It allows software testers to automate scenarios based on object properties
It supports AJAX controls.
How to Create Coded UI Tests (CUIT)To create coded UI tests you can do it in following ways.
Generating from an Existing Action Recording ( converting from manual test recording)
Creating a new coded UI test from scratch
Writing code from scratch
Contents of a Coded UI TestWhen you create a coded UI test, the coded UI test builder creates a Map. This includes UI under test, test methods, parameters, assertions, etc. For each test, it also creates a class file.
File Content Editable
UIMap.Designer.cs Declaration section UIMap Class Methods Properties No
UIMap.cs UIMap class (partial) Yes
CodedUITest1.cs CodeUITest1 class Methods Properties Yes
UIMap.uitest The XML map of the UI for the test. It is edited only through UI Map editor No
chúng tôi : The designer contains the code view of the UIMap. It is generated when a tester records some UI interaction or when some objects are added manually to the UIMap.
chúng tôi : Any modification or customization done to the UIMap is stored in this file. Initially, this file will be blank and can be populated later on. If modifications are directly made to the chúng tôi file, make sure it is not recorded otherwise all changes will be lost.
chúng tôi : This file contains coded UI test class, test methods, assertion invocation and method invocation. All assertion and methods are by default invoked from this file.
UIMap.uitest: It is an XML representation of the UIMap class. It includes windows, controls, properties, methods, actions and assertions. It is edited only through UI Map editor
Next in this Coded UI tutorial, we will learn how to perform Coded UI automation test.
How to Perform Coded UI TestCoded UI has two different ways to conduct a test for your application.
Coded UI Record and Playback or
Coded UI Hand coding
You have to follow the following step to perform Coded UI testing,
Create a CodedUI test project
Add a coded UI test file
Record a sequence of actions
Verify the values in UI fields such as text boxes
View the generated test code
Add more actions and assertions
Edit the details of the test activities and the assertions
Run the test
Best Practices for Coded UI Test (CUIT)Here are some best practices for a Coded UI test automation framework:
Use the Coded UI automation Test Builder whenever possible
Try not to modify the chúng tôi file directly. Otherwise, the changes you made to the file will be overwritten
Create your test as a sequence of recorded methods
Each recorded method should act on a single page, form or dialog box. Also, create a new test method for each new form, page or dialog box
When you create a method, instead of the default name use a meaningful method name. A meaningful name helps identify the purpose of the method
If possible, limit each recorded method to less than 10 actions. This approach makes it easier to replace a method if the UI changes.
To create assertion use CodedUI test builder. It automatically adds an assertion method to the chúng tôi file.
Re-record the test methods/ assertion methods, if the user interfaces changes or re-records the affected sections of an existing test method.
If you are directly coding with the API, use the methods and properties in the classes created in the chúng tôi file. These classes will make your work more reliable and easier, and will help you to be more productive.
Comparison of Coded UI Test Vs Selenium Vs QTPBelow is the comparison table of Coded UI Vs Selenium Vs QTP:
Selenium does not support any WPF as well as Windows applications
Visual Studio CodedUI supports the Window store application testing as well as Window Phone application testing. No other tools support this.
Test complete does support Window Application but requires a plugin to be installed.
Comparison of Coded UI Test Vs Selenium Vs QTP
Summary:
Automated tests that drive your application through its user interface (UI) are known as CodedUI tests (CUITs).
Coded UI test automation framework supports technologies like Web Services, Window phone applications, Web applications, etc.
Coded UI Testing allows developers and Software testers to collaborate effectively using the same tools/language
Contents or a file created while using CodedUI includes
UIMap.Designer.cs
UIMap.cs
CodedUITest1.cs
UIMap.uitest
Asp.net Web Forms Tutorial: User Controls Examples
In chúng tôi it is possible to create re-usable code. The re-usable code can be used in many places without having the need to write the code again.
The re-usable code helps in reducing the amount of time spent by the developer after writing the code. It can be done once and reused at multiple places.
In this tutorial, you will learn-
Create User Control in ASP.NetASP.Net has the ability to create Web controls. These controls contain code which can be re-used. It can be used across application as per the requirement.
Let’s take a look at an example of how we can create a web user control in ASP.Net
In our example,
We are going to create a web control.
It will be used to create a header component.
It will contain the below mentioned text.”Guru99 Tutorials
“This Tutorial is for ASP.Net”
Let’s work with our current web application created in the earlier sections. Let’s follow the below steps to create a Web user control.
Step 1) The first step is to create a web user control and add it to our Visual Studio Solution.
Step 2) In the next step, we need to choose the option of creating a web user control
We then give a name for the Web Control “Guru99Control”.
You will the see the “Guru99Control” added to the solution.
Step 4) Now it’s time to add the custom code to the Web user control. Our code will be based on pure HTML syntax. Add the following code to the ‘Guru99Control.ascx’ file
Code Explanation:-
In our Web Control file, we are first creating a table element. This will be used to hold 2 rows of text which will be used to display
“Guru99 Tutorials” and
“This Tutorial is for ASP.Net.”
Next, we define our first table row and put the text as “Guru99 Tutorials.”
We then define our second table row and put the text as “This Tutorial is for ASP.Net.”
NOTE: Now we cannot execute this code and show the output. The only way to see if this works is to include it in our application (aspx file). We will see this in the sub-sequent topic.
Registering User Controls on a chúng tôi web formsIn the earlier section, we saw how we can create a custom web control. This can be used to display the following two lines in a web form
“Guru99 Tutorials”
“This Tutorial is for ASP.Net.”
Once the custom ‘control’ is created, we need to use it in our web application. The first step is to register the component in our application (Demo.aspx). This is the pre-requisite to use in any custom web control in an chúng tôi application.
Let’s look at how we can achieve this. The below steps are a continuation to the previous section. In the previous section, we have created our custom control. In this section, we will use the control in our Demo.aspx web form.
First, we will register our custom ‘control’ into the chúng tôi file.
The default code consists of steps, which are required to ensure that the form can run as an chúng tôi web form in the browser.
Step 2) Now let’s add our code to register the user control. The screenshot below shows registration of the user control to the above basic code.
Code Explanation:-
The first step is to register the web user control. This comprises of the below basic parameters
The ‘Register’ keyword is used to register the web user control.
The src parameter is used to define the name of the control, which in our case is Guru99Control.ascx.
The tagname and Tagprefix are individual names given to the control. This is done so that they can references in HTML pages as a normal HTML control.
Next, we reference our Web user control via the TagPrefix:TagName which was assigned earlier. The TagPrefix:TagName is an indicator that we want to use our custom web control. When the page is processed by the web server, you can see we have used the TWebControl:WebControl tag. It will then process the ‘Guru99Control’ chúng tôi our example, it is TWebControl:WebControl.
An optional ID is given to the control of “Header”. It’s generally a good practice to give an ID to an HTML control.
Finally, the runat=server attribute so that the control will run on the web server. For all chúng tôi controls, this is the default attribute. All chúng tôi controls (including custom controls) have to be run on the server. Their output is then sent from the server to the client and displayed in the browser accordingly.
When the above code is set, and the project is executed using Visual Studio. You will get the below output.
Output:-
The output message displayed in the browser shows that the web user control was successfully executed.
Registering chúng tôi controls globally in the web config configuration file aspSometimes one might want to use user controls in multiple pages in a .Net application. At this point, you don’t want to keep on registering user controls on each and every chúng tôi page.
In .Net you can carry out the registration in the ‘web.config’ file.
The web.config file is a common configuration file used by all web pages in .Net project.
It contains necessary configuration details for the chúng tôi web project. For example, one common configuration in the web.config file is the target framework parameter.
This parameter is used to identify the .Net framework version used by the application.
Below is a snapshot of the default code in the web.config file. The highlighted part is the target framework part.
Let’s see how we can register our Guru99Control in the web.config file.
When you open the web.config file, you might see the below configuration. The ‘web.config’ is added automatically by Visual Studio when the project is created. This is the basic configuration required to make the chúng tôi project work properly.
Step 2) Now let’s register our component in the web.config file. We need to add the below lines for that.
The registration comprises of the below substeps
Then we register the user control with the additional tag. The remaining parameters of tagPrefix, tagName and src remain the same as before.
Step 3) Remember to go the ‘demo.aspx’ page and remove the lines for control, which had the registration of the Guru99 component. If you don’t perform this step, then the ‘Guru99Control.ascx’ a file will be executed from the ‘demo.aspx’ file instead of ‘web.config’ file.
The above code is set, and the project is executed using Visual Studio. You will get the below output.
Output:-
The output message shows that the web user control was successfully executed.
Adding public properties to a web controlDemo Form
The ‘div’ tag is used to create a section in an HTML document. The ‘div’ tag has a property called a style property. This can be used to give a different style to the text displayed in the div tag. Normally you would see the code for the div tag as shown below.
So the color attribute is nothing but a key-value pair which gives more information on the tag itself. In the above case, the key name is ‘style’ and the key value is ‘color:#0000FF’.
Similarly, for user controls, you can create your own properties that describe the control.
Let’s take a simple example and build upon our ‘Guru99Control’ created in the earlier sections.
In our example, we are going to add a simple integer property called MinValue. This value would represent the minimum number of characters in the text displayed in the user control.
Let’s carry out the below-mentioned steps to get this in place.
Step 1) Open the chúng tôi file. Add the code for adding the MinValue property.
public int MinValue = 0;
Code Explanation:-
The script runat=server attribute is used to indicate that we are adding chúng tôi specific code and that it needs to be run on the web server.
This is required for processing any property added to the user control. We then add our property MinValue and give it a default value of 0.
Step 2) Now let’s reference this property in our chúng tôi file. All we are doing now is just referencing the MinValue property and assigning a new value of 100.
NOTE: – When you run this code, it will not show any output. This is because the output falls under 100 character limit.
Summary
ASP.Net has the ability to create user controls. User controls are used to have code which is used multiple times in an application. The user control can then be reused across the application.
The user control needs to be registered on the chúng tôi page before it can be used.
To use user control across all pages in an application, register it into the web.config file.
Properties can also be added to a web user control.
Update the detailed information about Sap Demand Management Tutorial: Md61, Md62, Md04, Md74, Md75 on the Daihoichemgio.com website. We hope the article's content will meet your needs, and we will regularly update the information to provide you with the fastest and most accurate information. Have a great day!