Ansicht
Dokumentation

EXIT_SAPLVED5_001 - User Exit for Condition Value Tolerances in the Self-Billing Procedure

EXIT_SAPLVED5_001 - User Exit for Condition Value Tolerances in the Self-Billing Procedure

General Data in Customer Master   BAL Application Log Documentation  
This documentation is copyright by SAP AG.
SAP E-Book

With this user exit, you can perform fine checks on internal and external condition values for credit advices (action 0 in E1EDK01).

When you receive an advice, the system determines internal condition values and compares these to the external values sent in by the customer. If they differ, the system transfers delivery items from the credit advice one by one.

For each item, the system transfers two characteristics each for the net value, cash discount, surcharges/discounts, and value-added tax:

  • xxx_INTERN
This is the value calculated based on internal conditions.
  • xxx_EXTERN
This is the corresponding value from the intermediate document (IDoc).

Based on your program in the user exit, the system compares these values to determine if the difference is relevant. If so, it terminates processing of the IDoc.

If you do not want a difference to be relevant, set the parameter WERT_DIFFERENZ to "N" or leave it blank. The system then ignores any differences that it finds.

Use the related standard function, in Customizing for condition value tolerances, for general tolerance checks.

Example

* In this example, the system only takes a difference into acount

* when there is more than one currency unit.

data: da_differenz like wert_intern.

* Assumption: All differences are irrelevant

wert_differenz = 'N'.

* Value

da_differenz = abs( wert_extern - wert_intern ).

da_differenz = abs( wert_extern - wert_intern ).

if da_differenz gt 1.

wert_differenz = 'J'.

else.

da_differenz = abs( steuer_extern - steuer_intern ).

if da_differenz gt 1.

wert_differenz = 'J'.

else.

da_differenz = abs( skonto_extern - skonto_intern ).

if da_differenz gt 1.

wert_differenz = 'J'.

else.

da_differenz = abs( zuschlag_extern - zuschlag_intern ).

if da_differenz gt 1.

wert_differenz = 'J'.

endif.

endif.

endif.

endif.

Notes

The invoice currency is transferred to parameter WAERK_INTERN.

In this example, which deals with absolute values, you can then differentiate between currencies in order to create a practical comparison value.





Parameters

SKONTO_EXTERN
SKONTO_INTERN
STEUER_EXTERN
STEUER_INTERN
WAERK_INTERN
WERT_DIFFERENZ
WERT_EXTERN
WERT_INTERN
ZUSCHLAG_EXTERN
ZUSCHLAG_INTERN

Exceptions

Function Group

XED5

Addresses (Business Address Services)   Addresses (Business Address Services)  
This documentation is copyright by SAP AG.

Length: 3088 Date: 20240523 Time: 084427     sap01-206 ( 43 ms )