We are hiring and constantly growing! Have a look through our vacancies to find the right role for you!
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.
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:
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'.
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'.