Ansicht
Dokumentation

EXIT_SAPSFMMD_010 - User Exit for Copying Commitment Items

EXIT_SAPSFMMD_010 - User Exit for Copying Commitment Items

General Data in Customer Master   BAL Application Log Documentation  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

Using this function module, you can change values or add new data records in the data records to be exported.

The following activities must be executed to activate the User Exit:

  • Adjustment of the function module EXIT_SAPSFMMD_010 to the specific requirements

The function module EXIT_SAPSFMMD_010 provides the following parameters:

  • T_FILE_ENTRIES - table with the data records to be exported

The exception ERROR_OCCURED is provided for a cancellation of the processing.

The Include ZXFMPU09 must have been created to adjust the function module and the user-defined coding must be provided.

Example

*---------------------------------------------------------------------*
* INCLUDE ZXFMPU09 *
*---------------------------------------------------------------------*

*-----structure of commt item in chart of cmmt items
DATA: L_F_BIFMPPA LIKE BIFMPPA,
*-----structure of long text
L_F_BIFMPPB LIKE BIFMPPB,
*-----structure of commt item in FM area
L_F_BIFMPPC LIKE BIFMPPC,
*-----structure of net voting assignments (only local auth.)
L_F_BIFMPPD LIKE BIFMPPD.



*-----structures key
DATA: BEGIN OF L_F_FILE_KEY,
TCODE(4),
RCTYPE(1),
END OF L_F_FILE_KEY.
LOOP AT T_FILE_ENTRIES.

MOVE: T_FILE_ENTRIES(5) TO L_F_FILE_KEY.

CASE L_F_FILE_KEY-TCODE.
*-----commitment item in chart of commitment items
WHEN '*MPA'.
CASE L_F_FILE_KEY-RCTYPE.
*----------master data and text (name, description..)
WHEN 'A'.
MOVE: T_FILE_ENTRIES TO L_F_BIFMPPA.
...
MODIFY T_FILE_ENTRIES FROM L_F_BIFMPPA.
*----------long text
WHEN 'B'.
MOVE: T_FILE_ENTRIES TO L_F_BIFMPPB.
...
MODIFY T_FILE_ENTRIES FROM L_F_BIFMPPB.
*----------wrong record type
WHEN OTHERS.
RAISE ERROR_OCCURED.
ENDCASE.
*-----commitment item in FM area/fiscal year
WHEN '*MGA'.
CASE L_F_FILE_KEY-RCTYPE.
*----------master data
WHEN 'C'.
MOVE: T_FILE_ENTRIES TO L_F_BIFMPPC.
...
MODIFY T_FILE_ENTRIES FROM L_F_BIFMPPC.
*----------net voting assignments (only local auth.)
WHEN 'D'.
MOVE: T_FILE_ENTRIES TO L_F_BIFMPPD.
...
MODIFY T_FILE_ENTRIES FROM L_F_BIFMPPD.
*----------wrong record type
WHEN OTHERS.
RAISE ERROR_OCCURED.
ENDCASE.
*-----wrong tcode
WHEN OTHERS.
RAISE ERROR_OCCURED.
ENDCASE.

ENDLOOP.

Notes

Further information





Parameters

T_FILE_ENTRIES

Exceptions

ERROR_OCCURED

Function Group

XFMP

TXBHW - Original Tax Base Amount in Local Currency   BAL_S_LOG - Application Log: Log header data  
This documentation is copyright by SAP AG.

Length: 3686 Date: 20240523 Time: 062405     sap01-206 ( 34 ms )