Skip to Content
author's profile photo Former Member
Former Member

Creation of Interactive SAP widgets

Hi experts,

I have created some of the Widgets by calling RFCs and these are simple widgets displaying data from the table.

Now I want to create the interactive widget that will take the parameter from user and then will display related information in Widget format.

Eg. A parameter on the screen will be seen first to allow user to enter airline...

If user enters "AA " , then only flight information for "AA" will be shown.

Is it possible to update a database table through widget events..

Do we have any blogs or code explaining this / similar kind of widget creation ?

Thanks,

Omkar.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 27, 2008 at 02:40 AM
    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Lets step back a few paces to What is the function you're calling? and What are the import and export parameters ?

      I suppose you've dragged the columns or the export parameters from the RFC tab to the view (lets say this one is main-view. If you've generated a controller for this view, you should have a function that's in the Controller module and would be referenced as Controller.showMain_View.

      Now, coming back to the import parameters of the function you're calling, say the import parameter is I_IMPORT and the value is read into a variable v_import... and, you have a button (.. in the footer as you mentioned..) you could very well put some code into the button's event-click handler that looks like this :

      if (Controller.loadingData) return;
      Controller.showMain_View({"I_IMPORT":v_import});

      This of course presumes that you've already dragged something (export parameter or a column from an exported table in the RFC) to the view, this view is called main_view and this view has a controller.

      Lemme know if this helps...

      Cheers,

      - Aditya

  • author's profile photo Former Member
    Former Member
    Posted on Dec 19, 2008 at 05:40 AM

    Hi Omkar,

    I am also trying to create the same kind of widget which you are talking about. and i am stuck at the same place.

    I have created a search input field and button for the search functionality. But am not about the code to be written in the event of the button.

    Kindly clarify.

    Regards,

    Vibha

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.