I10045 Quota Arrangements Upload

I. INTRODUCTION

A. Purpose of the document

Quota Arrangements are used to change the source of supply for a location. To better manage quota arrangements the COE has developed an offline tool. This functional specification is for an upload of the quota arrangements to interface with the offline tool. The upload transaction will upload a file generated by the offline tool in a comma separated values format. The file contains fields that define a quota arrangement. We will use this file to create, update and delete quota arrangements.

The standard SAP transaction for working with Quota Arrangements is /SAPAPO/SCC_TQ1.

We are primarily concerned with Inbound Quota Arrangements on a location. The quota have a direction code of 1 and a quota arrangement type of LOK. The inbound location is the To Location and the supplying partner location is the From location. If you set up a quota arrangement on location 0525, being supplied from partner location 0660 for 100% of the units, then the Quota Arrangement in the detail record will be 100. See the single test at the end of the document.

Example of the CSV input format expected.

Field Type Len Dec Description Value
ACTION CHAR 1 0 U=Update/Add, D=Delete U
MODEL CHAR 22 0 Model Name in Supply Chain Network 000

Calling the BAPI using local tables populated by the program:

call function 'BAPI_QTASRVAPS_SAVEMULTI2'
        exporting
          logical_system        = lv_logsys
*         BUSINESS_SYSTEM_GROUP =
          commit_control        = gc_comctrl_trans_int_s
*         AUTO_DELETE           =
*         SAVE_OPTIONS          =
        tables
          quota_head            = lt_quota_head
          quota_head_x          = lt_quota_head_x
*         QUOTA_ITEM_PPM        = gt_quota_item_ppm
*         QUOTA_ITEM_PPM_X      =
*         QUOTA_ITEM_PDS        = gt_quota_item_pds
*         QUOTA_ITEM_PDS_X      =
          quota_item_lane       = lt_quota_item_lane
          quota_item_lane_x     = lt_quota_item_lane_x
*         QUOTA_ITEM_EPR        = gt_quota_item_epr
*         QUOTA_ITEM_EPR_X      =
          return                = lt_return
*         EXTENSION_IN          =

Example of a line to send an update/add record:

U,000,000,1,087021V000,20100216000000,99991231235959,0259,9208,50,0,X,2000,LB