ABAP QUERY AN EXAMPLE



Similar documents
Quick Viewer: SAP Report Generating Tool

Step by Step Guide to Create a Generic Datasource Based on Infoset Query Populated Via External Program

NEXT. Tools of the Participant Portal: Scientific Reports & Deliverables

Embedding Crystal Reports inside ECC ALV Reports

Creating Basic Reports with the SAP Query Tool

Using Ad-Hoc Reporting

P: E: W:

Step by Step Procedure to Block and Debug a CIF Queue Flowing from R/3 to APO System

Deutsche Bank Paper Invoice Submission and Compliance Requirements Manual (PO and Non PO) India Region

!"#"$%&'(()!!!"#$%&'())*"&+%

Document Information, Statuses & Exceptions in Ariba

ASUH Funding Fiscal Procedures

Table of Content. SAP Query creation and transport Procedure in ECC6

IMS Online Express. Employee user guide

Web Dynpro ABAP: ALV and Table in Popup Window

Release Strategy Enhancement in Purchase Order

Client Ordering and Report Retrieval Website

I2B2 TRAINING VERSION Informatics for Integrating Biology and the Bedside

HR Data Retrieval in a LDAP- Enabled Directory Service

How to Develop Programs for SAP Mobile RF

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

Creating a New Search

Splitting the Custom Container & Display more than one ALV

Prerequisite: Bank statement file loaded from bank.

File Transfer with Secure FTP

SAP User Guide Create Purchase Orders

Brief instructions COMBOX basic and pro for fixed network and mobile.

SPDD & SPAU Adjustments Handbook

To help you spot potential junk mail, spam and phishing s you can read through the guide located on the IT Services website.

BANNER Finance - Accounts Payable Processes

Step by Step guide of Report-to- Report Interface in BW Reporting

Understanding BEx Query Designer: Part-2 Structures, Selections and Formulas

Real Estate Reports Overview Quick Reference Guide

Organizational Management- Organizational Structure Creation

Welcome to the SAP Business One on HANA release 9.1 delta training on creating advanced dashboards. An advanced dashboard is a type of supplementary

PharmaClik POS Overview

Web Dynpro: Multiple ALV Grids and Layouts in ALV

Alarm Display. Tips & Tricks DIANA SMIT. Tel: 0861-WONDER Fax: (011)

Step by Step Guide for Language Translation Tool

SAP Business One Kanban Management System

Welcome to the topic on managing delivery issues with Goods Receipt POs.

Exclaimer Mail Archiver WebApp Guide IT SERVICES. University of Sunderland

Welcome to the session Operational Analytics with ODP- Modeling Authorizations

User Manual for the SAP Business Objects BI Platform 4.1 System (BI Suite) CONTENTS

Customer Exit Variables in SAP BW/BI Reports First day of the Current/Previous Month

GeoSIM Global SIM Card User Guide IMPORTANT PLEASE READ BEFORE INSERTING YOUR SIM CARD

SAP FI - Automatic Payment Program (Configuration and Run)

SAP BW - Excel Pivot Chart and Pivot Table report (Excel)

STAMPIN UP! Customer Manager and Mailing Selector Users Guide

Outlook Web App Logging in

technical tips and tricks

Xxxxxxxxxxxxxxxx Xxxxxxxxxxxxxxxx

How to Implement Mash Up to Show ECC Screen in SAP Cloud for Customer

CCS sales order document flow Android 3.0 version. Content and purpose of the application

How to create database in GlycomcsPortal?

ADP Workforce Now V3.0

Introduction to HCM Processes and Forms

CUSTOMER WORK REQUEST INFORMATION

SAP User Guide Invoice Verification

Creating Content Using SO10 Objects and Text Symbols

TheFinancialEdge. Records Guide for General Ledger

Document Settings, Business Logo Maintenance and Social Media

Invoice Approval Using the Accounts Payable Module in the Munis ERP System

ONLINE LEVEL ONE UMPIRES COURSE PARTICIPANT FACT SHEET

Configuring and Customizing Employee and Manager Self-Services in SAP

SUGI 29 Posters. Web Server

Voice over IP Phone Feature Guide

Rochester Institute of Technology. Oracle Training: Performing Inquiries and Requesting Reports in the Oracle Applications

Initial Transaction Setup Guide: Necessary first steps

MS WORD 2007 (PC) Macros and Track Changes Please note the latest Macintosh version of MS Word does not have Macros.

SAPScript. A Standard Text is a like our normal documents. In Standard Text, you can create standard documents like letters, articles etc

Welcome to Princeton University s Unified Messaging System. An Introduction. Janice Guarnieri Silvia Fernandes Julia Seymore

Evaluating a File. How to Upload and Evaluate a File To upload and evaluate a file, follow these steps.

Dynamic Authorization Concept and Role Assignment in BI

Microsoft Access 2010 Overview of Basics

i -CEN S USER S Manual

Creating a Participants Mailing and/or Contact List:

Select the Crow s Foot entity relationship diagram (ERD) option. Create the entities and define their components.

Online Payroll System Bureau Manual

MICROSOFT ACCESS TABLES

Creating Web Service from Function Modules/BAPIs & Integrating with SAP Interactive Forms

How To Use Syntheticys User Management On A Pc Or Mac Or Macbook Powerbook (For Mac) On A Computer Or Mac (For Pc Or Pc) On Your Computer Or Ipa (For Ipa) On An Pc Or Ipad

OVERVIEW AND TERMINOLOGY

KEYBOARD SHORTCUTS. Note: Keyboard shortcuts may be different for the same icon depending upon the SAP screen you are in.

SAP List Viewer (ALV): Classic

Knowledge Base. Setup GoogleApps in Outlook Pages. Zeumic Pty Ltd. PO Box 44 Kew, VIC Australia 3101

Vega 100G and Vega 200G Gamma Config Guide

This will open up a new window and take you to the BOXI home page

Submit Invoice. Submit Invoice and attach supporting documentation

Check current version of Remote Desktop Connection for Mac.. Page 2. Remove Old Version Remote Desktop Connection..Page 8

Easy Setup Guide for the Sony Network Camera

Creating trouble-free numbering in Microsoft Word

Quality Assurance Guide. IRMS c-Quality Assurance Guide.doc 01.0 November 2, 2009

A Step-by-Step guide on SMTP Configuration and File to Mail Scenario Using Process Integration Scenario in PI 7.1

Transcription:

ABAP QUERY AN EXAMPLE Applies To : ECC 5.0 Created On : 18.12.2007 Author : Sylvia Chandra Company : Telco Company Summary : This article will introduce you about ABAP Query and explain how to create an ABAP Query based on a case scenario.

Table Of Contents What Is ABAP Query?. 1 A Case Scenario... 2 Creating ABAP Query... 3 Result OF ABAP Query... 4 Tips And Tricks.. 5

What Is ABAP Query A tool to generate report without ABAP coding. All you need is to join the table and drag and drop field that you wish to occur in the report. Type of reports provided by ABAP Query : 1. Basic List Simple Report. 2. Statistics Report containing statistical functions like Average & Percentage. 3. Ranked List Report written for analytical purpose. A Case Scenario There is a request to generate a report display who should release a PO and message status of the PO. The selections are based on : Date on which the record was created Purchasing Organization Purchasing Group Release Code Vendor s Account Number Purchasing Document Type For example : We would like to display all PO which was created on a certain date. With information about who should release the PO or who is the latest releaser (for PO that has been full release) and the message type of the PO (has been print, mail, fax). Creating ABAP Query Now, we come to step in creating ABAP Query. There are 3 steps : 1. Create User Group (SQ03) Specify the users who should be authorized to run the query. 2. Create Infoset (SQ02) Indicates from which part of the SAP database the data is going to be retrieved and how the data is to be retrieved by the query. 3. Create Queries (SQ01) Create the query and arrange the layout.

Here are the detail explanation of each step : Create User Group (SQ03) Go to SQ03 to create User Group Clik Assign users and Infosets Assign user to this user group.

Create Infoset This report need information about PO, PO releaser and PO Message Status. So that the table relation could be describe as below : Release Strategy T16FV, T16FS PO EKKO Output Status NAST

Go To SQ02 to create Infoset Give the title of the Infoset. On Table join using basis table enter the basic table that u want to join (for this case example we want to join several table with basic table is T16FV, because the selection based on release code and T16FV is a Release Prerequisites table).

Join The Table Give a relation between the tables that you are going to join.

Choose The Field For Display Choose field (from tables you have joined before) that you would like to display.

Create Additional Fields Create additional fields if you need them.

Create Coding You can add some coding in some section. Click the button inside the red circle. On this case I add coding at code section: DATA TABLES : T16FS, NAST. DATA : condition(5) TYPE c, ld_frgc1 LIKE t16fs-frgc1, ld_kschl LIKE nast-kschl. * ctrneu TYPE i, * ctrneu2 TYPE i, * ctrneu3 TYPE i. Record Processing CLEAR : NEU, NEU1, NEU2. SELECT kschl INTO ld_kschl FROM nast WHERE kappl = 'EF' AND objky = ekko-ebeln AND ( kschl = 'NEU' OR kschl = 'NEU1' OR kschl = 'NEU2' ) AND spras = 'E' AND vstat = '1'. IF sy-subrc = 0. IF ld_kschl = 'NEU'. NEU = 'X'.

ELSEIF ld_kschl = 'NEU1'. NEU1 = 'X'. ELSEIF ld_kschl = 'NEU2'. NEU2 = 'X'. ENDIF. ENDIF. ENDSELECT. * ctrneu = ctrneu2 = ctrneu3 = 0. * CLEAR : NEU, NEU2, NEU3. IF T16FV-frggr IS NOT INITIAL AND T16FV-frgsx IS NOT INITIAL. CASE EKKO-frgzu. WHEN ' '. condition = 'frgc1'. WHEN 'X'. condition = 'frgc2'. WHEN 'XX'. condition = 'frgc3'. WHEN 'XXX'. condition = 'frgc4'. WHEN 'XXXX'. condition = 'frgc5'. WHEN 'XXXXX'. condition = 'frgc6'. WHEN 'XXXXXX'. condition = 'frgc7'. WHEN 'XXXXXXX'. condition = 'frgc8'. WHEN 'XXXXXXXX'. condition = 'frgc8'. ENDCASE. SELECT SINGLE (condition) INTO ld_frgc1 FROM t16fs WHERE frggr = T16FV-frggr AND frgsx = T16FV-frgsx. IF ld_frgc1 IS INITIAL. CASE EKKO-frgzu. WHEN 'X'. condition = 'frgc1'. WHEN 'XX'. condition = 'frgc2'. WHEN 'XXX'. condition = 'frgc3'. WHEN 'XXXX'. condition = 'frgc4'. WHEN 'XXXXX'. condition = 'frgc5'. WHEN 'XXXXXX'. condition = 'frgc6'. WHEN 'XXXXXXX'. condition = 'frgc7'.

WHEN 'XXXXXXXX'. condition = 'frgc8'. ENDCASE. SELECT SINGLE (condition) INTO ld_frgc1 FROM t16fs WHERE frggr = T16FV-frggr AND frgsx = T16FV-frgsx. ENDIF. IF T16FV-frgco <> ld_frgc1. * CLEAR : EKKO, T16FV. DELETE : EKKO, T16FV. ELSE. MODIFY EKKO. ENDIF. ENDIF. Create Queries Go to SQ01 to create Queries Firstly, choose the Infoset that you are going to use for this query. Then give a title to this Query.

Select Field that would be display by this Query. Started by choosing the Field Group.

Thus select The field.

Field For Selection Select field that will be used for the selection screen. Furthermore, you can define the sequence of these fields.

Basic List Display Arrange how you wish you report to be displayed.

Result Of ABAP Query Selection Screen

Report Layout

Tips And Tricks Complex Report Every Query actually make a program. Find the program name then copy it to new program then modify it as you wish. Infoset cannot be found If you find difficulty in finding an Infoset for a query : Just go to SQ03, enter the user group for the query then click Assign Users And Infoset Buttons.

Click Assign Infosets Button.

At Infoset you would like to use in SQ01, untick and tick again the Infoset. Then click save button. Now, all step has been describe. It s time for you to try. Good Luck.