Calling standard funtion module in BSP using MVC Design pattern

HI Everyone,
I am trying to create one BSP application using MVC Design pattern,
I want to call standard function module LSO_TRAINING_GET_DETAIL_C, in my BSP Model class,
can any one tell me how to do this?
I want to do the model binding also,like i want to retrive data on the frontend bsp screen from the above function module.
Thanks,
Vinay
Edited by: vinay kumar on Jul 3, 2008 12:02 AM

Hi Vinay,
If you want to call the FM on some user action , ie on some event than you have to do it in
DO_HANDLE_EVENT method of your controller class.
For eg. if you want to call the FM on click of the button, you can do some thing like:
DATA: button_event TYPE REF TO cl_htmlb_event_button.
IF htmlb_event IS NOT INITIAL.
  IF htmlb_event->name = 'button'.
      button_event ?= htmlb_event.
     IF htmlb_event->server_event CP 'press'.
          call function LSO_TRAINING_GET_DETAIL_C
                                    exporting
                                     param_exp = val1
                                    importing
                                       param_imp = val2.
              endif.
      endif.
endif.
here press is the OnClick event of the button.
Now you can use this VAL2 , in the view .You can use the  HTMLB:TABLEVIEW element , if your FM's importing param is a table.
Hope it helps a bit,
BE,
Anubhav.

Similar Messages

  • How we can limit the number of concurrent calls to a WCF service without use the Singleton pattern or without do the change in BizTalk Configuration file?

    How can we send only one message to a WCF service at a time? How we can limit the number of concurrent calls to a WCF service without use the Singleton pattern or without do the change in BizTalk Configuration file? Can we do it by Host throttling?

    Hi Pawan,
    You need to use WCF-Custom adapter and add the ServiceThrottlingBehavior service behavior to a WCF-Custom Locations.
    ServiceThrottlingBehavior.MaxConcurrentCalls - Gets or sets a value that specifies the maximum number of messages actively processing across a ServiceHost. The MaxConcurrentCalls property specifies the maximum number of messages actively
    processing across a ServiceHost object. Each channel can have one pending message that does not count against the value of MaxConcurrentCalls until WCF begins to process it.
    Follow MSDN-
    http://msdn.microsoft.com/en-us/library/ee377035%28BTS.10%29.aspx
    http://msdn.microsoft.com/en-us/library/system.servicemodel.description.servicethrottlingbehavior.maxconcurrentcalls.aspx
    I hope this helps.
    Rachit
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • Can anyone take me in step by step to understand MVC design pattern

    Hi Everybody,
    I just killed myself trying to understand what is MVC and how to apply it to flash (AS3) the easy way but I could not, there is a lot of information on MVC on google but it is very hard I can not understand it and apply it to anykind of application or game, I had created a lot of games but using flash timeline (puzzle, multipel choice, simple physics interaction) and I understand that we must separte the design interface and the data of the application and the code into diffrent blocks, but what I understand is:
    1- making a SWC for the design. (View)
    2- use XML or TEXT file for the data.(Model)
    3- classes for the code.(Controller)
    this is MVC that I understand, but all the tutorials on the net is about creating 3 classes and calling each other in a very diffuclt code to understand, I realy need to work the proffessional way but it is very hard and far away from my understanding.
    if any body have a way to let me understand it like making a template for every MVC application or game and explain to me his/her code it will be great, some of my questions are:
    1- how we say about a class that it is the view part of the pattern while we have a SWC that hold the intreface graphics?
    2- dose making a sepreate class to load and fetch external data sources like xml and text means I had created the model part of the pattern, and why the tutorials on the net do not say that if it is true?
    3- making the logic of the application or game sepreated into class for each logic block, makes the controller part of the pattern?
    I realy do not know what to ask more because I do not understand the MVC design pattern
    Please note: if someone can chat with me on skype it will be great, but if you want to explain here also good but I need to understand it is making me crazy!
    thanks in advance

    I'm not a pro in this either, but a few things about it make sense to me.
    First you don't need to have only three parts, but all the parts you have should be one of the three things (maybe). And they don't need to be a swc, XML/text, or a class.
    I recommend the Clock tutorial from Colin Moock's book, Essential Actionscript.And here is someone walking you through it. http://flylib.com/books/en/4.14.1.137/1/
    In that example there is a model which keeps track of time like the hours, minutes, seconds, if the clock is running.
    There is a controller that lets you set the time, reset the clock, stop the clock, that kind of stuff. This isn't the buttons and stuff that allow you to do that, this is the code that takes the input from the buttons and communicates with the model.
    So there would be a view of the buttons that the user would want to push to set the clock or what have you.
    And there is a view presenting the time. Now there might be two (or more views). For example you might have an analog clock and a digital clock.
    Work through that tutorial. It helped me.

  • Struts using DAO Design Pattern ..?Please give an example..... URGENT......

    Dear all,
    I have to develop an application in Struts by using DAO design pattern ..........
    Please give an example on Struts using DAO...................
    Thank you
    Please

    I'm glad you asked. It means Read The Flaming Manual. That'd be the struts manual by the way.

  • Struts using DAO Design Pattern Tutorail

    Can anybody give me a link for the Struts using DAO Design Pattern tutorial
    sample tutorial

    http://javaboutique.internet.com/tutorials/ApacheDAOs/
    Found by using google: strust dao pattern tutorial
    There are more good links using that search...

  • Standard funtion module to fetch IDOC in xml format

    Hi Experts
    I am not from ABAP background, am working in SAP PI. I have a queay regarding standard function modules in ABAP.
    I am wrote a java code to fetch IDOC by making a call to the ABAP standard functions. (passing an idoc number and fetching the idoc)
    The IDOC that i am receiving is in Flat format, but I want to fetch the IDOC in XML format.
    Is there any Standard fucntion module to fetch the IDOC in xml format?
    regards,
    Osman Abdul Aziz Jabri

    hai ,
                      in SE37 tcode
                      Check with IDOCTOXML u get FM 's
                                                 use sutable ur requirement.
    Moderator message: please do not use SMS speak in these forums.
    Edited by: Thomas Zloch on Jan 5, 2011 6:03 PM

  • Call an Function Module from BSP page to import an CSV file to internal tab

    Hi Experts,
    I am working on creating a web application in BSP which will call the function module  ALSM_EXCEL_TO_INTERNAL_TABLE.
    This function module imports an excel file into an internal table.
    Since this is the first time I am working on BSP I am not sure how to call this FM from event handler tab in BSP page.
    What I could gather from previous posts is that we need to create an attribute which should take the value of the export parameter of the function module.But I am kind of messed up on this.
    Could u guys please help ,I would be extremely grateful.Points will be assigned for sure
    Thanking in anticipation
    Ankit

    Could you please let me know how I can call an abap function module from a transformation? (from abap xslt program). I know how we can call methods of a class from the transformations, but no idea how we can call function modules. Any suggestions or a sample code snippet towards this will be very useful for me.
    Thanks,
    Shashi.

  • How to call a Webdynpro view from BSP page (MVC) in a new window?

    Dear Experts,
    kindly advise how to call a webdynpro view from BSP application after performing an event (through button or hyper link).
    Regards,
    Sarat.

    Hi,
    This has been discussed many times in several forums.
    Please check the method CL_WD_UTILITIES=>CONSTRUCT_WD_URL, to create a runtime url for your WD Application and call this URL.
    Refer thread: Call Webdynpro Application from BSP Application
    Hope this will be useful!
    Regards,
    Meganadhan S

  • Calling Z function module from BSP page

    hi,
      i am calling a z function module from BSP application ROS_SELF_REG ,The z function module is inside a z function group,It does not give any sytnax error..but while running BSP application ,it is going into dump saying that Z function module is not found..Any idea why this is happening???

    Hi,
    Check whether the Z function module is spelled correctly. Also try activating the whole function group and function module in se80 transaction.
    Check whether the BSP application is calling the Z FM from the correct server/client where it is available.
    Regards,
    Harish

  • Call standard SAP transaction in BSP

    Hi guys,
    I am working in WAS 6.20.
    We have separate server for WAS and records fetched from R/3 server.
    Now the requirement is i have to call a standard SAP transaction and the output of the standard transaction should be displayed in the BSP output.
    Is it possible to call a SAP standard transaction in WAS 6.20.
    Is it possible to display the same output in the BSP screen.
    Above to all, displayed output should be refreshed automatically for every 20 minutes.
    I come with lot of doubts, expecting your reply.
    Hopefully waiting for yours reply.
    Saravanan. V

    Hi,
    Pls check threads like
    calling STD SAP transaction in BSP
    Calling R/3 Transaction from BSP
    Calling standard R/3 transaction from BSP
    Calling an SAP transaction from a BSP page
    Calling ITS transaction from BSP
    Can we call standard transaction from bsp
    Eddy
    Pimp up the S(D)N site and earn points. Check this <a href="/people/eddy.declercq/blog/2007/02/01/pimp-up-the-jam log</a> for details

  • How can I develop a web application using EJB design pattern?

    I have searched over the web and found quite a lot of tutorials on how to use the EJB design pattern.
    I know that there will be a home interface, EJB object interface and a SessionBean.
    But the tutorials often only cover a single class, this made me unable to get a complete picture of how EJB design pattern can be implemented into a whole system.
    I am now required to devleop an online shopping web application using EJB and JSP page.
    I think I will need to create a lot of classes: Member, ShoppingCart, Product...etc.
    What I want to ask is that, do I need to create a home interface, EJB object interface and a SessionBean for each of these classes?
    I really need some ideas on how to develop this system using EJB + JSP pages.
    Many thanks to you all.

    For every EJB that you want to create, you will need to code a home and remote interface and a bean class.
    You could start getting your ideas here
    http://www.theserverside.com/books/wiley/masteringEJB/
    http://www.coreservlets.com

  • Are there any Client/Server Application (using sockets) design patterns?

    Hi,
    The title of the post nearly says it all. I am searching for different design patterns related with the development of a client/server application. I understand that there must be any different ways on how a client/server application can be developed.
    Regards,
    Sim085
    Disclaimer:
    When I enter in the Socket forum on this site I recieve this message "Thank you for any participation in this forum. Due to a lack of relevant activity, we have decided to archive this forum on June 16, 2006. For future posts on this topic, we suggest you use the Networking forum" and I am not allowed to create a new post! However I can see posts done yesterday! All i did is add the forum in 'my forums'. Does this happen to you people as well?

    Hi Sim085...How are you?
    So look this:
    http://forum.java.sun.com/thread.jspa?threadID=5148926&tstart=75
    I don�t know if is what you want...but I hope in this^^
    Ok man...If you have one example for help you is better.
    [ ]

  • How to generate report from two tables using DAO design pattern?

    Hi,
    Iam using struts with DAO pattern for my application. According to DAO design im creating model class for each table in my database with getter,setter methods. i have no problem when im generating report from one table. but if have i have to join two tables whatis the better way for doing that? is it good practise to create a new model contains properties from both the tables?
    Please help me
    Thanks in Advance
    Rajesh

    Dear Rajesh,
    As per the pattern you are creating equivalent java objects for every database table under consideration in which each db field will become a private attribute and public getter and setter methods.
    If you have to display data from one table the above approach is sufficient enough.
    But in case your database is normalised ..lets take an example of Bank having Branch and Accounts tables. We dont need to repeat the whole information of the branch for every account in that branch. so we prefer to have a branch id in that table....this approach lot of insertion/deletion/updatation anomlies that may exists with the database...
    now lets come back to our topic....we shall create two java objects 1) Branch 2) Account.....
    When ever u just need to display simple report u can do it staright forward,,,,,now if u want to display branch information along with the account information....the two objects just created are not sufficient
    So i suggest u the following approaches
    1) Create an attribute of type Branch in the Accounts Object......
    This shall serve the purpose of displaying the Btranch information
    2) Create a collection object of type ( Vector or ArrayList) which can have objects of Account in the Branch Object,,,
    Now its upto u how shall u fill up the objects with appropriate sql queries.
    The method that i mentioned is followed by Oracle Toplink and Hibernate ....which provide Object to relation mapping layers.
    Any queries ...revert back to me...
    Mahesh

  • Regarding calling the fuctional module Using 'in update task'

    Hi ,
    I want to call a Functional module Z-PS_VK11_FRC  using the statement  IN UPDATE TASK .
    What is procedure to work with . can anybodt tell me how to proceed  or give me some sample program .
    Regards,
    Shilpa Talluri

    Function modules that run in update task can not return any values because your program has no longer control over the function module (the update task has).
    UPDATE TASK fm  mostly used to update database tables.
    You don't any special coding other than calling fm UPDATE TASK
    And in the attributes of function module you need to tick the Update mode and "Coll Run" so that it can be used to run individually in the V2 update process can be grouped together and run collectively.

  • URL Link to BSP with MVC

    Hi,
    I have a BSP with MVC design.
    I assume that the URL link to the application is the URL I see when I go into the Controller page under the BSP in SE80.
    Is that correct?
    The problem is that when I take that URL and copy paste it into a web browser, I get the first view but when I click on any button, the controller class is not called.
    If I do a right click on the BSP and select the TEST option, all is working perfectly.
    Do you have any idea why this is happening or do I do something wrong?
    Thanks,
    Itay

    Hi Stefan,
    Same issue i have as well.
    My Understanding is, in NWBC desktop, if you open a non sap (eg: html) page, NWBC becomes an IE Browser.
    That means you are now out of SAP for that tab (with html page) and whenever you try to launch any SAP transaction (using the method from HTML) it will launch in a new window and ask for Login.
    May be Experts like Samuli Kaski & Melinda Ludanyi can put some light on it.
    But, I have one more solution for this which is partially working in my case. May be helpful in you case as well.
    Issue: From some SAP transaction in NWBC (say tab A), you are launching the html page (say tab B) and then want to launch another SAP transaction (Say tab C) from html.
    Solution: Embed the HTML in SAP using HTML Viewer class and launch SAP custom transaction using the interface IF_LSAPI. It will launch it in new tab as a sap transaction with your html page.
    Now if you want to launch the SAP transaction from your html page (Which is embedded in SAP custom transaction) you can use HTML Viewer class Events and you can pass parameters as well. Re use the same interface IF_LSAPI and launch it in new tab
    In my case i am facing problems as the web developer has so many things on java script and they are not working properly. He is working on it and i am hoping it will be fine.
    Regards,
    Nik

Maybe you are looking for