Application Development 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: 

Clear a field using BAPI_MATERIAL_SAVEDATA?

Former Member
0 Kudos

Hi gurus,

I am attempting to clear MLAN-TAXIM using the above BAPI.  When I send in a blank space in the field of the taxclassifications data, it says update successful but does not actually do anything.  Is there a trick to clearing using that BAPI?  And if not possible, are there alternate ways to do so?  Trying to avoid using MASS for this.

2 REPLIES 2

Former Member
0 Kudos

Hello Kelby

Taking a look into the BAPI, it seems that you have to passa a "!" to clear the field:

  note 990890: initialize TAXIM for '!' value

       IF tstmm_ueb-taxim = '!'.

         CLEAR tstmm_ueb-taxim.

         tstmm_ueb-kz_init = 'X'.

       ENDIF.


Regards

Luis Becker

JL23
Active Contributor
0 Kudos

Do you have only one tax record for this material?

In an Idoc I need to submit ALL records from table MLAN which belong to that material and sales org.

What other data do you submit together for this change? Maybe it is too less for a successful update of MLAN. Does your BAPI know about the plant?