08-10-2007 6:04 PM
Hi Freinds,
To update PLPO (operations) i need use:
CP_BT_PLPO_UPDATE
CP_BT_PLPO_APPEND
Questions:
1) Can i use CP_BT_PLPO_UPDATE for update only, or for delete too?
2) When i use this FM, another tables updates too? For example, table PLAS?
08-10-2007 6:16 PM
Hello Andrey
The function modules you have mentioned are not the right ones. In order to maintain operations (of maintenance/service orders) you should use the (somewhat complex) BAPI <b>BAPI_ALM_ORDER_MAINTAIN</b>. The TABLES parameter
IT_OPERATION (Input Structure for PM/CS BAPIs Operations)
IT_OPERATION_UP (Update Structure for PM/CS BAPI Operations)
are mostly likely the parameters you are looking for.
Regards
Uwe
08-10-2007 6:16 PM
Hello Andrey
The function modules you have mentioned are not the right ones. In order to maintain operations (of maintenance/service orders) you should use the (somewhat complex) BAPI <b>BAPI_ALM_ORDER_MAINTAIN</b>. The TABLES parameter
IT_OPERATION (Input Structure for PM/CS BAPIs Operations)
IT_OPERATION_UP (Update Structure for PM/CS BAPI Operations)
are mostly likely the parameters you are looking for.
Regards
Uwe
08-10-2007 6:42 PM
Uwe, thanks!
But delete operations i must to do via update?
Regards.
08-10-2007 9:30 PM
Hello Andrey
I cannot tell for sure but most likely you have to use the "update" parameter for deleting tasks. Following is the documentation of the IT_METHODS parameter:
FU BAPI_ALM_ORDER_MAINTAIN IT_METHODS
____________________________________________________
Short Text
BAPI structure: Processing methods
Description
The methods table specifies which methods the BAPI executes. For this
the following data is always required:
o REFNUMBER A reference number for a data table line,
o OBJECTTYPE An object category, which specifies which data table(s)
is referenced
o METHOD A method which specifies what should be done to the
object
o OBJECTKEY A key as a reference to the corresponding higher-level
object
Value range
The following values are allowed:
OBJECTTYPE
o HEADER Order header
o PARTNER Partner data
o OPERATION Operation data
o RELATION Relationships
o COMPONENT Components
o TEXT Long texts
o (empty) General BAPI functions (Save)
METHOD
o CREATE Create objects
o CHANGE Change objects
o DELETE Delete objects
o RELEASE Release
o ATPCHECK Availability check
o CALCULATE Calculate
o SCHEDULE Schedule
o SAVE Save all data
OBJECTKEY
0-12 Order number
13-16 Operation number
17-20 Suboperation number
The following methods are allowed for the individual objects:
HEADER:
CREATE, CHANGE, RELEASE, ATPCHECK, CALCUALTE, SCHEDULE
PARTNER, OPERATION, RELATION, COMPONENT, TEXT:
CREATE, CHANGE, DELETE
(empty):
SAVE
Regards
Uwe