Ansicht
Dokumentation

IDOC_INPUT_CHARACTERISTIC_CREA - IDoc -> BAPI: IDOC_INPUT_CHARACTERISTIC_CREA

IDOC_INPUT_CHARACTERISTIC_CREA - IDoc -> BAPI: IDOC_INPUT_CHARACTERISTIC_CREA

RFUMSV00 - Advance Return for Tax on Sales/Purchases   CPI1466 during Backup  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

This function module was generated from object BUS1088 and method CREATE 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_CHARACT_CREATE.

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, and in the ALE layer in case of error.

Effects of BAPI Return Parameters:

  • If the BAPI return parameter is an export parameter, an IDoc status record is written. If the message has type 'A' or 'E', the IDoc gets status '51' (application document not updated). Otherwise, if the message type is 'W', 'I', or 'S', the IDoc gets 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 has message type 'A' or 'E', all messages in the table except those with message type 'S' (in other words, entries with types 'A', 'E', 'W', and 'I') get IDoc status '51' (application document not updated). No IDoc status is shown for messages with type 'S'. If no messages in the table have type 'A' or 'E', messages with types 'W', 'I', and 'S' get status '53' (application document updated). The status records are written in the same sequence as the messages in the return parameter.
  • If the return parameter has not been 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 error, the application must ensure that the data is consistent. For example, it must undo unwanted changes using rollback.

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

CTBP

Fill RESBD Structure from EBP Component Structure   ABAP Short Reference  
This documentation is copyright by SAP AG.

Length: 2968 Date: 20240523 Time: 071526     sap01-206 ( 60 ms )