Logical database
A logical database is a special ABAP/4 program which combines the contents of certain database tables. Using logical databases facilitates the process of reading database tables.
HR Logical Database is PNP
Main Functions of the logical database PNP:
Standard Selection screen
Data Retrieval
Authorization check
To use logical database PNP in your program, specify in your program attributes.
Standard Selection Screen
Date selection
Date selection delimits the time period for which data is evaluated. GET PERNR retrieves all records of the relevant infotypes from the database. When you enter a date selection period, the PROVIDE loop retrieves the infotype records whose validity period overlaps with at least one day of this period.
Person selection
Person selection is the 'true' selection of choosing a group of employees for whom the report is to run.
Sorting Data
· The standard sort sequence lists personnel numbers in ascending order.
· SORT function allows you to sort the report data otherwise. All the sorting fields are from infotype 0001.
Report Class
· You can suppress input fields which are not used on the selection screen by assigning a report class to your program.
· If SAP standard delivered report classes do not satisfy your requirements, you can create your own report class through the IMG.
Data Retrieval from LDB
1. Create data structures for infotypes.
INFOTYPES: 0001, "ORG ASSIGNMENT
0002, "PERSONAL DATA
0008. "BASIC PAY
2. Fill data structures with the infotype records.
Start-of-selection.
GET PERNR.
End-0f-selection.
Read Master Data
Infotype structures (after GET PERNR) are internal tables loaded with data.
The infotype records (selected within the period) are processed sequentially by the PROVIDE - ENDPROVIDE loop.
GET PERNR.
PROVIDE * FROM Pnnnn BETWEEN PN/BEGDA AND PN/ENDDA
If Pnnnn-XXXX = ' '. write:/ Pnnnn-XXXX. endif.
ENDPROVIDE.
Period-Related Data
All infotype records are time stamped.
IT0006 (Address infotype)
01/01/1990 12/31/9999 present
Which record to be read depends on the date selection period specified on the
selection screen. PN/BEGDA PN/ENDDA.
Current Data
IT0006 Address - 01/01/1990 12/31/9999 present
RP-PROVIDE-FROM-LAST retrieves the record which is valid in the data selection period.
For example, pn/begda = '19990931' pn/endda = '99991231'
IT0006 subtype 1 is resident address
RP-PROVIDE-FROM-LAST P0006 1 PN/BEGDA PN/ENDDA.
BADI, BAPI'S, BDC, HR, Interview Questions, Programming, Reports, RFC, TCodes, ABAP-Java, ALE, IDOCs, ALV's, BSP, BTE, Data Dictionary, Dialog Programming, FICO, SD, MM, Function Modules, Interactive Reports, Internal Tables, Locking, Logical Database, OOPS,PM,PP,QM,R/3,BW,SCRIPTS,SMART FORMS
Friday, July 25, 2008
Subscribe to:
Post Comments (Atom)
Archives
-
▼
2008
(112)
-
▼
July
(54)
- The R/3 Basis System: Overview
- Position of the Basis System Within the R/3 System
- Application Servers in SAP
- Work Processes in SAP ABAP
- Overview of the Components of Application Programs...
- Structure of an Application Program in SAP ABAP
- Screens in SAP ABAP
- Structure of ABAP Programs
- Processing Blocks in ABAP Programs
- ABAP Statements in SAP ABAP
- Logical Databases and Contexts in SAP ABAP
- Memory Structures of an ABAP Program
- Creating and Changing ABAP Programs in SAP ABAP
- Opening a Program from the Repository Browser in S...
- Opening Programs in the ABAP Editor
- Opening Programs Using Forward Navigation in SAP ABAP
- Maintaining Program Attributes in SAP ABAP
- Editing Programs in SAP ABAP
- ABAP Syntax
- Processing Data in SAP ABAP
- LESSON 25 CALLING PROGRAM AND PASSING DATA
- LESSON 26 TECHNIQUES FOR LIST CREATION AND SAP QUARY
- LESSON 29 SELECTION SCREENS ABAP REPORT
- ABAP Interview Questions -SQL , Tables , Basic
- Dialog Programming Interview Questions(FAQ's)
- Performance Tuning Faqs in abap
- SAP BASIS LAYER Interview Questions
- SAP ABAPDATA DICTIONARY Interview Questions
- SAP ABAP LOGICAL DATABASE Interview Questions
- SAP ABAP Dialog Programming FAQ
- More than 100 ABAP Interview Faq's
- SAP Workflow Items Sent To Everyone If Agent Not D...
- How to delete an editor lock in sap?
- How can I insert my company logo in the sap abap s...
- sap abap program for Issuing an Unix Command from ...
- Difference for Stock Transfer and Transfer Posting...
- Add a Field To New Condition Table in Pricing in SAP
- Unified Access to All SAP ABAP HR Infotypes
- SAP HR ABAP Logical Database
- Processing Payroll infotypes/Cluster in SAP HR ABAP
- FAQ ON SCRIPTS 1
- FAQ ON SCRIPTS 2
- FAQ ON SCRIPTS 3
- General - Reporting Tree in ABAP
- List Box in ABAP Report
- Example Code For Drill Down Report in SAP ABAP
- TABStrips in ABAP
- A demo program to create subscreen in your ABAP Pr...
- Tree type report in ABAP
- Recursion with Loop Checking in SAP
- ABAP Clipboard Utilities for Beautiful Commented Code
- Create Push Buttons in Application Tool Bar IN SAP...
- Single Bit Processing in Hexadecimal Fields in SAP...
- Showing posts with label ABAP Enhancement. Show al...
-
▼
July
(54)
No comments:
Post a Comment