on 12-19-2013 2:38 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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.
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
User | Count |
---|---|
99 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.