06-03-2009 6:08 AM
Hi,
I need to develop a custom transaction to delete SCD ( shipment cost document). I have found that the FM SD_SCD_DELETE is used to delete the SCDs. Can anybody tell me how to go about the process and use this FM to delete the SCDs.
Thanks and regards
Prem
06-03-2009 7:42 AM
HI,
Check these code once :
TYPES: v54a0_vfkk LIKE vfkkvb.
data : itab type v54a0_vfkk .
CALL FUNCTION 'SD_SCD_DELETE'
EXPORTING
I_REFOBJ =
CHANGING
c_scd_wa = itab
EXCEPTIONS
item_not_deletable = 1
scd_not_deletable = 2
OTHERS = 3 .
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Reg,
Siva