SAP ABAP Data Element PNPFIRST (Sort After First Occurrence)
Hierarchy
SAP_HRRXX (Software Component) Sub component SAP_HRRXX of SAP_HR
   PA-PA (Application Component) Personnel Administration
     PBAS (Package) SAP HR Master Data Application Development
Basic Data
Data Element PNPFIRST
Short Description Sort After First Occurrence  
Data Type
Category of Dictionary Type D   Domain
Type of Object Referenced     No Information
Domain / Name of Reference Type XFELD    
Data Type CHAR   Character String 
Length 1    
Decimal Places 0    
Output Length 1    
Value Table      
Further Characteristics
Search Help: Name    
Search Help: Parameters    
Parameter ID   
Default Component name    
Change document    
No Input History    
Basic direction is set to LTR    
No BIDI Filtering    
Field Label
  Length  Field Label  
Short 10 1stOccurr. 
Medium 16 First occurrence 
Long 20 First occurrence 
Heading 16 First occurrence 
Documentation

Definition

Various sort types are available for time period evaluations.

First, determine the sort criteria according to which the SAP System should select data. You can use all the specific fields of the Organizational Assignment infotype (0001) as sort criteria.

Example:

You want to sort by personnel area. In the system, some employees have more than one data record in the Organizational Assignment infotype (0001).

Employee A left personnel area 0003 in the middle of the month, and was assigned to personnel area 0001 with immediate effect.

Employee B left personnel area 0002 in the middle of the month, and was assigned to personnel area 004 with immediate effect.

Run an evaluation for the period containing the month in which the employees changed personnel areas (date selection period).

The system groups together all personnel numbers that meet the criteria specified in the report selection screen. The system then sorts the data by personnel area.

By setting a sort type, the selection sequence is affected in the following manner:

  • First Occurrence:

    The system selects the first infotype record of each employee, and sorts them by personnel area.

    Employee B (data record with assignment to personnel area 0002)

    Employee B (data record with assignment to personnel area 0002)

    Employee A (data record with assignment to personnel area 0003)

  • Each Occurrence:

    The system selects every infotype record, and sorts them by personnel area.

    Employee A (data record with assignment to personnel area 0001)

    Employee B (data record with assignment to personnel area 0002)

    Employee A (data record with assignment to personnel area 0003)

    Employee B (data record with assignment to personnel area 0004)

  • Last Occurrence:

    The system selects the last infotype record of each employee, and sorts them by personnel area.

    Employee A (data record with assignment to personnel area 0001)

    Employee B (data record with assignment to personnel area 0004)

Note:

Setting a sort type does not have any effect on the contents of the output list. For example, you can specify for individual reports, that the most current data record is to be output, even if more than one infotype data record is to be considered for each employee during the sort (data selection).

History
Last changed by/on SAP  20010222 
SAP Release Created in