A Simple search program for Dictionary objects

Similar documents
How to Create Tables in MaxDB using SQL Studio

SDN Community Contribution

SDN Community Contribution

ABAP Code Sample to Attach F1 and F4 Help Fields in ALV Grid

Function Module to Create Logo

Triggering the Process Chains at Particular Date using Events

Applies To:...1. Summary...1. Table of Contents...1. Procedure..2. Code... Error! Bookmark not defined.0

How to Configure User Status in mysap SRM

Selection-Screen Design

Creating a Development Component

Easy Lookup in Process Integration 7.1

Program to Find Where used List of a Query for Web Template (3.5), Work Books and RRI

ABAP Code Sample for Data Browser Using ALV Grid

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

SDN Community Contribution

BW 3.1 Open Hub Extraction Enhancement: Using Literal Filename & Path

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

Graphical Mapping Technique in SAP NetWeaver Process Integration

SAP BW Copy Existing DTP for Data Targets

MDM Syndicator: Custom Items Tab

How to Create and Execute Dynamic Operating System Scripts With XI

Step by Step Guide to Creating a Process Type to Close an Open Request in a Cube in BI 7.0

Linking Documents with Web Templates

Table Row Popup in Web Dynpro Component

Using Radio Buttons in Web Template

Freely Programmed Help- Web Dynpro

Using Customer Exit Variables in BW/BI Reports: Part - 14

Material Master Archiving in Simple Method

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

POWL: Infoset Generation with Web Dynpro ABAP

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

How to Create and Schedule Publications from Crystal Reports

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

ABAP Code Sample to Display Data in ALV Grid Using Object-Oriented Programming

Customized Transaction to Trigger Process Chain from Failed Step

DB Connect with Delta Mechanism

Purpose of Goods Receipt Message indicator in Purchase Orders

Internationalization in WebDynpro ABAP Applications

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

ABAP Program to Read/Populate Selection Screen Parameters Dynamically

Maintaining Roles and Authorizations in BI7.0 - RSECADMIN

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

Material Listing and Exclusion

To Check the Files/Reports in Application Server and Trigger Mail Alerts

SMT (Service Mapping Tool)

Developing Crystal Reports on SAP BW

Displaying SAP Transaction as Internet Application in Portal

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

Limitation in BAPI Scheduling Agreement (SA) Create or Change

Add-ons performance analysis using.net Profiler tool

Download SAP Query Output to Local/ Network Folders in Background

SDN Community Contribution

Procedure to Trigger Events in Remote System Using an ABAP Program

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

Exception Handling in Web Services exposed from an R/3 System

Recreating BIA Indexes to Address the Growth of Fact Index Table

Routines in SAP BI 7.0 Transformations

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

Custom Process types Remote Trigger and End Time

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

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

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

Step by Step Procedure for DSO Creation

Complete Guide for Events in Workflows in SAP ECC 6.0

Offsetting Account Description in FBL3N & FAGLL03 GL Line Item Display Reports

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

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

Financial Statement Version into PDF Reader

ABAP Code Sample to Report IDOCs in Error

Using Customer Exit Variables in BW/BI Reports: Part - 4

Sales Order Creation using Web Dynpro ABAP

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

Dynamically Enable / Disable Fields in Table Maintenance Generator

Standalone BW System Refresh

Material Master Extension for New Plant

ABAP Code - Recipients (Specific Format) SAP BW Process Chain

Convert the Spool into PDF and send to External ID

Step by Step Method for File Archival in BW

Validity Table in SAP BW/BI

Reading Enhanced DataSource fields for the Remote Cube

Data Extraction & DS Enhancement in SAP BI Step by Step

SDN Community Contribution

Open Hub Destination - Make use of Navigational Attributes

Step By Step Procedure to Implement Soap to JDBC Scenario

Steps for XML Validation by Adapter Engine in PI 7.1

Create Monitor Entries from an update routine

Web Dynpro: Coloring Table Conditionally

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

ecatt Part 6 System Data Container

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

Implementing Customer Exit Reporting Variables as Methods

About ITAB Duplicate_Key (SAP lrsaods) Runtime Error

Combining Multiple Smartform Outputs Into One PDF File

Administrating ABAP+JAVA and SLD Problems of SAP PI 7.1

Solution to the Challenges in Pivoting

Restricting F4 (Input Help) Values While Running a SAP BW Query

How to Write Inverse Routine with Expert Routine

A Simple Web Dynpro Application to Locate Employee s Location into Google Map

Step by Step Guide for PI Server Start and Stop Procedure

Data Flow During Different Update Mode in LO Cockpit

Transcription:

A Simple search program for Dictionary objects Applies To: ABAP Programming Article Summary This Code sample is a simple search utility for the dictionary objects. This has three kinds of search functionality such as exactly same, starting with and containing. By : Kathirvel Balakrishnan Title: Project Engineer, Wipro Technologies Date: 06 March 2005 Source Code * Report ZC1_SEARCH_OBJECTS * * Description : A Simple search program for Repository * objects. This includes the pattern matching * functionality also. * Program By : Kathirvel Balakrishnan. * Created on : 06 March 2005. REPORT zc1_search_objects MESSAGE-ID zc1msg1. *& Declaration Section for Tables used in the Report * TABLES: tadir. *& Declaration Section for the Internal Tables * DATA: i_intab LIKE TABLE OF tadir WITH HEADER LINE,

v_syrepid LIKE sy-repid. *& Selection Screen Section * SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-t01. PARAMETERS: p_object TYPE tadir-obj_name OBLIGATORY. SELECTION-SCREEN SKIP 1. SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-t02. PARAMETERS : r_same RADIOBUTTON GROUP rgrp, r_like RADIOBUTTON GROUP rgrp, r_cont RADIOBUTTON GROUP rgrp. SELECTION-SCREEN END OF BLOCK b2. SELECTION-SCREEN END OF BLOCK b1. *& Start Of Selection Event Begins Here * START-OF-SELECTION. v_syrepid = sy-repid. PERFORM search_object. PERFORM display_result. *& Form search_object * This Subroutine will search for the object and fills it in the * internal table I_INTAB. FORM search_object.

*------ Searching for the exact match in the database -----------------* IF r_same = 'X'. SELECT * FROM tadir INTO TABLE i_intab WHERE obj_name = p_object. *------ Searching for the objects that begin with given value --------* IF r_like = 'X'. CONCATENATE p_object '%' INTO p_object. SELECT * FROM tadir INTO TABLE i_intab WHERE obj_name LIKE p_object. *------ Searching for the objects that contain the given value --------* IF r_cont = 'X'. CONCATENATE '%' p_object '%' INTO p_object. SELECT * FROM tadir INTO TABLE i_intab WHERE obj_name LIKE p_object. ENDFORM. " search_object *& Form display_result * The search result will displayed in a report. * --> p1 text * <-- p2 text FORM display_result. CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_program = v_syrepid i_structure_name = 'TADIR' i_grid_title = 'Repository Search Result' TABLES t_outtab = i_intab EXCEPTIONS program_error = 1

OTHERS = 2. IF sy-subrc <> 0. MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4. ENDFORM. " display_result Sample Screen Shots Selection Screen

Output Screen Disclaimer & Liability Notice This document may discuss sample coding, which does not include official interfaces and therefore is not supported. 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 of the code and methods suggested here, and anyone using these methods, is doing it under his/her own responsibility. SAP offers no guarantees and assumes no responsibility or liability of any type with respect to the content of the technical article, including any liability resulting from incompatibility between the content of the technical article and the materials and services offered by SAP. You agree that you will not hold SAP responsible or liable with respect to the content of the Technical Article or seek to do so.

Author Bio Kathirvel Balakrishnan is working as a Project Engineer for Wipro Technologies. Areas of interest are ABAP and Java Programming. Copyright 2004 SAP AG, Inc. All Rights Reserved. SAP, mysap, mysap.com, xapps, xapp, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product, service names, trademarks and registered trademarks mentioned are the trademarks of their respective owners.