2010 Feb 23 6:48 AM
Hi,
I have to upload tax classification data in material master for countries DE,IT,FR,ES,CH and GB.
I have used BAPI_MATERIAL_SAVEDATA and passing values to table TAXCLASSIFICATIONS.
But bapi is uploading tax classification only for country DE.
When I am creating through MM02 its getting updated.
Can anybody tell me what is the problem ?
Hi,
I have to upload tax classification data in material master for countries DE,IT,FR,ES,CH and GB.
I have used BAPI_MATERIAL_SAVEDATA and passing values to table TAXCLASSIFICATIONS.
But bapi is uploading tax classification only for country DE.
When I am creating through MM02 its getting updated.
Can anybody tell me what is the problem ?
2010 Feb 23 6:55 AM
I guess you are not filling the below fields in TAXCLASS structure.
DEPCOUNTRY
DEPCOUNTRY_ISO
Regards,
Ganga
2010 Feb 23 6:58 AM
I am passing below fields to table TAXCLASSIFICATIONS.
DEPCOUNTRY
TAX_TYPE_1
TAXCLASS_1
TAX_IND
2010 Feb 23 7:07 AM
You should pass data for different countries to this TAXCLASSIFICATION table. Can you send the code where you are filling this table?
Regards,
Ganga
2010 Feb 23 7:12 AM
Hi Ganga,
Yes I am passing different countries to table .
LOOP AT IT_STAX into WA_STAX.
wa_taxclassifications-depcountry = wa_stax-aland.
wa_taxclassifications-tax_type_1 = wa_tstl-tatyp.
wa_taxclassifications-taxclass_1 = wa_stax-taxm1.
wa_taxclassifications-tax_ind = wa_stax-taxim.
APPEND wa_taxclassifications TO it_taxclassifications.
ENDLOOP.
CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
EXPORTING
headdata = wa_headdata
TABLES
taxclassifications = it_taxclassifications
returnmessages = it_return[].
2010 Feb 23 7:21 AM
It should work then. Are you sure that country name is different for different records in the internal table which you are looping? Also any messages returned by the BAPI?
Regards,
Ganga
2015 Apr 15 9:05 AM
Hi,
I have the same problem.
Someone has solved? how?
Thanks!
Regards,
Ilaria.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |