Documentation View

We are hiring and constantly growing! Have a look through our vacancies to find the right role for you!

/SAPCEM/BAPI_SHIPDOCCEM_CANCEL - Cancellation (Document Status 5) of a CEM Shipping Document

/SAPCEM/BAPI_SHIPDOCCEM_CANCEL - Cancellation (Document Status 5) of a CEM Shipping Document

Vendor Master (General Section)   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.
SAP E-Book

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

NUMBER
RETURN
TESTRUN

Exceptions

Function Group

CEM/SAPLBAPI_VS

General Material Data   General Material Data  
This documentation is copyright by SAP AG.

Length: 1783 Date: 20211201 Time: 194354     sap01-206 ( 33 ms )