Documentation View

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

/AFS/SIMGARUN_AGTABG - Allocation Group Table Generation

/AFS/SIMGARUN_AGTABG - Allocation Group Table Generation

General Material Data   BAL_S_LOG - Application Log: Log header data  
This documentation is copyright by SAP AG.
SAP E-Book

This setting is used to declare, define and generate the Allocation Group (AG) tables. AG tables are used for the permanent grouping. You can generate multiple AG tables but only one can be the default table.

The fields in the AG table determine how sales orders are grouped. Each order is checked against the default AG table entries. If the sales order's attributes match an entry in the AG table and there is already an existing AG number; the system assigns this AG number to the sales order. If there is no matching entry, then the system generates a new AG number and assigns it to the order.

  1. First create the AG table.
  2. Select the table and choose Field Level.
  3. Define the fields that are to determine the AG numbers.
  4. Go to display mode and generate the table at the top node. Always ensure that the table name starts with 'Z'.

Assume that you want to generate a table for the following fields:




The following fields will be generated for the AG table:

MANDT Client

/AFS/CSA_ORIGIN,,,, ARun Customer Service Area
(original number via CSA determination)

KUNNR Sold-to Party

BSTNK,,,,,,,, Customer Purchase Order Number

/AFS/AGNUM Allocation Group

/AFS/CSA_NUMBER ARun Customer Service Area

Based on these criteria, the system generates a unique AG number for each unique combination of the key fields.

Vendor Master (General Section)   TXBHW - Original Tax Base Amount in Local Currency  
This documentation is copyright by SAP AG.

Length: 1814 Date: 20211128 Time: 115813     sap01-206 ( 32 ms )