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

Simulation BAPI for BAPI_MATERIAL_SAVEDATA ?

Former Member
0 Likes
1,476

Dear all,

Is there any available BAPI that performs similarly to BAPI_MATERIAL_SAVEDATA, but without actually committing/creating the material? In short, am looking for a test BAPI.

Would actually like to incorporate a test BAPI into the program for data checking/verification first. So its important that it doesn't commit. Apart from that, its mainly to highlight any issues on the data upfront, before actually loading the data.

Kindly advise, thanks in advance.

3 REPLIES 3
Read only

Former Member
0 Likes
648

Hi,

You can call the BAPI BAPI_TRANSACTION_ROLLBACK to roll back the created material for simulation mode. You donu2019t need to commit here.

Regards,

Shamma

Read only

Former Member
0 Likes
648

hai

if u dont use commit the material is not saved

if u use this bapi the material will be created in simulation and if u use bapi_transaction_commit then only it will save else it will not

m.a

Read only

0 Likes
648

Dear both,

the BAPI_MATERIAL_SAVEDATA actually commits the transaction internally. At the moment, manage to create the material master without calling for BAPI_TRANSACTION_COMMIT.

Had called BAPI_TRANSACTION_ROLLBACK, nope it doesn't seem to react to it. Material still gets created.

Any suggestions that i could try on?

Many thanks in advance.

Edited by: Carmen on Aug 24, 2009 9:58 AM