Ansicht
Dokumentation

IDOC_INPUT_TIMESHEETCPRCONNECT - IDoc -> BAPI: IDOC_INPUT_TIMESHEETCPRCONNECT

IDOC_INPUT_TIMESHEETCPRCONNECT - IDoc -> BAPI: IDOC_INPUT_TIMESHEETCPRCONNECT

TXBHW - Original Tax Base Amount in Local Currency   SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

This function module was generated from the object TSCPRCONNE and the method TRANSFERCPR for the BAPI call using ALE.

The interface of the module has been defined as a standard API in ALE. Data is supplied by the ALE layer.

The function module is started by the ALE layer in the inbound system. It converts data from the IDoc into BAPI parameters and calls the BAPI in the inbound system. For more information about this BAPI, see BAPI_TSCPRCONNE_TRANSFER_CPR.

When this function module is executed, a new IDoc status is written. The status indicates whether the BAPI call was executed successfully (status '53') or with errors (status '51') in this system.

The ALE layer writes the IDoc status depending on the BAPI return parameter, or, if errors occur, in the ALE layer. Effects of BAPI Return Parameters:

  • If the BAPI return parameter is an exporting parameter, an IDOC status record is written. The IDoc receives the status '51' (Application Document Not Posted), if the message has type 'A' or 'E'. Otherwise, the IDoc receives the status '53' (Application Document Posted) for the message types 'W', 'I' or 'S'.
  • If the return parameter is a table parameter, several IDoc status records can be written. Message types determine the IDoc status:
  • If a message in the table is of type 'A' or 'E', the status '51' (Application Document Not Posted) is written for the IDoc for all entries of the type 'A', 'E', 'W', or 'I'. No IDoc status is displayed for messages of type 'S'.

  • If no message in the table is of type 'A' or 'E', the status '53' (Application Document Posted) is written for 'W', 'I' or 'S'. The status records are written in the same sequence as the messages in the return parameter.

  • If the return parameter has not been filled, this means that the BAPI was called successfully. In this case, an IDoc status record with the status '53' (Application Document Posted) is written by the ALE layer.

If any errors occurred, the application must ensure that the data is in a consistent state, for example, by reversing undesired changes using rollback.

If any errors occurred, ALE error handling is available (work item is created).





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

BAPI_CABA_CPR

General Data in Customer Master   General Data in Customer Master  
This documentation is copyright by SAP AG.

Length: 3206 Date: 20240603 Time: 235936     sap01-206 ( 41 ms )