Reference Field Is Filled With 0000000000: Symptom

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

SAP Note

328788 - Reference field is filled with 0000000000


Component: XX-CSC-CN (China), Version: 11, Released On: 14.11.2003

Symptom
The reference number in an SD document is filled with zeros although the customizing of the
copy control should result in filling this field with e.g. the SD document number.

Other Terms
China; Peru; Chile; Reference number; Invoice; Official number

Reason and Prerequisites


This note is only valid for company codes in China, Chile and Peru. This note is only valid
for Releases 4.6B and higher.
Due to legal requirements in China, Chile and Peru, every invoice issued by the company
should have assigned an external reference number (the number of the preprinted invoice).
The number of each invoice has to be saved in the system for reporting purposes. Starting
with R/3 release 4.6B, SAP offers the functionality to print the invoices and to store the
official document number in VBRK-XBLNR field (transaction IDCP). The print handling program
requires the value of the VBRK-XBLNR field to be zeroes for unprinted invoices.
If you do not use SAP printing functionality (transaction IDCP) and wish to use the
reference field for other purposes, you have to apply the source code changes given below.

Solution
Release 4.7 (Enterprise)
If you are using the release 4.70, please apply the source code corrections described below,
or implement the indicated support package. The corrections are only relevant for Chinese
company codes, and will allow to control the initialization of the field reference document
number using the customizing of FI document types, as described in the OSS Note 571376. For
other countries using the preprinted forms concept this functionality is already active with
the implementation of the OSS Note 571376 (or the corresponding support package).
Releases up to 4.6C
In case you are using a lower release, please adapt the source code changes described below
in the text of this note. These changes will prevent the filling the reference field (VBRK-
XBLNR) with zeroes and will allow your customizing settings to take effect.

************************************************************************
Please note that the changes described below will not be delivered in a support package!
************************************************************************
1. Start the ABAP function module editor (transaction SE37) and select the function
module OFF_NUMBER_GLOBAL_DEFAULTS for editing.
2. Locate the code section in the CASE statement for your country. Currently the
following sections are relevant:
WHEN LAND1-CHINA. for China
WHEN LAND1-CHILE. for Chile
WHEN LAND1-PERU. for Peru
1. Within this section, find the line of code
O_XBLNR = NOT_PRINTED.
and deactivate it (insert a comment character or just delete the line).
1. In case your company code is located in China, please repeat the steps described
above also for function module OFF_NUMBER_GLOBAL_NUMBERING.
2. In case you want to allow users to enter values in field XBLNR, you have to edit the
function modules:
OFF_NUMBER_LOCAL_SCREEN_CN for China
OFF_NUMBER_LOCAL_SCREEN_CLPE for Peru and Chile
in the following way:
a) Find the section of the code dealing with the screen parameters for the XBLNR
field:
O_INPUT = . . .
O_OUTPUT = . . .
O_INVISIBLE = . . .
a) Correct the value for O_INPUT parameter according to your requirements (MOD_OFF
means input is disabled, MOD_ON means input is enabled).

Attributes
Key Value

Other Components XX-CSC-CL (Chile)

Other Components XX-CSC-PE (Peru)

Software Components
Software Component From To And subsequent

SAP_APPL 46B 46B

SAP_APPL 46C 46C

SAP_APPL 470 470

SAP_BASIS 46D 46D

Correction Instructions
Software Component Number of Correction Instructions

SAP_APPL 1

Prerequisites
Software From To SAP Title Component
Component Note/KBA

SAP_APPL 470 470 539442 Off.doc.numbering for billing documents with value zero XX-CSC-AR

SAP_APPL 470 470 571376 Official Document Numbering - new customizing tables XX-CSC-AR

SAP_APPL 470 470 635582 AR: Incorrect printing character for exports XX-CSC-AR

SAP_APPL 470 470 636744 AR:Official Document Number not generated when execut. XX-CSC-AR
VL01N

Support Package
Software Component Version Support Package

SAP_APPL 46B SAPKH46B19

SAP_APPL 470 SAPKH47020

You might also like