SAP Function RP_TS_CREATE_OBJECT - Creates an HR object for the TemSe

Parameter Reference Type Length Default Optional Text
EMPFG RPTSTYPE-EMPFG C 8 Recipient
ENQLOCK RSTSTYPE-PROM C 1 'N' X
OBJIN RPTSTYPE-OBJIN C 100 X Object information
OBJKN RPTSTYPE-OBJKN C 6 Area name (creator program)
OBJNR RPTSTYPE-OBJNR C 10 Object number
OWNNR RPTSTYPE-OWNNR C 1 ' ' X Own FM handling (several TemSe objects)
SWNUM RPTSTYPE-SWNUM C 1 '2' X Control number assignment (object number)
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
TSOBJ RPTSTYPE-TSOBJ C 20 Name of TemSe object

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_NR_NOT_FOUND Number interval does not exist
FB_NR_NOT_INTERN No internal number range assignment
FB_NR_NO_OBJECT Number range object does not exist
FB_NR_OVERFLOW Number interval is used up
FB_OBJECT_ALREADY_EXIST TemSe object already exists
FB_RSTS_NOCONV Required conversion not possible
FB_RSTS_OTHER TemSe C System - Other Errors Reported
NO_OBJECT Required TemSe object does not exist
NO_PERMISSION No authorization for this operation

Description
If the parameter OWNNR is set, this parameter contains the number ofthe file block handle. The application program can differentiatebetween several open TemSe objects using this number.

Description
This parameter transfers the complete name of the generated TemSeobject.

Description
The recipient specifies the report that evaluates a HR TemSe object.The report name of the evaluation report is usually specified. Sincethis refers to a 'logical' name, a fixed identifier can also be used.The evaluation report must then use the same identifier in the'RP_TS_OPEN' function module.

Description
In this field, you can enter any application data for the TemSe object.This data is available at import (with RP_TS_OPEN). The length of thefield is 100 characters.

Description
The middle part of the name of the TemSe object (fourth to ninthcharacters) is defined by the object name.
A TemSe object usually generates the middle part of the program name(third to seventh characters). The last character in the object name isa single digit. It starts at 1 and indicates how many TemSe objects aregenerated in a report.

Example
Report name: RPCALCX0 ==> Object name 1. TemSe object: CALCX1
Object name 2. TemSe object: CALCX2

Hints
Usually, only one TemSe object is generated in a report run, therefore,the only digit used is 1. Due to restrictions in the basis, a maximumof five TemSe objects can be opened in one work process.

Description
The last 10 characters of the TemSe object name are determined by theobject number. If no value is given in thisparameter, a 10-digit number is assigned by the number rangeadministration (number range RP_TEMSE). If a value (character) is givenin this parameter, no number is assigned from the number range.

Notes
If the object number is generated by the number range administrationand a TemSe object with this number (and same object name) alreadyexists, the exception FB_OBJECT_ALREADY_EXIST is triggered.
If the object number is defined using this parameter and a TemSe objectwith this number already exists, this TemSe object is deleted first andthen opened again (write only). &DEFAULT&

Description
This parameter controls the logic that is applied after the assignmentof the object number.

Value range
Value 0 : No number assignment generally takes place
The object number remains blank.
Value 1 : Number assignment only takes place in online operation
No number is assigned in a batch run.
Value 2 : Number assignment generally takes place

Default
The value '2' is used in the standard system.

Description
A version number can be given to the HR TemSe object. The versionnumber can then be checked when the TemSe object is imported (with'RP_TS_OPEN').

Default
If no value is entered here, the value '01' is used in the standardsystem.