Functionality With the BAPI BAPI_BUS2001_SET_STATUS, one system status(UNDO_SYSTEM_STATUS) and one user status (UNDO_USER_STATUS) can berevoked each time, and one system status (SET_SYSTEM_STATUS) and oneuser status (UNDO_USER_STATUS) can be set each time for a projectdefinition (PROJECT_DEFINITION). The following system statuses are supported:
- 'REL' ,,Released (I0002),,,,,,,,,,set
- 'TECO',,Technically completed (I0045) ,,,,set/revoke
- 'CLSD',,Closed (I0046) ,,,,,,,,set/revoke
- 'MDLK',,Master data locked (I0065) ,,,,,,set/revoke
- 'DLFL',,Deletion flag (I0076) ,,,,,,,,,,set/revoke
User statuses can be set or revoked corresponding to the status profileassigned to the project. These must be transferred into the currentlogon language via the key. The processing sequence is as follows: Revoke system status Revoke user status Set system status Set user status Even if the system/user status cannot be set/revoked, all other actionsare carried out. The inheritance of the status does not take place integrated betweenproject and network. A change in status only has an effect on the WBSelements and not on a network that may be assigned. The BAPI can be called repeatedly until an LUW (Logical Unit of Work)is closed with BAPI_PS_PRECOMMIT and BAPI COMMIT WORK. Only one project or WBS element can be processed from a project.Notes An error message appears in the RETURN return parameter if an erroroccurs during processing. The messages that were generated during theprocess appear in the E_MESSAGE_TABLE table after being called. Further information For more information, see the SAP Library under Project System ->Structures -> Project System Interfaces -> PS-EPS Interface forExternal Project Management Systems. Description Return code with error messages Value range The following message is returned when an error occurs, if necessary: Type ID Number Message
- E CNIF_STATUS 004 Error when reading/locking object
- E CNIF_STATUS 005 Error during processing. Function was not carried
out.
- E CNIF_STATUS 006 Error during processing. Function was partially
carried out. In this case you find more information about the cause of the error inthe E_MESSAGE_TABLE table.Description A number that uniquely identifies a project definition within a client. Description System status that should be set for the project definition. Value range Supported system statuses:
- 'REL',,,,Released (I0002)
- 'TECO' ,,Technically completed (I0045)
- 'CLSD' ,,Closed (I0046)
- 'MDLK ',,Master Data locked (I0065)
- 'DLFL' ,,Deletion flag (I0076)
Description User status that should be set for the project definition. Value range User statuses can be set and revoked in accordance with the statusprofile assigned to the project definition. Description System status that should be revoked for the project definition. Value range Supported system statuses:
- 'TECO',,Technically completed (I0045)
- 'CLSD' ,,Closed (I0046)
- 'MDLK',,Master Data locked (I0065)
- 'DLFL',,,,Deletion flag (I0076)
Description User status that should be revoked for the project definition. Value range User statuses can be set and revoked in accordance with the statusprofile assigned to the project definition. Description If errors occur when setting/revoking system/user statuses in theproject definition, the relevant object and error message are output inthis table. 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
|