Updating inside badi

Hello.
Prompt, please, who collided: inside of a method badi would like to make updating of data in the table of the dictionary. Updating I confirm (commit work and wait), but it does not occur. Whether is what or feature for updating inside badi? In advance thanks, Anton.

Hi,
you should never issue COMMIT from within the BADI, because the calling transaction will do the COMMIT at thge right time after completion of all critical updates.
Note: Your COMMIT will commit everything to the database, not only your database updates.
If you do update/insert, this takes effect inside the LUW immediately but can not be ssen from outside before the transaction commits all pending database requests.
If you can't see your data in the database after the transaction is completed successfully, you either never updated the database or you tried to modify a SAP standard table which is later accessed (and modified) by the tranaction.
If you want to modify SAP standard data, find a BADI with internal tables in the interface. Modify the internal tables and let the transaction write them to the database. Update/Insert should be done only for Z-tables.
Regards,
Clemens

Similar Messages

  • Reg : BDC issue while updating infotype 40 inside BADI class method

    Hi Friends,
         Actually in my badi class, there is a method where i need to save the infotype fields including comment fields.. So with BDC recording i recorded screen fields and passing the pernr internal table values to recorded pernr values.. by doing this im getting error and so BDC is not upadting the data.. moreover if i pass directly pernr number within single quotes, BDC is working fine and data is getting updated..
    bdc_field        'RP50G-PERNR'   pernr.  --> Error Message while calling transaction through BDC
    bdc_field        'RP50G-PERNR'   '00001234'  ---> updating successfully..
    1. Tell me whether the issue is with BADI or wat ? means we cant able to use BDC inside badi ?
    2. I also tried changing my internal table value of pernr to type 'C' of length 8.. eventhough its showing error..
    Please tell me what i need to do .... ?

    Hi  Dilek Ersoz Adak ,
      I also tried with that, but getting same error..  Below is my error im getting while updating BDC through call transaction,
    1     PA30     SAPMP50A     1000     E     K     PBAS_SERVICE     001     HRADMIN     EPPRELE 00000121     HRAdministrator          CTU     RP50G-PERNR
              Person is treated already by the HR Administrator

  • Problem while installing the software update inside eclipse

    Hi Widget Experts,
    I am facing an error while installing the software updates inside <b>Eclipse</b>,
    I downloaded the <b>SAP widgets development tool.zip</b> from <b>SDN</b> and exactly followed the instructions given in
    <b>SAP widgets development user guide</b>, but while installing the software update following the path( help->software updates-> find and install->
    search for new features to install -> new archived site )  the select local site achieve gets opened, and i try to open <b>SAP widgets development tools.zip,</b>
    at this point i get a message saying "<b>Selected Achieve does not contain an update site please select another achieve</b>".
    Please help.....
    Regards,
    Santosh.

    Fixed my problem.
    Here is the folder structure of current zip file:
    SAP Widget Development Tools - zip file.zip
       -  SAP Widget Development Tools
           --  features
           --  plugins
           --  site.xml
    The features folder, plugins folder, and site.xml file need to be the only thing in the zip file.
    The new folder structure that works looks like this:
    SAP Widget Development Tools - zip file.zip
        -  features
        -  plugins
        -  site.xml

  • Execution of BAPI inside BADI

    Good day Gurus,
    I implemented  BAPI_RE_CN_CREATE inside a BADI.
    The syntax that I use is CALL FUNCTION BAPI_RE_CN_CREATE IN BACKGROUND TASK. I used "IN BACKGROUND TASK" because without that, the function keeps on looping. After adding the command, the BAPI works. Here is my question, how can I retrieve immediately the contract number that the BAPI created? I hope you can help me.
    Thanks in advance.
    Elly

    Hi Kesav,
    We put the BADI in AFTER_SAVE Method. The code is like this......
    if sy-ucomm = 'TRANS_NEXT'.
      CALL FUNCTION BAPI_RE_CN_CREATE
         importing
    endif.
    When the the system reach at CALL FUNCTION part, it does'nt execute it and it jumps back to "IF" condition part. We look for solution in the forum and someone suggest to put "IN BACKGROUND TASK" and we didi that. It works actually. But after excuting the CALL FUNCTION and search the contract that was save in VICNCN table, it was not updated yet.
    OUr scenario is that we want to know what is the contract number being created after the CALL FUNCTION module because we have another requirement that we will use that field after creating the contract.
    Elly

  • Unable to display information message written inside badi

    Hi All,
    In customer creation i want to display Info message after pessing save button. I have written the message inside the badi. I can see my message in debugging mode in status bar, which on debugging mode off can't able to see. I tried with more than 25 scenarios got from SDN forum as well as suggested by someone.
    Please reply if u have implemented sucessfully the same kind of reqirement.
    Thanks in advance.

    Hi Keshav,
    I wrote message inside the method preset sale area of badi customer_add_data.
    The message ls "Message 'some text'  type 'I' "
    In debugging mode when the cursor reaches to my message then as soon as i press F5, this message get displayed in the status bar and with one more F5 it disappears.
    So like this i wrote that the message appears only in fraction of second that when without debugging mode i process the transaction it doesn't appears and i can't see this.
    Thanks.

  • Coding inside badi bom_exit

    hi friends
    thanks in advance.
    in se19 i need to implement that badi for that help me in coding.
    this is the badi for making field alterations in screen 100 for CS02 transaction in ecc 5.0
    now the thing is , i need to make the field aennr(change number inside the effectivity block as mandatory field) so please help me out in coding this , as i am new to badi.
    with regards
    S.Janagar

    Janagar
    Create the Implementation for BADI BOM_EXIT. Add following code to the Interface START_SCREEN_CHECK in the Implementation:
      IF i_rc29n-aennr IS INITIAL.
        MESSAGE e208(00) WITH 'Change number is Mandatory'.
      ENDIF.
    Thanks
    Amol Lohade

  • Header line problem inside BADI method

    Hi all,
    I have to use a function CLAF_CLASSIFICTION_OF_OBJECTS'
    inside a BADI called BATCH_Master.
    Now the thing is that the data which I have to read gets fetched in one of the tables of function module.
    Following CODE works fine if <b>I am not using BADI.</b>
    Data: P_CLASS like SCLASS occurs 0 with header line,
    P_OBJECTDATA like CLOBJDAT occurs 0 with header line.
    Call Function 'CLaff_Classification_OF OBjects'
    TABLES
    T_CLASS = P_Class
    T_OBJECTDATA = P_OBJECTDATA.
    LOOP AT P_OBJECTDATA.
    WRITE: / P_OBJECTDATA-AUSP1.
    ENDLOOP.
    <b>But if I am use BADI then I can't use header line.</b>
    Data:
    P_Class TYPE STANDARD TABLE OF SCLASS initial size 0,
    P_Objectdata TYPE STANDARD TABLE OF CLOBJDAT initial size 0.
    Now I can't print the values of P_Objectdata because I am not using header line since I am using BADI.
    How can I print P_Objectdata because I can't use header line in BADI while declaring any table (Due to OO Concept) ?

    > Hi all,
    > I have to use a function
    > CLAF_CLASSIFICTION_OF_OBJECTS'
    > inside a BADI called BATCH_Master.
    > Now the thing is that the data which I have to read
    > gets fetched in one of the tables of function
    > module.
    >
    > Following CODE works fine if <b>I am not using
    > BADI.</b>
    >
    > Data: P_CLASS like SCLASS occurs 0 with header line,
    > P_OBJECTDATA like CLOBJDAT occurs 0 with header
    > line.
    >
    > *
    > *
    > Call Function 'CLaff_Classification_OF OBjects'
    > *
    > *
    > TABLES
    > T_CLASS = P_Class
    > T_OBJECTDATA = P_OBJECTDATA.
    > *
    > *
    >
    > LOOP AT P_OBJECTDATA.
    > WRITE: / P_OBJECTDATA-AUSP1.
    > ENDLOOP.
    >
    > <b>But if I am use BADI then I can't use header
    > line.</b>
    > Data:
    > P_Class TYPE STANDARD TABLE OF SCLASS initial size 0,
    >
    > P_Objectdata TYPE STANDARD TABLE OF CLOBJDAT initial
    > size 0.
    >
    > Now I can't print the values of P_Objectdata because
    > I am not using header line since I am using BADI.
    >
    > How can I print P_Objectdata because I can't use
    > header line in BADI while declaring any table (Due to
    > OO Concept) ?
    If you declare your table without header line, make sure that the internal table is passed to a function call with the brackets
    Call Function 'CLaff_Classification_OF OBjects'
    TABLES
    T_OBJECTDATA = itab[].
    >
    Also you need a workarea for your loop.
    loop at itab into wa.
    endloop.
    Hope this helps
    Christian

  • Why do my edits/changes to files outside of Lightroom not update inside Lightroom?

    I'm using version L1.4.1 on a Mac and have noticed that if I bring in a RAW file (either CR2 or DNG) to Lightroom, but then have to make edits/changes to it in a program outside of Lightroom, say Photoshop CS3 (RAW reader) later, it won't update the file and its new changes inside Lightroom unless I were to 'remove' the file from the library altogether and reimport it. With jpgs however, they update will be made, why is that and is there a way to do it?

    Did you notice lrdata file in your catalog folder? The lrdata file holds previews of your images – but not the original images.
    When you work with images in Lightroom: change levels, apply templates, etc – all of them run very quickly, and are completely reversible. You can go back in the process because LR DIDN'T CHANGE original files itself. Instead it stores them into lrcat and lrdata files.
    LR uses these files to show you previews you see when browsing the catalog. As long as LR doesn't know the file has changed, it shows you an older preview.
    As far as I remember, you can use the Library - Previews menu item to force LR to rebuild previews from updated files you upload.

  • Want update so bad. Stressed out :( Please help!

    Hey guys. So I got this iPod 4G in the mid of summer, and my uncle helped me set it up. He also set up a thing called iCloud. Well a couple weeks ago, I got a notification saying that my iPod was able to get the iOS 6 update, but I needed at least 2.4GB for it to update. Can't get ahold of uncle, nd I've deleted all my apps and turned off the iCloud, for it said it took up 5.0GB. My iPod again is a 4G with an 8G and is NOT jail broken and im trying to get the iOS 6 update  My stepbrother who has the same iPod got the update just fine and so did a friend. Does anyone know what's going on or how I can get the update?

    As the message stated, to update to iOS via wif you need 2.4 GB available. I
    When you went to iCloud you just turned it off, it does not free up any storage on your iPod.
    You need to delete more media.
    Also try:
    - Reset the iPod. Nothing will be lost
    Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    To help free up staored of items you deleted.

  • Autofocus and touch focus on 3G 2megapixel camera update needed badly

    Well after seeing the new specs of the 3GS, tho the camera is better. i would have still liked to have seen something good for the camera on the 3G model of which i recently brought, only to find the new iphones sudden release. Tho i love my 3G i was feeling a bit disheartened by the new model. But as i feel people who own a 3G would like to see some kind of Camera update and possible video option update on the 3G, as im very sure the 3G can handle the software.
    So if you support this idea, please, lets get Apples attention and let them know we would love to see some camera function improvment on the 3G.
    i would go as far to pay even a small fee for the update if that was the case.

    well yup i had a feeling about that. but what would be nice is some kind of new functions at least. just a pity ya cant buy the camera parts n do it yaself lol
    but i cant help thinking that the lens in the 3G has already got the capability of a lens in it. and apple aint telling us jack **** bout it.
    aint there some kind of natural focus on lens? as im not all cracked up on camera stuff, lol. i just know how to take piccys.lol. a bit think of me to say, but hey thats why the forums are here.
    must be some fantastic app to get, but god knows which is best

  • Updating a badly out-of-date browser

    Not sure where else to post this. Recently acquired an old G4 with OS X 10.1 on it, and need to update the woefully out-of-date browser, Internet Explorer 5.1.2 for Mac. It's so obsolete I can't even download Firefox through it. The drop-down from Tools does not offer an update function, and I couldn't find one elsewhere. Can anyone offer any help?

    Try the appropriate version of iCab.  icab.de
    try this link for icab  your are looking for iCab305_OSX.sit:
    ftp://ftp.tu-clausthal.de/pub/Mac/iCab/
    requires osx 10.1.5
    Opera
    http://www.opera.com/browser/download/requirements/
    http://www.opera.com/download/
    You can download the file on any machine & copy to the mac.  Do not try to unpack on windows.  flash drive shold work fine.  format for fat32 / dos.
    The current version of firefox will not run on this os.  You are going to have to find an older version.  Firefox folks make it hard to find the library with archive software.  It's around.
    Mac OS 9
    Perhaps this runs in x. Classilla is a free, open source browser for Mac OS 9
    classilla.org
    Robert

  • IOS 8.1 Update Gone Bad

    Hi all. I have an iPhone 4S and I have returned from France. As soon as I got back my phone wanted to update so I just done it without thinking. I've never had a problem till now. Right so the phone seems to have rebooted in DFU and I have a whole load of pictures from France I need of the unit. When I plug my phone into iTunes I get two options. 1 Recover iPhone or 2 Update. If I update will it keep my phone as it was?
    Any help would be great.
    Thanks

    Some security software prevents your iPhone 5 from communicating with either the Apple update server or with your iPhone 5. Thus, please read: Resolve issues between iTunes and security software
    If nothing is wrong with security software, you can try some recovery tool, like Dr.Fone for iOS to get your iPhone 5 back to normal. Install the tool on your computer and connect your iPhone 5 to computer. If Dr.fone detects that your iPhone 5 is in abnormal mode, click the Restart the device  button on the window of Dr.Fone. Then, your iPhone 5 will be back to normal.
    Besides Dr.Fone can scan all data on your iPhone 5 and save them to your computer. or,after your iPhone 5 becomes normal, you can also use iTunes or iCloud to backup data .

  • Lightroom Update gone bad

    Yesterday I upgraded to LR 5.4, and ever since I"m getting the message that says Lightroom encountered an error when reading from its preview cache and needs to quit. Lightroom will attempt to fix this problem the next time it launches. I found a similar question in this forum, and the answer was to delete the previews files -- which I have done, but I am still getting the same error message.   Rebooting hasn't helped either.   HELP!  I'm pretty much dead in the water until I get this fixed,.

    I found the folders called Lightroom 5 Catalog Previews.lrdata and Lightroom 2 Catalog Previews.lrdata inside of my lightroom folder (which was inside of my pictures folder)  and deleted them and all of their contents.  (It scared me to remove so much info, so first I copied them onto a separate external drive just in case.)    Could there be another folder that I'm missing?

  • Is it possible to update inside of an already existing .xml file?

    I have a problem where I had to write an implementation of stack and make it read files and find errors inside the files. The only problem I am having is being able to then go into the file and fix the problem. Any chance anyone could help me out?
    Thanks

    allieyooo wrote:
    That would be great if my professor did not care about performance but that is half of our grade.So write something; test it for correctness; and then performance test it (and document the results)... If it's not upto scratch then think about "How can I speed this up".
    Performance still isn't a primary design motivation.
    I'll bet that "half the marks" are primarily aimed at adequately metricating (and documenting) performance (which can be very tricky)... and secondarily; introducing you profiling your application and redesigning & tweaking to achieve the required performance.
    What performance requirements have you got? And how big (in bytes) is the data-file? Any statement of acceptable test-beds?. Any stated limitations on the design you can use to achieve it? Resource limitations? You know; that sort of stuff.
    Can you post a more complete description of the assignment... or better a URL I can download the assignment package from. It sounds like an interesting exercise.
    Cheers. Keith.
    Edited by: corlettk on 23/04/2009 15:23 ~~ Ooops!

  • An app update is bad. can i restore ?

    hi, a develper issued an update which renders the app unloadable. (iphone 4s) . can i restore the app from a previous version ?
    there is no support option to contact the developer, but i gather, i may have to wait until the developer is aware of the problem ?
    i understand that 'restores' only restore data and not apps..
    steve

    If you have the previous copy of the app somewhere, e.g. on your computer's iTunes or on a backup drive, then you can delete the current version of the app from your iPad (which will also delete all content and settings from the app) and then sync the previous version back to your iPad - only the current version of each app is available in the store, so you won't be able to download the previous version.

Maybe you are looking for

  • Set PF-STATUS and use SY-UCOMM in an Exit FM

    Hi, I am working on an Exit function, and I am trying to read the screen status and then the user's actions, so that I could code for the SY-UCOMM. For some reason, my program is not working. Is it possible to add the PF-STATUS and SY-UCOMM to the Ex

  • How to disable "this document is trying to print. do you want to allow this" message

    We use Adobe Reader to automatically print documents in a web application. The users are not very happy having to click twice to get the document to print.

  • 'DNG-back-to-X' or 'reverse conversion'. Do you think it's needed ?

    I'm sure this has been discussed before, but I still need to speak my mind I believe a "reverse DNG converter" is not a convenience but a necessity. I've come to the conclussion, from what I've observed since I use DNG myself, that having this conver

  • I keep getting an Installer failed to initalize error

    I am trying to install the trial version of Adobe CS 6 and I keep getting this error: "Installer failed to initialize. Please download Adobe Support to detect the problem". I did that and the Adobe Support Advisor says there are no problems. I tried

  • Wily Introscope on PI production

    Hello experts, Don't know if this is the right subforum, please redirect me if this isn't the case. We have been experiencing some memory issues on a productive PI server. I've been able to narrow down the cause to the Wily agent heartbeat, consuming