Reference Field Is Filled With 0000000000: Symptom
Reference Field Is Filled With 0000000000: Symptom
Reference Field Is Filled With 0000000000: Symptom
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
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
Software Components
Software Component From To And subsequent
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