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

ABAP Short Reference   Fill RESBD Structure from EBP Component Structure  
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

ABAP Short Reference   SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up  
This documentation is copyright by SAP AG.

Length: 1783 Date: 20220120 Time: 143736     sap01-206 ( 30 ms )