Hi,
I am writing to remove a line item from dispute case.I am working on enhancement pack 0.This functionality is avilable in EP 2.
I have written following code to delete the the AR line item from dispute case.
It is not working .I think there are some more additional table from which i need to delete the entries for link between AR or DM.
or do i need to use some BAPI for case refresh.
Please let me know if you have any suggestion ?
*Get the case attributes
SELECT case_guid
ext_key
FROM scmg_t_case_attr
INTO TABLE i_caseattr
WHERE ext_key IN s_caseid .
IF sy-subrc = 0.
ENDIF.
SELECT *
FROM fdm_dcobj
INTO TABLE i_obj
FOR ALL ENTRIES IN i_caseattr
WHERE obj_type = 'BSEG'
AND classification = 'DISP_INV'
AND case_guid_loc = i_caseattr-case_guid.
SELECT * FROM fdm_dcproc
INTO TABLE i_dcproc
FOR ALL ENTRIES IN i_caseattr
WHERE obj_type = 'BSEG'
AND new_class = 'DISP_INV'
AND case_guid_loc = i_caseattr-case_guid.
CALL FUNCTION 'FDM_LOCAL_UPDATE'
TABLES
it_dcobj_dele = i_obj
it_dcproc_dele = i_dcproc
EXCEPTIONS
update_failure = 1
OTHERS = 2.
IF sy-subrc <> 0.
ENDIF.