Ansicht
Dokumentation

WPSTLDI_CREATE_TASK_LIST_HIER - NOTRANSL: Arbeitsplanhierarchie anlegen

WPSTLDI_CREATE_TASK_LIST_HIER - NOTRANSL: Arbeitsplanhierarchie anlegen

rdisp/max_wprun_time - Maximum work process run time   PERFORM Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

This function module creates new task list hierarchies. This hierarchies are based on task lists which must exist in the data base.

(Note: Operational / Non-hierarchical task lists can be brought into the system e.g. by batch input or the core function modules for direct input CP_DIRECT_INPUT_PLAN_EXT or CP_BD_DIRECT_INPUT_PLAN).

Technically the function works as follows:

For each new node (ordered bottom up):
Create new task list header with low-level function module WPSTLDI_CREATE_TLH_NODE. Then append the existing subordinate task lists to the new node using low-level function module WPSTLDI_INSERT_SUBORDINATE_TL.
Finally post the new hierarchy to the data base using function module WPSTLDI_POST_TLH.

The function module creates an application log if the according import parameter is set to 'X'. This application log can be viewed with standard transaction SLG1 (object WPSTLH suboboject DITLH).

Authority checks take place during creation of new task list headers. Standard checks:

  • CP_CHK_AUTHORITY - no checks for plant maintenance but a customer exit is called.
  • ROUT1_INST_AUTHORITY_CHECK - check for authorization object I_ROUT1; as transaction code the codes of the standard transactions according to the task list types are used (IA01, IA05, IA11).

For identification of existing and new task lists see documentation of the import parameters for task list hierarchy and task list attributes.

Example

Notes

The function module contains all checks that are processed within the dialog transactions.

If one error occurs within createion of new task list hierarchies the module appends a message to the application log and aborts by raising an exception.

Number determination: For new hierarchical task lists that have to be created you have different possibilities for number determination:

  • External number - In this case specify all key fields
  • Internal number, new group - Specify only the type of the new task lists in the interface tables and the external ID
  • Internal number, new counter within existing group - Specifiy task list type and group of the new task list.

Further information





Parameters

I_AENNR
I_CHECK_EXTID_UNIQUE
I_CREATE_ALOG
I_KYDAT
I_TEST_RUN
I_TLATTR
I_TLH

Exceptions

CYCLE_FOUND
DIFF_EQUIPMENTS_WITHIN_HIER
DIFF_FLOCS_WITHIN_HIER
ERROR_AENR
ERROR_LOCK
EXTID_NOT_UNIQUE
INTERNAL_ERROR
INT_NUMBER_NOT_POSSIBLE
INVALID_EQUIPMENT
INVALID_EXTERNAL_NUMBER
INVALID_FUNC_LOC
INVALID_PLANT
INVALID_PLNTY
INVALID_PL_GROUP
INVALID_STATUS
INVALID_SYS_COND
INVALID_USAGE
MISSING_EQUIPMENT
MISSING_FUNC_LOC
MIX_E_WITH_FLOC
NO_AUTHORITY
PLANT_NOT_UNIQUE
TL_EXISTS
TL_LEAF_NOT_FOUND
TL_PARENT_FOUND_IN_DB
TL_PARENT_NO_ATTR
UNIDENTIFIED_TL_IN_TLH

Function Group

WPSTLDI

General Material Data   CPI1466 during Backup  
This documentation is copyright by SAP AG.

Length: 3748 Date: 20240523 Time: 131201     sap01-206 ( 63 ms )