Ansicht
Dokumentation

IDOC_INPUT_SINGLSETTRQS_CANCEL - NOTRANSL: IDoc -> BAPI: IDOC_INPUT_SINGLSETTRQS_CANCEL

IDOC_INPUT_SINGLSETTRQS_CANCEL - NOTRANSL: IDoc -> BAPI: IDOC_INPUT_SINGLSETTRQS_CANCEL

rdisp/max_wprun_time - Maximum work process run time   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

This function module was generated from object BUS2100002 and method CANCELMULTIPLE for BAPI calls by ALE.

The interface of the function module was defined as a standard API in ALE. The data is supplied by the ALE layer.

The function module is started in the inbound system by the ALE layer. It converts the data in the IDoc to BAPI parameters and calls the BAPI in the inbound system. For more information about this BAPI, see BAPI_SINGLESETTREQS_CANCELMU.
When you execute this function module, the system writes a new IDoc status. This status shows whether the BAPI was called in this system without errors (status “53”) or not (status “51”).

The ALE layer writes the IDoc status depending on the BAPI return parameters, and in the ALE layer in case of error. The following are the effects of the BAPI return parameters:

  • If the BAPI return parameter is an export parameter, an IDoc status record is written. If the message type is “A” or “E”, the IDoc is given the status “51” (application document not updated). If the message type is “W”, “I”, or “S”, the IDoc is given the status “53” (application document updated).
  • If the return parameter is a table parameter, several IDoc status records can be written. The message type determines the IDoc status. Provided that at least one message in the table is type “A” or “E”, all messages in the table except those with message type “S” (in other words, message types “A”, “E”, “W”, and “I”) are given the IDoc status “51” (application document not updated). No IDoc status is shown for message type “S”. If there are no messages in the table with type “A” or “E”, messages with type “W”, “I”, and “S” are given the status “53” (application document updated). The status records are written in the same sequence as the messages in the return parameter.
  • If the return parameters are not filled, this means that the BAPI was called without errors. In this case, an IDoc status record with status '53' (application document updated) is written by the ALE layer.

In case of errors, the application must ensure that the data is consistent. For example, it must undo unwanted changes using rollback.

If errors occur, use the ALE error handling functions (create work item).





Parameters

APPLICATION_VARIABLE
CALL_TRANSACTION_DONE
IDOC_CONTRL
IDOC_DATA
IDOC_STATUS
INPUT_METHOD
IN_UPDATE_TASK
MASS_PROCESSING
RETURN_VARIABLES
SERIALIZATION_INFO
WORKFLOW_RESULT

Exceptions

WRONG_FUNCTION_CALLED

Function Group

2100_ALE_IN

BAL Application Log Documentation   General Data in Customer Master  
This documentation is copyright by SAP AG.

Length: 3392 Date: 20240523 Time: 050555     sap01-206 ( 81 ms )