Skip to Content
author's profile photo Former Member
Former Member

BAPI_MATERIAL_SAVEDATA

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    Posted on Oct 21, 2008 at 12:49 PM

    Hi,

    I would suggest using BAPI_MATERIAL_SAVEREPLICA where a TESTRUN parameter exists

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 21, 2008 at 12: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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 21, 2008 at 12: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

    Add a comment
    10|10000 characters needed characters exceeded

    • 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

  • author's profile photo Former Member
    Former Member
    Posted on Oct 21, 2008 at 01: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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.