Badi help need .. new to badi

Hi ,
In ECC 6.0 , Im creating custom badi 'zbadi' in se18 . Interface name : zbadi_inf ,
impl class : zbadi_imp,
method name : test ,
variable is var type vbak-vbelnr which is exporting .
In program I m calling this badi
my code is :
class cl_exithandler definition load. "Declaration
data exit type ref to Zbadi_inF. "Interface reference
DATA VAR TYPE MARA-MATNR VALUE 'SUNRISE'.
start-of-selection.
call method cl_exithandler=>get_instance "Factory method call
EXporting "Method
exit_name = u2019ZBADIu2019
changing instance = exit.
write:/'Please click here'.
at line-selection.
write:/ 'Original word: ',VAR.
if not exit is initial.
call method exit->TEST "Add-In call
IMPORTING
VAR = VAR.
endif.
write:/ 'Original word: ',VAR.
The program is giving dump . Please tell me why is it giving dump .Im very new to BADIs .
The excpetion raised is
RAISE data_incons_in_exit_managem.
I have just given a varible var which is exporting parameter in the method test in interface.
I have activated all the interface and implemenations .

HI.
where are the badis and interface and classes getting stored .
goto the table seoclass.
pass class type as '0' for class
and '1' for interface.
Implementing BADI
The use of object orientated code within SAP has lead to new method of enhancing standard SAP code called
Business Add-Ins or BADI's for short. Although the implementation concept is based on classes, methods and
inheritance you do not really have to understand this fully to implement a BADI. Simply think of methods
as a function module with the same import and export parameters and follow the simple instructions below.
Steps:
1. Execute Business Add-In(BADI) transaction SE18
2. Enter BADI name i.e. HRPBSGB_HESA_NISR and press the display
button
3. Select menu option Implementation->Create
4. Give implementation a name such as Z_HRPBSGB_HESA_NISR
5. You can now make any changes you require to the BADI within this
implementation, for example choose the Interface tab
6. Double click on the method you want to change, you can now enter
any code you require.
7. Please note to find out what import and export parameters a
method has got return the original BADI definition
(i.e. HRPBSGB_HESA_NISR) and double click on the method name
for example within HRPBSGB_HESA_NISR contract is a method
8. When changes have been made activate the implementation
http://esnips.com/doc/10016c34-55a7-4b13-8f5f-bf720422d265/BADIs.pdf
http://esnips.com/doc/e06e4171-29df-462f-b857-54fac19a9d8e/ppt-on-badis.ppt
http://esnips.com/doc/43a58f51-5d92-4213-913a-de05e9faac0d/Business-Addin.doc
http://esnips.com/doc/1e10392e-64d8-4181-b2a5-5f04d8f87839/badi.doc
http://esnips.com/doc/365d4c4d-9fcb-4189-85fd-866b7bf25257/customer-exits--badi.zip
http://esnips.com/doc/3b7bbc09-c095-45a0-9e89-91f2f86ee8e9/BADI-Introduction.ppt
Regards.
Kiran Sure

Similar Messages

  • Urgent help needed - new to Macs, accidently cut and paste over top of photo folder and now no sign of folder or file, no auto back-up in place, how can I restore photos pls

    Urgent help needed - new to Macs, accidently cut and paste over top of photo folder and now no sign of folder or file, no auto back-up in place, how can I restore photos pls

    Thanks for prompt reply, yes we have tried that but have now closed down the browser we where the photos were.
    We haven't sent up time machine, do you know whether there is any roll-back function on a Mac?
    Thanks

  • BADI help needed

    Hi ,
    In ECC 6.0 , Im creating custom badi  'zbadi' in se18 . Interface name : zbadi_inf ,
                                                                impl class : zbadi_imp,
                                                                method name : test ,
                                                                variable is  var type mara-matnr which is exporting .
    In program I m calling this badi
    my code is :
    class cl_exithandler definition load.                 "Declaration
    data exit type ref to Zbadi_inF.       "Interface reference
    DATA VAR TYPE MARA-MATNR VALUE 'SUNRISE'.
    start-of-selection.
      call method cl_exithandler=>get_instance      "Factory method call
            EXporting                                             "Method
               exit_name              = u2019ZBADIu2019
            changing instance = exit.
      write:/'Please click here'.
    at line-selection.
      write:/ 'Original word: ',VAR.
      if not exit is initial.
        call method exit->TEST                   "Add-In call
              IMPORTING
                VAR = VAR.
      endif.
      write:/ 'Original word: ',VAR.
    The program is giving dump . Please tell me why is it giving dump .Im very new to BADIs .
    Thanks .

    HI ,
    The excpetion raised is
    RAISE data_incons_in_exit_managem.
    I have just given  a varible var which is exporting parameter.
    I have activated all the interface and implemenations .
    Please see the code also
    class cl_exithandler definition load.                 "Declaration
    data exit type ref to Zbadi_inF1.       "Interface reference
    DATA VAR TYPE vbak-vbeln VALUE 'SUNRISE'.
    start-of-selection.
      call method cl_exithandler=>get_instance      "Factory method call
           EXporting                                             "Method
              exit_name              = u2019ZBADIu2019
             null instance accepted = u2019Xu2019
            changing instance = exit.
      write:/'Please click here'.
    at line-selection.
      write:/ 'Original word: ',VAR.
      if not exit is initial.
        call method exit->TEST                   "Add-In call
              IMPORTING
                VAR = VAR.
      endif.
      write:/ 'Original word: ',VAR.

  • Help needs on ADDRESS_UPDATE BAdi.

    Hi All,
                 I need to work in ADDRESS_UPDATE BAdi. Could Pleaze any respond and provide some valuable inputs to complete following requirement.
    Validates Zip code and Transportation Zone in LZONE against Zcustom table. If not found Zip code in the Zcustom table. need to raise Error message and stop to save.
    Regards,
    K.Vinai
    Helpul answers will surely rewarded.

    Hello Reddy
    The BAdI ADDRESS_UPDATE will not be of much help to you because neither method allows you to raise an exception or has some kind of "error message" flag.
    However, I guess that the BAdI <b>ADDRESS_CHECK</b> is the one you should go for, in particular its method <b>ADDRESS_POSTAL_CHECK</b>. Errors in the address are obviously returned in CHANGING parameter CH_T_ERROR_TABLE.
    Regards
      Uwe

  • Help needed with dramatical bad performanc​e of gauge controls

    This VI causes the problems
    With kind regards
    Martin Kunze
    With kind regards
    Martin Kunze
    KDI Digital Instrumentation.com
    e-mail: [email protected]
    Tel: +49 (0)441 9490852
    Attachments:
    Page 1_3D_1.vi ‏235 KB

    Martin, listen to CC, the main problem really is overlapping objects (text and digital displays)! The LabVIEW application without overlapping object is 500x faster than yours (See attached, LabVIEW 7.1). I get loop times of below 1ms (>1KHz!) versus your original version with 400-500ms, so LabVIEW can beat your C application by 10x IF you avoid overlapping objects.
    (I am using an ancient 1GHz PIII laptop, so the loop times on a modern computer will be much faster)
    I agree with Aaron that your property nodes contribute to the problem. After deleting all unecessary property node terminals (they never change!), the only bad one is the constantly variable color scale of the oil pressure. Is this even meaningful to the user? This property write alone costs a few tens of ms(!) so it might be reasonale to either get rid of it completely or update it at a lower rate (In the attached example it happens every 100 iterations, modify as needed (LAbVIEW 7.1)).
    If you go back to 200ms loop times, my version will only use a few % of cpu.
    Note also that you can do your entire color ramp with 4 elements, six is overkill and just complicates things. I would also get rid of the blinking, it's just too ugly. Use a Red LED to indicate the special condition.
    Yes, the performance hit with overlapping objects is surprising, but I am sure there is a good reason and we win elsewhere. It has been my experience that most aspects of LabVIEW are highly optimized under typical conditions (IF properly used!).Message Edited by altenbach on 05-09-2005 01:53 AM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    Page03faster.vi ‏194 KB

  • HELP NEEDED: new ipod touch not working

    i just got an ipod touch for christmas
    i previosly had and ipod nano and so allready had itunes with music and pictures on.
    i plugged the ipod into the usb on the back of my laptop.
    a camera pop up appeared which i closed.
    my ipod touch is fully charged now.
    itunes is not recognising and it is not anywhere on the menu.
    the ipod touch itself will only show what i have been told is a register screen (wire pointing towards itunes logo)
    on "my computer" the ipod is only appearing under scanners and cameras
    please help as i just recieved it

    Hello and Welcome to Apple Discussions. 
    You need to download and install the latest version of iTunes:
    http://www.apple.com/itunes/download/
    Ambie12, You should probably start a new thread for your issue if downloading iTunes 7.5 doesn't help.
    Coolmaxx, have a read of this article:
    http://docs.info.apple.com/article.html?artnum=93716
    mrtotes

  • I am badly in need of the BAD TV Plug In.

    So I have final cut express 4, and I have the fx plugins and smoothcam plugins in place. The BAD TV plugin STILL won't show up! I heard that it's probably because my computer is pretty old, but still, isn't there a way around it. It seems silly to me that all these other effects work EXCEPT BAD TV. If you can help me find a way around this, I'd greatly appreciate it!

    Sorry, I should've looked more closely.  Sounds like an installation issue - you should remove all components of the program using the free FCS Remover and then reinstall, updating to the current version (FCE4.0.1).

  • IPhone 5s and iTunes Help Needed - NEW PC

    Hi, I got the iPhone 5s back in October (1st ever Apple product) and transfered my music and photos onto it via iTunes.
    What I need help with is as my laptop is in for repair (complete system restore) can I download  iTunes on mums laptop and put a few songs and pics on my iPhone WITHOUT clearing the  curent files and leaving me without nothing on it.
    Thanks
    James

    Use these instructions to open the library from its location on the external hard drive...
    How to open an alternate iTunes Library file or create a new one
    http://docs.info.apple.com/article.html?artnum=304447
    This assumes that everything needed for an iTunes library is on the external hard drive which includes the data base files that contain the info you are concerned about (playlists, counts, ratings, etc.).
    Patrick

  • Help needed - new to Blackberry and not very techy - calendar problems

    I love my new Blackberry Curve 9300 BUT tried to synchronise Google calendar to Blackberry calendar.  For some dates I have 100s of duplicated entries and they are recurring to infinity it seems.  Have tried everything but seems the only solution is to completely clear the calendar but unable to find out from anywhere how to do this.  I tried via desktop but states that it is read only data and so can't be deleted.  I need to delete 6000 entries LOL
    Help! Can someone just give me a phone number as have searched internet for help and no solution to problem.  Calendar completely useless now and feel like throwing it out of the window...and then stamping on it 6000 times (as many times as there are erroneous entries on my calendar!!!)
    PLEASE PLEASE PLEASE IS THERE SOMEONE I CAN PHONE WHO WILL TALK ME THROUGH THIS

    Hello 123tracye and welcome to the BlackBerry® Support Community Forums.
    Sorry to hear you are having Calendar sync issues with your BlackBerry® Curve™ 9300 smartphone.
    You can call your mobile network carrier for walkthrouh assistance with this request and if needed, they can transfer you to Research In Motion® .
    If you want to try and resolve this yourself, in your Calendar go to Menu>Options and click on your Gmail® account and clear the check from Wireless Synchronization. 
    You can then clear the Calendar database on your BlackBerry as shown in KB10167 How to clear the user content databases from the BlackBerry smartphone
    Hope this answers your question.
    -HMthePirate
    Come follow your BlackBerry Technical Team on twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.Click Solution? for posts that have solved your issue(s)!

  • IWeb help needed - new user

    "Publisher" documents have converted to iWeb documents but won't open. I'm a new Mac user so need some help :-)

    What application was used to create the .pub files?  If there's no Mac equivalent that can open and use them just select one of the files, type Command+i to bring up the Info window, go to the Open with menu and select "TextEdit".  Then click on the Apply to all button.  This unlinks iWeb from those .pub files so when you double click on one of them iWeb won't try to open.
    If you have a Mac application that can be used to open and use those .pub files then select it in the Open with: menu.
    There is no Mac application that can open the .pub (Microsoft Publisher) files.  However, this site, eHOW, has a link to a web site that can convert those .pub file to PDF files which you can open on a Mac with Preview (included).  The link is Create PDF from Word & Other Formats.  You can give it a try.
    OT

  • Help needed, new pc stopped booting properly after 2 days msi p67a-g45

    Hi I need help quick, I recently built a new pc and all was going well sofar but now it wont boot up properly, it keeps resetting before the boot post tests and the times it does go through to the tests the internal speaker does 2 beeps, waits a second, 2 more beeps, waits a second, 3 quick beeps and then finally after another second 1 final loud beep.  Also when I'm running my memory test (doing atm, I think it crashed though) the lights on my keyboard are continusly flickering.
    Any help would be greatful
    My specs:
    Intel i5 2500k (not overclocked)
    8GB ram
    650w corsair power supply (had this for a few years and worked fine sofar)
    msi gtx 570 oc
    msi p67a-g45 motherboard
    crucial m4 64gb ssd
    2*1tb samsung hardrives

    Ok I just tried messing around with the computer it seems that the 2 sets of 3 quick beeps are for the number of usb devices Ive got attached to the computer, their is still 2 normal beeps before the 1 loud beep so I'm not sure what they mean as I tried replacing all the parts and it seems to do the same beeps.
    Quote from: Bernhard on 11-May-11, 11:12:09
    Have you tried with only one memory module on the board ?
    yep just tried that, they both seem to pass seperatly and together as they make no changes to the number of beeps, the ram should of also been 100% tested by mushkin in the factory so I dont think they may be the problem
    Quote from: Bernhard on 11-May-11, 11:12:09
    What is a few years, and under what usage pattern and load ? PSUs don't last forever. Suggest you also test with a known good PSU of similar output to determine if there is a potential PSU problem.
    Ive had the psu for around 2 years and it coped with me setting the computer to run on a full load test with 3dmarks and prime95 for a few hours along with me having a normal gaming session on it. I cant test the computer with any other psu's atm as I got none spair to use.
    Hopefully it was just the cmos being corrupted as resetting that seems to have fixed it, but it annoying not knowing what them 2 beeps are before the loud beep (which I guess is the all ok beep) is though.

  • Help needed - New PC with all Songs and library on External Hard Drive

    I hope someone can help me - I have just bought a new PC and have downloaded iTunes. All my songs are on an external hard drive, which I know how to get them on to iTunes - but I want to keep the playcounts and playlists that are also stored on the HD - I have tried looking for the answer to this, but cannot seem to find it anywhere. Thanks to anyone who can help.

    Use these instructions to open the library from its location on the external hard drive...
    How to open an alternate iTunes Library file or create a new one
    http://docs.info.apple.com/article.html?artnum=304447
    This assumes that everything needed for an iTunes library is on the external hard drive which includes the data base files that contain the info you are concerned about (playlists, counts, ratings, etc.).
    Patrick

  • Help Need New Driver For MG2100 Where Is It?

    I am having a hard time finding the driver for Canon Printer all in one the MG2100 series where is that can not find it please help also when I needed to print out my homegroup setup with password I get a error and it wont print help please ty 
    Error Code is 2147500037 

    Hi CynthiaAvey,
    Thanks for your reply!  We suspect you may have the PIXMA MG2120 printer, which often appears with the the phasing "2100 Series" on the manual and packaging.  However, the official model number can be found on the unit itself, typically on or near the control panel.  If the PIXMA MG2120 is indeed your printer, you can download the driver from the following page: 
    http://usa.canon.com/cusa/consumer/products/printers_multifunction/photo_all_in_one_inkjet_printers/...
    However, if you do have a different printer, or the link above did not allow your PIXMA MG2120 to continue printing, please visit the link below for further assistance.  Thanks so much! 
    http://www.usa.canon.com/cusa/consumer/standard_display/contact_us_consumer
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

  • Help needed (New to Interactive form Integration for PDF)

    hi all,
    I am new to this intractive form integration.
    I just want to know from where i can get the basic infomration about my current setup that i have and if there is a need to upgrade then from where i can get the installables.
    1 How can i see my current installation is running on which support pack?
    2 Where i can get the Adobe life cycle disigner I mean it comes with some NWS version or you have to buy seperately if so then from where and what does it cost
    3 From where i can get the Installable to install the ACF on my machine ? Is it also cost something or freely available.

    1. With your Java stack running, call the Engine homepage at http://<server>:<port>/index.html, and click on System Information. (You can also go there directly: http://<server>:<port>/sap/monitoring/SystemInfo.)
    The information is on the top right under Software Components. You can also use the link All components to get more details, i.e. the ADS version.
    2. Go to the SAP Service Marketplace at http://service.sap.com/download and search for 'Designer'. Choose version 7.1 if you're higher than NW 2004s SPS5, otherwise take 7.0.
    3. All ACF information is in SAP Note 766191.
    Cheers,
    Markus Meisl
    SAP NetWeaver Product Management

  • Help needed, new to java programming

    hi,
    I have craeted a Frame with some check boxes and button called "button1".
    Can anyone tell me how can i count the number of CHECKED check boxes so that when i press the button1 in my code it should display the result as number of checked check boxes divided by total number of check boxes. It should display the result in a textfield here RESULT textfield in my code
    Thanks in advance ...i am sending the code i have written so far....
    public class Frame extends java.awt.Frame {
        /** Creates new form Frame */
        public Frame() {
            initComponents();
            setSize(600, 600);
        /** This method is called from within the constructor to
         * initialize the form.
         * WARNING: Do NOT modify this code. The content of this method is
         * always regenerated by the Form Editor.
        private void initComponents() {
            buttonGroup1 = new javax.swing.ButtonGroup();
            checkbox1 = new java.awt.Checkbox();
            checkbox2 = new java.awt.Checkbox();
            checkbox3 = new java.awt.Checkbox();
            button1 = new java.awt.Button();
            textField1 = new java.awt.TextField();
            setLayout(null);
            addWindowListener(new java.awt.event.WindowAdapter() {
                public void windowClosing(java.awt.event.WindowEvent evt) {
                    exitForm(evt);
            checkbox1.setLabel("checkbox1");
            add(checkbox1);
            checkbox1.setBounds(160, 50, 84, 20);
            checkbox2.setLabel("checkbox2");
            add(checkbox2);
            checkbox2.setBounds(160, 70, 84, 20);
            checkbox3.setLabel("checkbox3");
            add(checkbox3);
            checkbox3.setBounds(160, 90, 84, 20);
            button1.setLabel("button1");
            button1.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    button1ActionPerformed(evt);
            add(button1);
            button1.setBounds(150, 180, 57, 24);
            textField1.setText("Result");
            textField1.setName("Result");
            add(textField1);
            textField1.setBounds(260, 180, 44, 20);
            pack();
        private void button1ActionPerformed(java.awt.event.ActionEvent evt) {
            // Add your handling code here:
        /** Exit the Application */
        private void exitForm(java.awt.event.WindowEvent evt) {
            System.exit(0);
         * @param args the command line arguments
        public static void main(String args[]) {
            new Frame().show();
        // Variables declaration - do not modify
        private java.awt.Button button1;
        private javax.swing.ButtonGroup buttonGroup1;
        private java.awt.Checkbox checkbox1;
        private java.awt.Checkbox checkbox2;
        private java.awt.Checkbox checkbox3;
        private java.awt.TextField textField1;
        // End of variables declaration
    }

    Two problems in the code you repost-ed:
    1. It lacks import statements.
    2. There is an extraneous } at the end of the button1ActionPerformed method.
    Correct them and it'll work fine. Posting the full source code:
    import java.awt.Component;
    import java.awt.Checkbox;
    public class Frame extends java.awt.Frame
         /** Creates new form Frame */
         public Frame()
              initComponents();
          * This method is called from within the constructor to initialize the form.
          * WARNING: Do NOT modify this code. The content of this method is always
          * regenerated by the Form Editor.
         private void initComponents()
              checkbox1 = new java.awt.Checkbox();
              checkbox2 = new java.awt.Checkbox();
              checkbox3 = new java.awt.Checkbox();
              button1 = new java.awt.Button();
              textField1 = new java.awt.TextField();
              setLayout( null );
              addWindowListener( new java.awt.event.WindowAdapter()
                   public void windowClosing( java.awt.event.WindowEvent evt )
                        exitForm( evt );
              checkbox1.setLabel( "checkbox1" );
              add( checkbox1 );
              checkbox1.setBounds( 120, 40, 84, 20 );
              checkbox2.setLabel( "checkbox2" );
              add( checkbox2 );
              checkbox2.setBounds( 120, 60, 84, 20 );
              checkbox3.setLabel( "checkbox3" );
              add( checkbox3 );
              checkbox3.setBounds( 120, 80, 84, 20 );
              button1.setLabel( "button1" );
              button1.addActionListener( new java.awt.event.ActionListener()
                   public void actionPerformed( java.awt.event.ActionEvent evt )
                        button1ActionPerformed( evt );
              add( button1 );
              button1.setBounds( 50, 170, 57, 24 );
              textField1.setText( "textField1" );
              add( textField1 );
              textField1.setBounds( 240, 170, 60, 20 );
              pack();
         private void button1ActionPerformed( java.awt.event.ActionEvent evt )
              // Add your handling code here:
              Component[] components = getComponents();
              int numOfCheckBoxes = 0;
              int numChecked = 0;
              for ( int i = 0; i < components.length; i++ )
                   if ( components[i] instanceof Checkbox )
                        numOfCheckBoxes++;
                        Checkbox checkBox = (Checkbox) components;
                        if ( checkBox.getState() )
                             numChecked++;
              double ratio = (double) numChecked / (double) numOfCheckBoxes;
              textField1.setText( Double.toString( ratio ) );
         /** Exit the Application */
         private void exitForm( java.awt.event.WindowEvent evt )
              System.exit( 0 );
         * @param args the command line arguments
         public static void main( String args[] )
              new Frame().show();
         // Variables declaration - do not modify
         private java.awt.Button button1;
         private java.awt.Checkbox checkbox1;
         private java.awt.Checkbox checkbox2;
         private java.awt.Checkbox checkbox3;
         private java.awt.TextField textField1;
         // End of variables declaration
    I can see from the code that the GUI was generated by a tool. Since you're new to Java programming, I'd recommend ditching the tool and writing everything by hand, otherwise you're not learning much. It's just like when you're learning proofs in Maths, where you start with first principles before making use of the proofs on their own.
    Also, it'll help tremendously if you could spend some time going through the Java Tutorial (http://java.sun.com/docs/books/tutorial/). It's free, and I find it very useful.
    Hth.

Maybe you are looking for

  • Filenames getting truncated in Save for Web AppleScript

    Hey all, running CS4 on an Apple Macbook Pro (using OS X 10.5.6). I am creating an AppleScript that saves out a number of files with different filenames using save for web. The problem is that Photoshop CS4 is truncating the filename, and using a sho

  • Can't create pdfs from applications nor from distiller

    (Mac 10.5, Acrobat Professional 8.1) Problem description: From Firefox, Word, TextEdit: File > Print Choose Adobe PDF 8.0 from the the printer list Choose file destination in dialog box that appears Printer icon appears in dock, then pauses. Click on

  • ITunes does not sync with iOS5 iTouch

    After I updated my iPod Touch to iOS 5, and simultaneously iTunes to version 10.5, they have not synced. When I connect the iPod to my Windows 7 PC, iTunes opens, recognizes the identity of my iPod, and begins to sync, saying "Syncing iPod (Step 1 of

  • T.code MIR6: before posting an invoice, could I simulate document posting?

    Hi All, with reference to t.code MIR6, I wonder if SAP allow me to simulate the document before posting it? I can't see the button ... Thanks Gandalf

  • Problems with selecting multiple checkboxes

    Hi! I'm very new to Javascript and am trying to navigate my way through adding some to a PDF document.  I have a document with groups of checkboxes, like Fiber Total Dietary Fiber Soluble Dietary Fiber Insoluble Dietary Fiber Pectins So if Fiber is s