Run BAPI_MATERIAL_SAVEDATA in Test Mode

Hi ABAPers,
I am trying to run BAPI_MATERIAL_SAVEDATA. When I run, the details are being changed without using 'COMMIT WORK'.
However, if I use ROLLBACK WORK before the end of the program, the database table does not get updated.
Is there any other way I can run BAPI_MATERIAL_SAVEDATA in test mode without updating the Database table?
Help is highly appreciated.
Thanks!

Do not call bapi commit function module in test moode, instead call bapi rollback FM, after u call the material save data bapi
*(or)     *
I understand that you are using the BAPI, but if you were to use LSMW direct input program instead, you would be able to run in TST mode, and make sure that all of the errors are taken care of before you actually update the system.
*******************Reward points,if found useful

Similar Messages

  • Erroneous GP successfully run in test mode.

    Hi,
    We have some GP's which are in erroneous status. The same erroneous GP's gets processed when re-run in the test mode.
    1)Could you please let us know the steps to re-run GP's  in the test mode
    2)Is this something related to framework
    Rgrds,
    Saket

    Hello Saket,
    If a GP process instance goes into error, it is not poissible to rerun it. You must initiate the process again. Please see the following Knowledge Based Article on this:
    #1649701 Guided Procedures Erroneous Process Instances
    Thanks and best regards,
    Carl Connolly
    Senior Support Consultant - Netweaver Web Application Server
    AGS Primary Support, Global Support Centre Ireland
    Guided Procedures trouble shooting guide:
    https://
    www.sdn.sap.com/irj/scn/wiki?path=/display/jstsg/%2528gp%2529home

  • Call transaction in test mode

    Dear Folks!
    Is there a way to do something like a call transaction in test mode?
    What I need is to check the data of the file and return a log of the errors that this file would give if executed in call transaction, before executing it for real in the production environment.
    Thanks in advance for any help.
    Kind Regards,
    Gilberto Li

    Hello Gilberto
    Yes, it <i>is possible</i> to run transaction in test mode using <b>eCATT</b>.
    Here is the procedure for transaction ME21N (please note that this transaction has a "CHECK" button to validate the input data):
    - First I created an eCATT testscript and chose pattern TCD (Record) with transaction ME21N.
    - Within the recorded transaction I only entered the vendor and then pushed the CHECK button (-> popup appears with all messages)
    - Next I cancelled the transaction without saving the purchase order and saved the recording within the testscript
    - Then I surrounded the TCD recording with a MESSAGE...ENDMESSAGE block:
    MESSAGE ( MSG_1 ).
      TCD ( ME21N , ME21N_1 ).
    ENDMESSAGE ( E_MSG_1 ).
    Now if you run the testscript you will see all the messages collected thus far within the recorded transaction in the<b> eCATT log</b>.
    I admit that this approach will not work for all transactions. However, it may be useful for testing many transactions.
    Regards
      Uwe

  • AFAB program strange performance in TEST mode

    Hi colleagues,
    We are experiencing a strange performance in AFAB program.
    We have uploaded several assets in a particular company code. When executing AFAB transaction in TEST mode, the new assets are not considered, whereas, when performing a REAL execution yes they are.
    We think that when reconciliating assets at the end of the year, this issue which is not harmful (but strange indeed) may be solved, but we are not sure at all.
    Can anybody provide a clue on what is happening.
    Thanks and my best regards

    Hi When you run this report online in test it will only show +/- the first 1.000 assets and the new asset are later in the data base and you don't see them.
    You have to run it in test mode in back ground and look in the spool to the result (default the spool shows arround 20 page's but this you can change or go to the next 20 pages)

  • SPAM in test mode does not show modified objects

    I am running SPAM in test mode, and I need to see the objects that have been modified with the modification assistant that are in the patch... how can I see that?
    when I run SPAM in test mode, during the step step RUN_SPAU_? I can see only the number of the objects modified, not the actual object names.

    Run SPAU seperately, are there too many objects that have been modified ?
    Regards,
    Siddhesh

  • Run in test mode call transaction

    I have written a bdc program using call transaction method. I am giving the option in the
    selection screen like run in test mode.so i want to display the error mess
    without actually updating the tables,
    if there is a way to do this
    please tell me how to run in test mode.
    thank you so much for all the replies.

    have written a bdc program using call transaction method. I am giving the option in the
    selection screen like run in test mode.so i want to display the error mess
    without actually updating the tables,
    if there is a way to do this
    please tell me how to run in test mode.
    thank you so much for all the replies.
    Hi
    it is not possible, once u run call tranation the data is updated in table.
    for ur requirement, put the option in test mode in selection screen, in this mode flat file data check with master data (flat file validations
    ) , if any errors it disaly errors in a report.
    i provide some code, this is for fb60 check this code
          FORM validate                                                 *
    FORM validate.
      delete t_record index 1.
      loop at t_record.
        delete t_record where accnt = ' '.
        translate t_record-bukrs to upper case.
        translate t_record-accnt to upper case.
        translate t_record-waers to upper case.
        translate t_record-xblnr to upper case.
        CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
             EXPORTING
                  INPUT  = t_record-accnt
             IMPORTING
                  OUTPUT = t_record-accnt.
        move-corresponding t_record to n_record.
        append n_record.
        clear n_record.
      endloop.
      loop at t_record.
        clear flag.
        delete t_record where accnt = ' '.
    vendor  and company code checking.
        translate t_record-accnt to upper case.
        translate t_record-bukrs to upper case.
        CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
             EXPORTING
                  INPUT  = t_record-accnt
             IMPORTING
                  OUTPUT = t_record-accnt.
        select single * from lfb1 where bukrs = t_record-bukrs
                                      and  lifnr = t_record-accnt.
        if sy-subrc <> 0.
          flag = 'X'.
          error_record-rowno = sy-tabix + 1.
          move-corresponding t_record to error_record.
          error_record-text1 = 'The Vendor not Under this company Code'.
        endif.
    With holding liability.
        select single * from lfbw where bukrs = t_record-bukrs
                                        and  lifnr = t_record-accnt
                                      and  WT_SUBJCT = 'X'.
        if sy-subrc <> 0.
          flag = 'X'.
          error_record-rowno = sy-tabix + 1.
          move-corresponding t_record to error_record.
    error_record-text2 = 'The Vendor doesnt have Withholding Tax Liability'.
        endif.
    G/L account check with company code*
        select single * from skb1 where bukrs = t_record-bukrs
                                      and saknr = t_record-hkont.
        if sy-subrc <> 0.
          flag = 'X'.
          error_record-rowno = sy-tabix + 1.
          move-corresponding t_record to error_record.
        error_record-text3 = 'The G/L acc not under the given company code'.
        endif.
    *cost centre checking
    this FM for leading zeros
        CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
             EXPORTING
                  INPUT  = t_record-kostl
             IMPORTING
                  OUTPUT = v_kostl.
    select single kostl from csks into v_kostl where bukrs = t_record-bukrs
                                             and kostl = v_kostl.
        if sy-subrc <> 0.
          flag = 'X'.
          error_record-rowno = sy-tabix + 1.
          move-corresponding t_record to error_record.
    error_record-text4 = 'The costcentre not under the given company code'.
        endif.
    it check the invioce alredy posted or not.
        translate t_record-waers to upper case.
        translate t_record-xblnr to upper case.
    select single belnr into v_belnr1 from bsip where bukrs = t_record-bukrs
                                              and   lifnr  = t_record-accnt
                                              and   waers  = t_record-waers
                                                  and   bldat  = p_invdat
                                              and   xblnr  = t_record-xblnr.
        if sy-subrc = 0.
          day   =  p_invdat+6(2).
          month =  p_invdat+4(2).
          year  =  p_invdat+0(4).
          concatenate day month year into date1 SEPARATED BY '.'.
          error_record-rowno = sy-tabix + 1.
          move-corresponding t_record to error_record.
    concatenate 'This document under number' v_belnr1 'already posted on '
          date1 into fld2  separated by space.
          error_record-text5 = fld2.
          flag = 'X'.
        endif.
    *zero balance
        on change of t_record-accnt or t_record-xblnr.
          amount = 0.
          totalamount = 0.
          amount = t_record-wrbtr1.
          loop at n_record where bukrs = t_record-bukrs
                               and  accnt = t_record-accnt
                               and xblnr = t_record-xblnr
                               and wrbtr1 = t_record-wrbtr1
                               and waers = t_record-waers.
            totalamount = totalamount  + n_record-wrbtr2.
          endloop.
        endon.
        if amount ne totalamount.
          error_record-rowno = sy-tabix + 1.
          move-corresponding t_record to error_record.
          error_record-text6 = 'Posting only possible with zero balance'.
          flag = 'X'.
        endif.
        if flag = 'X'.
          error_record-flag = 'X'.
          append error_record.
        endif.
        if flag <> 'X'.
          move-corresponding t_record to f_record.
          append f_record.
        endif.
        clear f_record.
        clear error_record.
      endloop.
    endform.
    *&  Form  Table Control
    FORM head_item .
      clear t_record.
      LOOP AT t_record.
        delete t_record where accnt = ' '.
        translate t_record-bukrs to upper case.
        translate t_record-accnt to upper case.
        translate t_record-waers to upper case.
        translate t_record-xblnr to upper case.
        CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
             EXPORTING
                  INPUT  = t_record-accnt
             IMPORTING
                  OUTPUT = t_record-accnt.
        on change of t_record-accnt or t_record-xblnr or t_record-wrbtr1.
          MOVE-CORRESPONDING t_record TO t_head.
          APPEND t_head.
        endon.
        MOVE-CORRESPONDING t_record TO t_item.
        APPEND t_item.
        clear : t_item,t_head.
      ENDLOOP.
    ENDFORM.
    form disperrortestrun.
      loop at error_record.
        format color 2 intensified on.
        set left scroll-boundary column 70.
        write :   /'|',
                 (6) error_record-rowno,         '|' no-gap,
                 (14) error_record-bukrs,        '|' no-gap,
                 (12) error_record-accnt,        '|' no-gap,
                 (16) error_record-xblnr,        '|' no-gap,
                 (16) error_record-wrbtr1,       '|' no-gap,
                 (8)  error_record-waers,        '|' no-gap,
                 (13) error_record-secco,        '|' no-gap,
                 (20) error_record-sgtxt,        '|' no-gap,
                 (14) error_record-hkont,        '|' no-gap,
                 (15) error_record-wrbtr2,       '|' no-gap,
                 (10) error_record-mwskz,        '|' no-gap,
                 (20) error_record-gsber,        '|' no-gap,
                 (12) error_record-kostl,        '|' no-gap,
                 (5)  error_record-flag,         '|' no-gap,
                 (50) error_record-text1,        '|' no-gap,
                 (53) error_record-text2,        '|' no-gap,
                 (50) error_record-text3,        '|' no-gap,
                 (50) error_record-text4,        '|' no-gap,
                 (67) error_record-text5,        '|' no-gap,
                 (45) error_record-text6,        '|'  .
      endloop.
      uline at /1(538).
      format color off.
    endform.
    Report Header for Test Run                                          *
    form header.
      set left scroll-boundary column 70.
      format color 5 .
      write: 'REPORT :', sy-repid,
    38 'ERROR RECORDS DETAILS OF TEST RUN OF FB60(VENDOR INVIOCE POSTING)'
      ,123 'DATE :', sy-datum .
      format color off.
      skip 3.
      format color 1 intensified on.
      uline at 1(538).
      write : /'|',
              (6) 'Row No',                             '|' no-gap,
             (14) 'Company Code',                       '|' no-gap,
             (12) 'Vendor No',                          '|' no-gap,
             (16) 'Reference',                          '|' no-gap,
             (16) 'Invioce Amount',                     '|' no-gap,
             (8) 'Currency',                            '|' no-gap,
             (13) 'Section Code',                       '|' no-gap,
             (20) 'text',                               '|' no-gap,
             (14) 'G/L Account',                        '|' no-gap,
             (15) 'Item Amount',                        '|' no-gap,
             (10) 'Tax Code',                           '|' no-gap,
             (20) 'Business Area',                      '|' no-gap,
             (12) 'Cost Centre',                        '|' no-gap,
             (5)  'Error record Status',                '|' no-gap,
             (50) 'Company Code/Vendor',                '|' no-gap,
             (53) 'Vendor/With holding tax Liability',  '|' no-gap,
             (50) 'Company Code/ G/L Account',          '|' no-gap,
             (50) 'Company Code / Cost Centre',         '|' no-gap,
             (67) 'Invioce Status',                     '|' no-gap,
             (45) 'Invalid Balance',
            '|'.
      uline at /1(538).
      format color off.
    endform.
    thanks
    sitaram.

  • MD01- MRP run in test mode.......

    Hi Expets,
    My client wants to see the Material and quantity going to be generated by MRP run, so how can I run the MD01 in test mode, in order to view which materials are planned and with what quantity PR is going to be generated before MRP run, Same like in the single level planning MD03 with "Display results before they are saved ".
    Regards,
    Sri.....

    Hi Afshad Irani ,
    My question was is there any way to see the test results in PRD only like in MD03 T-Code.Every time we can not copy the PRD to Quality.
    Regards,
    Sri.......

  • Run in test mode the transaction FB01, FB08 and FBR2

    HI,
    I would like to know if its possible to run the transaction fb01,fb08 and fbr2 in test mode.
    thanks

    Hi,
    You can run in simulation mode which is nothing but the test mode in finance. Every posting can be seen in simulation mode before posting the document.
    Regards,
    Sreekanth

  • Running a file in test mode

    hi iam doing a bdc recording in which there is an option to runthe file in test mode i.e if that button is checked then only will the validations will be done and the program should stop executingand save the succesful records at the end of it and should not post even if it doesnot contain ny error.and for the validations display a log file containing the no. of records and details.
    some of the validations are like komg-hland and country of origin of article komg-herkl has to be checked from T005 TABLE.
    The rate unit(currency or percentage)konp-konwa has to be checked from TCURC TABLE.THE CONDITION UNIT KONP-KMEIN HAS TO BE CHECKED FROM T006 TABLE.

    Hi Sushant,
    Just add a Check box in your program and check it by default.
    Perform all the validations expect inserting to the table if the chk param is checked. else insert the value.
    parameter : ip_tstrn as checkbox default 'X'.
      if ip_tstrn ne 'X'.
        perform create_data.
      endif.
    Guess i hav answerd ur q.Is this you have asked ?
    Rgds,
    Jothi.P
    *let me know the outcome.

  • Grey Screen while running a dvd/Sleep Mode

    Hello everyone,
    I have a Mac pro G5 PowerPC running leopard. I recently just did the apple updates on my computer and ever since then when I have a dvd in my computer after awhile I get the grey screen saying that I need to restart my computer. This has happened about 10 times since I did the update a few days ago. When it reboots I get the message saying that my OS X had stopped responding. I go to send the apple report and take a look at what it is sending and it is something about a kernal. I had a co worker recently say that his computer was doing the same thing with the grey screen when it goes into sleep mode. Is this a known issue at the moment?
    When I come home from work and hear my fan running I turn on my monitor and have the grey screen. I thought it was my computer going into sleep mode that was giving me the error however when I rebooted and started my computer a couple hours later. In the middle of watching a dvd I suddenly got the grey screen. The same thing happened while watching a movie last night.
    About 2 months ago I bought a new hard drive for my computer and used a program called SuperDuper to make an exact copy of my hard drive onto this new one. I then swapped the new hard drive in my computer. It has been running fine until I just installed the OSX updates.
    I don't know if it is coincidence that when I am running a dvd that the grey screen appears since I have done the updates or that doing the OSX update has somehow made my OSX go bonkers.
    Also is it possible since I installed the OSX on this new hard drive via this program and not from a disc that is the possible reason when I did updates that my computer's osx freaks out. If so why does it wait about an hour or so of being used to suddenly stop working?....
    My other thought could be that my dvd drive is going bad and needs replacing and why would that make my OSX crash?.... if that is the case what dvd drive should I buy and install?
    Sorry I don't know much about computers and all this stuff but these are just some of the things I thought might be happening and I just don't know enough about computer to say "yes that is why this would be happening"
    Thank you everyone,
    I look forward to your responses

    Hi bessera;
    You are suffering from kernel panics. These are generally caused by a hardware problem, most of the time bad RAM. I would suggest use the install media for you Mac and running Apple Hardware Test using the direction written on the DVD.
    Allan

  • How do I run Apple Hardware Test on a 2012 MacBook Air with 10.8.4?

    Hello everyone,
    I am trying to run Apple Hardware Test on a mid-2012 MacBook Air with 10.8.4 installed. Whenever I restart and hold the letter D my computer goes into internet recovery mode and asks me to connect to Wifi... Please help, thanks!

    Using Apple Hardware Test on computers with OS X 10.7 or later
    Mac NoteBook and Desktop computers shipping with OS X 10.7 or later have a partition on the hard drive or flash storage that contains AHT. To start AHT on these computers please follow these instructions:
    Press the power button to turn on your computer.
    Press and hold the D key before the gray startup screen appears.
    It takes a minute or so for AHT to start up and inspect your hardware configuration. While this is taking place, an icon appears on the screen:
    When the process is complete, select your language and click the right arrow. If you aren't using a mouse, you can use the up and down arrows to select a language and then press the Return key.
    The AHT console appears. You can choose which sort of test or tests to perform:
    To perform all of the basic tests, click the Test button or press the "T" key or the Return key.
    To perform a more thorough diagnostic test, select the "Perform extended testing" checkbox under the Test button before you click the Test button.
    Note: Your test results will appear in the window in the bottom-right of the console.To exit AHT, click Restart or Shut Down at the bottom of the window.
    Some Macintosh computers that shipped with OS X Lion and later support the use of Apple Hardware Test over the Internet. These computers will start up to an Internet-based version of AHT if the hard drive does not contain AHT.  An Internet-enabled connection via Ethernet or Wi-Fi is required to use this feature. Internet-based AHT functions the same as AHT on the hard drive or flash storage outlined above.
    The Mac NoteBook and Desktop computers listed in Computers that can be upgraded to use OS X Internet Recovery will require a firmware in order to support the Internet version of AHT. Without this update you may see the behavior discussed in this article.
    http://support.apple.com/kb/HT1509

  • Error when running netca in silent mode

    I found a type-o in Oracle's documentation for running netca in silent mode. See link:
    http://download-west.oracle.com/docs/html/B10811_05/app_nonint.htm#BABJFJID
    There is a line that reads:
    $ORACLE_HOME/bin/netca /silent /responsefile=/local_dir/netca.rsp
    However, it should read:
    $ORACLE_HOME/bin/netca /silent /responsefile /local_dir/netca.rsp
    Hope this saves you all lots of headaches!
    --Julie Johnson

    user8909477 wrote:
    i am running netca command in linuxGreat. But WHICH Linux???? Surprisingly it makes a difference. Just like asking to talk to a person, and specifying by family name, you might get the mother, the father, the son - and each might give a different response.
    >
    in /u01/oracle/TEST/db/tech_st/11.1.0/network/admin
    i am going to TCPs litener with port 2484.
    following error is appeared
    so please Guide me to solve this problem.
    Oracle Net Services Configuration:
    Xlib: connection to ":0.0" refused by server
    Xlib: No protocol specified
    Are you logging on as root? Are you SU'ing to Oracle or trying to run as riit?
    Try logging out - all the way out. Don't stop there, you need to log ALL the way out.
    And then log in as user Oracle.
    Logging in as root causes all sorts of headaches. Only SU to root, and then only when you absolutely need it.
    Now that you have logged out of root, and logged in (not just su'd) to oracle, what happens??

  • Attempt to load Oracle client libraries threw BadImageFormatException. This problem will occur when running in 64 bit mode with the 32 bit Oracle client components installed.

    Hello guys,
                Problem has been solved -
    Attempt to load Oracle client libraries threw BadImageFormatException. This problem will occur when running in 64 bit mode with the 32 bit Oracle client components installed.
    1. If you install 64 bit oracle this is not an issue. Install 64 bit oracle.
    2. Download odp.net 32 bit  from below link:-
        ODP.NET Managed Driver Beta Download&lt;/title&gt;&lt;meta name=&quot;Title&quot; content=&quot;ODP.NET Managed Driver B…
    3. installed the odp.net.
    4. open the visual studio 2010.
    5.Select new - project - asp.net web application - project name -ok
    6.select tools- > connect to database- then follow the following steps
                             i>  user name - your user name/client username (example -- hr)
                             ii> password -- enter your password/client password  (example- hr)
                            iii>select connection type -- if you want to connect client database then- select EZ connect other wise select tns
                            iv>test the connection- then you will get connection succeed.
                            v> then click ok
    Thanks
    Chandrashekhar

    You do not need to do anything in VS.  You do need to configure both tnsnames.ora files, because the drivers do not share any data.
    Please see:
    http://sqlblog.com/blogs/jorg_klein/archive/2011/06/09/ssis-connect-to-oracle-on-a-64-bit-machine.aspx

  • WDA - Application in Test Mode is displayed in Disabled mode

    Hi,
    I have developed a component in SE80 and created an Application. Now if I run the same component in Test mode, It is displaying the page and elements(Ex: Input Fields & Buttons) in Non-Editable mode.  Is there any setting for the same. Please help me in this case.
    Thanks.
    Sekhar.J

    In version 10.7.4 the screen background of the fullscreen is the same login background. I like. I used the Loginox 1.0.6b5.

  • Client export in Test mode

    Hi
    Is it possible to export a client in Test mode in Basis 700 release?
    Thanks for any pointers,
    Abdul

    Hi,
    There is test run option available for remote & local client copy...in which you can find out without actually doing the client copy, how much space & time would be required...Also we can check this through 'respurce check' option also...
    But in client export there is no such option to do test run...
    Thanks & Regards,
    Kunal Patel.

Maybe you are looking for