I am trying to call a BADI. It is my hopes that this BADI will allow me to get around a limitation in a cFolders API as this is a standard cFolders BADI. The issue is that I get a syntax error which says: "Method SUPPLEMENT_BEFORE_SAVE is unknown or PROTECTED or PRIVATE".
I assume this is correct, this method is protected or private or I simply can't call this BADI. In any event, below is the code pertinent to this thread. Do you have any ideas what is wrong?
data: generic_object type REF TO ZCL_IM_CFX_GENERIC_OBJECT.
CALL METHOD cl_exithandler=>get_instance
* EXPORTING
* exit_name =
* null_instance_accepted = SEEX_FALSE
* IMPORTING
* act_imp_existing =
CHANGING
instance = generic_object
* EXCEPTIONS
* no_reference = 1
* no_interface_reference = 2
* no_exit_interface = 3
* class_not_implement_interface = 4
* single_exit_multiply_active = 5
* cast_error = 6
* exit_not_existing = 7
* data_incons_in_exit_managem = 8
* others = 9
.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL METHOD generic_object->supplement_before_save
EXPORTING
flt_val = 'ObjectType'
i_object_id = i_doc_id
i_version_id = d_version_id
i_type_id = 'IES Request for Information'
i_type_namespace = 'SAP'
i_category_id =
i_category_namespace =
i_item_id =
i_item_namespace =
* i_check_only =
changing
ct_change_object_data = it_generic_object_data.
Regards,
Aaron