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: 

BAPI_MATERIAL_SAVEDATA

Former Member
0 Kudos

Hi,

I have 2 problems with this bapi.

1.

I am wanting to use this BAPI to simulate creating of a material to test if all the data is correct. I am not calling BAPI_TRANSACTION_COMMIT but the material is still being created.

How do I simulate this BAPI to test the data before actually creating the material.

2.

If I assign profit center to the plant data when calling the BAPI, I get an error message saying profit center does not exist. The profit center is definitely there though as I can add it to a material using MM02.

Thanks

Lindy

1 REPLY 1

former_member188685
Active Contributor
0 Kudos

For the first problem you can call the BAPI BAPI_TRANSACTION_ROLLBACK to roll back the created material for simulation mode.