We are hiring and constantly growing! Have a look through our vacancies to find the right role for you!

EXIT_SAPLF050_010 -

EXIT_SAPLF050_010 -

General Material Data   General Data in Customer Master  
This documentation is copyright by SAP AG.
SAP E-Book

Outbound Processing: Resetting Clearing Information in FI Documents or Setting User-Specific Information

This user exit can only be activated for ALE message types FIDCC1 and FIDCC2.

As standard from Release 4.6B, the FI documents that were distributed by ALE using message type FIDCC1 or FIDCC2 are cleared immediately in the sender system. All line items that contain a customer or vendor are cleared.
The clearing fields are set as follows in these line items:

  • AUGBL = 'ALE-external'
    and

  • AUGDT = Posting date (BKPF-BUDAT)
    and

  • AUGCP = Posting date (BKPF-BUDAT).

G/L accounts managed on an open item basis are not cleared.

For message types FIDCC1 and FIDCC2, you can use user exit 10 to prevent clearing, or set clearing yourself.
This option should only be used with caution however.
For example, documents that have not been cleared cannot be archived. Using this option also means that you can use functions in the sender system as well as the receiver system, for example, payment of open items. The danger of this is that items could be paid twice.

User exit 10 could be applied, for example, if you only want to send copies of FI documents and the operational financial accounting system is still in the sender system. In such a case, you would probably not want to clear the sent document. Set parameter NO_AUGBL = 'X', to prevent clearing.

Alternatively, you could use it to clear individual G/L accounts managed on an open item basis.
In this case, use parameter SET_AUGBL_BY_USER = 'X' or SET_AUGBL_ALL_BY_USER = 'X' to transfer the document clearing to the customer.
Caution:
It does not make sense to clear the GR/IR clearing account if for example, the GR/IR analysis RFWERE00 is to be run in the sender system. This report analyzes open items in the GR/IR account. Therefore, no automatic clearing should be carried out.

User exit 10 is called up online in function module FI_IDOC_PREPARE, and transferred to the FI document already created.
This means that the user has to know at this point whether the document will be sent by ALE or not -> See CMOD enhancements F050S002/3/4. These enable a user to prevent a document being sent at the time of posting.

User exit 10 is only called up

  • If the FI document is to be distributed by ALE.
    The system recognizes this if the indicator E_DISTRIBUTE = 'X' is set.
    In function module FI_IDOC_PREPARE, the indicator E_DISTRIBUTE is switched on if ALE is active for message types FIDCC1 or FIDCC2.
    For FIDCC1, it is also possible at this point to use user exit 003 to prevent the document being distributed (indicator NO_DISTRIBUTION = 'X'). In this case, the indicator E_DISTRIBUTE is deactivated and user exit 10 is not called up.
    and
  • For message types FIDCC1 or FIDCC2
    and
  • If there is at least one item that can be cleared in the document recognizable by:
  • BSEG-XOPVW = 'X' (OI open item management)
    or

  • BSEG-KOART = 'D'/'K' (Customer/Vendor).

In this case, the whole document (BKPF, BSEG) is transferred to user exit 10 as a document copy.

The user can set the following output parameters in user exit 10.

  • NO_AUGBL = space
    Corresponds to the standard. You do not need to activate user exit 10.
    Clearing information is set in all customer and vendor line items (BSEG-KOART = "D"/"K"):
  • BSEG-AUGBL = 'ALE-external'
    and

  • BSEG-AUGDT = Posting date BKPF-BUDAT
    and
    BSEG-AUGCP = Posting date BKPF-BUDAT.

G/L accounts managed on an open item basis are not cleared.
  • NO_AUGBL = 'X'
    The standard clearing information should not be set.
    The customer and vendor line items are not cleared.
    G/L accounts managed on an open item basis are not cleared.
  • SET_AUGBL_BY_USER = 'X'
    For G/L accounts managed on an open item basis that are not cleared as standard, the user can set specific clearing information.
    Customer and vendor line items are still cleared as standard. You cannot influence this.
  • SET_AUGBL_ALL_BY_USER = 'X'
    The whole document should be cleared individually by the user.
    No clearing is carried out as standard, not even for customer and vendor line items.
    The user can set specific clearing information in all the line items that he wants to be cleared.
    In this case, the user is responsible for clearing for the whole document.

A document copy exists in the user exit.
In the line items to be cleared, you must make an entry in the field BSEG-AUGBL, for example "X".
The standard program then sets the ALE clearing information in all line items so indicated:

  • BSEG-AUGBL = 'ALE-external'
    and

  • BSEG-AUGDT = Posting date BKPF-BUDAT
    and

  • BSEG-AUGCP = Posting date BKPF-BUDAT.

Only the line items to be cleared are taken into account, that is, only the G/L account and customer and vendor accounts managed on an open item basis (BSEG-XOPVW = 'X' and BSEG-KOART = 'D'/'K').

No fields are transferred from the document copy to the original document. You cannot therefore overwrite the BKPF and BSEG originals.






CL_GUI_FRONTEND_SERVICES - Frontend Services   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.

Length: 6181 Date: 20210125 Time: 215844     sap01-206 ( 76 ms )