Escolar Documentos
Profissional Documentos
Cultura Documentos
Applies to:
Web Dynpro ABAP
Summary
This document explains how to get next record and previous record of ALV Table into the Container Form based on User Actions in Web Dynpro ABAP. Author: Tulasi Palnati
Author Bio
Tulasi Palnati is an Enterprise Portal Consultant at Yash Technologies, Hyderabad-India
Getting the Next and Previous Record of ALV Table into Container Form Based on User Actions
Table of Contents
Step 1: Create Web Dynpro Component ............................................................................................................ 3 Step 2: Create Node at View Level and Map the Controller Context to View Context ....................................... 4 Step 3: Embed the Standard ALV Component to Used Components of Our Component ................................. 4 Step 4: Design the Layout at View Level and Place the Code ........................................................................... 5 Step 5: Embed the view container UI Element at Window Level ....................................................................... 7 Step 6: Paste the Code in Component Controller WDDOINIT( ) Method .......................................................... 8 Step 7: Drag and Drop the Controller Context Node SPFLI_NODE to Interface Controller DATA Node .......... 8 Step 8: Save and Activate the Web Dynpro Component and Create a Application ........................................... 9 Related Content ................................................................................................................................................ 12 Disclaimer and Liability Notice .......................................................................................................................... 13
Getting the Next and Previous Record of ALV Table into Container Form Based on User Actions
Getting the Next and Previous Record of ALV Table into Container Form Based on User Actions
Step 2: Create Node at View Level and Map the Controller Context to View Context
Create a node in main View named NEXT_NODE with Structure SPFLI and Cardinality: 1n Drag and Drop the Controller Context Node SPFLI_NODE to View Context
Step 3: Embed the Standard ALV Component to Used Components of Our Component
Create an ALV Component
Getting the Next and Previous Record of ALV Table into Container Form Based on User Actions
Step 4: Design the Layout at View Level and Place the Code
Create: 1. 2. 3. 4. View Container UI Element in View Layout. Group Element in View Layout. Right Click on Group and create container form using node NEXT_NODE. Create a buttons in Group and create an action NECTRECORD, GET_PREVIOUS to that buttons. 5. Design the Layout as follows:
6. Use the ALV Controller in MAIN View. To do this go to Properties Tab and click on create controller usage Button and select as below.
Getting the Next and Previous Record of ALV Table into Container Form Based on User Actions
Getting the Next and Previous Record of ALV Table into Container Form Based on User Actions
Getting the Next and Previous Record of ALV Table into Container Form Based on User Actions
Step 7: Drag and Drop the Controller Context Node SPFLI_NODE to Interface Controller DATA Node
Go to Component Usages, Click on Controller Usage Shown on right hand side and select Component Controller.
Getting the Next and Previous Record of ALV Table into Container Form Based on User Actions
Step 8: Save and Activate the Web Dynpro Component and Create a Application
Create Application
Getting the Next and Previous Record of ALV Table into Container Form Based on User Actions
The below Screen Shot gets the Previous Record of Current Selected Record into the Container Form And on Click on Next it gets the Next Record of the Current Selected Record into the Container Form
Getting the Next and Previous Record of ALV Table into Container Form Based on User Actions
Getting the Next and Previous Record of ALV Table into Container Form Based on User Actions
Related Content
Web Dynpro ABAP Homepage Web Dynpro ABAP Wiki's
Getting the Next and Previous Record of ALV Table into Container Form Based on User Actions