SAP Function RP_TS_OPEN - Open an HR TemSe object

Parameter Reference Type Length Default Optional Text
EMPFG RPTSTYPE-EMPFG C 8 Recipient
ENQLOCK RSTSTYPE-PROM C 1 'N' X
OWNNR RPTSTYPE-OWNNR C 1 ' ' X Own FM handling (several TemSe objects)
TSOBJ RPTSTYPE-TSOBJ C 20 Name of TemSe object
VERSN RPTSTYPE-VERSN C 2 '01' X Version number

Parameter Reference Type Length Text
OBJHD RPTSTYPE-OBJHD X 196 File block handle for the TemSe object
OBJIN RPTSTYPE-OBJIN C 100 Object information
VERSN RPTSTYPE-VERSN C 2 Version number

Exception Text
ENQ_FOREIGN_LOCK
ENQ_OTHER
ENQ_SYS_FAIL
FB_CALL_HANDLE Error with handles at the CALL interface
FB_ERROR Error in/at function module
FB_RSTS_NOCONV Required conversion not possible
FB_RSTS_OTHER TemSe C system - other errors reported
INVALID_VERSION_NUMBER Version number invalid
NO_HR_APPLICATION_FILE File was not created using HR application
NO_OBJECT Required TemSe object does not exist
NO_PERMISSION No authorization for this operation
WRONG_REPORT This file is not intended for this report

Description
If parameter OWNNR is set, this parameter contains the number of thefile block ID. The application program uses the number to differentiatebetween several open TemSe objects.

Description
When you create an HR TemSe object with the function moduleRP_TS_CREATE_OBJECT, you can use parameter OBJIN to transferinformation (max. 100 characters) to the object. The application thenuses the parameter to make the information available.

Description
If a version number is assigned to the TemSe object when it is createdwith function module RP_TS_CREATE_OBJECT, the same value must be usedin this parameter. If the version number entered here does notcorrespond to the version number from the TemSe object, the exceptionNVALID_VERSION_NUMBER is triggered.

Description
If only one TemSe object is opened in a work process (corresponds to areport run), the basis function module can carry out the processingwith the file block data. If several TemSe objects are opened at thesame time, the application program must carry out the processing. Ifthis is the case, an 'X' is transferred with this parameter.

Default
Default value is ' '. The other function module process the file block

Description
The name of the TemSe object to be opened is transferred in thisparameter.

Description
If a version number is assigned to the TemSe object when it is createdwith function module RP_TS_CREATE_OBJECT, the same value must be usedin this parameter. If the version number entered here does notcorrespond to the version number from the TemSe object, the exceptionNVALID_VERSION_NUMBER is triggered.