Ansicht
Dokumentation

ZRH_CREATE_ANY_OBJECT - HR: Anlegen von beliebigen internen und externen Objekten

ZRH_CREATE_ANY_OBJECT - HR: Anlegen von beliebigen internen und externen Objekten

Fill RESBD Structure from EBP Component Structure   General Data in Customer Master  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

This function module realizes the create function of the PD catalog.

It can be used within PD to create objects with a specified relationship underlying another, superior object.

The parameter PLVAR specifies the plan version in which objects are to be created. The structure PARENT contains the ID and type of the parent object. RELATION specifies the relationship that is to be created from the PARENT object to the new object. If the PARENT and RELATION fields contain no value, no relationship is created. CHILDTY specifies the type of object to be created. BEGDA and ENDDA contain the validity period of the object. If the time constraint of the object is smaller than two, ENDDA is ignored and set to the highest date valid. The parameter TEMPLATE, which is optional, allows you to specify an object from which the new object can be copied.

The table NEW_OBJECTS contains the newly created object provided that this was created without error.

If the user cancels editing without saving the object, the exception "CANCELED" is generated. The exception "RELATION_FAILED" is generated if the relationship you specify in RELATION from the PARENT object to the new object of the type CHILDTY is invalid or if the user does not have the required authorization to change the PARENT object or to create the relationship REALTION. The exception "NO_OBJECTS_CREATED" is generated if no object could be created.

Notes

You should not call this function module directly.

It has been especially created for use in the PD catalog. You may change the interface where necessary to guarantee that it functions correctly in the catalog.





Parameters

BEGDA
CHILDTY
ENDDA
EXTERNAL_ID
NEW_OBJECTS
PARENT
PLVAR
RELATION
TEMPLATE

Exceptions

CANCELED
ENQUEUE_FAILED
NO_AUTHORITY
NO_INFTY_1000
NO_OBJECTS_CREATED
RELATION_FAILED
UNKNOWN_OBJECT_TYPE

Function Group

ZI035834RHV6

General Data in Customer Master   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.

Length: 2166 Date: 20240523 Time: 133604     sap01-206 ( 59 ms )