Ansicht
Dokumentation
/SAPCEM/BAPI_SHIPDOCCEM_CANCEL - Cancellation (Document Status 5) of a CEM Shipping Document
CL_GUI_FRONTEND_SERVICES - Frontend Services TXBHW - Original Tax Base Amount in Local CurrencyThis 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_VSFill RESBD Structure from EBP Component Structure General Material Data
This documentation is copyright by SAP AG.
Length: 1783 Date: 20240426 Time: 202143 sap01-206 ( 31 ms )