Fm to Read Om Infotypes in Sap Hr

RH_READ_INFTY_NNNN is a standard SAP function module available within R/iii SAP systems depending on your version and release level. Beneath is the design details for this FM showing its interface including whatever import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

Meet here to view full office module documentation and code listing, simply past entering the proper name RH_READ_INFTY_NNNN into the relevant SAP transaction such as SE37 or SE80.

Associated Role Group: RHDB
Released Date: 07.04.1998
Processing type: Normal fucntion module
Normal function module settings


Design for FM RH_READ_INFTY_NNNN - RH READ INFTY NNNN


Telephone call FUNCTION 'RH_READ_INFTY_NNNN' "Read Infotype > 1001 for Object Set   EXPORTING *   authority = 'DISP'          "               Office Lawmaking for Dominance Check *   with_stru_auth = 'X'        "               With Structural Say-so Check *   plvar =                     " plog-plvar    Programme Version *   otype =                     " plog-otype    Object Type *   objid =                     " plog-objid    Object ID     infty =                     " plog-infty    Infotype *   istat = SPACE               " plog-istat    Status *   extend = '10'                " hrrhdb-extend  Extension (X = with SUBTY/ISTAT/BEGDA/ENDDA) *   subty = SPACE               " plog-subty    Subtype       (EXTEND = X) *   begda = '19000101'          " plog-begda    Start Date (EXTEND = X) *   endda = '99991231'          " plog-endda    Cease Engagement     (EXTEND = X) *   condition = '00000'         " hrrhdb-condition  Condition    (EXTEND = D) *   inftb = '1'                 " pppch-inftb   Toggle Table Infotype (i=Toggle, 0=Other) *   sort = 'X'                  " hrrhdb-sort   Sort Information Table   TABLES     innnn =                     "               Data Table *   objects =                   " hrobject      Object Range   EXCEPTIONS     NOTHING_FOUND = i           "               No Data Selected     WRONG_CONDITION = two         "               No Condition Exists     INFOTYP_NOT_SUPPORTED = 3   "               Infotype 1000 is Not Supported     WRONG_PARAMETERS = iv        "               FM Was Chosen With Incorrect Parameters     .  "  RH_READ_INFTY_NNNN

ABAP code example for Role Module RH_READ_INFTY_NNNN



The ABAP code beneath is a full code listing to execute function module RH_READ_INFTY_NNNN including all data declarations. The code uses the latest in-line data DECLARATION SYNTAX just I have included an ABAP code snippet at the terminate to bear witness how declarations would wait using the original method of declaring information variables up front. This will allow you to compare and fully understand the new inline method. Please notation some of the newer syntax such equally the @DATA is not bachelor until a afterward iv.70 service pack (SP8).

DATA:
it_innnn  TYPE STANDARD TABLE OF Cord,"TABLES PARAM
wa_innnn  Like LINE OF it_innnn ,
it_objects  TYPE STANDARD TABLE OF HROBJECT,"TABLES PARAM
wa_objects  Like LINE OF it_objects .

Information(ld_authority) = 'some text hither'.
DATA(ld_with_stru_auth) = 'some text here'.

SELECT single PLVAR
FROM PLOG
INTO @DATA(ld_plvar).

SELECT single OTYPE
FROM PLOG
INTO @Information(ld_otype).

SELECT single OBJID
FROM PLOG
INTO @DATA(ld_objid).

SELECT single INFTY
FROM PLOG
INTO @DATA(ld_infty).

SELECT unmarried ISTAT
FROM PLOG
INTO @DATA(ld_istat).

DATA(ld_extend) = some text here

SELECT unmarried SUBTY
FROM PLOG
INTO @DATA(ld_subty).

SELECT unmarried BEGDA
FROM PLOG
INTO @DATA(ld_begda).

SELECT single ENDDA
FROM PLOG
INTO @DATA(ld_endda).

Information(ld_condition) = Cheque type of information required

Information(ld_inftb) = Check type of data required

DATA(ld_sort) = some text here

"populate fields of struture and suspend to itab
append wa_innnn to it_innnn.

"populate fields of struture and append to itab
append wa_objects to it_objects. . CALL Role 'RH_READ_INFTY_NNNN' EXPORTING * dominance = ld_authority * with_stru_auth = ld_with_stru_auth * plvar = ld_plvar * otype = ld_otype * objid = ld_objid infty = ld_infty * istat = ld_istat * extend = ld_extend * subty = ld_subty * begda = ld_begda * endda = ld_endda * status = ld_condition * inftb = ld_inftb * sort = ld_sort TABLES innnn = it_innnn * objects = it_objects EXCEPTIONS NOTHING_FOUND = 1 WRONG_CONDITION = 2 INFOTYP_NOT_SUPPORTED = 3 WRONG_PARAMETERS = 4 . " RH_READ_INFTY_NNNN
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add together code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 3. "Exception "Add code for exception hither ELSEIF SY-SUBRC EQ four. "Exception "Add lawmaking for exception here ENDIF.


ABAP code to compare vii.40 inline data declaration with original syntax

The beneath ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you lot are using an older version of SAP as some of the newer syntax in a higher place, such every bit the @DATA is non bachelor until 4.seventy EHP viii.

DATA:
ld_authority  TYPE String ,
it_innnn  Blazon STANDARD TABLE OF String ,
wa_innnn  LIKE LINE OF it_innnn,
ld_with_stru_auth  TYPE STRING ,
it_objects  Blazon STANDARD TABLE OF HROBJECT ,
wa_objects  Similar LINE OF it_objects,
ld_plvar  Type PLOG-PLVAR ,
ld_otype  Blazon PLOG-OTYPE ,
ld_objid  Type PLOG-OBJID ,
ld_infty  TYPE PLOG-INFTY ,
ld_istat  Type PLOG-ISTAT ,
ld_extend  Type HRRHDB-EXTEND ,
ld_subty  TYPE PLOG-SUBTY ,
ld_begda  TYPE PLOG-BEGDA ,
ld_endda  TYPE PLOG-ENDDA ,
ld_condition  Blazon HRRHDB-Status ,
ld_inftb  Type PPPCH-INFTB ,
ld_sort  Type HRRHDB-SORT .

ld_authority = 'some text here'.

"populate fields of struture and append to itab
append wa_innnn to it_innnn.
ld_with_stru_auth = 'some text hither'.

"populate fields of struture and append to itab
append wa_objects to it_objects.

SELECT single PLVAR
FROM PLOG
INTO ld_plvar.

SELECT single OTYPE
FROM PLOG
INTO ld_otype.

SELECT single OBJID
FROM PLOG
INTO ld_objid.

SELECT single INFTY
FROM PLOG
INTO ld_infty.

SELECT single ISTAT
FROM PLOG
INTO ld_istat.

ld_extend = some text hither

SELECT single SUBTY
FROM PLOG
INTO ld_subty.

SELECT single BEGDA
FROM PLOG
INTO ld_begda.

SELECT single ENDDA
FROM PLOG
INTO ld_endda.

ld_condition = Check type of information required

ld_inftb = Check type of data required

ld_sort = some text here


SAP Documentation for FM RH_READ_INFTY_NNNN

Contribute (Add together Comments)

Delight help continue this info upto date and utilise the comments section beneath to add together useful hints, tips and data specific to this SAP function. This will then be available for yous and other users to easily discover by but searching on the object name RH_READ_INFTY_NNNN or its description.



piersonclady1985.blogspot.com

Source: https://www.se80.co.uk/sapfms/r/rh_r/rh_read_infty_nnnn.htm

0 Response to "Fm to Read Om Infotypes in Sap Hr"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel