Monday, May 13, 2013

Repetitive structures in HR denotes the table which has the same type of field structures(which stores same kind of values). For example, Table for Basic Pay Infotype 0008 is PA0008. This table stores all the wage types assigned to an employee in its fields LGAXX,  BETXX,  ANZXX,  EINXX and OPKXX. Here XX denotes the number 01-40. These fields are repeated for 40 times, as it is defined in SAP system(We can maintain 40 different wage types for an employee in Standards).

Now if we want to fetch any specific wage type from these fields, we have to check for each field, as the wage type may be stored in any of these fields.

Infotypes which have repetitive structures in HR
  1. 0008 (Basic Pay).
  2. 0025 (Appraisals).
  3. 0041 (Date Specifications).
  4. 0052 (Wage Maintenance)
We need to use DO VARYING loop syntax.
To use this method of evaluation, define a field string whose structure corresponds to the fields in
one line of the repetitive structure.
In this field string, one line of the basic pay wage types is evaluated each time the loop is
executed.
Examples
ABAP - DO VARYING - UNICODE programming
ABAP - DO VARYING - NON-UNICODE programming

0 comments:

Post a Comment

Your useful comments, suggestions are appreciated.Your comments are moderated.

Followers

Contact Form

Name

Email *

Message *

Web Dynpro ABAP Book

An SAP Consultant

Follow US


Want to Contribute ?

If you are interested in writing about the new stuff you learn everyday while working, please write to the.sap.consultants@gmail.com.

Click on Contribution for more details.