Professional Documents
Culture Documents
Purpose
The purpose of this document is to describe the functionality provided by a new
program "ZO2C_PRICE_LIST" which can be used to simulate a pricing procedure and
provide a "price list" report for a range of materials specified on the selection-
screen.
Audience
This document is intended for use by SAP SD functional consultants and end users
who wish to see the Gross/Net/Cost Price of a range of materials.
Uploading program ZO2C_PRICE_LIST
The program source code is given in later section "Program Source Code".
This source code can be uploaded into any SAP system by using the "Upload" function
from transaction SE38. The name of the program can be modified to adhere to local
SAP program naming standards, as required.
The program was created on SAP ECC version 6.0, but may work on some earlier SAP
release versions.
All program text elements will be generated automatically (in English) upon running
the program for the first time.
Selection-Screen
A brief description of the selection-screen is given below.
The Sales Area and Product sections are used to restrict the range of materials for
which the Price List is to be generated. Additionally, the "plant" field is also
used to restrict the report to show only materials which exist in the specified
plant.
The "Additional Information for Price Calculation" section contains some of the
information which is needed for the simulation of a pricing procedure. A SAP
Standard Pricing Procedure, Order Type and Item Category are defaulted by the
program. However, as most SAP installations will have custom (Y..., Z...) versions
of these, it may be necessary to change these default values when the program is
executed on the local SAP system.
A quantity of 1 KG is also defaulted. This can modified if the price list needs to
be generated for larger quantities (which takes scaled price conditions into
account).
The pricing date is defaulted to the current date, and this is the date on which
all price conditions must be valid.
All materials where no gross price is found will be suppressed from the report if
the "Hide lines with no gross price" flag is ticked.
Finally, an ALV report variant can be specified in the last section of the
selection-screen.
Report Layout
The program produces a simple ALV report with the pricing information for each
material found.
The population of each column is the report is given below:
Column
SAP Field
Description
SOrg
MVKE-VKORG
Sales Organisation
D Ch
MVKE-VTWEG
Distribution Channel
Material
MVKE-MATNR
Material Number
Only the materials which exist for the specified Sales Area (in table MVKE) and
specified Plant (in table MARC) will appear in the report. Materials where the
deletion indicator is set at either plant or Sales Area level will be excluded from
the report.
Description
MAKT-MAKTX
Material Description in the logon language
Gross Price
KOMP-KZWI1
As a default, the gross price is taken from the Subtotal 1 field in the Pricing
Procedure.If Subtotal 1 is used for an alternative purpose in the local SAP system,
the subroutine "GET_PRICE_CONDITIONS" will need to be updated to calculate in the
Gross Price in a different way.
Program ZO2C_PRICE_LIST contains a 2nd way of determining the Gross Price - where
it will use the condition rate from the 1st active non-statistical condition type
found of class "B" (Prices).
For performance reasons, this alternative gross price determination is deactivated
in the supplied source code, but this can be reactivated by a local developer if
need be. The relevant coding is also contained in subroutine
"GET_PRICE_CONDITIONS".
REPORT zo2c_price_list.
************************************************************************
* Report ZO2C_PRICE_LIST Author : Ali Crawshaw *
* *
* Date : 22/03/2010 *
* *
* Description: Report to simulate the pricing procedure and show *
* the Gross, Net and Cost price of a material *
* *
************************************************************************
* Revision history : *
************************************************************************
* Date : Modification Id : *
* Name : *
* Description: *
* *
************************************************************************