How to Create Top of List and End of List of the ALV Output in Web Dynpro for ABAP

Similar documents
POWL: Infoset Generation with Web Dynpro ABAP

Integration of Web Dynpro for ABAP Application in Microsoft Share Point Portal

Table Row Popup in Web Dynpro Component

MDM Import Manager - Taxonomy Data (Attribute Text Values) Part 3

Dialog Windows in WebDynpro ABAP Applications

Web Dynpro ABAP: Changing ALV Contents and Saving in Database

Web Dynpro ABAP: Dynamic Table

Open Text DocuLink Configuration - To Access Documents which are Archived using SAP

Creating Custom SU01 Transaction Code with Display and Password Reset Buttons

Using Radio Buttons in Web Template

Fetching User Details from the Portal and Displaying it in Web Dynpro with Authentication in the Portal

Displaying SAP Transaction as Internet Application in Portal

Easy Lookup in Process Integration 7.1

Graphical Mapping Technique in SAP NetWeaver Process Integration

Web Dynpro: Coloring Table Conditionally

DB Connect with Delta Mechanism

How to Create View on Different Tables and Load Data through Generic Datasource based on that View

MDM Syndicator: Custom Items Tab

Maintaining Roles and Authorizations in BI7.0 - RSECADMIN

Step by Step Procedure for DSO Creation

Replacement Path: Explained with an Illustrated Example

Table Properties and Table Popin

How to use Boolean Operations in the Formula as Subsidiary for IF Condition

Material Master Archiving in Simple Method

Linking Documents with Web Templates

Extracting Missing Fields of Data Source Which Are Present In Their Extract Structure

Standalone BW System Refresh

How to Reference External JAR Files in Web Dynpro DC in SAP NW Portal 7.3

SDN Community Contribution

Download SAP Query Output to Local/ Network Folders in Background

Using Query Extract to Export Data from Business warehouse, With Pros and Cons Analyzed

ecatt Part 6 System Data Container

This article explains the steps to create a Move-in letter using Print Workbench and SAPScripts.

How to Default Variant Created for Report Developed In Report Painter/Writer

Limitation in BAPI Scheduling Agreement (SA) Create or Change

Add /Remove Links on ESS Home Page in Business Package 1.5

Material Listing and Exclusion

Internationalization in WebDynpro ABAP Applications

ABAP HR: Standard Info Type Enhancement

Recreating BIA Indexes to Address the Growth of Fact Index Table

Step By Step: the Process of Selective Deletion from a DSO

How to Create Business Graphics in Web Dynpro for ABAP

Step by Step Guide for PI Server Start and Stop Procedure

Step by Step Guide on How to Use Cell Definition in BEx Query

Extraction of Hierarchy into Flat File from R/3 and Loading in BW System

Explore to the Update Tab of Data Transfer Process in SAP BI 7.0

Freely Programmed Help- Web Dynpro

Developing Crystal Reports on SAP BW

Step by Step Guide How to Use BI Queries in Visual Composer

Template Designer: Create Automatic PDF Documents for Attachment or Print Purpose

SAP BI BO Unit/Currency Logic for Unknown Units Case Study

Step-By-Step guide to Virtual InfoCube Implementation

SMT (Service Mapping Tool)

Triggering the Process Chains at Particular Date using Events

Open Hub Destination - Make use of Navigational Attributes

Solution to the Challenges in Pivoting

How to Create and Schedule Publications from Crystal Reports

Creating Rules in Process Composer and using them in Process

Creating, Configuring and Testing a Web Service Based on a Function Module

Dynamically Enable / Disable Fields in Table Maintenance Generator

Creation of Alert Data Service VC model for the BI query exception using Information Broadcasting

Process Chain Log Deletion

Step By Step Procedure to Implement Soap to JDBC Scenario

E-Sourcing System Copy [System refresh from Production to existing Development]

Purpose of Goods Receipt Message indicator in Purchase Orders

Data Flow During Different Update Mode in LO Cockpit

Totals in Adobe forms

Data Extraction & DS Enhancement in SAP BI Step by Step

Different Types of iviews in Enterprise Portal 7.0

Transfer Material Attributes (Material Type) from R/3 to SAP GRC Global Trade Services (GTS)

ALV with Dynamic Structure in Web DynPro

List of Values in BusinessObjects Web Intelligence Prompts

Creation of Sets in SAP-ABAP, How to Read them INI SAP-ABAP Reports

BAPI Execution in offline Adobe Form

Steps to Activate ALE Delta for Custom Master Datasource Created on ZTable

Reading Enhanced DataSource fields for the Remote Cube

Data Mining: Scoring (Linear Regression)

About ITAB Duplicate_Key (SAP lrsaods) Runtime Error

Upload Image file from system in Web dynpro view

How to Display Result Row in One Line While Reporting On Multiproviderer

BPM Multi Line Container in Integration Process

Custom Password Reset Tool in SAP Enterprise Portal Using Web Dynpro for Java

Information Broadcasting Part 3 Scheduling the First Report

How to Integrate Web Dynpro ABAP in Portal and Capture Portal Logon User Name

Financial Statement Version into PDF Reader

SAP BusinessObjects Translation Manager Functionality and Use

How to Configure User Status in mysap SRM

A Step-by-Step Guide on IDoc-ALE between Two SAP Servers

Methods of Selecting BOM Variant Parts in Variant Configuration

Generate Export Data Source

Database Statistics During ODS Activation

SDN Community Contribution

SAP QM-IDI Interface. SDN Contribution. Applies to: Summary. Author Bio. SAP QM Interfaces

ABAP: Table Maintenance Events

SUP: Personalization Keys and Synchronize Parameter

Step by Step Guide for SCM Server Start and Stop Procedure with LiveCache and Optimizer.

Implying Security on Business Object XI 3.1 Universe having SAP BW as Source

Step by Step Method for File Archival in BW

Validity Table in SAP BW/BI

All about Compression

Transcription:

How to Create Top of List and End of List of the ALV Output in Web Dynpro for ABAP Applies to: SAP Netweaver 2004S: Web Dynpro for ABAP. For more information, visit the User Interface Technology homepage. Summary This document will explains about how to create a Top of list nothing but a Header area and End of list nothing but a Footer area of ALV Table. Author: Suman Kumar Chinnam Company: YASH Technologies Created on: 24 September 2008 Author Bio Suman Kumar is a Consultant for YASH Technologies, Pvt., and Ltd. Based in India. He has 2 years of IT experience. He has good knowledge of ABAP, BSP and Web Dynpro for ABAP. 2008 SAP AG 1

Table of Contents Element Types and Layout Forms...3 Context Nodes TOP_OF_LIST and END_OF_LIST...3 Setting up a Design Object...4 Creating a Design Object...4 Creating an Element...5 Write the code to get TOP_OF_LIST and END_OF_LIST of ALV Output...5 Result...8 Disclaimer and Liability Notice...9 2008 SAP AG 2

I am assuming that users have already finished basic exercises on ALV. So I am straight away explaining how to create Header and Footer Areas for ALV Output. To do this, we have to use design objects. We can use as many elements of different element types as you want in order to form a design object. Then we display it at desired position. Element Types and Layout Forms You can use elements of the following element types for your design object: 1. Header element (header info). 2. Text element with or without label (text label). 3. Action information. These elements can be arranged within your design object. To do this we can choose the two Forms of layout: 1. Single element Generate an element and display it in the required position. 2. Row-type layout Arrange as many elements as you want in a row, one after the other. 3. Table-type layout Arrange as many elements as you want in rows and columns. Context Nodes TOP_OF_LIST and END_OF_LIST The ALV component provides the two context nodes TOP_OF_LIST and END_OF_LIST. Each contains an attribute CONTENT. These context nodes hold the data of your design objects for the header and footer areas of the ALV output. Define context mapping to a node with the same name in the context of your application and set the attribute CONTEXT of your context node to your design object. 2008 SAP AG 3

Note: Some times you may not able to directly map the contexts then right click on the context node of your view select define mapping from list then click ok. A pop up appears with Component and Interface Controllers, select interface controller (ALV) and then select TOP_OF_LIST. Setting up a Design Object Proceed as follows to set up a design object for the header and footer areas: Map the context nodes TOP_OF_LIST and END_OF_LIST of the ALV component to the context of your application. Generate a design object. To do this, use either the row-type or the table-type layout. You insert the required elements into this layout. Set the design object as a value of the attribute CONTENT in the context node. Creating a Design Object First define the basic layout for your design object. Decide whether to display a Single element, a sequence of elements in a row, or elements arranged in multiple rows and Columns. You use one of the following classes for this purpose. 2008 SAP AG 4

Creating an Element After creation of layout for a design object (see above), you can use methods to Create elements with the various element types: These methods can be found in the classes CL_SALV_FORM_LAYOUT_FLOW and CL_SALV_FORM_LAYOUT_GRID. Write the code to get TOP_OF_LIST and END_OF_LIST of ALV Output Write the below code in WDDOINIT method. 2008 SAP AG 5

2008 SAP AG 6

Endmethod. 2008 SAP AG 7

Header Area Result Footer Area 2008 SAP AG 8

Disclaimer and Liability Notice This document may discuss sample coding or other information that does not include SAP official interfaces and therefore is not supported by SAP. Changes made based on this information are not supported and can be overwritten during an upgrade. SAP will not be held liable for any damages caused by using or misusing the information, code or methods suggested in this document, and anyone using these methods does so at his/her own risk. SAP offers no guarantees and assumes no responsibility or liability of any type with respect to the content of this technical article or code sample, including any liability resulting from incompatibility between the content within this document and the materials and services offered by SAP. You agree that you will not hold, or seek to hold, SAP responsible or liable with respect to the content of this document. 2008 SAP AG 9