Programme SAP RJHXPRAI - WPRA - Restructure Sales Agent Assignment Settlement Index (JHAGVX)

Description
This program analyses the settlement history for all sales agentassignments and creates the sales agent settlement index (table JHAGVX)during the upgrade from the initial release <= IS-M 3.04/x.
This program selects the Settlement performedindicator in all sales agent assignments (JHAGVZ) in which settlementhas been performed at least once (and in the associated assignments tothe twinned billing dataset for separate agency commission ifnecessary).

Precondition
All clients are processed.
The program can be started or restarted at any stage. This programcontinues processing sales agent assignments from the highest (perclient) existing order number in table JHAGVX (index).
You cannot modiy the following objects whilst the program is being run:

  • Order (Tables JHAK, JHAP, JHAGA, JHAGVZ)

  • Item category (Customizing table TJHAP)

  • Sales agent settlement settings for each purchasing organization
  • (Customizing table TJJAJ)
    • Commission key (Customizing table TJH23)

    • Condition references (Customizing table TJJ83)

    • Contract settings in the sales area (Customizing table TJHVA or view
    • JHVTJHVA4)
      • Sales agent contract (Table JJTVV)

      • Billing documents (Tables JHTFK, JHTFP) for billing categories

      • Order billing documents (A)
        Contract settlement billing documents (B)
        Sales agent settlement (P) [Commission billing document]

        Output
        The program makes log entries for the number of indices that were addedto clients for which processing has been started.

        Notes
        You should not use this program to maintain the settlement index. Thereport RJHAGVX_MAINTAIN is intended forthis purpose.