‎2014 Feb 05 11:12 AM
HELLO EXPERTS
I HAVE A PROBLEM WITH BAPI BAPI_BUS2054_DELETE_MULTI FOR DELETE SINGLE WBS IN CJO2.
DATE :
i_project_definition TYPE bapi_bus2001_new - project_definition .
DATE : it_delete_wbs_element bapi_wbs_list LIKE OCCURS 0 WITH HEADER LINE .
DATE : et_return bapiret2 LIKE OCCURS 0 WITH HEADER LINE .
DATE : extensionin bapiparex LIKE OCCURS 0 WITH HEADER LINE .
DATE : extensionout bapiparex LIKE OCCURS 0 WITH HEADER LINE .
*
*
START- OF- SELECTION .
MOVE ' ICC0983 ' TO i_project_definition .
it_delete_wbs_element - wbs_element = ' ICC0983 -001 ' .
APPEND it_delete_wbs_element .
it_delete_wbs_element - wbs_element = ' ICC0983 -002 ' .
APPEND it_delete_wbs_element .
CALL FUNCTION ' BAPI_BUS2054_DELETE_MULTI '
EXPORTING
i_project_definition = i_project_definition
TABLES
it_delete_wbs_element = it_delete_wbs_element
et_return = et_return .
* = EXTENSIONIN
* = EXTENSIONOUT
.
LOOP AT et_return .
WRITE 😕 et_return -message .
ENDLOOP .
THE REPORT GIVES THE FOLLOWING MESSAGE :
Object WBS Element ICC0983 -001 Could not be deleted E | CNIF_PI The 011
Processing not possible Because there is no initialization E | CNIF_PI | 078
Object WBS Element ICC0983 -002 Could not be deleted E | CNIF_PI The 011
Processing not possible Because there is no initialization E | CNIF_PI | 078
know the error ?
‎2014 Feb 05 2:25 PM
Hi,
May be you could try by setting deletion flag using bapi BAPI_BUS2054_SET_STATUS.
Regards
Sachin
‎2014 Feb 05 2:39 PM
‎2014 Feb 05 3:26 PM
Hi Antonio
If you read the documentation of this BAPI it clearly states to use following BAPI's in order
Please read documentation for more details
Nabheet