This is demo program which includes company logo in the top of ALV report.
*&---------------------------------------------------------------------*
*& Report ZFM_ALV_LOGO
*&
*&---------------------------------------------------------------------*
*&
*&
*&---------------------------------------------------------------------*
REPORT ZFM_ALV_LOGO.
DATA ITAB LIKE TABLE OF mara.
TYPE-POOLS SLIS.
************DECLARATIONS*********************************
DATA LIST_TOP TYPE SLIS_T_LISTHEADER.
DATA LIST_LINE TYPE SLIS_LISTHEADER.
DATA EVENTS TYPE SLIS_T_EVENT.
DATA FORMNAME_E_USER_COMMAND TYPE SLIS_FORMNAME VALUE 'USER_COMMAND'.
DATA PTESTRUN(1).
DATA REPNAME LIKE SY-REPID.
CONSTANTS: FORMNAME_TOP_OF_PAGE TYPE SLIS_FORMNAME VALUE 'TOP_OF_PAGE'.
DATA LAYOUT TYPE SLIS_LAYOUT_ALV.
**************INITIALIZATION***************************
INITIALIZATION.
REPNAME = SY-REPID.
PERFORM BUILD_EVENTTAB USING EVENTS[].
CLEAR LIST_LINE.
LIST_LINE-TYP = 'H'.
LIST_LINE-INFO = SY-TITLE.
APPEND LIST_LINE TO LIST_TOP.
CLEAR LIST_LINE.
LIST_LINE-TYP = 'S'.
LIST_LINE-KEY = 'PROGRAM NAME'.
LIST_LINE-INFO = SY-REPID.
APPEND LIST_LINE TO LIST_TOP.
CLEAR LIST_LINE.
LIST_LINE-TYP = 'S'.
LIST_LINE-KEY = 'USER'.
LIST_LINE-INFO = SY-UNAME.
APPEND LIST_LINE TO LIST_TOP.
CLEAR LIST_LINE.
LIST_LINE-TYP = 'S'.
LIST_LINE-KEY = 'DATE'.
LIST_LINE-INFO = SY-DATUM.
APPEND LIST_LINE TO LIST_TOP.
CLEAR LIST_LINE.
LIST_LINE-TYP = 'S'.
LIST_LINE-KEY = 'TIME'.
LIST_LINE-INFO = sy-uzeit.
APPEND LIST_LINE TO LIST_TOP.
*******************************************************
SELECT * FROM mara INTO TABLE ITAB.
*******************************************************
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = REPNAME
I_STRUCTURE_NAME = 'mara'
IT_EVENTS = EVENTS[]
TABLES
T_OUTTAB = ITAB.
******FORM FOR TOP OF PAGE*******************
FORM TOP_OF_PAGE.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
I_LOGO = 'ENJOYSAP_LOGO'
IT_LIST_COMMENTARY = LIST_TOP.
ENDFORM.
*****************************************************
*****************FORM EVENT************************
FORM BUILD_EVENTTAB USING P1_EVENTS TYPE SLIS_T_EVENT.
DATA: LS_EVENT TYPE SLIS_ALV_EVENT.
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
I_LIST_TYPE = 0
IMPORTING
ET_EVENTS = P1_EVENTS.
READ TABLE P1_EVENTS WITH KEY NAME = FORMNAME_TOP_OF_PAGE
INTO LS_EVENT.
IF SY-SUBRC = 0.
MOVE FORMNAME_TOP_OF_PAGE TO LS_EVENT-FORM.
APPEND LS_EVENT TO P1_EVENTS.
ENDIF.
ENDFORM.
*************************************************
Ads
Subscribe to:
Post Comments (Atom)
Blog Archive
-
▼
2009
(185)
-
▼
November
(122)
- SAP Glossary B
- SAP Glossary A
- Designing SAP Transactions SAP Dynpros
- SAP DB Interview FAQs
- SAP Business One
- SAP BDC Interview Questions And Answers
- An Introduction to SAP
- SAP (Systems, Applications and Products in Data Pr...
- What is roll out of SAP Project?
- Resume tips
- SAP ABAP FAQs
- REPORTING – GENERAL
- REPORT GENERATION – FORMATTING
- SAP R/3 ARCHITECTURE QUESTIONS
- QUESTIONS TO ASK HR
- Main Functions of QM Functional Consultant
- What is the Purpose of R/3?
- SAP Purchasing Tables
- SAP Production Planning tables
- Plant Maintenance/Sales
- Object oriented programming (OOP) IX
- Object oriented programming (OOP) VIII
- Object oriented programming (OOP) VII
- Object oriented programming (OOP) VI
- Object oriented programming (OOP) V
- Object oriented programming (OOP) IV
- Object oriented programming (OOP) III
- Object oriented programming (OOP) II
- Object oriented programming (OOP) XVII
- Object oriented programming (OOP) XVI
- Object oriented programming (OOP) XV
- Object oriented programming (OOP) XIV
- Object oriented programming (OOP) XIII
- Object oriented programming (OOP) XII
- Object oriented programming (OOP) XI
- Object oriented programming (OOP) X
- Object oriented programming (OOP) Step-by-step
- Object oriented programming (OOP) explained with a...
- SAP Modules Interview Questions And Answers
- Creating SAP Module Definitions
- SAP MM Tables
- SAP Transaction codes
- Will ABAP be Obsolete? Will JAVA Replace ABAP?
- SAP Implemetation Phases
- IBM abap interview Questions Phase - IV
- IBM abap interview Questions phase - III
- IBM abap interview Questions phase - II
- IBM abap interview Questions phase - I
- IBM abap interview Questions phase - E
- IBM abap interview Questions phase - D
- IBM abap interview Questions phase - C
- IBM abap interview Questions phse - B
- IBM abap interview Questions phase - A
- IBM abap interview Questions phase - Final III
- IBM abap interview Questions phase - Final II
- IBM abap interview Questions phase - Final I
- SAP HR INTERVIEW QUESTIONS
- Difference between the User Exit & Gap analysis
- Role of a mySAP Functional Consultant
- Role of a Functional Consultant in an End To End I...
- For those who wished to know the role of a functio...
- Designing SAP Transactions Flow Logic
- SAP Finance Tables
- SAP FI Functional Consultant Responsibilities
- Dynamic Variant in a report
- What are the tools to download tickets from client...
- Display company logo in the top of ALV report
- Designing SAP Transactions Introduction
- SAP ABAP FAQs
- Creating F1 helps in ease
- What courses are offered in Unauthorized training ...
- What is Client? What is the difference between Cus...
- Abap interview Qustions
- Difference Between BW Technical and Functional
- Batch Data Communication (BDC)
- SAP BDC
- SAP Functional
- Important Ale Idocs Faqs
- What is ALE
- ACCENTURA ABAP Qustions
- Important sap Smartforms faqs
- important abap script faqs
- Sap ABAP Dictionary Faqs
- SAP Program II
- SAP Program I
- Date and Time Calculations
- Substring in SAP's ABAP programming
- sample program I
- Understanding Date Selections Using the HR Logical...
- Different method of Converting Date in ABAP
- ABAP Date Time Variables and Addressing Subfields
- Pop a Date in ABAP Report Selection Screens
- Add n number of working days to date
- Add n number of working days to date (using SAP pe...
- Add n number of working days to date
- Convert month value of a date to text
- SAP ABAP program for A SAP Pop-out Calculator
- Step by step learning ABAP
- Download
- How to transport layout ALV?
-
▼
November
(122)
No comments:
Post a Comment