RFC: Retrieve Quota Arrangement 
Retrieve Quota Arrangement: BAPI_QUOTA_ARRANGEMENT_GETLIST
FUNCTION BAPI_QUOTA_ARRAMGEMENT_GETLIST.
*"----------------------------------------------------------------------
*"*"Local interface:
*" TABLES
*" MATERIALPLANT_LIST STRUCTURE BAPIKEYLIS
*" QUOTALIST STRUCTURE BAPIQUOTA
*" ROUNDING_PROFILE STRUCTURE BAPIRDPRFL
*" BAPIRETURN STRUCTURE BAPIRETURN
*"----------------------------------------------------------------------
Use
BAPI_QUOTA_ARRANGEMENT_GETLIST is used to retrieve a list of Quota Arrangement information stored in R/3. The BAPI call needs to populate table BAPIKEYLIS with the list of material-plants where these materials are procured. After the call, the information is transferred back through tables BAPIQUOTA and BAPIRDPRFL. Additional information and warnings are stored in BAPIRETURN.
In R/3, rounding value is usually used for batch procurement and stored in material master. But for the complicated batch sizes, rounding profile is defined in MRP customization and used in the quota management table. The BAPI call also retrieves the rounding profile so that the external caller can obtain maximal amount of information. If rounding profile is defined, the BAPI call exports the rounding profile and leaves the rounding value zero, otherwise it populates the rounding value in BAPIQUOTA. There are also situations when none of them are maintained. Information will be passed through BAPIRETURN.
Structure
BAPIKEYLIS
Fields |
Format |
Length |
Description |
MATERIAL |
char |
18 |
Material number |
PLANT |
char |
4 |
Plant |
BAPIQUOTA
Fields |
Format |
Length |
Description |
MATERIAL |
char |
18 |
Material number |
PLANT |
char |
4 |
Plant |
PERIOD_TIL |
dats |
8 |
Quota arrangement period valid until |
PERIOD_TIL |
dats |
8 |
Quota arrangement period valid from |
CREAT_DATE |
dats |
8 |
Date on which record was created |
CREATED _BY |
char |
12 |
Name of user who created object |
MIN_SPLIT |
quan |
8 |
Minimum quantity for splitting quota |
QUOTA_ITEM |
numc |
3 |
Quota arrangment item |
PROCURE_TY |
char |
1 |
Procurement type |
SPECIAL_TY |
char |
1 |
Special procurement type |
VENDOR_NUM |
char |
10 |
Vendor account number |
PROC_PLANT |
char |
4 |
Plant from which material is procured |
QUOTA |
dec |
2 |
Quota |
BASE_QUAN |
chan |
8 |
Base quantity of quota arrangement item |
ALOC_QUAN |
chaN |
8 |
Allocated quantity of quota arrangement item |
MAX_QUAN |
quan |
8 |
Maximum quantity of quota arrangement item |
PROD_VER |
char |
4 |
Production version |
MAX_LOT |
chan |
7 |
Maximum lot size per quota item |
MIN_LOT |
quan |
7 |
Minimum quantity of quota arrangement item |
PROFILE_RD |
char |
4 |
Rounding profile |
ROUNDVALUE |
chan |
7 |
Order quantity increment in the rounding |
ONCE_ONLY |
char |
1 |
Once only indicator |
MAX_REL |
chan |
7 |
Maximum release quantity per period |
PERIOD_REL |
quar |
1 |
Period to which release quantity relates |
NUM_PE_REL |
numc |
2 |
No. of periods to which release quantity relates |
PRIORITY_R |
numc |
2 |
Order quantity increment in the rounding |
BAPIRDPRFL
Fields |
Format |
Length |
Description |
PLANT |
char |
4 |
Plant |
RD_PROFILE |
char |
4 |
Rounding profile |
RD_LEVEL |
numc |
6 |
Level in rounding profile |
THRESHOLD |
quan |
7 |
Threshold value for rounding profile |
RD_VALUE |
quan |
7 |
Rounding off method for rounding items |
RD _RULE |
char |
2 |
Rounding off rule |
INDICATOR 1 |
quar |
1 |
Indicator: check units of measure allowed for vendor |
INDICATOR 2 |
quar |
1 |
Indicator: check units of measure allowed for customer |
BAPIRETURN
Fields |
Format |
Length |
Description |
TYPE |
char |
1 |
|
CODE |
char |
5 |
|
MESSAGE |
quar |
220 |
|
LOG_NO |
quar |
20 |
Application log number |
LOG_MSG_NO |
numc |
6 |
Application log: message serial number |
For this BAPI, TYPE = I (Information) or W (Warning). CODE = DP. Possible messages are:
000 Quota arrangement has not been defined for material & at plant &.
001 Rounding profile from date & for material & between plant & and vendor &.
002 Rounding profile from date & for material & between plant & and plant &.
003 Rounding value from date & for material & between plant & and vendor &.
004 Rounding profile from date & for material & between plant & and plant &.
005 No rounding from date & for material & between plant & and vendor &.
006 No rounding from date & for material & between plant & and plant &.