cancel
Showing results for 
Search instead for 
Did you mean: 

Reporting country: Which factors are leding to the reporting country set in FV60 (and the corresponding bapi) set?

former_member184588
Active Participant
0 Kudos

Hi,

I am creating incoming vendor invoices with the BAPI BAPI_ACC_DOCUMENT_POST. This works really good but there is one thing I don't understand. It is the reporting country. We have the plants abroad scenario and in this way we have to handle with the reporting country.

The point I don't get is the following. I create the vendor invoice for a couple of vendors and everything is fine. The tax codes are in the header and in the line items. But there is one vendor from the same company code and the same country like the other vendors .... but in this case the reporting country is not empty (like it is with the other vendors) ... the reporting country is set to 'DE'. Which is the company code country and the vendors country also. When this is the case the tax codes cannot be filled by the BAPI (and also not within the FV60).

Can someone please explain what the reporting country is depending from? When is it switched automatically? Where can I find good documentation about it? So far I have only read that the reporting country is the company codes country...

Most of the discussions I found in the SCN regarding this topic are not answered. There are no helpful SSO-Notes. Debugging doesn't led to the required knowlege. Comparing the vendor with reporting country DE and other vendors didn't show differences that helped to understand the setting of the field.

Could someone please bring some light into the darkness?

Greetings,

   Vanessa

Accepted Solutions (1)

Accepted Solutions (1)

eduardo_hinojosa
Active Contributor
0 Kudos

Hi

Check SAP Note 306504 - Collective note: BAPIs for the AC interface. Check also the entries in table BSET for this FI document. And, what is the technical name for 'reporting country'?

I hope this helps  you

Regards

Eduardo

former_member184588
Active Participant
0 Kudos

Hello Eduardo,

thanks for your answer. Unfortunately it doesn't help because I have already seen the notes and checked the table for the FI document. The field is LSTML from the T007A. My question is the logic that leds to the reporting country that is set in the document.

Greetings, Vanessa

eduardo_hinojosa
Active Contributor
0 Kudos

Hi

It is related with tax procedure and tax indicator. Go to tcode FTXP for this tax indicator, and check this field (I am sorry, I am doing it with the preview of dynpro SAPMF82T 1101

I hope this helps you

Regards

Eduardo

former_member184588
Active Participant
0 Kudos

Hi Eduardo, thanks. I checked this already but in my opinion this field needs to be set if you need to pay the tax in a country that is different to the country of the company code. We have this with CH. If we sell something in CH in the company code from the main company... we have to use the reporting country. In this way this is not the case for us with the vendor and company code = DE.

But maybe I am wrong.

Greetings

former_member182371
Active Contributor
0 Kudos

Hi,

maybe bapi BAPI_ACC_DOCUMENT_POST is calling funtion module FI_DOCUMENT_POST (have a look at table TRWPR, it´s the TRWIN interface).

Put some break-points in include LFACIFC3:

  499       IF LS_T007A-LSTML NE SPACE.

  500         IF LS_T005-LAND1 NE LS_T007A-LSTML.

  501           SELECT SINGLE * FROM t005 INTO LS_T005

                  WHERE LAND1 = LS_T007A-LSTML.

  504             MESSAGE E871 WITH LS_T007A-LSTML.

Best regards.

eduardo_hinojosa
Active Contributor
0 Kudos

Hi

Yes, you are right, and in my table T007A there aren't entries for this field in any record. So, I am afraid there is a BADI or BTE working. Please, check BADI, enhancements and BTE mentioned in these notes

SAP Note 1281616 - Enhancing BAdI AC_DOCUMENT

SAP Note 487722 - Using EXTENSION1 for accounting BAPIs

Check if the interface for BAPI is populated for EXTENSION1 structure.

Regards

Eduardo

former_member184588
Active Participant
0 Kudos

Hi Pablo,

this looked really promising. Unfortunately he doesn't run through LFACIFC3.

Greetings

former_member182371
Active Contributor
0 Kudos

Hi,

Eduardo´s suggestion seems worth trying too.

break-point within badi ACC_DOCUMENT

Best regards.

former_member184588
Active Participant
0 Kudos

Hi, thanks a lot both of you. The breakpoints in the ACC_DOCUMENT showed that I misconfigured the TAX-customizing. It is solved now. Thank you.

Answers (0)