Functionality You can use the BAPI BAPI_BUS2002_SET_STATUS to revoke one systemstatus (UNDO_SYSTEM_STATUS) and one user status (UNDO_USER_STATUS)respectively, or to set one system status (SET_SYSTEM_STATUS) and oneuser status (SET_USER_STATUS) respectively, in the network header(NUMBER). At the same time, you can revoke one system status and one user status,or set one system status and one user status in a list of activitiesfor the network. The following system statuses are supported for the network header:
- 'REL' Released (I0002) set
- 'LKD' Locked (I0043) set/revoke
- 'TECO' Technically completed (I0045) set/revoke
- 'CLSD' Closed (I0046) set/revoke
- 'AALK' Account Assignment locked (I0064) set/revoke
- 'DLFL' Deletion flag (I0076) set/revoke
The following system statuses are supported for the network operations:
- 'REL' Released (I0002) set
- 'TECO' Technically completed (I0045) set/revoke
- 'CLSD' Closed (I0046) set/revoke
- 'AALK' Account Assignment locked (I0064) set/revoke
- 'DLFL' Deletion flag (I0076) set/revoke
- 'DSEX' Dates set by external system (I0029) set/revoke
User statuses can be set or revoked in accordance with the statusprofile assigned to the network header or network activities. They mustbe transferred via the key in the relevant log-on language. The processing sequence is as follows: Network header: Revoke system status Revoke user status Set system status Set user status Network operations: Revoke system status Revoke user status Set system status Set user status If you cannot set/revoke a system/user status, all of the otheractivities will still be executed. The inheritance of statuses is not integrated between the project andthe network. A status change only affects the current network and notany other assigned projects/WBS elements. Milestone functions are not supported. The call of the BAPI can be repeated until a LUW (Logical Unit of Work)is completed with the BAPIs BAPI_PS_PRECOMMIT and BAPI COMMIT WORK.Notes RESET N1 INCLUDE CNIF_PI_BAPI_HINTS OBJECT DOKU ID TX The return parameter RETURN will contain an error message if an erroroccurred during processing. After the call, the table E_MESSAGE_TABLEcontains all messages that were created during processing. Further information You can find additional information in the SAP Library under ProjectSystem -> Structures -> Project System Interfaces -> PS-EPS Interfaceto External Project Management Systems. Description Return code with error messages Value range If errors occur, the following messages will be output, if necessary: Type ID Number Message
- E CNIF_STATUS 004 Error reading/locking object
- E CNIF_STATUS 005 Error in processing. Function was not executed.
- E CNIF_STATUS 006 Error in processing. Function was partially executed.
In this case, you can find details about the cause of the error in thetable E_MESSAGE_TABLE.Description A number that uniquely identifies a network within a client. Description System status that is to be set on the network header. Value range Supported system statuses:
- 'REL',,,,Released (I0002)
- 'LKD',,,,Locked (I0043)
- 'TECO',, Technically completed (I0045)
- 'CLSD',, Closed (I0046)
- 'AALK',,,,Account assignment locked (I0064)
- 'DLFL',, ,,Deletion flag (I0076)
Description User status that is to be set in the network header. Value range User statuses can be set or revoked in accordance with the statusprofile assigned to the network header. Description System status that is to be revoked in the network header. Value range Supported system statuses:
- 'LKD',,Locked (I0043)
- 'TECO',, Technically completed (I0045)
- 'CLSD',, Closed (I0046)
- 'AALK',,Account assignment locked (I0064)
- 'DLFL',, Deletion flag (I0076)
Description User status that is to be reset in the network header. Value range User status can be set or revoked in accordance with the status profileassigned to the network header. Description Error messages for setting/revoking statuses Value range If errors occur when setting/revoking system/user statuses in thenetwork, the relevant object and the error message are output in thistable. Table structure: OBJECTKEY: SAP external object key, data type CHAR, field length 90 STATUS_ACTION: Set or revoke a status, data type CHAR, field length 1 STATUS_TYPE: Type of status: System or user, data type CHAR, fieldlength 6 MESSAGE_ID: Message identification, data type CHAR, field length 20 MESSAGE_NUMBER: Message number, data type CHAR, field length 3 MESSAGE_TYPE: Message type, data type CHAR, field length 1 MESSAGE_TEXT: Message text, data type CHAR, field length 72 Description Table with activities and the system status that is to be set orrevoked each time. Table structure: ACTIVITY: External actvity number CHAR, field length 4 UNDO_SYSTEM_STATUS: System status that is to be revoked, data typeCHAR, field length 4 SET_SYSTEM_STATUS: System status that is to be set, data type CHAR,field length 4 Value range Supported system statuses: 'REL' Released (I0002) set 'TECO' Technically completed (I0045) set / revoke 'CLSD' Closed (I0046) set / revoke 'AALK' Account Assignment locked (I0064) set / revoke 'DLFL' Deletion flag (I0076) set / revoke Description Table with activities and the user status that is to be set or revokedeach time. Table structure: ACTIVITY: External activity number CHAR, field length 4 UNDO_USER_STATUS: User status that is to be revoked, data type CHAR,field length 4 SET_USER_STATUS: User status that is to be set, data type CHAR, fieldlength 4 Value range User statuses can be set and revoked in accordance with the statusprofile assigned to the activities.
|