Ansicht
Dokumentation

EXIT_SAPLFICP_001 -

EXIT_SAPLFICP_001 -

RFUMSV00 - Advance Return for Tax on Sales/Purchases   Addresses (Business Address Services)  
This documentation is copyright by SAP AG.
SAP E-Book

Overview EXIT_SAPLFICP_001

The document entry for external systems offers the functionality of entering documents on an SAP installation, changing them, then sending them by operating system file to a receiving installation, of importing them there, changing them again and then finally updating them there. The user enters line items when entering and changing. The data elements of these items are checked by a small number of checks which can be fully configured by the sender and are fixed for the receiver for correct entries. The function exit EXIT_SAPLFICP_001 is now called up before all checks of a line item. This way, the user can carry out a user-defined check and also a modification of the item before the standard validations are carried out.

Creating EXIT_SAPLFICP_001

The function exit EXIT_SAPLFICP_001 is created via the available transaction CMOD after the user has created a project and assigned the extension FICT0001 to it. You can then directly branch to the code via the component maintenance.

The interface of the function exit contains the following parameters:

  1. (Import): I_EBKPF: This is the document header for the current item as long as it was formatted at the call time. The following fields are filled: BELNR, GJAHR, BVORG, BUDAT, BLDAT, MONAT, XBLNR, BLART, WAERS, WWERT, KURSF, TCODE
  2. (Import): I_EBSEG: This is the current item which is to be checked next. The fields were filled beforehand by the system. The fields XAUTO and BUZEI do not yet have their final value as this is first determined at the time of posting.
  3. (Export): E_CHANGE_FLAG: Must be set to 'X' by the Exit, if the changed line E_EBSEG should be included as a modified item into the document instead of I_EBSEG.
  4. (Export): E_EBSEG: contains a modified I_EBSEG item (see above).
  5. (Error): CHECK_FAILED: This error is not eliminated by the standard program. If the function exit determines an invalid entry, it must call up an error message (MESSAGE Exxx) to display an error on the screen. You can create the error message xxx yourself, also possibly under a separate message ID.

The user is responsible for a useful provision of the E_EBSEG line. The following short example should clarify the application (code is in include ZXFEXU01):

...

E_EBSEG = I_EBSEG.

IF I_EBSEG-SAKNR = '400000'.
MESSAGE ID 'Z1' TYPE 'E' NUMBER '899' WITH 'I DO NOT LIKE 400000'.
ENDIF.

IF I_EBSEG-SAKNR = '800000'. "COST CENTER FIX FOR ACCOUNT 800000
E_EBSEG-KOSTL = 'FIX'.
MESSAGE ID 'Z1' TYPE 'S' NUMBER '900' WITH 'AUTOMATIC REPLACE'.
E_CHANGE_FLAG = 'X'.
ENDIF.

...
EXIT.






CL_GUI_FRONTEND_SERVICES - Frontend Services   TXBHW - Original Tax Base Amount in Local Currency  
This documentation is copyright by SAP AG.

Length: 2850 Date: 20240419 Time: 181833     sap01-206 ( 41 ms )