cancel
Showing results for 
Search instead for 
Did you mean: 

Dispute Management Query

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

i am trying to use BAPI_CASE_DELETEELEMENTS

do anyone knows how to get following

ELEMENT_IDENT_RECPOS &ELEMENT_IDENT_SP_POID  if i know GUID ?