Você está na página 1de 4

SAP HR ABAP, HCM Training Material and Tutorials

H O M E M A T E R IA AB LO U T S A P T R A C I O N N I N T G A C T

Online Courses
SAP Training ESS|MSS Training SAP HR Payroll Training SAP ABAP Training HR ABAP Training SAP HR Training SAP Workflow Smart Forms | Adobe Forms Training

Evaluating Repetitive Structures in HR ABAP Programming

0 2 Y AM

External Links

View Free Demo


Before writing this post I would like to thank Manoj kumar, ShivrajSinha, Santhosh Somasekharan, Amolkumar Patil, Vishal Jindal, Bijay Kumar Barik, Devi, who has referred Abaphr.com in SAP SDN Forum . In many master data Infotypes, data is entered in table form. This, for example, allows you to enter up to forty different wage types and their amounts. By scrolling, you can enter up to forty wage types. The structure of the wage type line is stored in the Infotype structure P0008, and the individual fields are numbered from one to forty. This means that each field of the wage type table is defined. A loop offers a more streamlined method of evaluation. Here, one line of the repeat structure is evaluated each time the loop is executed As SAP consultant you might know the structures. But what is the repetitive structures?. The sentence it self explains that in a structure, some fields are available multiple times with the sequence number change, like fieldname01, fieldname02, fieldname03 etc For example In Master data Infotypes we have: Infotype 0008 (Basic Pay) Infotype 0025 (Appraisals) Infotype 0041 (Date Specifications) Infotype 0052 (Wage Maintenance) If we look at Infotype 0008 below fields are getting repeated 40 times (Lower versions of SAP only 20 times like 4.6C). LGA01 wage type1 BET01 wage type Amount ANZ01 Number EIN01 Time/Measurement Unit OPK01 Operation Indicator for Wage Types LGA02 wage type2 BET02 wage type amount ANZ02 Number EIN02 Time/Measurement Unit OPK02 Operation Indicator for Wage Types Till LGA40 wage type40 BET40 wage type amount ANZ40 Number EIN40 Time/Measurement Unit OPK40 Operation Indicator for Wage Types For the above scenario we have multiple wage types for one Personnel number for one particular period. Viz.. Basic Pay, House rent allowance, conveyance, special allowance, car allowance, salary exempt, salary non exempt (All these are wage types). For the above scenario wage types are stored in LGA01, LGA02, LGA03, LGA04, LGA05, LGA06, LGA07 , and its amount correspondingly BET01, BET02, BET03, BET04, BET05, BET06, BET07 . This is the brief overview about repetitive structures in SAP. Now as a technical consultant your job starts. How do you read the data form repetitive structure Infotypes. For example we need to select basic wage from Infotype 0008 and display in report. We are not sure in which field the basic wage is going to be stored like it might be in LGA01 or LGA02 or LGA03 or LGA04. Here my question is, are we going to check 40 time IF condition for each field (LGA01 to LGA40). My answer is No. We have syntax in ABAP by using that we can achieve out target very easily. Before going forward if you are new to ABAP HR, please go through the below Link: SAP ABAP HR Program code using LDB PNP Pre-built dashboards, reports, and metrics for supply chain. Learn how
Fusionops.com/SAP_Dashboard

Employee Training Program


Customizable training programs plus other basic tools for HR
www.Prospera.com

External links
Ads by Google

SAP to/from Excel


Upload/download SAP to/from Excel No Programming. Free Trial!
AutomationAnywhere.com/SAP-Excel

Sap Jobs In Jobs for Sap Sap HR

Performance Appraisal
Streamlined & Efficient Performance Appraisals. Download Whitepaper Now
www.SuccessFactors.com

Share This

Join Mailing List


Sign up to receive SAP HR, ABAP articles. Enter your email address:

Download the White Paper


Discover the Mobile Mass-Market Potential of the US Brew Base
www.brewmp.com/content/resources

Subscribe

Tutorials
Creation of Custom Infotype in HR ABAP Basic Customization for HCM Workflow Workflow Introduction Workflow basics One Minute Dream of Software Engineer Small break again Structural Authorizations in SAP HR with gotchas Evaluating Repetitive Structures in HR ABAP Programming SAP ABAP HR Program code using LDB PNP SAP HR ABAP Interview Faqs

Material
ABAP HR (15) FAQ's (2) Infotypes (4) Programs (2) HCM Workflow (3) SAP-hr (6) Authorizations (1) Configuration (3) Payroll (1) Uncategorized (7 )

Add to iGoogle

HR Metrics Tracking Tips www.IBM.com/cognos_workforce Better Manage Employee Turnover. Read How in IBM's Free HR Paper SAP Jobs at Accenture www.accenture.com Submit Your Resume for a SAP Career with a Global Leader. Apply Now.
converted by Web2PDFConvert.com

Certification Programs www.Certificates.DegreeLeap.com Browse Our Catalog of Certification Programs to Find One Near You. HR Hiring Software PeopleMatter.com/HR-Software Hire & manage Service Ind employees Get fast, consistent HR. Free demo!
The following Report shows you how to access these data fields. The example determines the wage type and its amount for particular period. Data declarations: The required data declarations are first made at the beginning of the Report. Fields LGART and BETRG are required to read the repetitive structures. Tables: PERNR is used to get the standard selection screen as well work area. Declare Tables: PERNR and press F8 you will get standard selection screen. Infotypes: when we declare tables at the runtime of program will have work area the same way, when we declare Infotypes, will have internal table (we call as internal Infotype) with header with the structure of associated Infotype. Macros: You often only require the most recent or earliest Infotype record, not all Infotype records. In this case, use one of the following statements: RP_PROVIDE_FROM_LAST Pnnnn SPACE PN-BEGDA PN-ENDDA. These statements make the most recent or earliest record in the PN/BEGDA to PN/ENDDA data selection period available in the structure Pnnnn for infotype nnnn. If the infotype has subtypes, replace the SPACE parameter by the appropriate subtype number. When a record has been successfully read, the return code PNP-SW-FOUND = 1 is returned.

SAP Training www.ibcllc.com Onsite or Virtual Classroom Corporate Training HR Certificate Online www.eCornell.com HR Management from eCornell 100% Online. Request Info Now!

converted by Web2PDFConvert.com

Employee Payroll Services Local.com Looking For Employee payroll services? Find It Nearby With Local.com! Sap Online Training VirtualStudies.com Get Advice On Sap Online Training. Your Source For Online Education.

Related Posts
SAP ABAP HR Program code using LDB PNP SAP HR ABAP Interview Faqs Personnel Administration (PA): Introduction on SAP HR module Useful Transaction codes in SAP HR module Macros in HR-ABAP programming What is Logical Database ? Infotype 402 and Payroll results
This entry was posted on Thursday , May 20th, 201 0 at 4:45 am and is filed under Programs. You can follow any responses to this entry through the RSS 2.0 feed. You can leav e a response, or trackback from y our own site.

SAP ABAP HR Program code using LDB PNP Structural Authorizations in SAP HR with gotchas 2 Responses to Evaluating Repetitive Structures in HR ABAP Programming Shelton Dagley Says: have already been following ur website around a few days. really enjoy your posts. btw im doing study concerning this issue. do you know any other good blogs or perhaps forums that I might find out more? many thanks.
October 18th, 2010 at 3:48 am

1 2

sowmi reddy Says: hi please post output for every program so that we can understand the program clearly and at the same time please post answers for interview FAQs questions.
March 20th, 2011 at 3:11 pm

Leave a Reply

converted by Web2PDFConvert.com

Name (required) Mail (will not be published) (required) Website

Submit Comment

2012 SAP HR ABAP, HCM Training Material and Tutorials | Entries (RSS) and Comments (RSS) Design by Web4 Wordpress Themes, SAP HR ABAP, HCM Training Material and Tutorials 2012 | Theme design by Data sub systems. SAP is a registered Trademark of SAP AG. Abaphr.com is not affiliated to SAP AG or any of its subsidiaries.

converted by Web2PDFConvert.com

Você também pode gostar