Ansicht
Dokumentation

F40S0001EXIT_SAPMF40S_001 - Check deposit

F40S0001EXIT_SAPMF40S_001 - Check deposit

BAL_S_LOG - Application Log: Log header data   CPI1466 during Backup  
This documentation is copyright by SAP AG.
SAP E-Book

Processing of the Individual Checks Received Transaction Lines After Entry

Description

With this function exit you have the option during the check deposit

  1. to install own checks for the individual lines
  2. to change entered values as well as
  3. to transfer certain values which cannot be entered.

Link to the Standard Program

During every screen change, the function exit receives the lines displayed on the screen, transferred one after the other. The values (possibly changed) as well as possible messages are returned to the program. On a message of type E (error) or W (warning), the corresponding screen line is faded in again for postprocessing.

Structure of the Transferred Data

The function exit imports the following data:

  • I_BUKRS = company code
  • I_HKONT = G/L account number of the bank account
  • I_DYKEY = name of the current line layout variant
  • I_WAERS = currency key
  • I_KWBTR = amount of the check
  • I_LINE = other values of the checks received transaction line:
  • SCHNR_PR = check number

  • AUSST_PR = drawer of the check

  • BNKLZ_PR = bank key of the drawer

  • as well as the account assignment fields to be input (see structure RF40SI1).

  • I_STATUS = status values of the line (see structure RF40KI3).
  • SEL_TAB = table with selection values (for clearing open item):
  • FNAME = name of the selection field

  • FWERT = value of the selection field

  • ZUOSL = allocation key (only plays a role if items are to be cleared at the same time with a check on several personal accounts).

The function exit exports the following data:

  • E_LINE = other values of the line (see I_LINE)
  • SEL_TAB = table with selection values (see above)
  • E_GRPNR = grouping for the second BI session (a separate BI session (subledger) is generated for each E_GRPNR).
  • E_MESSTYPE = message type
  • E_MESSAGE = message text
  • E_UPDATE = indicator whether changes are to be copied

Note

A message of type E (error) may only refer to fields which are to be input directly on the entry screen. For example, if several document numbers were input via Edit -> Value set, you can only access the first of these document numbers. If an error message of type E referred to one of the other document numbers, the user would no longer be able to go further.

Example

1. Checks

Entered customer numbers are checked for existence.

The table "SEL_TAB" is scanned for lines with "SEL_TAB-FNAME" = 'FEBMKK-KUNNR'. There is then a customer number in the field "SEL_TAB-FWERT". This can be checked for existence in the SAP System. If the check gives a negative result, the field "E_MESSAGE" is filled with corresponding text (for example, 'Customer ABC does not exist'), and the field "E_MESSTYPE" with the required message type.

2. Fill Special Field

Separation of the subledger batch input sessions according to accounting clerk

For every specified personal account, the person working in the accounting department is determined and the field filled according to "E_GRPNR" ("E_UPDATE" = 'X').

A separate batch input session is then generated for every grouping by the system.






PERFORM Short Reference   CPI1466 during Backup  
This documentation is copyright by SAP AG.

Length: 4415 Date: 20240328 Time: 195827     sap01-206 ( 59 ms )