Professional Documents
Culture Documents
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
Organizational Structure
Process
Menu Path
Transaction
Master Data
VOFM
Page 1 from 7
Configuration Guide
Prerequisites
NA
Procedure
Screen 1
Page 2 from 7
Configuration Guide
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
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:
DA_VSTEL = VBAP-VSTEL.
HLP_VBAP_STAFO = VBAP-STAFO.
Page 4 from 7
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
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
Approval Date
Page 6 from 7
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