Paramètre | Reférence | Type | Long. | Valeur par déf. | Facultatif | Description |
---|---|---|---|---|---|---|
I_NUMBER | BAPI_NETWORK_LIST-NETWORK | C | 12 | Network Number |
Paramètre | Reférence | Long. | Facultatif | Description |
---|---|---|---|---|
ET_RETURN | BAPIRET2 | 548 | X | Return Parameter |
EXTENSIONIN | BAPIPAREX | 990 | X | Reference Structure for BAPI Parameters EXTENSIONIN/EXTENSIONOUT |
EXTENSIONOUT | BAPIPAREX | 990 | X | Reference Structure for BAPI Parameters EXTENSIONIN/EXTENSIONOUT |
IT_ACTIVITY | BAPI_BUS2002_ACT_CHG | 763 | ||
IT_UPDATE_ACTIVITY | BAPI_BUS2002_ACT_UPD | 124 |
Functionality Example
Specify the network for which the activities are to be changed inparameter I_NUMBER. The network can already exist in the database, or have been createdpreviously in the current processing unit via BAPI"BAPI_BUS2002_CREATE". In the second case, use the temporary networknumber for internal assignment of the network number for parameterI_NUMBER. Transfer a separate row in the tables IT_ACTIVITY andIT_UPDATE_ACTIVITY for each activity to be changed. The mapping of bothtable entries takes place via the activity number field (ACTIVITY) Fill the table entry in IT_ACTIVITY with the data that is to be changedfor the activity. In the table entry in IT_UPDATE_ACTIVITY flag all fields that are to beupated with the values from IT_ACTIVITY with an "X". All other fields remain unchanged even if values were assigned to themin IT_ACTIVITY. This BAPI works therefore according to the "change byflagging" principle (refer also to the programming guide in the BAPItransaction). Entries in table IT_UPDATE_ACTIVITY that do not have a corresopndingrecord in IT_ACTIVITY are ignored. Entries in table IT_ACTIVITY that do not have a corresponding record intable IT_UPDATE_ACTIVITY generate an error. If the tables IT_ACTIVITY and/or IT_UPDATE_ACTIVITY contain severalentries with the same key ACTIVITY, system behaviour is undefinedbecause unique mapping is not possible. INCLUDE CNIF_PI_NOT_MRP_APPLICABLE OBJECT DOKU ID TX INCLUDE CNIF_PI_LTXA1_KTSCH OBJECT DOKU ID TX An activity to be changed can already exist in the database or havebeen created previously in the current processing unit viaBAPI_BUS2002_ACT_CREATE_MULTI. You can change an activity within aprocessing unit several times via BAPI BAPI_BUS2002_ACT_CHANGE_MULTI. Messages from the application and a success or error message arereturned by the BAPI to the caller in the return table ET_RETURN. InET_RETURN, the messages are collected together in blocks per activity.Each message block refers therefore to an activity and starts with asummarized success or error message. Notes Description Description |