Processing a Specific Infotype Record (PA-APP) 
You often only require the most recent or earliest infotype record, not all infotype records.
In this case, use one of the following statements:
PAP_PROVIDE_FROM_LAST Pnnnn SPACE PA$BEGDA PA$ENDDA.
or
PAP_PROVIDE_FROM_FIRST Pnnnn SPACE PA$BEGDA PA$ENDDA.
These statements make the newest or oldest record in the
PA$BEGDA to PA$ENDDA data selection period available in the structure Pnnnn .If the infotype has subtypes, replace the
SPACE parameter by the appropriate subtype number.When a record has been successfully read, the return code
PAP-SW-FOUND = 1 is transferred.Sample report:
REPORT RPDEMO02.
TABLES: APPLICANT.
INFOTYPES: 0001.
GET APPLICANT.
PAP_PROVIDE_FROM_FIRST P0001 SPACE PA$BEGDA PA$ENDDA.
IF PAP_SW_FOUND eq ‘1’.
WRITE: / APPLICANT-APLNO, P0001-BUKRS, PA$BEGDA, PA$ENDDA.
ELSE.
REJECT.
ENDIF.
The above statements are ABAP macros.
For more information, see
Specific Commands.