Ansicht
Dokumentation

IDOC_INPUT_TIMESHEETHRCONNECTO - IDoc -> BAPI: IDOC_INPUT_TIMESHEETHRCONNECTO

IDOC_INPUT_TIMESHEETHRCONNECTO - IDoc -> BAPI: IDOC_INPUT_TIMESHEETHRCONNECTO

Fill RESBD Structure from EBP Component Structure   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

This function module was generated from the object TSHRCONNEC and the method DATATRANSFER 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_TIMESHEET_HR_DATA_TRNSF ER

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 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 resetting undesired changes using rollback.

If any errors occurred, ALE error handling is available (creation of 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

BAPI_CABA_HR

CL_GUI_FRONTEND_SERVICES - Frontend Services   ABAP Short Reference  
This documentation is copyright by SAP AG.

Length: 2954 Date: 20240523 Time: 064749     sap01-206 ( 67 ms )