Fonction SAP BAPI_PROJECTDEF_UPDATE - Change Project Definition

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
CURRENTEXTERNALPROJE BAPI_PROJ_KEY-PROJECT_DEFI C 24
CURRENTINTERNALPROJE BAPI_PROJ_KEY-PROJ_KEY_INT N 8
PROJECT_DEFINITION_STRU BAPI_PROJECT_DEFINITION u 283
PROJECT_DEFINITION_UP BAPI_PROJECT_DEFINITION_UP u 40

Paramètre Reférence Type Long. Description
RETURN BAPIRETURN1 u 470

Paramètre Reférence Long. Facultatif Description
E_MESSAGE_TABLE BAPI_METH_MESSAGE 340 X

Functionality
You use this method to change a project definition and all the data thatis binding for the whole project.
The same consistency checks take place, that would do so if the changeswere being made in the SAP transaction.

Notes
To change a project you require the necessary authorization.
The internal and external keys for the project definitionCURRENTEXTERNALPROJE and CURRENTINTERNALPROJE are obligatory importparameters (one of the two keys can remain initial) as well asPROJECT_DEFINITION_STRU and PROJECT_DEFINITION_UP.
Messages are returned in the return parameter. You can find informationabout the return value and their meaning in the parameter documentation.

Further information
For more information, see the documentation under PS - ProjectSystem - Work breakdown structure.

Description
Return code with error messages

Value range
If errors occur, one of the following messages is returned:
Type ID Number Message

  • E CJ 003 Enter project

  • E CJ 011 Project & does not exist

  • E CJ 034 Project definition could not be changed

  • If the project definition could not be changed, you can find moreinformation about the cause of the error in the E_MESSAGE_TABLEtable.

    Description
    The external key for the project definition is transfered in thisparameter. The system determines the internal key from this externalkey.
    Data element,, Type,,Length,,Description
    PS_PSPID,, CHAR,,24,,Project definition
    PS_INTNR,, NUMC,,8,,Counter project/item

    Description
    The internal key for the project definition is transfered in thisparameter.
    You can also transfer the external key in the CURRENTEXTERNALPROJEparameter. The system then determines the internal key from theexternal key.
    Data element,, Type,,Length,,Description
    PS_INTNR,, NUMC,,8,,Counter project/item

    Description
    The changed data for the project definition is transfered in thisstructure.
    For each field that you want to change, you have to enter a characterin the corresponding field in the PROJECT_DEFINITION_UPstructure.
    For information about the individual parameters,see the data elementdocumentation.
    For currency and the unit iof time you can either use the internal SAPname (PS_PWHIE or PS_ZTEHT) or the ISO code (ISOCD or ISOCD_UNIT)
    PROJECT_DEFINITION,,Project definition
    DESCRIPTION,,PS: Description (first text line)
    MASK_ID,,Editing mask f.short ID WBS elements
    RESPONSIBLE_NO,,Number of person responsible (projectmanager)
    APPLICANT_NO,,Applicant number
    COMP_CODE,,Company code
    BUS_AREA,,Business area
    CONTROLLING_AREA,,Controlling area
    PROFIT_CTR,,Profit Center
    PROJECT_CURRENCY,,WBS currency (project definition)
    PROJECT_CURRENCY_ISO,,ISO code currency
    NETWORK_ASSIGNMENT,,Network assignment
    START,,Planned start date for project
    FINISH,,Planned finish date for project
    PLANT,,Plant
    CALENDAR,,Factory calendar key
    PLAN_BASIC,,Planning method for basic dates inproject
    PLAN_FCST,,Planning method for forecast dates inproject
    TIME_UNIT,,Time unit f. scheduling
    TIME_UNIT_ISO,,ISO code f. unit of measure
    NETWORK_PROFILE,,Network profile
    PROJECT_PROFILE,,Project profile
    BUDGET_PROFILE,,Budget profile
    PROJECT_STOCK,,Project stock
    OBJECTCLASS,,Object class
    STATISTICAL,,Statistical WBS element (X)
    TAXJURCODE,,Tax Jurisdiction Code
    INT_PROFILE,,Interest profile for project
    WBS_SCHED_PROFILE,,WBS scheduling profile
    CSH_BDGT_PROFILE,,Financial budget profile
    PLAN_PROFILE,,Planning profile

    Description
    In this structure (PROJECT_DEFINITION_UP) you enter which fieldsin the PROJECT_DEFINITION_STRU, that is which projectdefinition data, should be transfered to the system and consequentlychanged.

    Value range
    For each field in the PROJECT_DEFINITION_STRU structure that isto be changed, you should enter a character (for insatnce 'x') in thecorresponding field in the PROJECT_DEFINITION_UP structure.

    Description
    If errors occur while changing networks, the method, the object and theerror message are output to this table.

    Table structure
    Method,,Data type CHAR,,Field length 32
    Object type,,Data type CHAR,,Field length 32
    SAP internal object key,,Data type CHAR,,Field length 90
    SAP external object key,,Data type CHAR,,Field length 90
    Message ID,,Data type CHAR,,Field length 20
    Message number,,Data type CHAR,,Field length 3
    Message type,,Data type CHAR,,Field length 1
    Message text,,Data type CHAR,,Field length 72

338931EPS: Resetting parameter 'FLAG_DIALOG_STATUS'