10-21-2008 1:40 PM
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
10-21-2008 1:49 PM
Hi,
I would suggest using BAPI_MATERIAL_SAVEREPLICA where a TESTRUN parameter exists
10-21-2008 1:49 PM
Hi,
I would suggest using BAPI_MATERIAL_SAVEREPLICA where a TESTRUN parameter exists
10-21-2008 1:49 PM
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
a®
10-21-2008 1:59 PM
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
10-21-2008 2:18 PM
I am using this Bapi in the LSMW. Tell me where to paste calling of function module in the LSMW to rollback any changes.
10-21-2008 2:37 PM
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>
10-21-2008 3:08 PM
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
10-21-2008 2:02 PM
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
10-21-2008 2:16 PM
I am using this Bapi in the LSMW. Tell me where to paste rollback work statement in the LSMW.