Wednesday, January 18, 2012

SAP HR - Functions

Functions

• The individual processing steps which are defined in a schema and processed in the given sequence are called “Functions”.

• Functions supply the data required for processing, process the data, and write it to the internal tables.

• The processing steps to be performed by a function can be controlled or refined by specifying parameters.

• You manage functions through transaction code PE04.

• SAP supplies you the standard functions, which you call at the right places in the schema. The model schema can be used as a guide for this purpose.

• You don’t normally modify a SAP function. However, SAP allows you to:
– Create your own function
– Modify an existing function.

• As is the case with a schema, customer-functions are edited after copying a suitable model (standard) function into the customer name-space. All the customer-functions should start with “Z” as the
first character.

• A function can have zero to four parameters (par1, par2, par3, and par4), depending on the definition of the function.

• In many cases, a PCR is a parameter of the function.

• On using F1 help, you can get the details of the allowed parameters for the function and the valid values for the parameters.

Types of Functions

• Functions that set a switch
– These functions can come in any position within a schema.
– They can appear only once in a schema.
– They can not be processed in a IF-ELSE-ENDIF loop.
– Examples: OPPT, CHECK, EXPRT

• Functions that import data
– E.g. P2001

• Functions that call a PCR
– Functions for processing status information, e.g. ACTIO.
– Functions that process an internal table, line by line. E.g. PTIP.
– Functions with fixed processing, e.g. PBRKS.






No comments:

Post a Comment