Ansicht
Dokumentation
/SAPCEM/BAPI_SHIPDOCCEM_CANCEL - Cancellation (Document Status 5) of a CEM Shipping Document
General Data in Customer Master Addresses (Business Address Services)This documentation is copyright by SAP AG.
Functionality
The status 'Cancel' is set for a CEM shipping document via this BAPI /SAPCEM/BAPI_SHIPDOCCEM_CANCEL. However you can only cancel a shipping document if various checks are successful. Some of these checks are:
- Authority checks: Is the user authorized to cancel the shipping document ?
- Document Date: Is the date within the period of current settlement?
- Status check: Does the document status permit cancelation?
- PBE-check: Do PBE documents already exist for the equipment in the shipping document?
- Follow-on document: Do follow-on documents already exist for the shipping document to be cancelled?
- Availability: In chronological inventory management the equipment/parts in the shipping document must be available after cancellation.
Example
Notes
If an error occurs (parameter RETURN contains entries with TYPE E or A), and if this means that the shipping document cannot be cancelled, the caller of the BAPI is responsible for removing all SAP blocks. The caller of the BAPI is responsible for the Commit Work.
Further information
Parameters
NUMBERRETURN
TESTRUN
Exceptions
Function Group
CEM/SAPLBAPI_VSTXBHW - Original Tax Base Amount in Local Currency ABAP Short Reference
This documentation is copyright by SAP AG.
Length: 1783 Date: 20240329 Time: 130043 sap01-206 ( 32 ms )