Skip to Content
avatar image
Former Member

Event 940


To use event 940 to populate additional fields in the FI document during the transferring to GL, I am adding a field that is available by standard in

structure ACCIT to structure FKK_ACCIT_CUS with the same name as in structure ACCIT, then I am populating the field in event 940, however when I see the field in FB03 the field is still empty. Am I missing some step? or is event 940 only meant to populate custom fields? what should I use if i need to populate a standard field?

Best regards,


Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Dec 22, 2014 at 10:01 PM

    Dear Mario,

    You can read more information on event 0940 using transaction fqevents.

    "The function module called in event 0940 sets the assignment number,
    reference key, and item text in the transfer to the general ledger

    You can also set customer-specific fields if you have defined the predefined
    include for customer enhancements CI_FKK_ACCIT_CUS in the structure
    FKK_ACCIT_CUS. The fields included here must have the same field name as the
    fields included in the structure ACCIT. These can also originate from an
    enhancement of the coding block in General Ledger Accounting. The fields
    Reservation Class and Reservation Key of the
    reconciliation key and the totals record are available as import parameters.

    Special Features of the Sample Module

    For the totals records from the payment program (I_RESOB = 004) E_ZUONR must
    be I_RESKY. This enables a later assignment when you are processing the account
    statement in General Ledger Accounting."

    Hope this helps.

    Thanks & Kind Regards,


    Add comment
    10|10000 characters needed characters exceeded

  • Dec 23, 2014 at 03:21 AM

    Hi Mario,

    From the exporting parameter in this event you can see, you can populate below standard fields here.

    ZUONR Assignment Number

    XREF2 Business partner reference key

    SGTXT Item Text

    BUPLA Business Place

    We have also enhanced this event 940 and have our own logic written here to populate these field of the GL accounting document; it works absolutely fine.

    And, for custom fields you can extend the structure FKK_ACCIT_CUS and have your own logic to populate those.

    Hope it helps.



    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Mario,

                       The Fields in ACCIT have values only when a FI document is generated , i believe the event 940 is called before FI documents are created .

      so passing a field of ACCIT in 940 event does not populate  the fields you desire because the values for  fields of ACCIT are not yet generated,

      you need to write the logic to populate the values in this field based on FI-CA data ,if you want to use event 940.

      else look for user-exit in FI .