Fonction SAP BAPI_CTREQUEST_CREATE - Create request with tasks (method for object CTREQUEST)

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
AUTHOR BAPISCTS01-AUTHOR C 12 Author of request to be created
PROJECT BAPISCTS03 u 64 X Project assignment for the request
REQUEST_TYPE BAPISCTS01-TYPE C 1 X W = Customizing request, otherwise Workbench request
TEXT BAPISCTS01-TEXT C 60 Short text for the request to be created
TRANSLAYER BAPISCTS02 u 5 X Transport layer of request

Paramètre Reférence Type Long. Description
HEADER BAPISCTS06 u 183 Header information for request
REQUESTID BAPISCTS01-REQUESTID C 20 Number of the created request
RETURN BAPIRET2 u 548 Return structure of the errors

Paramètre Reférence Long. Facultatif Description
AUTHORLIST BAPISCTS12 12 X List of task authors and task types
TASK_LIST BAPISCTS07 128 List of header information for the tasks

Functionality
You can use this function module to create a request with tasks. Therequest owner and the task users are communicated through theinterface. An unclassified task is created for each task owner. Thistask is classified as a correction or repair, depending on the firstobject assigned to it. You must enter a short text, but you can choosewhether to assign the request to a project.
TYPE = W creates a Customizing request, otherwise a Workbench requestis created. You can specify a transport layer, or leave this out if youwant to use the standard transport layer. If you use TRANSLAYER-LAYERto specify a transport layer explicitly, then you must selectTRANSLAYER-LAYER_SET = X. The transport layer TRANSLAYER-LAYER ="SPACE" creates a local request. The transport layer specifies thetarget system of the request.
This function returns the request name and header information for therequest. The task table contains the task names and their headerinformation.
This function performs an implicit COMMIT, which means that it cannotbe combined with other functions in an LUW.

Notes
This module implements the method CREATE for the object type CTREQUEST.