cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI_MATERIAL_SAVEDATA from .netconnector Please Anybody help--very urgent

Former Member
0 Kudos

Hi ALL,

I am working in windows XP SP2.

I am using SAP.Net Connector 2.0.

I try to update the MM data using the BAPI_MATERIAL_SAVEDATA.

For sample i am changing the Material Text.

My inpts to the Bapi are.

1. Material code

2. Material Text

3. Language(SPRAS)

With the same inputs when i run from Abap , data is updated.

But from .net the return message says it is updated but actually the data is not updated.

I tried the same code in my friends system which is Windows 2000 and SAP.netconnector 2.0. It is working good.

I dont know why it is not working in my system.

Please help me. IT is very urgent.

I am trying it for nearly 3 days.

Note: I tried one more thing.

I wrote one function module inside i called the bapi_material_savedata. After that i wrot the code to get the material text. I exported that material text.

While running from .Net i got the updated material text as return value. but actually it is not updated.

Thanks & Regards,

S.Shankar.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello,

After calling BAPI_MATERIAL_SAVEDATA, you also need to call proxy.CommitWork to explicitly commit the changes made by the method call.

Regards,

Guangwei Li

Answers (0)