cancel
Showing results for 
Search instead for 
Did you mean: 

Shipment creation , shipment cost document creation./deletion

Former Member
0 Kudos

Hi experts

I am creating shipment using bapi_shipment_creat and shipment cost documents(SCD) when the SCD cost is zero i need to delete the shipment and shipment cost document programatically. pl.. help me how to delete these..

Accepted Solutions (1)

Accepted Solutions (1)

ferry_lianto
Active Contributor
0 Kudos

Hi,

Is it possible to check SCD cost value prior to create shipment?

If it is not then please try FM SD_SHIPMENT_DELETE to delete the shipment document.

Regards,

Ferry Lianto

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi

COuld you let me know which BAPI/FM you used to create SCD.

Thanks in advance

Cheers

Arun

Former Member
0 Kudos

Hi,

We prevented the system of creating zero shipment cost document with following user exit

Activate user exit:

SAP Enhancement V56FSTAT,

Component EXIT_SAPLV56F_011:

o check shipment cost via function module SD_SCD_COST_INFO_SHIPMENT

o popup with message when shipment cost = 0 and VTTK-FBGST = A

o popup type (output parameter of function module) depends on status <4 of >=4

The popup is used to warn the user that the freight is zero. In some cases we prevent status planning when not filled in.

Hope this helps

Rgds

Anja