SlideShare ist ein Scribd-Unternehmen logo
1 von 71
The ABAP Query
ABAP Query ,[object Object],[object Object],[object Object]
ABAP Query Components ,[object Object],[object Object],[object Object],[object Object]
Standard  vs. Global Areas
[object Object],[object Object],[object Object],Standard vs. Global Areas
[object Object],[object Object],[object Object],Standard vs. Global Areas
InfoSet  Design Strategy
[object Object],[object Object],[object Object],[object Object],InfoSet Design Strategy
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],InfoSet Design Strategy – When to use a Logical Database
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],InfoSet Design Strategy – When to use Table Joins
[object Object],InfoSet Design Strategy – When to use an External Program
InfoSet  Creation
[object Object],[object Object],InfoSet - Creation ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
[object Object],[object Object],InfoSet - Data Source  - Logical Database
[object Object],[object Object],InfoSet - Data Source - Logical Database ,[object Object]
[object Object],InfoSet - Data Source - Logical Database
[object Object],InfoSet - Data Source - Table Join ,[object Object]
InfoSet - Data Source - Table Join ,[object Object],[object Object],[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object],[object Object],InfoSet - Data Source – Data Retrieval Program
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],InfoSet - Data Source – External Program
InfoSet - Data Source  - External Program   * End of data retrieval loop for individual records (ENDSELECT, ENDDO, ENDLOOP) Comment to finish the statement in the loop. The data must be available in the  tab  structure. * <Query_body>   * Code to define the  itab  table, if such a table is used.  * Start of a loop to retrieve, one at a time, each of the records that you want to report on, and place them in the  tab  structure (SELECT, DO, LOOP) * Code for formatting data Comment to finish off a data statement. * <Query_head> Definition of an internal table  itab  with structure  tab  providing the records that you want to report on.  DATA: BEGIN OF itab OCCURS xxx.       INCLUDE STRUCTURE tab. DATA: END of itab.   DATA:   Select-Options:… Definition of parameters, selection criteria, and fields. Parameters  . Definition of the dictionary structure used to set up the InfoSet. This structure must contain the records that you want to report on.  Tables tab  .   Report xxxxxxxx  .
[object Object],[object Object],[object Object],[object Object],[object Object],InfoSet - Data Source – External Program
[object Object],InfoSet - Data Source  - External Program ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object],[object Object],[object Object],InfoSet – Additional Tables, Structures, and Fields
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],InfoSet - Additional Code
[object Object],[object Object],[object Object],[object Object],[object Object],InfoSet – Assigning Additional Tables
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],InfoSet – Assigning Additional Fields
[object Object],[object Object],[object Object],[object Object],[object Object],InfoSet – Assigning Additional Fields
[object Object],[object Object],InfoSet – Assigning Fields to Field Groups ,[object Object],[object Object]
InfoSet – Changing Field Labels ,[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object],[object Object],[object Object],InfoSet – Selection Criteria and Parameters
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],InfoSet – Management
[object Object],[object Object],[object Object],[object Object],[object Object],InfoSet – Copy InfoSets/Queries
User Group  Creation and Assignment
[object Object],[object Object],User Group - Creation Enter your User Group name  and hit the  button. Enter a description and hit save. You will be prompted for a transport.
[object Object],[object Object],User Group – Assign Users
[object Object],User Group – Assign InfoSets ,[object Object]
Query  Creation
[object Object],[object Object],Query - Creation Select your user group. Enter your Query  name and hit the  button. Select an InfoSet. Enter a description and hit save. You will be prompted for a transport.
Query - Creation Use Notes to document the Remedy ticket number, date of creation, and brief description. Enter CUS&STANDARD as the standard variant to be used by this query.  The naming convention of CUS& allows this to be transported. Enter your Query description, list and output format.  Hit  to continue.
Query – Selecting Fields ,[object Object],[object Object]
Query – Graphical Query Painter ,[object Object],[object Object],[object Object],[object Object]
Query – Graphical Query Painter
Query – Graphical Query Painter ,[object Object],[object Object],[object Object]
Query – Report Assignment Report Assignment allows you to drill into another report or transaction. ,[object Object],[object Object],[object Object]
Query – Report Assignment To drill into another transaction: ,[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Query – Management
Query – Program Generation Results ,[object Object],[object Object],[object Object],[object Object]
Query – Transaction Code Creation To create a transaction code for your query use transaction SE93: ,[object Object],[object Object],[object Object]
Query – Transaction Code Creation To create a transaction code for your query use transaction SE93: ,[object Object],[object Object]
InfoSet Examples
InfoSet: ZSD_OPEN_ORDERS User Group: ZSD Query: ZSD_OPEN_ORDER_D Program: AQZZZSD=========ZSD_OPEN_ORD_D Purpose:  Make open sales order information available at the order/item/ schedule line level with associated material master information.  Separates confirmed and unconfirmed values and quantities and makes totals available at the order, item, and schedule line levels.  Values are based on KZWI2 (Sub-total 2) since this represents shipment dollars.  Requested date and earliest schedule line date is available at each level.  Partial delivery or billing quantities are applied against the schedule lines to determine true open quantities and values at the delivery date level.   An open order date allows only orders due to deliver in that time period to be considered. Logical Database Example
InfoSet – Logical Database – ZSD_OPEN_ORDERS ,[object Object],[object Object],[object Object],[object Object]
InfoSet – Logical Database – ZSD_OPEN_ORDERS ,[object Object],[object Object],[object Object]
InfoSet – Logical Database – ZSD_OPEN_ORDERS ,[object Object],[object Object],[object Object]
InfoSet – Logical Database – ZSD_OPEN_ORDERS ,[object Object],[object Object],[object Object]
InfoSet – Logical Database – ZSD_OPEN_ORDERS ,[object Object],[object Object],[object Object],[object Object],[object Object]
InfoSet – Logical Database – ZSD_OPEN_ORDERS ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
InfoSet – Logical Database – ZSD_OPEN_ORDERS ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Purpose:  Join material master information from MARA, MARC, MVKE, and MBEW for the purposes of downloading the information to an HWS Data Warehouse.  Material data is merged with pricing data for the B0, B1, and B2 price lists for 3 input divisions (3A, 3B, 3C).  Characteristic data for the material is also merged as well as Unit of Measure conversions.  There are many additional calculated fields for the pricing and classification data. InfoSet: ZMM_DATAMINE User Group: ZMM Query: ZMM_DATAMINE Program: AQZZZMM=========ZMM_DATAMINE== Table Join Example
InfoSet – Table Join – ZMM_DATAMINE ,[object Object],[object Object],[object Object],[object Object]
InfoSet – Table Join – ZMM_DATAMINE ,[object Object],[object Object],[object Object]
InfoSet – Table Join – ZMM_DATAMINE ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Purpose:  Retrieve orders blocked by delivery block at either the schedule line and/or header level.  An index was created on VBEP for schedule line delivery block for this report.  If a schedule line delivery block is entered as selection criteria, data is retrieved starting with VBEP.  If no schedule line delivery block is entered, data is retrieved starting with VBAK. InfoSet: ZSD_SO_BLOCK_E External Program: ZSDQ_SO_BLOCK Data Structure: ZSDQ_SO_BLOCK User Group: ZSD Query: ZSD_SO_BLOCK_E Program: AQZZZSD=========ZSD_SO_BLOCK_E External Program Example
InfoSet – External Program –  ZSD_SO_BLOCK_E   ,[object Object],[object Object],[object Object],[object Object]
InfoSet – External Program –  ZSD_SO_BLOCK_E   ,[object Object],[object Object],[object Object],[object Object]
InfoSet – External Program –  ZSD_SO_BLOCK_E   ,[object Object],[object Object],[object Object]
InfoSet – External Program –  ZSD_SO_BLOCK_E   ,[object Object],[object Object],[object Object]
InfoSet – External Program –  ZSD_SO_BLOCK_E   ,[object Object],[object Object],[object Object],[object Object]
InfoSet – External Program –  ZSD_SO_BLOCK_E   ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
[object Object],[object Object]

Weitere ähnliche Inhalte

Was ist angesagt?

SAP Adding fields to dynamic selection for fbln transactions (2)
SAP Adding fields to dynamic selection for fbln transactions (2)SAP Adding fields to dynamic selection for fbln transactions (2)
SAP Adding fields to dynamic selection for fbln transactions (2)
Imran M Arab
 
0104 abap dictionary
0104 abap dictionary0104 abap dictionary
0104 abap dictionary
vkyecc1
 
Sap abap interview questions
Sap abap interview questionsSap abap interview questions
Sap abap interview questions
kssr99
 
Enhancement framework the new way to enhance your abap systems
Enhancement framework   the new way to enhance your abap systemsEnhancement framework   the new way to enhance your abap systems
Enhancement framework the new way to enhance your abap systems
Kranthi Kumar
 
Auto inspection lot creation and Auto Usage decision for required parts
Auto inspection lot creation and Auto Usage decision for required partsAuto inspection lot creation and Auto Usage decision for required parts
Auto inspection lot creation and Auto Usage decision for required parts
Akshath L.T
 

Was ist angesagt? (20)

Sap Abap Reports
Sap Abap ReportsSap Abap Reports
Sap Abap Reports
 
Sap abap real time questions
Sap abap real time questionsSap abap real time questions
Sap abap real time questions
 
sap script overview
sap script overviewsap script overview
sap script overview
 
Maximizing SAP ABAP Performance
Maximizing SAP ABAP PerformanceMaximizing SAP ABAP Performance
Maximizing SAP ABAP Performance
 
Sap abap tutorials
Sap abap tutorialsSap abap tutorials
Sap abap tutorials
 
SAP Adding fields to dynamic selection for fbln transactions (2)
SAP Adding fields to dynamic selection for fbln transactions (2)SAP Adding fields to dynamic selection for fbln transactions (2)
SAP Adding fields to dynamic selection for fbln transactions (2)
 
Alv theory
Alv theoryAlv theory
Alv theory
 
ABAP for Beginners - www.sapdocs.info
ABAP for Beginners - www.sapdocs.infoABAP for Beginners - www.sapdocs.info
ABAP for Beginners - www.sapdocs.info
 
0104 abap dictionary
0104 abap dictionary0104 abap dictionary
0104 abap dictionary
 
Sap abap interview questions
Sap abap interview questionsSap abap interview questions
Sap abap interview questions
 
Sap abap
Sap abapSap abap
Sap abap
 
Enhancement framework the new way to enhance your abap systems
Enhancement framework   the new way to enhance your abap systemsEnhancement framework   the new way to enhance your abap systems
Enhancement framework the new way to enhance your abap systems
 
Version management of abap programs
Version management of abap programsVersion management of abap programs
Version management of abap programs
 
What's New in SAP HANA View Modeling
What's New in SAP HANA View ModelingWhat's New in SAP HANA View Modeling
What's New in SAP HANA View Modeling
 
Auto inspection lot creation and Auto Usage decision for required parts
Auto inspection lot creation and Auto Usage decision for required partsAuto inspection lot creation and Auto Usage decision for required parts
Auto inspection lot creation and Auto Usage decision for required parts
 
SAP Quickviewer
SAP QuickviewerSAP Quickviewer
SAP Quickviewer
 
Queries in SAP: Introduction
Queries in SAP: IntroductionQueries in SAP: Introduction
Queries in SAP: Introduction
 
SAP workflow events
SAP workflow eventsSAP workflow events
SAP workflow events
 
Object oriented approach to ALV Lists in ABAP
Object oriented approach to ALV Lists in ABAPObject oriented approach to ALV Lists in ABAP
Object oriented approach to ALV Lists in ABAP
 
Sap scripts
Sap scriptsSap scripts
Sap scripts
 

Andere mochten auch

Abap query
Abap queryAbap query
Abap query
brtkow
 
Abap course chapter 7 abap objects and bsp
Abap course   chapter 7 abap objects and bspAbap course   chapter 7 abap objects and bsp
Abap course chapter 7 abap objects and bsp
Milind Patil
 
An expert guide to new sap bi security features
An expert guide to new sap bi security featuresAn expert guide to new sap bi security features
An expert guide to new sap bi security features
Shazia_Sultana
 
Get database properties using power shell in sql server 2008 techrepublic
Get database properties using power shell in sql server 2008   techrepublicGet database properties using power shell in sql server 2008   techrepublic
Get database properties using power shell in sql server 2008 techrepublic
Kaing Menglieng
 
BATCH DATA COMMUNICATION
BATCH DATA COMMUNICATIONBATCH DATA COMMUNICATION
BATCH DATA COMMUNICATION
Kranthi Kumar
 
Call transaction method
Call transaction methodCall transaction method
Call transaction method
Kranthi Kumar
 

Andere mochten auch (18)

Abap query
Abap queryAbap query
Abap query
 
static ABAP code analyzers
static ABAP code analyzersstatic ABAP code analyzers
static ABAP code analyzers
 
Abap course chapter 7 abap objects and bsp
Abap course   chapter 7 abap objects and bspAbap course   chapter 7 abap objects and bsp
Abap course chapter 7 abap objects and bsp
 
Exercise in alv
Exercise in alvExercise in alv
Exercise in alv
 
Epic abap
Epic  abapEpic  abap
Epic abap
 
Sap abap material
Sap abap materialSap abap material
Sap abap material
 
ABAP Basico para Consultores Funcionales
ABAP Basico para Consultores FuncionalesABAP Basico para Consultores Funcionales
ABAP Basico para Consultores Funcionales
 
SAP ABAP data dictionary
SAP ABAP data dictionarySAP ABAP data dictionary
SAP ABAP data dictionary
 
SAP ABAP Material
SAP ABAP MaterialSAP ABAP Material
SAP ABAP Material
 
An expert guide to new sap bi security features
An expert guide to new sap bi security featuresAn expert guide to new sap bi security features
An expert guide to new sap bi security features
 
네­임­드­사­다­리❤DBN111.COM❤네­임­드­사­다­리
네­임­드­사­다­리❤DBN111.COM❤네­임­드­사­다­리네­임­드­사­다­리❤DBN111.COM❤네­임­드­사­다­리
네­임­드­사­다­리❤DBN111.COM❤네­임­드­사­다­리
 
Batch input session
Batch input sessionBatch input session
Batch input session
 
Get database properties using power shell in sql server 2008 techrepublic
Get database properties using power shell in sql server 2008   techrepublicGet database properties using power shell in sql server 2008   techrepublic
Get database properties using power shell in sql server 2008 techrepublic
 
Badis
Badis Badis
Badis
 
BATCH DATA COMMUNICATION
BATCH DATA COMMUNICATIONBATCH DATA COMMUNICATION
BATCH DATA COMMUNICATION
 
Call transaction method
Call transaction methodCall transaction method
Call transaction method
 
Basic Access Notes
Basic Access NotesBasic Access Notes
Basic Access Notes
 
Abap sample
Abap sampleAbap sample
Abap sample
 

Ähnlich wie The ABAP Query

SAP ABAP Latest Interview Questions
SAP ABAP Latest  Interview Questions SAP ABAP Latest  Interview Questions
SAP ABAP Latest Interview Questions
piyushchawala
 
Lecture07 abap on line
Lecture07 abap on lineLecture07 abap on line
Lecture07 abap on line
Milind Patil
 
Database Design
Database DesignDatabase Design
Database Design
learnt
 

Ähnlich wie The ABAP Query (20)

Abap interview questions and answers
Abap interview questions and answersAbap interview questions and answers
Abap interview questions and answers
 
Tableau Basic Questions
Tableau Basic QuestionsTableau Basic Questions
Tableau Basic Questions
 
SAP ABAP Latest Interview Questions
SAP ABAP Latest  Interview Questions SAP ABAP Latest  Interview Questions
SAP ABAP Latest Interview Questions
 
Pnbhfl training final
Pnbhfl training finalPnbhfl training final
Pnbhfl training final
 
SAP ABAP Interview questions
SAP ABAP Interview questionsSAP ABAP Interview questions
SAP ABAP Interview questions
 
Programming Interface & SAP BDC
Programming Interface & SAP BDCProgramming Interface & SAP BDC
Programming Interface & SAP BDC
 
Sure Outputs
Sure OutputsSure Outputs
Sure Outputs
 
Lecture07 abap on line
Lecture07 abap on lineLecture07 abap on line
Lecture07 abap on line
 
BAPI - Criação de Ordem de Manutenção
BAPI - Criação de Ordem de ManutençãoBAPI - Criação de Ordem de Manutenção
BAPI - Criação de Ordem de Manutenção
 
Database Design
Database DesignDatabase Design
Database Design
 
Dbms fast track 2/3
Dbms fast track 2/3Dbms fast track 2/3
Dbms fast track 2/3
 
Usgage of ABAP in BI
Usgage of ABAP in BIUsgage of ABAP in BI
Usgage of ABAP in BI
 
BI Publisher Data model design document
BI Publisher Data model design documentBI Publisher Data model design document
BI Publisher Data model design document
 
BI Publisher 11g : Data Model Design document
BI Publisher 11g : Data Model Design documentBI Publisher 11g : Data Model Design document
BI Publisher 11g : Data Model Design document
 
500+ SAP ABAP INTERVIEW QUESTIONS WITH ANSWERS
500+ SAP ABAP INTERVIEW QUESTIONS WITH ANSWERS500+ SAP ABAP INTERVIEW QUESTIONS WITH ANSWERS
500+ SAP ABAP INTERVIEW QUESTIONS WITH ANSWERS
 
Bdc
BdcBdc
Bdc
 
OBIEE publisher with Report creation - Tutorial
OBIEE publisher with Report creation - TutorialOBIEE publisher with Report creation - Tutorial
OBIEE publisher with Report creation - Tutorial
 
Sql query analyzer & maintenance
Sql query analyzer & maintenanceSql query analyzer & maintenance
Sql query analyzer & maintenance
 
Co pa extraction
Co pa extractionCo pa extraction
Co pa extraction
 
essentialofdatabasedesign-141203001046-conversion-gate01.pdf
essentialofdatabasedesign-141203001046-conversion-gate01.pdfessentialofdatabasedesign-141203001046-conversion-gate01.pdf
essentialofdatabasedesign-141203001046-conversion-gate01.pdf
 

The ABAP Query

  • 2.
  • 3.
  • 4. Standard vs. Global Areas
  • 5.
  • 6.
  • 7. InfoSet Design Strategy
  • 8.
  • 9.
  • 10.
  • 11.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21. InfoSet - Data Source - External Program   * End of data retrieval loop for individual records (ENDSELECT, ENDDO, ENDLOOP) Comment to finish the statement in the loop. The data must be available in the tab structure. * <Query_body>   * Code to define the itab table, if such a table is used. * Start of a loop to retrieve, one at a time, each of the records that you want to report on, and place them in the tab structure (SELECT, DO, LOOP) * Code for formatting data Comment to finish off a data statement. * <Query_head> Definition of an internal table itab with structure tab providing the records that you want to report on. DATA: BEGIN OF itab OCCURS xxx.       INCLUDE STRUCTURE tab. DATA: END of itab.   DATA:   Select-Options:… Definition of parameters, selection criteria, and fields. Parameters . Definition of the dictionary structure used to set up the InfoSet. This structure must contain the records that you want to report on. Tables tab .   Report xxxxxxxx .
  • 22.
  • 23.
  • 24.
  • 25.
  • 26.
  • 27.
  • 28.
  • 29.
  • 30.
  • 31.
  • 32.
  • 33.
  • 34. User Group Creation and Assignment
  • 35.
  • 36.
  • 37.
  • 39.
  • 40. Query - Creation Use Notes to document the Remedy ticket number, date of creation, and brief description. Enter CUS&STANDARD as the standard variant to be used by this query. The naming convention of CUS& allows this to be transported. Enter your Query description, list and output format. Hit to continue.
  • 41.
  • 42.
  • 43. Query – Graphical Query Painter
  • 44.
  • 45.
  • 46.
  • 47.
  • 48.
  • 49.
  • 50.
  • 52. InfoSet: ZSD_OPEN_ORDERS User Group: ZSD Query: ZSD_OPEN_ORDER_D Program: AQZZZSD=========ZSD_OPEN_ORD_D Purpose: Make open sales order information available at the order/item/ schedule line level with associated material master information. Separates confirmed and unconfirmed values and quantities and makes totals available at the order, item, and schedule line levels. Values are based on KZWI2 (Sub-total 2) since this represents shipment dollars. Requested date and earliest schedule line date is available at each level. Partial delivery or billing quantities are applied against the schedule lines to determine true open quantities and values at the delivery date level. An open order date allows only orders due to deliver in that time period to be considered. Logical Database Example
  • 53.
  • 54.
  • 55.
  • 56.
  • 57.
  • 58.
  • 59.
  • 60. Purpose: Join material master information from MARA, MARC, MVKE, and MBEW for the purposes of downloading the information to an HWS Data Warehouse. Material data is merged with pricing data for the B0, B1, and B2 price lists for 3 input divisions (3A, 3B, 3C). Characteristic data for the material is also merged as well as Unit of Measure conversions. There are many additional calculated fields for the pricing and classification data. InfoSet: ZMM_DATAMINE User Group: ZMM Query: ZMM_DATAMINE Program: AQZZZMM=========ZMM_DATAMINE== Table Join Example
  • 61.
  • 62.
  • 63.
  • 64. Purpose: Retrieve orders blocked by delivery block at either the schedule line and/or header level. An index was created on VBEP for schedule line delivery block for this report. If a schedule line delivery block is entered as selection criteria, data is retrieved starting with VBEP. If no schedule line delivery block is entered, data is retrieved starting with VBAK. InfoSet: ZSD_SO_BLOCK_E External Program: ZSDQ_SO_BLOCK Data Structure: ZSDQ_SO_BLOCK User Group: ZSD Query: ZSD_SO_BLOCK_E Program: AQZZZSD=========ZSD_SO_BLOCK_E External Program Example
  • 65.
  • 66.
  • 67.
  • 68.
  • 69.
  • 70.
  • 71.