SAP ABAP IMG Activity SIMG_LEARCHVFKK (Control of archiving of shipment costs)
Hierarchy
SAP_APPL (Software Component) Logistics and Accounting
   LE-WM-GF (Application Component) Other Functions
     LVSC (Package) Warehouse Management (WM) Customizing
IMG Activity
ID SIMG_LEARCHVFKK Control of archiving of shipment costs  
Transaction Code S_ALR_87003709   IMG Activity: SIMG_LEARCHVFKK 
Created on 19981222    
Customizing Attributes SIMG_LEARCHVFKK   Control of archiving of shipment costs 
Customizing Activity SIMG_LEARCHVFKK   Control of Archiving of Shipment Costs 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name SIMG_LEARCHVFKK    

In this IMG activity, you can set archiving for shipment cost documents and maintain a checking logic.

The archiving program checks several criteria for each shipment cost document. A shipment cost document can be archived if the following conditions are met:

  • The date of creation for the shipment cost document must be at least N days in the past. In other words, its residence time since creation must equal N days. Set the archiving contol for shipment costs to N ('Created on' column).
    Technical info: field VFKK-ERDAT is checked.
  • The latest change date for the shipment cost document must be at least M days in the past, meaning that its residence time since the last change is M days. Set the archiving control for shipment costs to M ('Change' column). If the shipment cost document has not been changed, the creation date is taken as the last change date.
    Technical info: Field VFKK-AEDAT is checked.
  • The purchase order for this shipment cost document should be completed and archived. You can confirm its status by checking whether the shipment cost document's subsequent document (service entry sheet) has already been archived.
    Technical info: the system finds out which subsequent document numbers exist (field VFKP-LBLNI) from the shipment cost item table and also checks in table ESSR (service entry sheet) to see whether these documents are still available.
    This check can be activated in archiving control for shipment costs (field Check purchase order, abbreviated Check PO)
  • The calculation status must be set to 'C' (fully calculated).
    Technical info: field VFKK-STBER is checked.
  • Account assignment status must be either '_' (blank; not relevant for account assignment) or 'C' (account assignment fully carried out).
    Technical info: field VFKK-STFRE is checked.
  • Transfer status must be either '_' (blank; not relevant for transfer) or 'C' (fully transferred).
    Technical info: field VFKK-STABR is checked.
  • The shipment that the shipment cost document relates to must be calculated completely.
    Technical info: field VTTK-FBGST is checked.

The last four criteria are always checked in the program and cannot be altered. The first three criteria, however, can be set in Customizing (shipment costs archiving control).

To make the archiving control settings in Customizing, choose:
Logistics Execution
--> Archiving
--> Control of Archiving of Shipment Costs
(Transaktion VORI).

When you create a shipment cost document, you must specify a shipment cost type (which may also be determined automatically). Therefore, every shipment cost document in the system has a shipment cost type. Every shipment cost item also has a company code assigned to it (which is generally identical for all items).

In archiving control for shipment cost documents, you can define precisely when a document can be archived for every combination of shipment cost type and company code (which means defining residence times for creation or change and 'purchase order completion').

To make data entry easier, you can also 'mask' shipment cost type, company code or even both. You can set shipment cost type to ' ' (blank), for example.

Example:

The table for archiving control is structured as follows:

CoCd     BITy     Created on     Change     Check PO

0001     0001     100     20     x

0002     0005     180     90    

    0001     30     30    

    0002     60     60     x

0001         20     20    

        270     270    

For any given document, the following accesses are made to the table (the system stops after the first successful access):

  • First, the system accesses the company code and the shipment cost type specified in the document (with '0002' and '0005', for example). If an entry exists for this combination (which is the case in this example), the valid control parameters were already determined for this document.
  • If no entries were found during the first access (for combination '0009' and '0001', for example), the system searches for an entry with company code ' ' (blank, meaning masked) and the shipment cost type that agrees with the specified entry (in this case, the entry with the key ' ' '0001' would be found).
  • If nothing was found in the second step (for combination '0001' '0005' for example), the system searches for an entry that matches the company code by searching for a blank (masked) shipment cost type (this time, the system would find the entry with key '0001' ' ').
  • If still nothing is found after the third search, both key fields are masked, meaning that the system searches with ' ' ' ' (both blank). If this entry is maintained, a valid record should always be found in this final step.
  • If this entry is missing, the program adopts the following values:
    • Creation = 365 (1 Jahr),
    • Change = 365 (1 Jahr)
    • Check PO = x

NOTE: archiving runs quicker if the same values are valid for all documents. The easiest way to accomplish this is to maintain only one entry in the table. This entry should have both shipment cost type and company code set to ' ' (blank).

NOTE: if various company codes exist within the items of a shipment cost document, the most restricive limitations are valid for that document.
Example:

The shipment cost document has shipment cost type 0001. The following values are then figured for both items from the table above:

Item     CoCd     Created on     Change     Check PO

10     0001     100     20     x

20     0009     30     30    

The longer of the residence times is used, meaning that
Created on = 100
Change = 30
The purchase order is also checked (for combination company code/shipment cost type 0001/0001, an entry could be found immediately, as opposed to combination 0009/0001, which can only find a match after the second step, i.e. search combination ' '/0001).

Activities

Maintain the checking logic. You can enter the residence time for shipment cost documents after creation and changes. You can also check whether the purchase order for the shipment document has been completed.

Business Attributes
ASAP Roadmap ID 208   Establish Archiving Management 
Mandatory / Optional 1   Mandatory activity 
Critical / Non-Critical 2   Non-critical 
Country-Dependency A   Valid for all countries 
Assigned Application Components
Documentation Object Class Documentation Object Name Current line number Application Component Application Component Name
SIMG SIMG_LEARCHVFKK 0 HLA0006575 Transportation 
Maintenance Objects
Maintenance object type C   Customizing Object 
Assigned objects
Customizing Object Object Type Transaction Code Sub-object Do not Summarize Skip Subset Dialog Box Description for multiple selections
V_TIARS V - View SM30 00000001 Archiving Control Shipment Costs 
History
Last changed by/on SAP  19981222 
SAP Release Created in