Load release procedure values using ABAP program

This post shows how you can use an custom ABAP program to load characteristic values for release procedures.

Method described in this post is not the recommended way.
The best way to load Release Procedure values is by using a standard LSMW. See here for details.

Background information

If you have lots many release strategies (set up via configuration) it is quite a task to load the characteristic values. It can be loaded manually using transaction cl24n (SAP menu: Cross-Application Components > Classification System > Assignment > Assign Objects/Classes to Class) but it can take quite some time. The information reside in table AUSP

The program listed here can be used to do this task programmatically.It has been used many times in production systems without problems -- but use it at your own risk. Changes may need to be done to program to fit your requirements.

Loading information

Before loading up the values, you need the following information:
  • Name of class used (use it in the upload program)
  • Internal number of class -- get it in table KLAH (use in the upload program)
  • Internal number of characteristic -- from table AUSP (use in text file)
  • Text file with data
If no data in AUSP, you need to load at least one set manually (cl24n) so that you can get the internal characteristic number. This number will not change, except if you change your release procedure.

Delete current information in table AUSP

If you want to re load information, you first need to delete the existing information. This can be done via cl24n or using attached program ZCL24N_DELETE

Loading new values -- sample input data

Data is in tab delimited format, no title row in text file:
column 1 - Release code + Strategy - 4 characters - example AAS1
column 2 - Characteristic value - 10 digies - example 0000000810
column 3 - Counter - 3 digits - example 001 001
column 4 - number - 1 digit - example 1 or 9
column 5 - class type - 032
column 6 - Characteristic value

Sample input file:

Source code

zcl24n.txt -- load up information
zcl24n_delete.txt -- delete information from ausp

SAP version used for this post: SAP ECC (ERP Central Component) 5.0

Get my blog posts in your inbox!

Setting up simple Release Procedure for Purchase Requisitions
SAP SD Tables
Change SAP documents -- tables CDHDR and CDPOS
SAP MM Tables
Split Valuation
Part 1 - Why SAP Business Analysts should know and use SQL
Loading Material Masters with LSMW Direct Input method
Very basics of SAP External Service Management
SAP Finance Tables

comments powered by Disqus