cancel
Showing results for 
Search instead for 
Did you mean: 

How to populate VBRK-STCEG in an invoice (Intrastat trouble)

eduardo_hinojosa
Active Contributor
0 Kudos

Hi all,

When an end user want to do the corretions to the logs on VE01 (Intrastat for sales, we are in Spain), for some invoices after 2 or 3 months. The customizing for the customer at the time of creation of customer the fields for VAT ID are no mandatory. So, in the invoice the field VBRK-STCEG is empty.

Do you know any correction report to populate this field (I don't want use the tool SE16N with &SAP_EDIT option) like the reports of note 429120 'Collective note: correction reports for SD-BIL', and I have been searching exits and BADIs for this requirement, but USEREXIT_FILL_VBRK_VBRP works in the creation of invoice. I am in an IS-R (ECC 5.00). The invoice is an FP (POS interface, so it is created with IDOC WPUUMS).

If anybody know how I can customize VE01 with the purpose that the end-user can populate this field in Intrastat document, the suggestion is wellcomed.

Thanks in advance.

Best Regards,

Eduardo

Accepted Solutions (0)

Answers (1)

Answers (1)

eduardo_hinojosa
Active Contributor
0 Kudos

Hi all,

I have found the solution in other way.

With the enhancement FTGOVSEL, in the exit EXIT_SAPLV50G_002, in the include ZX50GU02, I write this coding:

tables: kna1.

if c_record_intrastat-kundeuinr is initial.

select single * from kna1

where kunnr = c_record_intrastat-kunnr.

if sy-subrc = 0.

c_record_intrastat-kundeuinr = kna1-stceg.

endif.

endif.

Regards,

Eduardo