Ansicht
Dokumentation

IDOC_INPUT_USER_WPPERSDATASAVE - IDoc -> BAPI: IDOC_INPUT_USER_WPPERSDATASAVE

IDOC_INPUT_USER_WPPERSDATASAVE - IDoc -> BAPI: IDOC_INPUT_USER_WPPERSDATASAVE

BAL_S_LOG - Application Log: Log header data   ABAP Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

This function module was generated from
object USR01 and method WPPERSDATASAVE
for the BAPI call by ALE.

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

The function module is started by the ALE layer in the source system. It converts the data in the IDoc to BAPI parameters, and calls the BAPI in the source system. For more information about this BAPI see BAPI_USER_WP_PERS_DATA_SAVE.

Executing this module causes a new IDoc status to be written. It says whether or not the BAPI was called successfully (status '53') or not (status '51').

The ALE layer writes the IDoc status in the ALE layer depending on the BAPI return parameter or on whether an error occurred. Effect of the BAPI return parameter:

  • If the BAPI return parameter is an exporting parameter, an IDoc status record is written. The IDoc is given status '51' (application document not posted) if the message is of type 'A' or 'E'. Otherwise the IDoc is given status '53'(application document posted) for message types 'W', 'I' and 'S'.
  • If the return parameter is a tables parameter, multiple IDoc status records can be writtenn. Message types define the IDoc status. If a message in the table is of type 'A' or 'E', status '51' (application document not posted) is written for all entries with the exception of those of type 'S' (i.e. those with types 'A', 'E', 'W' or 'I'). No IDoc status appears for messages of type 'S'. If there is no message in the table with type 'A' or 'E', status '53' (application document posted) is written for 'W', 'I' or 'S'. The status records are written in the order in which the messages appear in the return parameter.
  • If the return parameter was not filled in, this means that the BAPI was called successfully. In this case the ALE layer writes an IDoc status record with status'53' (application document posted).

If the application returns message type 'A', the ALE layer performs a Rollback Work. Otherwise the application must ensure that the data is consistent if there is an error. For example, it must ensure that unwanted changes are canceled.

If an error occurs, use the ALE error handling (creation of a 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

WP_EXCHANGE

General Material Data   PERFORM Short Reference  
This documentation is copyright by SAP AG.

Length: 3023 Date: 20240523 Time: 074437     sap01-206 ( 63 ms )