How to create objects in ABAP Webdynpro?

Hi,
I want to create the object for the class: <b>CL_GUI_FRONTEND_SERVICES.</b>
then i want to call file_save_dialog method.
how shoud i write the code, plz?

I have written this code:
v_guiobj TYPE REF TO cl_gui_frontend_services.
<u> ?????????????</u>
v_guiobj->file_save_dialog( ...).
How to create object in the place of ?????????????.
Bcoz, when i run this i am getting:
<b>Access via Null object reference not possible.</b>

Similar Messages

  • How to create popup in ABAP webdynpro.

    Hi,
    I found lot of examples to create a popup/ model window for java webdynpro.
    Could anyone give a pointer to an example which explains how to create popup in ABAP webdynpro??
    Kind Regards
    Shahul

    Hi Thomas:
    It worked fine the 1st time. Second time when the user clicks on the button to open up the popup it dumps.
    Here is the code in the action for popup:
    data: l_cmp_api type ref to if_wd_Component,
            l_window_manager type ref to if_wd_window_manager,
            l_api type ref to if_wd_View_controller,
            l_text type string_table.
      l_cmp_api = wd_comp_controller->wd_get_api( ).
      l_window_manager = l_cmp_api->get_window_manager( ).
      if wd_this->m_popup is initial.
        wd_this->m_popup = l_window_manager->create_window(
                 window_name = 'DOCQSOW'
                 button_kind = if_wd_window=>co_buttons_ok
                 message_type = if_wd_window=>co_msg_type_none ).
               component_usage_name = 'DOCQUERY_USAGE_1'
        l_api = wd_this->wd_get_api( ).
        wd_this->m_popup->subscribe_to_button_event(
              button = if_wd_window=>co_button_ok
              button_text = 'Transfer'
              action_name = 'POPUP_CLOSED'
              action_view = l_api  ) .
        wd_this->m_popup->SET_REMOVE_ON_CLOSE( abap_true ).
       endif.
      wd_this->m_popup->open( ).
    Second time when the popup tries to open, I get the following error:
    Method: RENDER_WINDOW of program CL_WDR_WINDOW_RENDERER========CP
    Method: RENDER_WINDOW of program CL_WDR_CLIENT_SSR=============CP
    Method: RENDER_POPUP_WINDOWS of program CL_WDR_CLIENT_SSR=============CP
    Method: RENDER_WINDOWS of program CL_WDR_CLIENT_SSR=============CP
    Method: IF_WDR_RESPONSE_RENDERER~RENDER_VIEWS of program CL_WDR_CLIENT_SSR=============CP
    Method: IF_WDR_RESPONSE_RENDERER~RENDER_USER_INTERFACE_UPDATES of program CL_WDR_CLIENT_SSR=============CP
    Method: IF_WDR_CLIENT~SEND_RESPONSE of program CL_WDR_CLIENT_ABSTRACT_HTTP===CP
    Method: IF_WDR_CLIENT~SEND_RESPONSE of program CL_WDR_CLIENT_SSR=============CP
    Method: EXECUTE of program CL_WDR_MAIN_TASK==============CP
    Method: IF_HTTP_EXTENSION~HANDLE_REQUEST of program CL_WDR_MAIN_TASK==============CP
    Is there a way to destroy the instance of the m_popup?
    Any help is appreciated!
    Thanks

  • How to create custom calendar in webdynpro ABAP.....(WDA)

    Hi,
    How to create custom calendar in Webdynpro Abap ?.
    Regards,
    Narasimha

    The best way I see here is to develop your custom calender in any of the UI technologies supported like Flash (flex) or HTML5 (or maybe even SilverLight? not sure) and embed it in your WD view. You can also handle interactions between the embedded component and the WD controller.
    Regards,
    Raghavendra

  • Reg File Upload Object in abap Webdynpro

    Hi Friends,
    Would like to enquire one doubt in the file upload object in abap webdynpro.
    By default when we press the browse button, near to the file name there is a button which shows the the file types like:
    ., *.html, ,gif,.jpeg etc.
    Is there any way we can control that, as i have an requirement where in to upload only certain extension types.
    thankyou.

    HI,
    I would suggest you to follow this approach :
    1. Create a Table in your View in which FileUpload is there.
    2. Populate this value with valid file extension.
    3. Make it invisible by default.
    4. Now when you have entered value in Fileupload and click on Ok button.
    5. Check whether Mimetype matches any value in Table.
    6. If it is invalid, Throw an error message and mke Table of Valid extension Visible.
    Sample code to have Table with Valid entries.
    types : begin of str,
                 valid_ext type string,
             end of str.
    data : wa type str,
              itab type table of str.
    wa-valid_Ext = 'EXL'.
    append wa to itab.
    wa-valid_ext = 'DOC'.
    append wa to itab.
    lo_nd->bind_Table( itab ).
    here lo_nd is your ref to node of Table having valid extensions.
    7. Bind this Table's Visible property wiht wdui_visiblity .
    8. Set it Visible - 02 , Inviisible - 01.
    I hope it is clear.

  • How to create  webservice  for  abap  RFC

    how to create  webservice  for  abap  RFC.......................
    plz any could tel me

    I'll answer my own question...
    In SE80 you create the Function Group and something called a Virtual End Point.  These are the only items that transport forward to you QA and eventually your production system.  Everything else has to be created in SOAMANAGER on the target systems. 
    In Development in SE80, when you create the Virtual End Point, this creates a corresponding entry visible in transaction SICF.  When you are done in SOAMANAGER, it creates three more entries in SICF.  The process of transporting the Virtual End Point does NOT create any entries in SICF in QA.  Don't let this be confusing.  In QA, SOAMANAGER will create all four SICF entries.
    Also, if you try to secure the web services using the S_SERVICE object, you must actually test the web service before you can add it to any roles.  This is because the USOBHASH table is not populated for the web service until you actually run the web service for the first time.

  • How to create object at infoview

    Hi all
    i am using SAP BO 3.1
    How to create object called SL NO this is not available at universe and second object  "code" is coming from universe.
    final output should be like this
    SL NO
    code
    1
    Non-Emergency ED Utilization
    2
    Office Visits
    3
    Inpatient Stays
    thanks in advance!!
    Ranjeet

    Hi Ranjeet
    Insert one column in that report. Write formula like this...
    =LineNumber()-1
    Regards,
    G

  • How to create objects in stack

    I am working on Weblogic 10 and JDK 1.5. In Java the objects are always created in heap. Can anybody tell me how to create objects in stack?

    SKMoharana wrote:
    i need objects to be allocated in stack as my application should respond in real time (time predictable).I heard this is possible in Mustang.If I am understanding you correctly, allocating objects on the stack will not help you, and creating objects on the heap will not hurt you.
    It is provably impossible to create a truly time predictable application (in any language), so what you're really looking to do is create a program that responds acceptably quickly for an acceptable percentage of the time. For this you can create benchmarks like "responds in 250 milliseconds or less 99.5% of the time".
    To this end, you could create a prototype program that creates the objects you wish on the heap, and see if there actually is a problem. Don't fall into the trap of premature optimization.
    Even if you do discover that your object creation IS the problem, heap allocation is not the problem. Take a look at this article. It takes ten machine instructions, less than 1 millisecond, to allocate an object.
    Your performance problems are most likely in the object initialization (look for long loops or deep recursions), the display (if this is a GUI application), or your network connection (if this is a web application).

  • How to create objects to paint itselfs without specifiy the location

    How to create objects to paint itselfs without specifiy the location using Java 2D

    shot in the dark: pass in the Graphics2D context to the method ?

  • How to create object in sproxy--

    Hi  all
    i am new to XI
    how to create a new object in sproxy transction
    there is no such option called create in sproxy transction , i can only see a option called edit object
    kindly hepl me out , to create new object in spoxy.

    Hi,
    What do you mean by create a new object in the proxy?
    Means you want to generate the proxy class?
    if yes then we have two proxies
    1. Client Proxy: If the sender is R/3 then we have to create the client proxy, by using one SE38 program we can call this proxy
    2. Server Proxy: If the R/3 is at receiver side then we call this as server proxy. it executes by itself.
    Client proxy:
    /people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy
    Server Proxy:
    /people/siva.maranani/blog/2005/04/03/abap-server-proxies
    Proxy generation
    http://help.sap.com/saphelp_nw04/helpdata/en/ba/d4c23b95c8466ce10000000a114084/content.htm
    If you create the Service interface or message interface in the XI/PI then that interface we can view in the R/3 system when we execute the SPROXY transaction.
    Regards
    Ramesh

  • How to create pakage in abap.

    1) How to create  the pakage in abap.
    Edited by: Matt on Mar 10, 2009 3:10 PM - modified subject

    Hi Ganga,
    Follow these steps :
    1. Run the SE80 T-code in the R/3 system.
    2. Click on Edit Objects option on the top of the window.
    3. Select "Development Coordination" in the Object selection window.
    4. Select "Package" radio button and provide the package name(like any name: "BIDEV").
    5. Click on "Create" icon.
    6. Fill the required details ( Short description, Appli.Component, Software Component)
    7. Select "SAVE" Icon.
    Go through the link below for fruther help :
    http://www.sap-img.com/basis/steps-for-creating-package.htm
    Hope the information is very helpful!
    Regards,
    Kittu

  • How to create metheds in abap

    Hi All,
    Can anybody help me to know how create methods in abap and whats is the perpose of these methods. Any documentation is helpful. Thanks..
    Regards,
    Kalpana

    Hi,
      Check the program demo_abap_objects_methods for methods..
    CLASS MY_CLASS DEFINITION.
    PUBLIC SECTION.
      METHODS: ADDITION IMPORTING IP_1 TYPE INT4
                                  IP_2 TYPE INT4
                        EXPORTING OP_1 TYPE INT4,
               SUBTRACTION IMPORTING IP_1 TYPE INT4
                                     IP_2 TYPE INT4
                           EXPORTING OP_1 TYPE INT4.
    ENDCLASS.
    CLASS MY_CLASS IMPLEMENTATION.
      METHOD ADDITION.
        OP_1 = IP_1 + IP_2.
      ENDMETHOD.
      METHOD SUBTRACTION.
        OP_1 = IP_1 - IP_2.
      ENDMETHOD.
    ENDCLASS.
    START-OF-SELECTION.
    DATA: OBJ TYPE REF TO MY_CLASS.
    CREATE OBJECT OBJ.
    DATA: V_OUTPUT TYPE INT4.
    CALL METHOD OBJ->ADDITION EXPORTING IP_1 = 1
                                        IP_2 = 3
                              IMPORTING OP_1 = V_OUTPUT.
    WRITE: / V_OUTPUT.
    Thanks,
    Naren

  • How to create objects dynamically (with dynamic # of parameters)

    I need to create a set of objects based on a definition from an XML file (obtained from the server) and add them to my scene.
    I understand how to create the object using getDefinitionByName (and the limitations regarding classes needing to be referenced to be loaded into the SWF).
    But some objects require parameters for the constructor, and some don't. The XML can easily pass in the required parameter information, but I can't figure out how to create a new object with a dynamic set of arguments (something akin to using the Function.call(obj, argsArray) method.
    For example, I need something like this to work:
    var mc=new (getDefinitionByName(str) as Class).call(thisNewThing, argsArray)
    Currently this is as far as I can get:
    var mc=new (getDefinitionByName(str) as Class)(static, list, of, arguments)
    Thoughts?

    I think what Dave is asking is a bit different.
    He's wanting to know how to invoke the constructor of an object dynamically (when he only knows the # of constructor arguments at runtime).
    This class I know will do it but seems to be a hack:
    http://code.google.com/p/jsinterface/source/browse/trunk/source/core/aw/utils/ClassUtils.a s?spec=svn12&r=12
    See the 'call' method, which first counts the # of arguments then invokes one of 'n' construction methods based on the number of constructor args.
    I've yet to find a clean AS3 way of doing things ala 'call' though.
    -Corey

  • How to create a Dropdown in webdynpro

    Hi ,
    I am a beginner in Webdynpro , Java . Request you to plz help me ..
    My requirements -
    1. How to create a dropdownbyindex in a view and populate it with some static values passed to the Context .
    2. Upon selection of a value from the dropdown and clicking on the Submit button , how to save the value?
    Context -
    Node - Season
    Attribute  - Seasonofyear
    Kindly Reply
    Thanks in Advance!!
    Regards
    Smita

    Hi smitha,
    I had checked out.. this is working fine for ur requirement
    public void wdDoInit()
    IPrivateSamView.ISeasonNode snode = wdContext.nodeSeason();
    IPrivateSamView.ISeasonElement sele = snode.createSeasonElement();
    snode.addElement(sele);
    IWDAttributeInfo attributeInfo  = wdContext.nodeseason().getNodeInfo().getAttribute(IPrivateMain.IseasonElement.season);
    ISimpleTypeModifiable sea = attributeInfo.getModifiableSimpleType();
    sea.setFieldLabel("SEASON");
    IModifiableSimpleValueSet valueSet =sea.getSVServices().getModifiableSimpleValueSet();
    valueSet.put("0"," AAA");
    valueSet.put("1","BBB");
    valueSet.put("2","CCC");
    i had created a attribute called copy under the node "season". Now i copied from the season attribute to copy attribute.
    then onaction save
    IModifiableSimpleValueSet rea = wdThis.wdGetContext().getContext().getModifiableTypeOf("season.season").getSVServices().getModifiableSimpleValueSet();
        wdContext.currentSeasonElement().setCopy(rea.getText(wdContext.currentSeasonElement().getSeason()));

  • How to create object for a interface (or) how to use ITextModel Interface

    Hi,
    I am new to vc++ and indesign, i am using windows xp as OS and Indesign CS3 as version, now i want to know how to create an object for the ITextModel Interface (or) how to use the ITextModel interface, for getting the selected text and to manipulate the content, for this i tried myself to the best for more than a week,
    but i not get any solution or any idea to do it, so i post this scrap, if any one knows kindly help me immediately, if u want any more details kindly reply me i am ready to give..
    Regards,
    ram

    Hi, Ram,
    as Jongware already has explained in a previous thread, this is the scripting forum, the SDK forum is next door.
    Besides, your question has already been answered over there in SDK forum - with a reference to an existing example, including documented source. There is also plenty more documentation (780 pages alone in the programming guide) and other working examples.
    The brief response was a perfect match to the vague, general scope of the question. If you want more details, be more specific yourself. Do not just touch such major topics as selection, text, object architecture in one sentence to expect a silver bullet. Instead, stick to one detail, find and read the relevant examples and documentation (did I mention the programming guide?) yourself e.g. using keyword search. Quote your code where you're stuck.
    Being new to both VC++ and InDesign is an explanation but no excuse. IMO, same goes for "using windows xp as OS". All together are bad starting conditions if you intend to write a plugin. Even a seasoned C++ programmer with some years of experience in publishing quirks will easily require months, so don't become impatient after just a week.
    If you need quick results and have a programming background such as a recent Java101, reconsider scripting (this forum). It can bring you amazingly far and you'll learn InDesign through a simplified object model. Same principles apply - there is plenty documentation and a good choice of examples.
    Regards,
    Dirk

  • How to create object by getting class name as input

    hi
    i need to create object for the existing classes by getting class name as input from the user at run time.
    how can i do it.
    for exapmle ExpnEvaluation is a class, i will get this class name as input and store it in a string
    String classname = "ExpnEvaluation";
    now how can i create object for the class ExpnEvaluation by using the string classname in which the class name is storted
    Thanks in advance

    i think we have to cast it, can u help me how to cast
    the obj to the classname that i get as inputThat's exactly the point why you shouldn't be doing this. You can't have a dynamic cast at compile time already. It doesn't make sense. Which is also the reason why class.forName().newInstance() is a very nice but also often very useless tool, unless the classes loaded all share a mutual interface.

Maybe you are looking for

  • Sending Midi Timecode to ETC Ion Lighting Console

    Hello, I am not very experienced with MIDI at all, but I am helping to explore options for a project I am involved with.   Does anyone know if Audition 3.0 supports MIDI Show Control (MSC) or if there are any 3rd party plugins that add this functiona

  • Modify services of contrat - ME32K

    Hi experts, I want to know if a BAPI exists to change the services of the contract, like in transaction ME32K. Thanks in advanced.

  • Problem Calling WebService in Form

    Hi, I created a form to call a WebService and works fine in forms builder. When i passed the form to the application server i have a error "FRM-40735: ORA-105100". The Webservice is running on localhost, and the application server is installed in the

  • Need to delete all data and restore computer to factory state !

    Hi - please help. I have made a mistake - I tried to migrate data from my iMac to my brand new MacBook Pro (no idea why !) , and I have way too much data. The MacBook memory is full already. I therefore want to delete everything and restore the MacBo

  • Calculating Average value of already calculated values

    Gurus, here is the setup: CREATE TABLE "RATE"     "RATE_ID"        NUMBER NOT NULL ENABLE,     "PAPER_ID"       NUMBER NOT NULL ENABLE,     "RATING_TYPE_ID" NUMBER NOT NULL ENABLE,     "RATING"         NUMBER NOT NULL ENABLE,     "RAT_COMM"       VAR