Professional Documents
Culture Documents
Applies to:
This article applies to SAP ECC6.0 EhP5, SAP Netweaver 7.0 Enhancement Package 2. For more information, visit the Web Dynpro ABAP homepage
Summary
In this article demonstrate the Following Scenario. Input will be a date field and material number. Depending on the selection criteria, the output table will be filled. Output shows, to which customer, what quantity of material has to be sold. According to the quantity to be sold, the progress indicator is displayed against each Sold-To customer. Author: Renuka Srinivasan
Author Bio
Renuka Srinivasan is working as SAP Technology Consultant at Applexus Technologies (P) Ltd.
Table of Contents
Progress Indicator ............................................................................................................................................... 3 Steps: ....................................................................................................................................................... 3 Related Content ................................................................................................................................................ 12 Disclaimer and Liability Notice .......................................................................................................................... 13
Progress Indicator
The Progress Indicator UI element shows how much progress an activity has made in the form of a horizontal bar, along with the value that you have assigned to the percent Value property. You can use the display Value property to display a text in the Progress Indicator on the left side of the UI element. This makes it possible to provide descriptions with specific percentage values. We can hide the Display Value using the show Value property. We can display the Progress Indicator UI element in different colors using the bar Color property. We can assign a popup menu to a Progress Indicator. You can use the Progress Indicator UI element to display, for example, a project status in percent.
Steps:
1. Create Web Dynpro Component
2. Create View
3. Go to view and design the layout and add a label and input field for Date.
4. In the same way, create one label and input field for material.
5. Create a button to fetch data to display. 6. On the property text, fill value as Get Data. And create an action for this button by clicking the button.
7. Go to context tab and create the node and attribute for input/output. Fill node name and click enter.
11. Create a new node by right clicking context with cardinality 01. This is to build the output structure. Node name is Order_Data and add following attributes.
Similarly do the following attributes Attribute Name KUNNR MATNR ARKTX KWMENG MEINS PROGRESS 12. After this context for view1 should look like: Type KUINNR MATNR ARKTX KWMENG MEINS NUMC3
13. Now we have to bind these attributes. 14. Go to layout and click on first input field. Click on the binding tab for value property and assign the date field to it.
15. Similarly click second input field and click on select material attribute for it.
16. Create table using Web Dynpro Code Wizard and bind the attributes. The last filed is set to Progress indicator type. By default it is set to Text View. So have to manually change it to Progress Indicator and its property to percent value.
17. Under ROOTUIELEMENTCONTAINER, click on table_progress (which is the attribute under the table). Set the width value for this progress indicator as 100px.
18. We have to write the code to fetch the data from database in this action method. For this, double click the action that you created. Then do the required thing and see the following for reference.
19. Place the view inside the window. Double click the window and drag the view into it. 20. Create a Webdynpro application for this component.
Related Content
ProgressIndicator https://cw.sdn.sap.com/cw/docs/DOC-30993 ProgressIndicator Properties - Properties in the View Designer