Ansicht
Dokumentation

F40K0001EXIT_SAPMF40K_001 - Manual account statement

F40K0001EXIT_SAPMF40K_001 - Manual account statement

General Material Data   CPI1466 during Backup  
This documentation is copyright by SAP AG.
SAP E-Book

Processing the Individual Account Statement Lines After Entry

Description

During the manual account statement entry you have the option with this function exit

  1. to install own checks for the individual positions of the account statement,
  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 xit 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 statement line (with +/- signs)
  • I_LINE = other values of the statement line:
  • VGMAN = entered transaction

  • VGINT = internal process derived from VGMAN

  • KFMOD = account modification derived from VGMAN

  • VALUT = value date of the statement line

  • as well as the account assignment fields to be input (see Structure RF40KI1).

  • I_STATUS = status values of the item (see Structure RF40KI3).
  • SEL_TAB = table with selection values (for clearing open items):
  • 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 on several personal accounts at the same time as a line).

The function exit exports the following data:

  • E_LINE = other values of the statement 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 of whether changes are to be copied

Note

A message of the type E (error) may only refer to fields which are to be directly input 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 number can be checked for existence in the SAP System. If the check gives a negative result, the field "E_MESSAGE" is filled with a corresponding text (for example, 'Customer ABC does not exist'), and the field "E_MESSTYPE" with the required message type.

2. Change Values

Select other process for amounts greater than 10,000.

If the field "I_KWBTR" exceeds 10,000, the fields "E_LINE-VGMAN", "E_LINE-VGINT" and "E_LINE-KFMOD" are filled again ("E_UPDATE= 'X').

3. 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.






RFUMSV00 - Advance Return for Tax on Sales/Purchases   RFUMSV00 - Advance Return for Tax on Sales/Purchases  
This documentation is copyright by SAP AG.

Length: 4822 Date: 20240419 Time: 075527     sap01-206 ( 88 ms )