Sunday, May 12, 2013
RP-READ-INFOTYPE - Macro is used to retrieve all infotype records for one person in a given time period are put in one internal infotype table..
Example:
RP-READ-INFOTYPE PERNR-PERNR 0006 P0006 PN-BEGDA PN-ENDDA.

Inputs
PERNR-PERNR
Requested Personal number

0006
Subtype

P0006
Output Table Like PNNNN

PN-BEGDA
Requested Interval-Begin

PN-ENDDA
Requested Interval-Begin
Output
PNP-SW-FOUND
  • ‘1' - if there is any matching entry in the infotype table in the given time period
  • ‘0' - if there is no matching entry in the infotype table in the given time period

PNP-SW-AUTH-SKIPPED-RECORD
  • ‘0’ - if the HR authorization check has retained no record due to lack of authorization
  •  ‘1’ - if the HR authorization check has retained at least one record due to lack of authorization

P0006
Internal infotype table, containing all matching records for which the user is authorized 


Report without LDB
DATA DATE01 TYPE DATUM.

PARAMETERS: P_PERNR TYPE P0001-PERNR.
SELECT-OPTIONS:S_DATES FOR DATE01 NO-EXTENSION.

START-OF-SELECTION.

  RP-READ-INFOTYPE P_PERNR 0006 P0006 S_DATES-LOW S_DATES-HIGH.
  LOOP AT P0006.
    WRITE: / P0006-PERNR, P0006-ANSSA, P0006-BEGDA, P0006-ENDDA.
  ENDLOOP.

1 comment:

  1. one correction - 0006 is not subtype is infotype (parameter list of RP_READ_INFOTYPE )

    ReplyDelete

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.