Вы находитесь на странице: 1из 7

GSD Best Practices for Solman

Pricing - Master Record

Configuration Guide
1. Purpose
Formulas are represented as FORM routines. They are used in pricing and influence the
determination of prices according to predefined rules. You can specify them in pricing control.

2. Configuration Definition
COE type:

CORE

Regional

*Local

COE
Language:

English

End User

Multi language

2.1 SAP Configuration Description


To define your own formulas, proceed as follows:
1. First check whether you can use the formulas delivered with the standard system.
2. Either overwrites an existing formula or select a group number from the number range
reserved for customer modifications (600-699) and enter the corresponding description.
3. Program the formula in the editor.
4. Activate the formula.
5. Enter a long text that describes the meaning of the formula in more detail.

2.2 Template Definitions (only for CORE / Regional Configuration)


NA

3.1. Configuration Details


<Formulas>
COE General Information
Configuration is related to:

Organizational Structure
Process

Menu Path

IMG -> Sales and Distribution -> System Modifications ->


Routines -> Define Formulas For Pricing

Transaction

Master Data

VOFM

Page 1 from 7

GSD Best Practices for Solman

Pricing - Master Record

Configuration Guide
Prerequisites
NA

Procedure
Screen 1

1. Go to Data Transfer Orders thru the menu.


Screen 2

Page 2 from 7

GSD Best Practices for Solman

Pricing - Master Record

Configuration Guide

3. A list of Routines value is displayed. Click on New entries.


The following formula must be created:
Routine
Number
904

Description
BR: PreQi ZBRF

Descrio
BR: PreQi ZBRF

Descripcin
BR: PreQi ZBRF

This new routine is a copy of routine 153 to add the logical below

Select field ZAUFNR in table VBAP (that is the original sales order from billing document that will
be base of new sales order) using VBAP-POSNR = CVBRP-POSNR e VBAP-VBELN = CVBRPAUBEL e CVBRP-KZWI5 <> 0

Page 3 from 7

GSD Best Practices for Solman

Pricing - Master Record

Configuration Guide
*---------------------------------------------------------------------*
*
FORM - Routine for data transfer when copying
*
*---------------------------------------------------------------------*
*---------------------------------------------------------------------*
*
FORM DATEN_KOPIEREN_904.
*
*---------------------------------------------------------------------*
*
*
* This Routine is a copy of 153 with a move of Field VBAP-ZAUFNR
*
*
Copy item data
*
*
*
*
The fields of the footer line were already transported before *
*
the call of this module: MATNR, CHARG, POSNR, UEPOS und PSTYV *
*
They may not be modified here.
*
*
*
*
The following work areas are available:
*
*
*
*
VBAK - Header of the order
*
*
CVBAK - Header of the reference document
*
*
VBAP - Items of the order
*
*
TVAP - Order item configuration
*
*
CVBAP - Items of the reference document
*
*
KUAGV - Sold-to view
*
*
KURGV - Payer view
*
*
KUWEV - Ship-to view
*
*
XVBPA - Partner table of the order header
*
*
CVBPA - Partner table of the reference document
*
*
*
*---------------------------------------------------------------------*
FORM DATEN_KOPIEREN_904.
LOCAL: VBAP-CMPNT,
VBAP-POSAR,
VBAP-CHARG,
VBAP-XCHAR,
VBAP-PAOBJNR,
VBAP-ERNAM,
VBAP-ERDAT,
VBAP-ERZET,
VBAP-PSTYV,
VBAP-KOWRR,
VBAP-ABFOR,
VBAP-KMEIN,
VBAP-KPEIN,
vbap-netpr,
vbap-posar.
DATA:
DATA:
DATA:
DATA:

HLP_VBAP_STAFO LIKE VBAP-STAFO.


DA_SHKZG LIKE VBAP-SHKZG.
DA_VSTEL LIKE VBAP-VSTEL.
DA_MTCOM LIKE MTCOM,
DA_MARA LIKE MARA.

DA_VSTEL = VBAP-VSTEL.
HLP_VBAP_STAFO = VBAP-STAFO.

Page 4 from 7

GSD Best Practices for Solman

Pricing - Master Record

Configuration Guide
DA_SHKZG = VBAP-SHKZG.
MOVE-CORRESPONDING CVBRK TO VBAP.
MOVE-CORRESPONDING CVBRP TO VBAP.
IF NOT TVAK-VSBED IS INITIAL.
VBAP-VSTEL = DA_VSTEL.
ENDIF.
VBAP-STAFO = HLP_VBAP_STAFO.
CLEAR VBAP-NETWR.
IF TVAP-ETERL IS INITIAL.
VBAP-ZMENG = CVBRP-FKIMG.
ENDIF.
VBAP-UMZIZ = CVBRP-UMVKZ.
VBAP-UMZIN = CVBRP-UMVKN.
VBAP-ZIEME = CVBRP-VRKME.
* Credit and Debit Memo Requests for Make to order
IF VBAK-VBTYP CA VBTYP_ANFO OR
VBAK-VBTYP CA VBTYP_RETO.
IF NOT CVBRP-PS_PSP_PNR IS INITIAL.
VBAP-KZVBR = KZVBR_P.
VBAP-PS_PSP_PNR = CVBRP-PS_PSP_PNR.
ENDIF.
IF NOT CVBRP-VBELV IS INITIAL.
VBAP-KZVBR = KZVBR_E.
ENDIF.
ENDIF.
VBAP-SHKZG = DA_SHKZG.
* Soll/Haben Kennzeichen beim Anlegen mit Bezug auf Faktura
IF TVAK-VBKLT NE VBKLT_RECH_KORR.
IF VBAK-VBTYP CA VBTYP_LANF.
*
Anlegen Lastschriftsanforderung Verkauf ...
IF CVBRK-VBTYP CA VBTYP_FAKLAS.
*
... mit Bezug auf Lastschrift Faktura
IF CVBRP-SHKZG CA ' A'.
VBAP-SHKZG = SPACE.
ELSEIF CVBRP-SHKZG CA 'BX'.
VBAP-SHKZG = CHARX.
ENDIF.
ELSEIF CVBRK-VBTYP CA VBTYP_FAKGUT.
*
... mit Bezug auf Gutschrift Faktura
IF CVBRP-SHKZG CA ' A'.
VBAP-SHKZG = CHARX.
ELSEIF CVBRP-SHKZG CA 'BX'.
VBAP-SHKZG = SPACE.
ENDIF.
ENDIF.
ELSEIF VBAK-VBTYP CA VBTYP_GANF.
*
Anlegen Gutschriftsanforderung Verkauf ...
IF CVBRK-VBTYP CA VBTYP_FAKLAS.
*
... mit Bezug auf Lastschrift Faktura
IF CVBRP-SHKZG CA ' A'.
VBAP-SHKZG = CHARX.
ELSEIF CVBRP-SHKZG CA 'BX'.
VBAP-SHKZG = SPACE.
ENDIF.
ELSEIF CVBRK-VBTYP CA VBTYP_FAKGUT.
*
... mit Bezug auf Gutschrift Faktura
IF CVBRP-SHKZG CA ' A'.

Page 5 from 7

GSD Best Practices for Solman

Pricing - Master Record

Configuration Guide
VBAP-SHKZG = SPACE.
ELSEIF CVBRP-SHKZG CA 'BX'.
VBAP-SHKZG = CHARX.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
****** DSEG *******
DATA: ACTIVE_COMPONENT(2) TYPE C.
* Check that any country component is active.
CALL FUNCTION 'J_1BSA_COMPONENT_ACTIVE'
EXPORTING
BUKRS
= VBAK-BUKRS_VF
COMPONENT
= '**'
IMPORTING
ACTIVE_COMPONENT
= ACTIVE_COMPONENT
EXCEPTIONS
COMPONENT_NOT_ACTIVE = 02.
IF ACTIVE_COMPONENT = 'BR'.
* Brazil: J_1B-Fields in VBAP
CALL FUNCTION 'J_1B_SD_SA_VBRP_COPY'
EXPORTING
I_VBAK = VBAK
I_VBAP = VBAP
I_TVAP = TVAP
IMPORTING
E_VBAP = VBAP.
ENDIF.
***** DSEG *****
ENDFORM.
*eject

"DATEN_KOPIEREN_904

SAP Module
SD

EAS Team Responsible


[Mandatory]
Name

Approval Date

Page 6 from 7

GSD Best Practices for Solman

Pricing - Master Record

Configuration Guide
Configuration Responsible
[Mandatory]
This section must be filled always for any maintenance in the COE
Name

Date

Change Request

Page 7 from 7

Вам также может понравиться