cancel
Showing results for 
Search instead for 
Did you mean: 

"Tax indicator for material" update

Former Member
0 Kudos

Hi experts,

I have to read and update the field "Tax indicator for material" (MG03STEUMM-TAXIM) in the purchasing view of a material. (see enclosed picture)

I'd like to avoid to update it with a call transaction, I'd rather update it with a bapi (or a function module).

I found the bapi BAPI_MATERIAL_SAVEDATA, which is very interesting and allows to update nearly all fields of a material master... but not the Tax indicator for material....

Do you know any bapi allowing to update this field, or do you have any other idea on how to proceed ?

Thanks for your help !

Philippe

Accepted Solutions (1)

Accepted Solutions (1)

Prasoon
Active Contributor

Hi,

   Please check whether the below note is applicable: 990890 - ALE: No initialization of the purchasing tax indicator:

Regards,

AKPT

Former Member
0 Kudos

Hi,

Thanks for your answer !

I'm sorry but I don't understand how to use the function module "MASTERIDOC_CREATE_MATMAS". The inputs of this FM allow only to write the keys of the material tables, but where should we fill the value of the field "Tax indicator for material" ?

Is it using idocs ? Have you ever used this function module ?

Best regards,

Philippe

JL23
Active Contributor
0 Kudos

This function is used if you distribute materials via ALE in transaction BD10, which creates an MATMAS  IDOC.

This OSS note is only needed if you want empty the tax indicator field.

exchanging value A with B should work right away.

Former Member
0 Kudos

ok, thanks Jürgen. 

Indeed what I want is to update the field, not to empty it.

But it seems to me that it's quite difficult to call this F.M. "MASTERIDOC_CREATE_MATMAS" in my specific program. (use of idocs... )

Do you know any other functions allowing to update the tax indicator field ?

JL23
Active Contributor
0 Kudos

Please check if this note is in your system: 1436218 - ALE: Purchasing tax indicator cannot be changed

as BAPI_MATERIAL_SAVEDATA is supposed to update the tax indicator

Former Member
0 Kudos

This note was very interesting indeed !

Unluckily, it is already in our system.

I think tomorrow I am going to execute the function module BAPI_MATERIAL_DATA in debugging mode to try to understand what is happening....

Thanks for your help !

Answers (1)

Answers (1)

0 Kudos

Hi ,

TRY THIS .

First Update The DEPCOUNTRY field of BAPI_MLAN . Then it will allow you to update TAX INDICATOR FOR MATERIAL in BAPI_MATERIAL_SAVE_DATA .

tax_cls-DEPCOUNTRY = 'IN' .
tax_cls-TAX_IND = '2' .
APPEND tax_cls TO tax_cls_tab .

TAX_CLS IS A WORK AREA TYPE OF BAPI_MLAN AND TAX_CLS_TAB IS A TABLE FOR BAPI .

AlexGourdet
Product and Topic Expert
Product and Topic Expert
0 Kudos

We're glad to have you in the community looking for answers to your questions, but you posted a few questions as an answer in a thread which is a few year old by inactive thread (with former members) from 2014

I want you to get the help you need, but you're unlikely to get any responses this way. Therefore, I'd like to offer some friendly advice:

* Try asking a new question instead at https://answers.sap.com/questions/ask.html.

* Familiarize yourself with https://community.sap.com/resources/questions-and-answers, as it provides tips for preparing questions that draw responses from our members.

* Take our Q&A tutorial at https://developers.sap.com/tutorials/community-qa.html, as that will also help you when preparing questions for the community.

* Complete your profile by following the steps at https://developers.sap.com/tutorials/community-profile.html, as a complete profile encourages readers to respond.

I hope you find this advice useful, and we're happy to have you as part of SAP Community!

All the Best,
-Alex