SlideShare a Scribd company logo
1 of 8
Download to read offline
sapuniversit y.eu http://sapuniversity.eu/usage-and-significance-of-various-layouts-in-webdynpro-abap/
Usage and significance of various layouts in WebDynpro
ABAP
Avinash Palavai
Introduction:
Layouts are used to arrange the UI elements as per our requirement. As we don't have the drag and drop
f acility in WebDynpro, we use layouts.
There are f our types of layouts,
1. Flow Layout :- It is a def ault layout. In this layout, all the UI elements will f low f rom lef t to right
sequentially in a view.
2. Row Layout :- In this layout, we have the options to set the UI element in a same or separate line.
They are,
a. Row Head Data : It places the UI element in separate or f resh line.
b. Row Data : It places in same line.
The disadvantage with row layout is, it doesn't f ollow any vertical f ormat.
3. Matrix Layout :- This layout is also almost same as row layout, which is used to place the UI
element in a separate or same line. The options available are,
a. Matrix Head Data : It places the UI element in separate or f resh line.
b. Matrix Data: It places in same line.
The main advantage is, it f ollows the vertical f ormat.
4. Grid Layout : This layout has user f riendly options to arrange the UI elements like column count,
padding lef t, padding right, padding top, padding bottom, cell spacing etc. This layout also f ollows
the Grid layout.
The below demo explains the usage and signif icance of all these layouts.
Procedure:-
1. Create a WebDynpro component.
2. In the context of main view, create a node "NODE_MARA"with any f our f ields f rom MARA
structure.
3. Create f our Group Containers in the Main view with the name Flow
4. Maintain the text property under Caption as Flow Layout.
5. In the same way create another 3 group containers with names Row, Matrix and layout with texts
under caption as Row Layout, Matrix Layout and Grid Layout respectively.
6. Maintain a transparent container between each Group Container and set the height property as
40px, to maintain some space between all the f our Group containers.
7. Create container f orm in all the f our group containers by right clicking on the container name and
bind the f ields.
8. Click on context and select the node NODE_MARAf rom the context.
9. Main view will appear as below af ter creating container f orms and binding the context node in all
the f our containers, as the def ault layout is Flow Layout.
10. Now leave the f irst container (FLOW) as it is and set the layout property of Row, Matrix and Grid
group containers as Row layout, Matrix Layout and Grid Layout respectively and set the colcount
property in Grid group Container as 2.
11. Now in the row group container, set the Layout Data property of all the labels as Row Head Data
and all the input f ields as Row Data.
12. Similarly in matrix group container, set the Layout Data property of all the labels as Matrix Head
Data and all the input f ields as Matrix Data.
13. Now in grid group container set the padding Top property of MTART input f ield as 20px.
14. Create the WebDynpro application and test it.
15. The screen will appear as below according to the layout settings done.
16. The dif f erences in the vertical f ormat between Row and Matrix layouts can be clearly observed and
also the impact of padding Tip property set in Grid group container.

More Related Content

Featured

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

Featured (20)

Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 

Sapuniversity.eu usage and-significance_of_various_layouts_in_web_dynpro_abap

  • 1. sapuniversit y.eu http://sapuniversity.eu/usage-and-significance-of-various-layouts-in-webdynpro-abap/ Usage and significance of various layouts in WebDynpro ABAP Avinash Palavai Introduction: Layouts are used to arrange the UI elements as per our requirement. As we don't have the drag and drop f acility in WebDynpro, we use layouts. There are f our types of layouts, 1. Flow Layout :- It is a def ault layout. In this layout, all the UI elements will f low f rom lef t to right sequentially in a view. 2. Row Layout :- In this layout, we have the options to set the UI element in a same or separate line. They are, a. Row Head Data : It places the UI element in separate or f resh line. b. Row Data : It places in same line. The disadvantage with row layout is, it doesn't f ollow any vertical f ormat. 3. Matrix Layout :- This layout is also almost same as row layout, which is used to place the UI element in a separate or same line. The options available are, a. Matrix Head Data : It places the UI element in separate or f resh line. b. Matrix Data: It places in same line. The main advantage is, it f ollows the vertical f ormat. 4. Grid Layout : This layout has user f riendly options to arrange the UI elements like column count, padding lef t, padding right, padding top, padding bottom, cell spacing etc. This layout also f ollows the Grid layout. The below demo explains the usage and signif icance of all these layouts. Procedure:- 1. Create a WebDynpro component. 2. In the context of main view, create a node "NODE_MARA"with any f our f ields f rom MARA
  • 3. 3. Create f our Group Containers in the Main view with the name Flow 4. Maintain the text property under Caption as Flow Layout. 5. In the same way create another 3 group containers with names Row, Matrix and layout with texts under caption as Row Layout, Matrix Layout and Grid Layout respectively.
  • 4. 6. Maintain a transparent container between each Group Container and set the height property as 40px, to maintain some space between all the f our Group containers. 7. Create container f orm in all the f our group containers by right clicking on the container name and bind the f ields.
  • 5. 8. Click on context and select the node NODE_MARAf rom the context. 9. Main view will appear as below af ter creating container f orms and binding the context node in all the f our containers, as the def ault layout is Flow Layout.
  • 6. 10. Now leave the f irst container (FLOW) as it is and set the layout property of Row, Matrix and Grid group containers as Row layout, Matrix Layout and Grid Layout respectively and set the colcount property in Grid group Container as 2. 11. Now in the row group container, set the Layout Data property of all the labels as Row Head Data and all the input f ields as Row Data. 12. Similarly in matrix group container, set the Layout Data property of all the labels as Matrix Head Data and all the input f ields as Matrix Data.
  • 7. 13. Now in grid group container set the padding Top property of MTART input f ield as 20px. 14. Create the WebDynpro application and test it.
  • 8. 15. The screen will appear as below according to the layout settings done. 16. The dif f erences in the vertical f ormat between Row and Matrix layouts can be clearly observed and also the impact of padding Tip property set in Grid group container.