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 want to use BAPI_MATERIAL_SAVEDATA functional module

to create new material master data in the system. Is there any parameter

in this functional mudule responsible for launching in test mode ?

Edited by: Marat on Oct 21, 2008 2:41 PM

1 ACCEPTED SOLUTION

former_member183994
Active Participant
0 Kudos

Hi,

I would suggest using BAPI_MATERIAL_SAVEREPLICA where a TESTRUN parameter exists

8 REPLIES 8

former_member183994
Active Participant
0 Kudos

Hi,

I would suggest using BAPI_MATERIAL_SAVEREPLICA where a TESTRUN parameter exists

former_member194669
Active Contributor
0 Kudos

There is no parameter for test mode in this fm.

May be u can try with by not passing COMMIT WORK . If you are not getting any return messages back, then it is considered as sucessfull in NON commit mode

former_member188685
Active Contributor
0 Kudos

if it is a test mode you can call the BAPI_TRANSACTION_ROLLBACK after validating or checking the message. if it normal mode then call the function BAPI_TRANSACTION_COMMIT

0 Kudos

I am using this Bapi in the LSMW. Tell me where to paste calling of function module in the LSMW to rollback any changes.

0 Kudos

There are also you can write the code, but how you will inform the system it is test mode or Normal mode. in the first post you didn't even mention it is for LSMW, now you are telling it is for LSMW>

0 Kudos

If you are using LSMW, then certainly you have to use BAPI method, Business object BUS1001006 and method SAVEREPLICA in order to define test mode or not. This corresponds to function module BAPI_MATERIAL_SAVEREPLICA and it's the most recent BAPI to upload materials

If it is not registered, you can register it yourself with transaction SXDA/Goto/DX Program library/Standard material

Edited by: Harris Veziris on Oct 21, 2008 4:09 PM

RoySayak
Active Participant
0 Kudos

Hi Marat,

After using BAPI_MATERIAL_SAVEDATA dont use COMMIT WORK it successfully update your database, you can use it with out committing it.

Best Regards,

Sayak

Former Member
0 Kudos

I am using this Bapi in the LSMW. Tell me where to paste rollback work statement in the LSMW.