Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Uploading TAX Classification data in material master

Former Member
0 Likes
1,657

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 ?

6 REPLIES 6
Read only

Former Member
0 Likes
1,121

I guess you are not filling the below fields in TAXCLASS structure.

DEPCOUNTRY

DEPCOUNTRY_ISO

Regards,

Ganga

Read only

0 Likes
1,121

I am passing below fields to table TAXCLASSIFICATIONS.

DEPCOUNTRY

TAX_TYPE_1

TAXCLASS_1

TAX_IND

Read only

0 Likes
1,121

You should pass data for different countries to this TAXCLASSIFICATION table. Can you send the code where you are filling this table?

Regards,

Ganga

Read only

0 Likes
1,121

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[].

Read only

0 Likes
1,121

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

Read only

Former Member
0 Likes
1,121

Hi,

I have the same problem.

Someone has solved? how?

Thanks!

Regards,

Ilaria.