Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Function module SD_SCD_DELETE deletion of shipment cost document

Former Member
0 Kudos

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

1 REPLY 1

Former Member
0 Kudos

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