Ansicht
Dokumentation

EXIT_SAPLV51R_001 - User Exit: Check Whether Handling Units Can Be Archived

EXIT_SAPLV51R_001 - User Exit: Check Whether Handling Units Can Be Archived

RFUMSV00 - Advance Return for Tax on Sales/Purchases   PERFORM Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

This module can be used for customer-specific checks of archivability of handling units (HUs). It is called up during the HU archivability check if the system checks recognize the handling unit as archivable. In the context of this module, a check that changes the archivability status of the handling unit (if necessary) can be implemented.

The handling unit that is to be checked is transferred into the IS_VEKP structure. If the archivability check is successful, the EF_ARCHIVABLE parameter should be assigned a value of "X". If the HU cannot be archived, the return values for this parameter is " " (blank).

General Comments About Archivability

  • When handling units are archived, their hierarchical context is also taken into consideration. A handling unit and the other HUs that are hierarchically connected to it form a group of handling units. This group can only be archived if all HUs in this group can be archived. The hierarchical relationships are written into the archive along with the group.
    The hierarchical context of the HUs is determined during data selection and stored in the IT_HIERARCHY internal table that is transferred for informational purposes. Additionally, the handling-unit group's current number, which the system uses to access the IT_HIERARCHY table, is found in the IS_HUNUM transfer parameter.
    The system determines the group status for archivability, which therefore does not need to be programmed.
  • For performance reasons, data selection and processing works with data packets that are limited in size instead of including the entire document quantity that is to be archived at once. In the interface for this module, the handling unit data for each packet is transferred completely (IT_VEKP - header data, IT_VEPO - item data).

Example

If you do not want handling units from plant 0001 to be archived, for example, add the following coding to the user exit:

  IF IS_VEKP-WERKS EQ '0001'.

    EF_ARCHIVABLE = ' '.

  ELSE.

    EF_ARCHIVABLE = 'X'.

  ENDIF.

Notes

You only have read-only access to the IT_VEKP, IT_VEPO and IT_HIERARCHY tables that were transferred. Also, do not change how the tables are sorted. IT_VEKP and IT_VEPO are sorted according to document number or according to document number and item number so that high-performance BINARY SEARCH accesses are possible.

Further information





Parameters

EF_ARCHIVABLE
IF_REASON
IS_HUNUM
IS_VEKP
IT_HIERARCHY
IT_HUSSTAT
IT_VEKP
IT_VEPO
IT_VEVW

Exceptions

Function Group

XV51R

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

Length: 3819 Date: 20240523 Time: 054820     sap01-206 ( 74 ms )