Could you provide me BADI examples that you have implemented

Hi,
Please write me about what you have done,
not the url's related to badi.
For example you can write the badi name and then what you have done in it.In brief your code.
Thanks.

Here is one :
1) execute Tcode SE18.
2) Specify a definition Name : ZBADI_SPFLI
3) Press create
4) Choose the attribute tab. Specify short desc for badi.. and specify the type :
multiple use.
5) Choose the interface tab
6) Specify interface name: ZIF_EX_BADI_SPFLI and save.
7) Dbl clk on interface name to start class builder . specify a method name (name,
level, desc).
Method level desc
Linese;ection instance methos some desc
8) place the cursor on the method name desc its parameters to define the interface.
Parameter type refe field desc
I_carrid import spfli-carrid some
I_connid import spefi-connid some
9) save , check and activate…adapter class proposed by system is
ZCL_IM_IM_LINESEL is genereated.
IMPLEMENTATION OF BADI DEFINITION
1) EXECUTE tcode se18.choose menuitem create from the implementation menubar.
2) Specify aname for implementation ZIM_LINESEL
3) Specify short desc.
4) Choose interface tab. System proposes a name fo the implementation class.
ZCL_IM_IMLINESEL which is already generarted.
5) Specify short desc for method
6) Dbl clk on method to insert code..(check the code in “AAA”).
7) Save , check and activate the code.
Now write a sample program to use this badi method..
Look for “BBB” sample program.
“AAA”
data : wa_flights type sflight,
it_flights type table of sflight.
format color col_heading.
write:/ 'Flight info of:', i_carrid, i_connid.
format color col_normal.
select * from sflight
into corresponding fields of table it_flights
where carrid = i_carrid
and connid = i_connid.
loop at it_flights into wa_flights.
write:/ wa_flights-fldate,
wa_flights-planetype,
wa_flights-price currency wa_flights-currency,
wa_flights-seatsmax,
wa_flights-seatsocc.
endloop.
“BBB”
*& Report ZBADI_TEST *
REPORT ZBADI_TEST .
tables: spfli.
data: wa_spfli type spfli,
it_spfli type table of spfli with key carrid connid.
*Initialise the object of the interface.
data: exit_ref type ref to ZCL_IM_IM_LINESEL,
exit_ref1 type ref to ZIF_EX_BADISPFLI1.
selection-screen begin of block b1.
select-options: s_carr for spfli-carrid.
selection-screen end of block b1.
start-of-selection.
select * from spfli into corresponding fields of table it_spfli
where carrid in s_carr.
end-of-selection.
loop at it_spfli into wa_spfli.
write:/ wa_spfli-carrid,
wa_spfli-connid,
wa_spfli-cityfrom,
wa_spfli-deptime,
wa_spfli-arrtime.
hide: wa_spfli-carrid, wa_spfli-connid.
endloop.
at line-selection.
check not wa_spfli-carrid is initial.
create object exit_ref.
exit_ref1 = exit_ref.
call method exit_ref1->lineselection
EXPORTING
i_carrid = wa_spfli-carrid
i_connid = wa_spfli-connid.
clear wa_spfli.
Reward if Helpful.

Similar Messages

  • The Web application at could not be found. Verify that you have typed the URL correctly. If the URL should be serving existing content, the system administrator may need to add a new request URL mapping to the intended application

    Hi,
    I have created on windows service to fetch sharepoint list ad update the list items.
    when i run this service in sharepoint server(where the sharepoint site is hosted),it is working fine. If i run the same service in another machine(sharepoint installed in this machine also). it is giving the below error
    The Web application at [URL] could not be found. Verify that you have typed the URL correctly. If the URL should be serving existing content, the system administrator may need to add a new request URL mapping to the intended application.
    Code snippet
    SPSite sharepointSite = null;
                SPWeb rootWeb = null;
                try
                    //SPList current = null, previous = null;
                    string colmId = ConfigurationManager.AppSettings[ID_COLM];
                    List<TaskEntity> list = new List<TaskEntity>();
                    sharepointSite = new SPSite(URL);
                    rootWeb = sharepointSite.OpenWeb();
                    SPList current = rootWeb.Lists[ConfigurationManager.AppSettings[OMEGA_REGISTRATION_LIST]];
                    WriteEventLog("current" + current.Items.Count.ToString());
                catch (Exception ex)
                    ExceptionMethod(ex);
                finally
                    sharepointSite = null;
                    rootWeb = null;
    I have pointed .net framework to 3.5 version and target palform as Any CPU. Please suggest me

    Hi mallela1,
    I also had similar issue couple of months back when I was trying to access a remote URL from a Windows service when the site does not exists in the server where service resides.
    You cannot access a remote url (even though it is SharePoint server and also in same network ) from server object model.
    SPSite can look in the current server only. here what is happening is SPSite will look for this in the current server DB and it is not finding this errror.
    So please dont use ServerObject model for accessing remote sites. You can use Client Object model for the code /requirement you have stated above.
    I wasted lot of time in finding a work around to make to work. It did not. So look for other options.
    Regards,
    Nandini

  • How can you create a contact sheet that you can email?

    I see that you can print a contact sheet but how can you make a contact sheet that you can email where receiver can open the thumbnails and view?

    Hi,
    You can either use Bridge and the Output workspace, or grab optional plug-ins for CS5 and run Ps on OSX in the 32 bit mode. (Or grab the excellent 3rd party script, Contact Sheet X, and run that in Ps. http://ps-scripts.sourceforge.net/ContactSheetX/csx.html).
    Here's a post with links to further info:
    http://blogs.adobe.com/jkost/2011/09/the-contact-sheet-feature.html
    regards,
    steve

  • The FTP server configured for this site doesn't seem to match the URL you entered. Make sure that you use the Upload to FTP Host feature in Muse to publish the site directly to the final location and that you are logging on to In-Browser Editing with the

    When i tried to login in inbrowserediting.adobe.com i see that:
    The FTP server configured for this site doesn't seem to match the URL you entered. Make sure that you use the Upload to FTP Host feature in Muse to publish the site directly to the final location and that you are logging on to In-Browser Editing with the same user.
    What does it mean? What is problem?

    Hi,
    I have just created my First website using Muse and Its all been uploaded to my FTP server but i cant access the in browser editing which was the whole reason why i re-done the website for my client using muse
    its saying the following
    "The FTP server configured for this site doesn't seem to match the URL you entered. Make sure that you use the Upload to FTP Host feature in Muse to publish the site directly to the final location and that you are logging on to In-Browser Editing with the same user. server configured for this site doesn't seem to match the URL you entered. Make sure that you use the Upload to FTP Host feature in Muse to publish the site directly to the final location and that you are logging on to In-Browser Editing with the same user."
    Yet i Can access my website fine "www.calmwood.com.au"
    My ftp server responds to either the IP Address or the DNS Address www.calmwood.com.au
    so i am not understanding how it thinks its different. when its fully referenced
    any help would be appreciated.
    thanks

  • How do you download tones and music that you,ve purchased to your new up grade phone

    how do you downlaod tones and music that you've already purched to your new phone that you just up graded too and if you reported a problem to i tunes what do you do next.
    i've checked the itunes purchase history and before i got the new phone i backed my phone to my computer, so what do i need to do next to recover my lost itune purchases

    Purchases from iTunes should be in the iTunes library on your computer, simply connect the device and sync the content you want.
    If for some silly reason you choose to not use the device as designed, simply go to the iTunes store app on the device and download the content directly there.
    I'd strongly recommend that you take a look at the User's Guide, that will answer many of your questions about how to use the device.

  • HT1212 How do you get into a ipod that you can't remember the passcode

    How do you get into a ipod that you have forgotten the passcode?

    Locked Out, Forgot Lock or Restrictions Passcode, or Need to Restore Your Device: Several Alternative Solutions
    1. iOS- Forgotten passcode or device disabled after entering wrong passcode
    2. iPhone, iPad, iPod touch: Wrong passcode results in red disabled screen
    3. Restoring iPod touch after forgotten passcode
    4. What to Do If You've Forgotten Your iPhone's Passcode
    5. iOS- Understanding passcodes
    6. iTunes 10 for Mac- Update and restore software on iPod, iPhone, or iPad
    Forgotten Restrictions Passcode Help
    You will need to restore your device as New to remove a Restrictions passcode. Go through the normal process to restore your device, but when you see the options to restore as New or from a backup, be sure to choose New.
    Also, see iTunes- Restoring iOS software.

  • HT201302 Are you able to transfer music that you have to the Ipod touch

    Are you able to transfer music that you have to the Ipod touch?

    You need to synce the music from your iTunes library to the iPod. See:
    iTunes: Syncing media content to iOS devices and iPod

  • Hi, can you help?  My emails that I have received show the date received as either today, yesterday or July 28.  How can I get the correct date received?

    Hi, The emails that I have received show the date received as either today, yesterday or July 28.  How can I get the correct date received?

    That's very scary. They might do it, but I personally have never had Apple contact me re id's except on their site when signing in. I suggest you DO NOT respond until you have a phone conversation with Apple security. They can verify if they sent you the e-mail and why.
    While it's very possible it's true,again, I suggest you not respond until you speak to someone at Apple. I've often read here that when people sign in they are not allowed to because "someone else has used the id" type of statement.
    Also, you should be able to go to the app store and see what apps you have downloaded.
    Though it could have been a free app, have you checked to see if any were bought with your id account?
    I've gotten these types of e-mails from places like USPS and FedEx which look amazingly authentic and were from their website. I also received an odd e-mail from my cousin in Ireland last year that clearly was not from him. It was also sent to others in his family in Ireland. I e-mailed him that I only opened it because it had a .ie, but suggested he change... Days later I received mail from 'him' - same name, but at yahoo.com. 
    Again, I would call Apple. You can also report it at [email protected], but I would not settle for that given your situation. If nothing else, call Apple sales (sales depts. anywhere answer fast) and ask them to transfer you to security. Apple will not want anybody accessing their name, and while it's unlikely, it's not impossible that it is someone phishing.
    Hope this helps and can you let the support community know your results by posting on this thread when you're done? Thank you.
    Hope this helps.

  • How do you un check a box that you checked.

    I have an interactive form that had a few check boxes on it where I need to change the check.  I can't delete the check that is in the box, but I can move it to a different field.  But, with some of the boxes I now need to leave them blank.  I really need help on this, please.

    Most check boxes should be able to be checked by clicking on them and unchecked by clicking on them again.
    Some people use check boxes for radio buttons, once one of several are chosen, you can choose another, but are not able to not have a choice, unless the creator of the form gives you a clear button. If they didn't do that you will need to start from a new clean version of the file.

  • To reset using laptop do you use the same cord that you use to charge with USB?

    need to reset Ipad. What cord do I use to connect to laptop?

    Yes, that is the correct cable to use. It's the same one that you use to connect to the charger block.

  • Where do you find a bar code that you scanned in your phone?

    I scanned a bbm code and can't locate it in my phone. Where would I go to find and research the information loaded on this code?
    Newbie to BlackBerry, "dumb founded"!
    Solved!
    Go to Solution.

    If you scanned a QR Barcode, it would have opened up a webpage or whatever the source of the QR code linked to... do you know what kind of bar code you scanned?
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • How do you get access to products that you bought and need to download to a second computer?

    how do you download a second copy of software that you are entitled to?

    What product, version and OS?
    Benjamin

  • Is there something, like the SD card for example, that you can remove from your phone and leave somewhere so that when people are using Find My Friends, they think you're somewhere else?

    It's unavoidable - but I don't like being tracked. Is there a way to make everyone think I'm somewhere when I'm not?

    Delete the Find My Friends app. Don't give anyone your Apple ID password as if they had that, they could use Find My iPhone to track your phone. Don't let social media services (twitter, Facebook, Instagram) have access to your location services.
    If you are on an cell phone account that is controlled by someone else (e.g. parents) note that they may be able to avail themselves of carrier services to track your phone. In order to avoid being tracked that way, you would, as Bonanaza888 noted, you'ld need to put your phone in Airplane mode or turn it off.

  • Error 1923.Service Adobe Acrobat Updater (AdobeARMservice) could not be installed.  Verify that you

    I have tried several times to download and install Adobe Reader and each time it fails and the above is what it says as the cause.  How can I get this loaded?  Does anyone have and idea how to fix the problem.  I was told that this was the expert place to get answers.
    Message was edited by: tjwells44tw

    See if anything in here helps: http://forums.adobe.com/thread/1082587

  • HT1725 Can you re-download a song that you have already paid for??

    I just downloaded a song but when I play it back it stops half way through. I dont know if the internet cut out at that point, but is there any way to get the song back when its already been downloaded??Itunes wont allow you to buy the same song again(annoying!) and as I am not technically savy I could do with some help!Suggestions anyone??

    Downloading past purchases from the App Store, iBookstore, and iTunes Store

Maybe you are looking for

  • DL speed not matching profile (I think)

    I have been with BT for about 3/4yrs now and only ever had one issue during that time which was sorted very swiftly. Now my download speed has always been a constant 1.9mb and I have been happy with that up until I started my new job last week. Long

  • Same disk space after erasing all backup of a folder in TM

    I entered the Time Machine and chose to erase all backups of a very large movies folder. but the disk space is still the same. how can i claim the disk space back ?

  • My computer does not start?

    I turn on my computer mac pro and it does not start...

  • For an SAP enterprise(4.7), how to add java stack during upgrade to ECC6.0?

    Source release:  an R/3 4.7 32bit Target release: ECC6.0 64bit (abap+java) My plan is to go over the following upgrade steps: 4.7 32bit-> ECC abap only 32bit ->ECC abap 64bit -> install java stack. Is this the best way? Thanks a lot!

  • VALIDATION IN RADIO BUTTONS

    Hi every body , Is it possible validate to different radio button groups ? Here is my JSF code : <h:selectOneRadio     id="radio1"       layout="pageDirection"     immediate ="true"     value="#{multiSiteBacking.radio1Value}"     valueChangeListener=