Ansicht
Dokumentation

IDOC_INPUT_CLASS_CREATESUBSTRU - IDoc -> BAPI: IDOC_INPUT_CLASS_CREATESUBSTRU

IDOC_INPUT_CLASS_CREATESUBSTRU - IDoc -> BAPI: IDOC_INPUT_CLASS_CREATESUBSTRU

PERFORM Short Reference   CPI1466 during Backup  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

This function module was generated from object BUS1003 and method CREATESUBSTRUCTURE 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 on this BAPI, see BAPI_HIERA_CREATESUBSTRUCTURE.

Executing this function module writes a new IDoc status. This shows whether the BAPI call in this system was executed successfully (status '53') or not (status '51').

The ALE layer writes the IDoc status depending on the BAPI return parameters, or in the ALE layer in case of errors.

Effects of BAPI Return Parameters:

  • If the BAPI return parameter is an export parameter, an IDoc status record is written. The IDoc gets status '51' (application document not updated) if the message has type 'A' or 'E'. Otherwise, if the message has type 'W', 'I', or 'S', the IDoc gets status '53' (application document updated).
  • If the return parameter is a tables parameter, several IDoc status records may be written. Message types determine the IDoc status. If at least one message in the table has type 'A' or 'E', all entries that do not have type 'S' (in other words, messages of type 'A', 'E', 'W', or 'I') get IDoc status '51' (application document not updated). No IDoc status appears for messages of type 'S'. If no messages in the table have type 'A' or 'E', messages of type 'W', 'I', or 'S' get IDoc status '53' (application document updated). The status records are written in the same sequence as the messages in the return parameters.
  • If the return parameters are not filled out, this means that the BAPI was called successfully. 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.

In case of errors, 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

CLBPH

PERFORM Short Reference   Vendor Master (General Section)  
This documentation is copyright by SAP AG.

Length: 2931 Date: 20240523 Time: 065600     sap01-206 ( 63 ms )