cancel
Showing results for 
Search instead for 
Did you mean: 

VAT Ledger Czech 2016: Section A4 -> How to get invoice number instead of delivery note

Former Member
0 Kudos

Dear experts,

for VAT Ledger Czech 2016 and Section A4 invoice number is mandatory instead of delivery note (Default) SAP message: By default, the Czech VAT Ledger report expects the invoice number to be stored on the FI document in the field Reference (BKPF-XBLNR) for all the sections of the VAT Ledger return. If you do not want to export field Reference as the invoice number, you can implement method GET_INVNUMBER (Get Invoice Number) of BAdI IDFIVAT_APP_BADI and use your own algorithm do determine required invoice number from other data (BELNR, BKTXT, etc.) - please see SAP Note 2193486 - FAQ /regular update/ for Legal Change Is there anybody of you wo already did that kind of implementation and who is able to provide me the ABAP coding?

Thanks in advance.

BR, Bernd

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Just simple coding in the BADI:

IF_IDFIVAT_APP_BADI~GET_INVNUMBER

In case of some special document types we use the document number = belnr as reference:

IF ( is_fi_header-blart = 'DR' OR

        is_fi_header-blart = 'DG' or

        is_fi_header-blart = 'DZ').

       cv_invnumber = is_fi_header-belnr.

     ENDIF.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello Bernd,

working on the same issue. If you find any solution please share it.

Apart from that, were you able to understand/fulfill all the other requirements?

Kind regards,

Former Member
0 Kudos

Hi Benjamin,

we got Information for BAdI implementations from SAP Support:

Dear customer, Section A4 - missing invoice number: By default, the Czech VAT Ledger report expects the invoice number to be stored on the FI document in the field Reference (BKPF-XBLNR) for all the sections of the VAT Ledger return. If you do not want to export field Reference as the invoice number, you can implement method GET_INVNUMBER (Get Invoice Number) of BAdI IDFIVAT_APP_BADI and use your own algorithm do determine required invoice number from other data (BELNR, BKTXT, etc.) - please see SAP Note 2193486 - FAQ /regular update/ for Legal Change CZ VAT Ledger Statement for 2016 and its attachment CZ_VAT_Ledger_BAdI_Examples_v1.docx with the examples showing how this BAdI method can be used.

If you are familiar with BAdI implementations it won't be a challenge to implement your own BAdI. Otherwise contact a well experienced developer to assist you.

Hopefully my reply is helpful.

BR, Bernd

Former Member
0 Kudos

Thanks, I did not see the word-doc attached. That helped a lot.

Regards