cancel
Showing results for 
Search instead for 
Did you mean: 

the field " reference"of billing header is 00000000,not the billing number?

Former Member
0 Kudos

Dears,

the field " reference"of billing header is 00000000,not the billing number?

I should how to configure in order that the field show the billing number,thanks!

Fanny.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,Nageshwar Madduri .

Sorry, I am a new comer. yes ,the invoice is crearted in china,but what is OSS?

How would I find it?

Fanny

Former Member
0 Kudos

Hi Fanny

OSS is the SAP Online Support System.

For your reference, I am reproducing the conents of the specific OSS note. Please review it with the help of a ABAP person and carry out the necessary changes.

_____________________________________________________________________________

SAP Note No. 328788 04.01.2005 Page 1

________________________________________________________________________

Number 328788

Version 11 from 11.11.2003

Status Released for Customer

Set on 14.11.2003

Language EN

Master language EN

Short text Reference field is filled with 0000000000

Responsible SAP AG

Component XX-CSC-CN

China

________________________________________________________________________

Long text

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!

************************************************************************

Page 2

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

3. Within this section, find the line of code

O_XBLNR = NOT_PRINTED.

and deactivate it (insert a comment character or just delete the

line).

4. In case your company code is located in China, please repeat the

steps described above also for function module

OFF_NUMBER_GLOBAL_NUMBERING.

5. 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 = . . .

b) Correct the value for O_INPUT parameter according to your

requirements (MOD_OFF means input is disabled, MOD_ON means input

is enabled).

Repairs in the Code

________________________________________________________________________

Valid releases

Software Component Release

from to

SAP_APPL SAP Application

470 - 470

46C - 46C

46B - 46B

SAP_BASIS SAP Basis component

46D - 46D

Further components

XX-CSC-CL

Chile

XX-CSC-PE

Peru

________________________________________________________________________

Page 3

Reference to Support Packages

Software Component Release Package name

________________________________________________________________________

SAP Application

46B SAPKH46B19

470 SAPKH47020

________________________________________________________________________

Assigned Correction Instructions

________________________________________________________________________

$$ $$

$ C orrection Inst. 0120031469 0000263377 $

$ Req. Corr. Instructions 0120061532 0000551409 Note 0000571376 $

$ 0120061532 0000551471 Note 0000539442 $

$ 0120061532 0000574294 Note 0000635582 $

$ 0120061532 0000576063 Note 0000636744 $

$ $

$ Valid for : $

$ Software Component SAP_APPL SAP Application $

$ Release 470 To SAPKH47019 $

$$ $$

*& *

*& Object FUNC OFF_NUMBER_GLOBAL_DEFAULTS

*& Object Header FUGR FIN1

*& *

*& FUNCTION OFF_NUMBER_GLOBAL_DEFAULTS

*& *

.. .

o_xblnr = not_printed.

endif.

endcase.

WHEN land1-china.

IF o_fin1_param_ex-xblnr IS INITIAL

*>>>> START OF DELETION <<<<<

AND i_fin1_param-appli = 'V'. "SD Invoices only

*>>>> END OF DELETION <<<<<<<

*>>>> START OF INSERTION <<<<

AND i_fin1_param-appli = 'V' "Only SD Invoices

AND o_fin1_param_ex-offnrel ca 'BC'. "relevant for numbering

*>>>> END OF INSERTION <<<<<<

...

Answers (6)

Answers (6)

Former Member
0 Kudos

Hi,Nageshwar Madduri .,

Many many thanks for your kind help. I will rerearch it whih our abaper.

Fanny.

Former Member
0 Kudos

Hi Fanny

Is the invoice being created for China? If yes, can you pelase refer to OSS Note No. 328788 for the required action?

Former Member
0 Kudos

Hi,Nageshwar Madduri .

Thanks.

I used transaction 'VTFA' to check the corresponding billing type. the reference number field leave blank. and I filled it in 'E' and tested.but the refrence number for the billing still show '0000000000',not billing number.I also find that there only have one item category whose billing' reference number is '000000000', and is it relative to item category?

Fanny.

Former Member
0 Kudos

Hi Fanny

In transaction VTFA (for order related billing) or VTFL (for delivery related billing) check the header details for the required billing document. Here you have a field called "Reference number" - please check what is the value entered here and further, check if the given field is populated or not. If not, then try to populate that field else change the "Reference number" field value selection.

Please let me know if this helps you

Former Member
0 Kudos

Mani Sadasivam ,

Many thanks for your reply!

The field for reference number of billing type leave blank,but the billing' reference field still show '000000000' ,is there other concerned configuration?

Fanny

Former Member
0 Kudos

Hi;

While configuring the Billing type we need to mention what number you would like to see on the accounting document.

In VOFA t.code choosea billing type and you will in the Cancellation segment that there is a field for Reference and Allocation numbers. It is this Reference number that would populate the number in the accounting document header. Pls check if this has been tampered with. If this field is blank then syste automatically proposed the Billing doc number.

Regards,

Mani.