Calling the javascript  FM and R/3 FM in BSP page

HiExperts ,
I want to know how can I use the javascript code and  function modules(R/3) in bsp ., please let me know how can i call the function modules and javascript in my bsp page,
Please provide me a sample piece of code for calling the javascript function module and r/3 function moduless.
Thx in advance,
Kiran

Hi,
These are 2 very different things.
Function modules are called on the server-side in the BSP controller or event-processing... No fancy thing here, this is only ABAP.
Javascript is used on the client side and called from the view of your BSP. You can write Javascript code directly in a BSP view or use MIME repository to store your .js files
In advanced aspects, you can use Javascript to call server using AJAX but you should get familiar with the basic aspects first.
/people/sap.user72/blog/2005/08/15/ajax-and-htmlb--a-sample-bsp-application
/people/salil.patel/blog/2008/07/27/chat-application-using-bsp-and-ajax
/people/renald.wittwer/blog/2007/05/07/bsp-htmlb-tree-view-with-ajax
Best regards,
Guillaume

Similar Messages

  • But in ipad page there is no ipad 3 and ipad 4 ithink that ipad3 is that wahat you call the ipad 2 and the ipad 4 is the ipad 3 right

    but in ipad page there is no ipad 3 and ipad 4 ithink that ipad3 is that what you call the ipad 2 and the ipad 4 is the ipad 3 right

    iPad 3 vs iPad 4
    http://www.digitaltrends.com/mobile/ipad-3-vs-ipad-4/

  • I was gave an Apple iPod Touch that was disabled and I called the Apple Store and they emailed me what to do and I plugged my iPod up to the PC and now it's saying that the iPod is unable to be recognized and I don't know what to do now

    I was gave an Apple iPod Touch that was disabled and I called the Apple store and they emailed me how to fix it but now when i plug it up to the PC it's saying that the iPod is unable to be recognized and I don't know what to do?

    Not sure if this helps:-
    The music files, were they bought from your iTunes account or did someone gift them to you after buying from the iTunes account? If they are yours you can download them again if you clear or de-authorise the ipod, it has to be done by whoever gave you the ipod to do this (the registered  owner). If they were bought for you on another itunes account I don't think Apple let you use them as they are copyrighted and they don't belong to you, they belong to the person who bought them. If the music files where ripped from music cd's then click and drag them to a new folder on your desktop and have the person who gave you the ipod to de-authorise and unregister it. Then you re register it and put your files back from your desktop folder in your iTunes folder and synch. Hopefully that would work.  Any files which you did not buy, I would not know how get around this, best bet is to take it to you nearest Apple  Store and explain that they were gifted to you and ask how you can use them.  The best way to gift music files is to buy the gift tokens and give these. Hope above helps.

  • My phone says I have a voicemail message.  I go to voicemail tap the message and hear nothing.  I called the person back and they said they left a message.  How do I hear it?

    My phone says I have a voicemail message.  I go to voicemail tap the message and hear nothing.  I called the person back and they said they left a message.  How do I hear it?

    Running out of ideas, several more things you could try are:
    Force-closing the Phone app by double-tapping the home button from the home screen, locating Phone in the list at the bottom, tap and hold it until it wiggles, tap to close it, tap the home button again.
    Resetting your phone by holding the on/off and home buttons at the same time until you see the Apple logo (ignoring the off slider that appears first), then release.
    Restore your phone, first using your backup and if that fails, as new.

  • How to call the css file and its images from our application......

    hai,
    Im uploading a .css file and some images in Apex shared components ,now how to call the css file and images from my Application.... plz tell me detailed.....
    Edited by: anoo on Nov 3, 2008 12:51 AM

    Hi Anoo,
    Sorry, didn't see that you'd started a new thread, so have answered this in 'undefined' is null (or) not an object "
    Andy

  • I called the apple support and did reset my password still my apple if has been disabled on my phone.

    Help me I have called the apple support and they told me to reset my password which I did and when I go to my iPhone i try to update some of my apps and it says my apple id has been disabled.

    See your other post...
    https://discussions.apple.com/message/19943002#19943002

  • I've installed the new safari and it didnt load any web pages

    i've installed the new safari and it didnt load any web pages  and i dont knw wut to do thank and pleas help as quick as possible

    Hello,
    Could be many things, we should start with this...
    "Try Disk Utility
    1. Insert the Mac OS X Install disc, then restart the computer while holding the C key.
    2. When your computer finishes starting up from the disc, choose Disk Utility from the Installer menu. (In Mac OS X 10.4 or later, you must select your language first.)
    Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Disk Utility.
    3. Click the First Aid tab.
    4. Select your Mac OS X volume.
    5. Click Repair. Disk Utility checks and repairs the disk."
    http://docs.info.apple.com/article.html?artnum=106214
    Then try a Safe Boot, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, reboot when it completes.
    (Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive.)
    Let us know after that what happens.

  • HT5037 I followed the above instructions and after I choose the library I want to upgrade and hit continue it wants to open my iPhoto to convert, when I click yes it just gives me the original message and sends me back to this page. Am I missing something

    I am trying to get photos off of my airport time capsule back up onto my new macbook pro. I followed the above instructions and after I choose the library I want to upgrade and hit continue it wants to open my iPhoto to convert, when I click yes it just gives me the original message and sends me back to this page. Am I missing something?

    Is your Time Capsule being used for your TimeMachine back up? Or is it simply being used as an external hard drive?
    To use a TimeMachine back up you must first restore it
    LN

  • Where to call the javascript function

    Hi,
    I am using JSF and ADF.
    I have a javascript function called by the body onload.
    The javascript is to set the first the first column of a table fixed.
    But when I click the next page link which is generated by defaut,
    the function from the javascript disappears.
    Can I call a javascript function when pressing the next page link which is
    generated by default ?
    Thanks.
    Ivan

    Hi Frank,
    My javascript function is to make the first column of the table fixed which
    is something like the function in the Excel.
    The function is called by body onload.
    But when the 'next page' link is clicked, it will not refresh the whole page.
    The above cannot be called.
    So I wanna add it during the action of pressing the link.
    any alternatives ?
    Ivan

  • How to call the javascript through Command prompt?

    I need to call the .js file through command prompt. And also through programming language like c++, java. Could you please advice me with samples.This is for "illustrator cs".

    You can also look into use of COM scripting interface to the Adobe programs. Unfortunately, this means you have to do some programming/scripting to create a (command line) script that you can execute like
    cscript C:\somePath\myScriptLauncher.vbs  C:\somePath\anAdobeScript.jsx
    or
    cscript C:\somePath\myScriptLauncher.js  C:\somePath\anAdobeScript.jsx
    the scripts can be written in VBScript (*.vbs) or Microsoft JScript (*.js) which can access COM objects thus the Adobe program's COM APIs.
    Nothing purely simple as a command line option in this solution. But it does offer customization as an advantage.
    This might be a slightly useful reference.
    http://stackoverflow.com/questions/3846626/is-it-possible-to-execute-jsx-scripts-from-outs ide-extendscript
    there's one post mentioning COM in there.
    And of course, you can also use COM through C++, Java, C#, Visual Basic, etc. as well, not restricted to VBScript and JScript, though I've found it's easier to use the latter two for COM.

  • How to call the javascript file through sdk?

    I created a plugin through SDK. Now i need to call my javascript file in that plugin code(c++). Could you please advice me with some samples. This is for "Illustrator CS".
    Thanks,
    Prabudass

    I haven't the foggiest idea, except to perhaps suggest firing a script by using the AIActionManager::PlayAction command. That's assuming you can 'action' the use of a script though. If you can, it should be possible that way, if not, I have no idea.

  • How to call the javascript  through sdk?

    I created a plugin through SDK. Now i need to call my javascript file in that plugin. Could you please advice me with some samples. This is for "Photoshop CS". Kindly help me.

    Could you please provide me an example for
    1) plugin could call JavaScript is if an automation plugin calls a script by name.
    2) And also give an example for how to call plugin through javascript.
    I am new for adobe sdk. So kindly help me.
    Thanks in advance,
    Prabudass

  • I just got the Ipod nano about 3 weeks ago. It worked great up untill today. It would not turn on, or connect to my computer. I called the apple company, and the said it was defaulted, and to send it in and they would replace it. Will I get a new one?

    I just got the ipod nano about 3 weeks ago. It worked great up untill today. It would not turn on, or connect into my computer. I took it back to best buy and they said it had a defulted battery, and that I needed to call the company. So I did and they had me send it in. Will they send me a new ipod, or a refurbished one. I havn't even had the ipod long enough, and I paid good money for it. I'm hoping to get a new one, because it wasn't my fault.

    Try:
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try on another computer          
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar       
    Apple will exchange your iPod for a refurbished one for $199 for 64 GB one and $99 for the other 4Gs. They do not fix yours. The cracked screen voids any warranty you had on the iPod.
      Apple - iPod Repair price                                             

  • Found an iPad mini in a parking lot; would love to return it to the owner. Called the local police and they said there is very little that they could do. Suggestions?

    Found and iPad mini in a parking lot; would love to return it to the owner. I called the local police; they said there was very little they could do. suggestions?

    Leave it turned on, and (if possible) connected to the Internet. The owner may try to find it using Find my iPad.
    Also, make a note of the serial number off the back, then advertise it as found, and make sure anyone claiming it can tell you the correct serial number.

  • My mom just replace a iPod touch because the power button broke so she took it to the apple store and they replaced it when she got it it didn't work well so she called the apple store and they didn't do anything

    My mom just got a iPod touch and it won't work well

    She should go back to the Apple Store and set up a genius Bar appointment and have the iPod replaced.

Maybe you are looking for