Retriving data using web dynpro

I want to make simple application whic stores data and retrive specified fields using web dynpro. can anyone provide tutorial link to do this

Hi,
  The solution to this is very similar to the reports that we write.
1. Create a context node from the dictionary element in the view of the webdynpro component.
2. Now you may be displaying/editing this data in the form of a table in the view layout. For this create a table in the layout and bind the fields of the context to the node you created from the dictionary table in the context.
3. In the layout you also want to have a button SAVE. on the event of this button. Write the code from code wizard where in
  a. Read the context of the dictionary table from the context.
  b. call method
CALL METHOD lo_nd_group->get_elements
    RECEIVING
      set = lt_ddictable.
  c. update the database table using the internal table lt_ddictable.
Hope you find this helpul.
Regards,
Kinshuk

Similar Messages

  • Adobe form to save data using Web Dynpro ABAP

    Hi. I am pretty new to SAP world and trying to learn and work on a task given to me relate to
    creating Adobe offline form using Web Dynpro ABAP same time.
    I have several questions and hopefully, many gurus like you will provide answers.
    I noticed there are many examples creating and using Adobe interactive forms (though not many newer version),
    but I didn't see (at least I didn't find any) any detail example on saving data to an internal table (such as fixed assets, vendor master, etc)
    using interactive form. Is there any detail explanation/example on this?
    I have ask this question in another forum (before I found this forum) but didnu2019t get the answer yet.
    2. When I tried to see graphic layout and modify the layout from Web Dynpro, I can't see the graphic layout.
    All I see is text list of fields/buttons that I created, but can't see section for graphic layout where I can modify layout.
    I am sure I didn't install/configure something correctly.
    Anyone has any idea what I didn't do?
    I have another question, but I will wait till later after I figure out above ones first.
    Thanks for all your help in advance.
    John

    Hi John,
    In the WD4A view, there is a button "Show/Hide Layout Preview".
    Click on that button to be able to see the Layout.
    Note that this button is next to the Pretty Print button.
    regards,
    Reema.

  • Modify SAP data using Web Dynpro for ABAP

    Experts,
    I have a question. We all have working in web Dynpro to create report.
    I was trying to display the data in table and update the data.
    When I click on Save button the data should be saved in the SAP table.
    SAP table may be standard or user-defined table.
    Any idea of how to do it???
    Answers will b rewarded.
    Thanks in Advance
    Edited by: Router on Mar 11, 2008 12:06 PM

    Hi,
      The solution to this is very similar to the reports that we write.
    1. Create a context node from the dictionary element in the view of the webdynpro component.
    2. Now you may be displaying/editing this data in the form of a table in the view layout. For this create a table in the layout and bind the fields of the context to the node you created from the dictionary table in the context.
    3. In the layout you also want to have a button SAVE. on the event of this button. Write the code from code wizard where in
      a. Read the context of the dictionary table from the context.
      b. call method
    CALL METHOD lo_nd_group->get_elements
        RECEIVING
          set = lt_ddictable.
      c. update the database table using the internal table lt_ddictable.
    Hope you find this helpul.
    Regards,
    Kinshuk

  • Deletion of data of R/3 table using Web Dynpro

    Hi Experts,
    I have to delete some records from R/3 table CATSDB using Web Dynpro form. I am using BAPI_CATIMESHEETMGR_DELETE for this purpose. Can you please let me know the steps to accomplish this exercise.
    I have displayed the records of CATSDB using one custom made BAPI. Using this BAPI, I am able to display the data. I have created one button called "Delete Data" button on the form. I have called BAPIs using following code:
    public void onActionDeleteData(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionDeleteData(ServerEvent)
        wdThis.wdGetTimesheetCompController().executeBapi_Catimesheetmgr_Delete_Input();
        wdThis.wdGetTimesheetCompController().executeBapi_Transaction_Commit_Input();
    //@@end
    However, when I am selecting the record and trying to delete the record, record is not getting deleted. Can you please help me in resolving the issues? What is going wrong?
    Regards,
    Brian

    Hi Ashwani,
    I have checked the BAPI - BAPI_CATIMESHEETMGR_DELETE. I am unable to delete the record using even R/3 screen. For deleting the record, I have to provide following four parameters:
    PROFILE, TESTRUN, RELEASE_DATA and AGENT.
    I don't know what should be the value of TESTRUN, RELEASE_DATA and AGENT. I know only the value of PROFILE. From ABAPers, I have come to know that in order to delete the reccord I must provide the value of COUNTER. However, the BAPI,  BAPI_CATIMESHEETMGR_DELETE is not asking me to enter the COUNTER.
    Can you please let me know how to delete the record from BAPI using R/3 screen. After that I will try to delete record using Web Dynpro application.
    Regards,
    Brian

  • How to display the data of CJ2C(T-CODE) using web dynpro abap

    Hi all:
        How to display the data of CJ2C(T-CODE) using web dynpro abap.
        CJ2C used to display a Gantt Chart.
        Thanks.

    Hi,
    Create a Value attribute (resource) of type Resource, bind it with the property of File Upload UI element.
    On action place the code and Deploy the application
    byte[] bytes = new byte[ 1024];
    FileOutputStream out = new FileOutputStream( new File( <path in server>));
    InputStream in = resource.read( true);
    int len;
    while( ( len = in.read( bytes)) > 0)
         out.write( bytes, 0, len);
    in.close();
    out.close();
    Regards
         Vinod V

  • FETCH DATA FROM ORACLE DATABASE USING Web Dynpro

    I want to fetch data from ORACLE database using Web Dynpro.How can I do this?

    1) Are you sure that you get no results? It sounds like you are having name resolution issues, which would imply that you should be getting an ORA-00942 error indicating that the table doesn't exist (or that you don't have access to the table). If you are not seeing this error, I would tend to suspect an overzealous exception handler.
    2) What database account owns the table? What database account is your ASP.Net application using to connect? Assuming these two accounts are different, your application would either have to
    - Explicitly prefix the table name with the schema name
    - Have a public or private synonym that maps the table name to the fully qualified identifier schema_name.table_name
    - Issue the command ALTER SESSION SET CURRENT_SCHEMA = <<schema name>> in each session, in which case all queries in the session would use the specified schema name as the default if no schema name is prefixed.
    Justin

  • How to pass the data from web dynpro to workflow.

    hi gurus,
    how to pass the data from web dynpro to workflow.
    Regards
    vijay

    Hi
    you can use function module
    data   ls_input_container  TYPE swr_cont.
    data   lt_input_container  TYPE TABLE OF  swr_cont.
    CALL FUNCTION 'SAP_WAPI_START_WORKFLOW'
        EXPORTING
          task            = ptask
        IMPORTING
          return_code     = lv_return_code
          new_status      = lv_new_status
        TABLES
          input_container = pinput_container
          message_lines   = lt_message_lines
          message_struct  = lt_message_struct.
    where you pass the data in imnternal table "pinput_container" as
      ls_input_container-element = 'KUNNR'.
      ls_input_container-value = ls_skna1-kunnr ."wd_this->lv_kunnr.
      APPEND ls_input_container TO lt_input_container .
      ls_input_container-element = 'CLUSER'.
      ls_input_container-value = lv_cluser.
      APPEND ls_input_container TO lt_input_container .
      ls_input_container-element = 'BUKRS'.
      ls_input_container-value = lv_bukrs. " youe value as per requirement.
      APPEND ls_input_container TO lt_input_container .
      ls_input_container-element = 'VKORG'.
      ls_input_container-value = ls_sknvv-vkorg. " youe value as per requirement
      APPEND ls_input_container TO lt_input_container .
      ls_input_container-element = 'VTWEG'.
      ls_input_container-value = ls_sknvv-vtweg. "youe value as per requirement.
      APPEND ls_input_container TO lt_input_container .
      ls_input_container-element = 'SPART'.
      ls_input_container-value = ls_sknvv-spart. "youe value as per requirement.
      APPEND ls_input_container TO lt_input_container .
    *Also Forgot to mention where ptask is your workflow ID *
    Regards,
    Arvind
    Edited by: Arvind Patel on May 14, 2010 7:38 AM

  • Getting and Printing A PDF Document From R/3 Using Web Dynpro

    I would like specific information on getting and printing a document residing R/3 using web dynpro.  My environment is Netweaver 04s SR2, an it will not include ITS or the ABAP stack. It connects to remote R/3.  I will not be using Adobe Interactive Forms.       I only need get/render/print the doc.  My question is in 3 parts.
    1) Getting the PDF from R/3
         a) In terms of the RFC ABAP module, how should it return the pdf (a table?)
         b) How should the document be stored within the Component Controller context
             for display.
    2) Converting the R/3 returned binary into a form that is renderable within
        Web Dynpro.  (Does the Form UI Element Require it to be converting and if so
                              what is the best way to do this)
    3) Printing the PDF from the corresponding iView in the portal. (If I am using the
        form ui element to display it, how can printing be initiated in the portal)
    Thanks

    Hi,
    In webdynpro there s a fecility to convert the general data to PDF by uisng th InterativeForm UI Element.
    This for u need to do the following things.
    1. Need to configure the ADS(Adobe document services) in your VA(Visual Admin).
    2. Once ADS is configured we  can utilize the UI element Interactiveform It has contain the Adobedesigner by using this we can design the PDF and binding with the model nodes.
    3. Develop the Function module in the r/3 side and import into WD side and those are created as Model nodes and we canutilize in the 2 step.
    4.When u run the application u can display the pdf with how u design ur PDF form.
    This is generally doing the PDF by using PDF.
    Or do u think any other way post ur issues.
    Thanks,
    Lohi.

  • Making selective fields editable in adobe form [using web dynpro]

    Hi,
    I have displayed an adobe form using web dynpro application. But I have to make certain fields (not all fields) on this adobe form editable. I dont want to make this adobe form interactive because I dont have to save any data in database. The data entered in the editable fields will be saved as a pdf.
    What I did so far:
    1) The fields which I want as editable,  I have given there type as "User entered/ optional" & for rest of the fields I have given type as "Read only".
    2) In web dynpro, I have enabled the adobe
    3) This is not making the fields editable.
    4) If I write the following code in my webdynpro method WDDOMODIFYVIEW, then my data coming from adobe is not getting displayed even though the fields get selectively editable.
    *data: LR_INTERACTIVE_FORM type ref to CL_WD_INTERACTIVE_FORM,
    *LR_METHOD_HANDLER type ref to IF_WD_IACTIVE_FORM_METHOD_HNDL.
    *check first_time = abap_true.
    *LR_INTERACTIVE_FORM ?= VIEW->GET_ELEMENT('adobe').
    *LR_METHOD_HANDLER ?= LR_INTERACTIVE_FORM->_METHOD_HANDLER.
    *LR_METHOD_HANDLER->SET_LEGACY_EDITING_ENABLED( abap_true ).
    Any inputs regarding this??
    Thanks & Regards.

    Hi,
    Like I had mentioned using the following code in my webdynpro method WDDOMODIFYVIEW, my data coming from adobe form was not getting displayed even though the fields get selectively editable.
    *data: LR_INTERACTIVE_FORM type ref to CL_WD_INTERACTIVE_FORM,
    *LR_METHOD_HANDLER type ref to IF_WD_IACTIVE_FORM_METHOD_HNDL.
    *check first_time = abap_true.
    *LR_INTERACTIVE_FORM ?= VIEW->GET_ELEMENT('adobe').
    *LR_METHOD_HANDLER ?= LR_INTERACTIVE_FORM->_METHOD_HANDLER.
    *LR_METHOD_HANDLER->SET_LEGACY_EDITING_ENABLED( abap_true ).
    So I kept this code & I also kept the Interface type "ABAP Dictionary based".
    Additionally in Webdynpro, I used adobe form generated FM to get the adobe content & passed it to the "content" parameter of my adobe component in webdynpro.
    Thanks & Regards.

  • File Upload In DMS Using Web Dynpro ABAP

    Hi,
    I have a requirement to upload files in DMS using Web Dynpro. I have written the code by the hint of the following thread:-
    scn.sap.com/thread/1865934 
    My code is uploading all files but when I try to view them from CV03N only txt files are displaying , Images and PDF files are not
    showing there.
    Please help me. It's urgent requuirement.
    Thanks
    Amit

    TYPES : BEGIN OF zst_ts_raw_line,
                 line TYPE orblk,
                END OF zst_ts_raw_line.
      DATA : ls_draw TYPE draw ,
               ls_api_ctrl TYPE cvapi_api_control,
               ls_message TYPE messages,
               lv_documentnumber TYPE draw-doknr,
               it_objectlinks  TYPE STANDARD TABLE OF  dms_db_drad,
               ig_objectlinks TYPE  dms_db_drad ,
               it_documentdescriptions  TYPE STANDARD TABLE OF  bapi_doc_drat,
               ig_documentdescriptions TYPE  bapi_doc_drat ,
               it_originals_of_doc TYPE STANDARD TABLE OF  cvapi_doc_file,
               ig_originals_of_doc TYPE  cvapi_doc_file ,
               lv_storage_cat TYPE cv_storage_cat,
               lv_size TYPE i ,
               lt_bindata TYPE STANDARD TABLE OF zst_ts_raw_line,"  STANDARD TABLE  OF zst_ts_raw_line,
               ls_bindata TYPE  zst_ts_raw_line ,"SOLISTI1,"sdokcntbin ,
               ls_drao TYPE drao,
               lt_drao TYPE TABLE OF drao,
               lt_DRAT TYPE TABLE OF DMS_DB_DRAT,
               ls_DRAT TYPE DMS_DB_DRAT,
               lt_files TYPE cvapi_tbl_doc_files,
               ls_files TYPE cvapi_doc_file,
               l_string TYPE string.
      DATA : ex_pf_ftp_dest           TYPE  rfcdes-rfcdest.
      DATA : ex_pf_http_dest          TYPE  rfcdes-rfcdest.
      DATA lo_nd_upload TYPE REF TO if_wd_context_node.
      DATA lo_el_upload TYPE REF TO if_wd_context_element.
      DATA ls_upload TYPE wd_this->element_upload.
      DATA lo_nd_upload1 TYPE REF TO if_wd_context_node.
      DATA lo_el_upload1 TYPE REF TO if_wd_context_element.
      DATA ls_upload1 TYPE wd_this->element_upload1.
      DATA lo_nd_upload2 TYPE REF TO if_wd_context_node.
      DATA lo_el_upload2 TYPE REF TO if_wd_context_element.
      DATA ls_upload2 TYPE wd_this->element_upload2.
    *   navigate from <CONTEXT> to <UPLOAD> via lead selection
      lo_nd_upload = wd_context->get_child_node( name = wd_this->wdctx_upload ).
      lo_el_upload = lo_nd_upload->get_element( ).
      lo_el_upload->get_static_attributes(  IMPORTING   static_attributes = ls_upload ).
    * navigate from <CONTEXT> to <UPLOAD1> via lead selection
      lo_nd_upload1 = wd_context->get_child_node( name = wd_this->wdctx_upload1 ).
      lo_el_upload1 = lo_nd_upload1->get_element( ).
      lo_el_upload1->get_static_attributes( IMPORTING static_attributes = ls_upload1 ).
    * navigate from <CONTEXT> to <UPLOAD2> via lead selection
      lo_nd_upload2 = wd_context->get_child_node( name = wd_this->wdctx_upload2 ).
      lo_el_upload2 = lo_nd_upload2->get_element( ).
      lo_el_upload2->get_static_attributes( IMPORTING  static_attributes = ls_upload2 ).
      DATA : lv_file_name   TYPE filep.
      ls_draw-dokar = 'Document Type'.
      ls_draw-dokvr = '00'.
      ls_draw-doktl = '000'.
      ls_draw-dwnam = sy-uname.
      lv_storage_cat = 'Storage space'.
      ls_DRAT-doknr = 'Document Type'.
      ls_DRAT-dokvr = '00'.
      ls_DRAT-doktl = '000'.
      ls_DRAT-dktxt = 'Test Document'.
      ls_drat-dktxt_uc = 'Test Document'.
      append ls_drat to lt_drat.
      ls_api_ctrl-tcode = 'CV01N'.
      ls_api_ctrl-commit_flag = 'X'.
      ls_api_ctrl-save_flag = 'X'.
      ls_api_ctrl-api_mode = 'X'.
      ls_api_ctrl-no_update_task = 'X'.
      ls_draw-filep = ls_upload-filename. "l_string. *
      ig_objectlinks-dokar = doc type
      ig_objectlinks-dokvr = '00'.
      ig_objectlinks-doktl = '000'.
      ig_objectlinks-dokob = 'LFA1'.
      ig_objectlinks-objky =  lifnr.
      APPEND ig_objectlinks TO it_objectlinks.
      CALL FUNCTION 'CVAPI_DOC_CREATE'
        EXPORTING
          ps_draw        = ls_draw
    *•  PF_STATUSLOG             = ' '
    *•  PF_REVLEVEL              =
          ps_api_control = ls_api_ctrl
    *•  PF_FTP_DEST              = ' '
    *•  PF_HTTP_DEST             = ' '
    *•  PF_HOSTNAME              = ' '
    *•  PF_CONTENT_PROVIDE       = ' '
        IMPORTING
          psx_message    = ls_message
    *•  PFX_DOKAR                =
          pfx_doknr      = lv_documentnumber
        TABLES
          pt_drad_x      = it_objectlinks
          pt_drat_x      = lt_drat
    *      pt_files_x     = lt_files.
    *      documentdescriptions = it_documentdescriptions.
      IF sy-subrc NE 0.
        WRITE: 'no number'.
      ENDIF.
      IF ls_message-msg_type CA 'EA'.
      ELSE.
        ls_draw-doknr = lv_documentnumber.
        COMMIT WORK.
      ENDIF.
      DATA lv_count TYPE i.
      DO 3 TIMES.
        REFRESH : lt_files,lt_bindata,lt_drao.
        lv_count = lv_count + 1.
        ls_files-appnr = lv_count."'1'.
        CASE lv_count.
          WHEN '1'.
            ls_files-filename = ls_upload-filename. "wa_general-REF_FILE_NAME1.  "
            ls_upload-filecontent = ls_upload-filecontent.
          WHEN '2'.
            ls_files-filename = ls_upload1-filename. "wa_general-REF_FILE_NAME1.  "
            ls_upload-filecontent = ls_upload1-filecontent.
          WHEN '3'.
            ls_files-filename = ls_upload2-filename. "wa_general-REF_FILE_NAME1.  "
            ls_upload-filecontent = ls_upload2-filecontent.
        ENDCASE.
        MOVE ls_files-filename TO lv_file_name.
        CALL FUNCTION 'CV120_DOC_GET_APPL'
          EXPORTING
    *•PF_DIALOG        =
    *•PF_DISPLAY       =
    *       PF_FILE   = 'DO.TXT'
            pf_file   = lv_file_name "wa_general-REF_FILE_NAME1 "
    *•PF_TYPDT         =
          IMPORTING
            pfx_dappl = ls_files-dappl.
        ls_files-updateflag = 'I'.
        ls_files-langu = sy-langu.
        ls_files-storage_cat = 'Srotage ID'.
        ls_files-description = 'DMS'.
        APPEND ls_files TO lt_files.
        CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
          EXPORTING
            buffer        = ls_upload-filecontent "wa_general-ref_doc1   "
    *•  APPEND_TO_TABLE       = ' '
          IMPORTING
            output_length = lv_size
          TABLES
            binary_tab    = lt_bindata.
        DATA : lv_zaehl TYPE obzae.
        CLEAR lv_zaehl.
        LOOP AT lt_bindata INTO ls_bindata.
          CLEAR ls_drao.
          lv_zaehl = lv_zaehl + 1.
          ls_drao-orblk = ls_bindata-line.
          ls_drao-orln = lv_size.
    *      ls_drao-dokar = ls_draw-dokar.
    *      ls_drao-doknr = lv_documentnumber.
    *      ls_drao-dokvr = ls_draw-dokvr.
    *      ls_drao-doktl = ls_draw-doktl.
          ls_drao-zaehl = lv_zaehl.
    *      ls_drao-appnr = lv_count."'1'.
          APPEND ls_drao TO lt_drao.
        ENDLOOP.
        CALL FUNCTION 'CVAPI_DOC_CHECKIN'
          EXPORTING
            pf_dokar           = ls_draw-dokar
            pf_doknr           = lv_documentnumber
            pf_dokvr           = ls_draw-dokvr
            pf_doktl           = ls_draw-doktl
            ps_api_control     = ls_api_ctrl
            pf_content_provide = 'TBL'
          IMPORTING
            psx_message        = ls_message
          TABLES
            pt_files_x         = lt_files
            pt_content         = lt_drao.
        COMMIT WORK.
      ENDDO.

  • Can I use web Dynpro to access other database

    Hi Experts,
    Can I use web Dynpro to access other database? Like we have a Siebel Database, can web dynpro application read data from there? If yes, How can I do it?
    Thanks a lot!!!
    MH

    Hi,
    I think you should be able to write Native SQL in the supply function or the methods of the Assistance Class.
    Hope this helps.
    Regards,
    Kedar

  • Scheduling Time Based Jobs using Web Dynpros.

    Hello Again,
    I would like to know if it is possible to perform time based jobs using Web Dynpros, I have a situation where a Web Dynpro application updates a Database and then later during the day say at around 9:00 PM, I would like the Web Dynpro application to transfer all the updated Data to another Database, I know we can run a batch job but can we run create a Web Dynpro application to programatically fire a batch job at the required time.
    I am welcome to any suggestions.
    Best Wishes,
    John.

    Hi John,
    WD is not good option for this. I would suggest you to "extract" logic to separate layer and use Timeout service (http://help.sap.com/saphelp_webas630/helpdata/en/6b/2550d23ef1994580114d6064bc44a1/frameset.htm) - call logic from service.
    Best regards, Maksim Rashchynski.

  • EVDRE encountered an error retriving data from web server in PROD

    Hi friends,
    We are checking Evdre reports in BPC production system. We checked few application' EVdre input templates & reports and are fine.
    But yesterday evening onwards we are facing below error message.
    EVDRE encountered an error retriving data from web server. This message we are getting  for all BPC applications in BPC production.  There is no short dump in backend.
    But when i checked in BPC developement there is no probelm.
    We are on BPC7.5 NWsp04 and BI7.01.
    In BPC, production,when i try to create evdre template(just after filling
    information in evdre builder), immediately getting same error information.
    I read few notes, did as per that but sill problem exists. In note, mentioned process dim of particular application and process application. Logout from bpc admin & excel. I did this and, that error message not received for upto 20min. After that i'm getting error. We checked communciation between ABAP layer and bpc, reset IIS also. Still same probelm exists.
    Any suggestions pls.
    thanks,
    naresh

    Hi frineds,
    SAP OSS team resolved along with our basis guy.
    Initially SAP supported notes:
    1.1475233 and 1378705 Process all dimensions and applications.
    2.1355954 Drop SAP temp tables.
    3.1428764 confilict only if you use Oracle 10 g, if you don't, then forget it.
    I used 1378705 and problem resolved temporarly, but still exists after 1 day.
    There are different reasons for getting the error message. In our case, problem is at backend BW and, BW system running on HP unix OS.
    Checked librfc32.dll in the
    directory /usr/sap/BP1/DVEBMGS00/exe.
    Executed the following MDX statment in MDXTEST transcaction, and it
    executed in both the available instances.
    SELECT
    {[Measures].MEMBERS} ON COLUMNS,
    [0MATERIAL].[LEVEL00].MEMBERS ON ROWS
    FROM [$ZCO_CDPC].
    Even i also don't have clue how SAP resolved this issue.
    Regards,
    Naresh

  • How can I open a popup after clicking in a table cell using Web Dynpro?

    Hello,
    I am using Web Dynpro to create an application and I would like to click in a table cell and then a popup with confirmation appears.
    I already have a table with the information that is displayed in the browser. In fact, I just added a column with images that are print icons.
    My problem is that I don't know how to implement the method to set the action: when clicking on the print icon, a popup appears.
    Thank you very much in advance.

    HI Rafael,
    Please check the below sample code
      To quickly create dialog boxes of a standardized layout (for example, for the confirmation of changes to current data) you can call the CREATE_POPUP_TO_CONFIRM method of the IF_WD_WINDOW_MANAGER. You do not need to create a separate window for this. The dialog box is created automatically by the runtime.
    ●      The CREATE_POPUP_TO_CONFIRM method creates an object of the type IF_WD_WINDOW; the dialog box can be created using its parameters.
    method onactionpopup4_1 .
      data: l_cmp_api          type ref to if_wd_component,
            l_window_manager   type ref to if_wd_window_manager,
            l_popup            type ref to if_wd_window,
            l_text             type string_table,
            l_api              type ref to if_wd_view_controller.
      l_cmp_api        = wd_comp_controller->wd_get_api( ).
      l_window_manager = l_cmp_api->get_window_manager( ).
      insert `Data where changed` into table l_text.    "#EC *
      insert `Do you want to save?`        into table l_text.    "#EC *
      l_popup = l_window_manager->create_popup_to_confirm(
                    text            = l_text
                    button_kind     = if_wd_window=>co_buttons_yesnocancel
                    message_type    = if_wd_window=>co_msg_type_question
                    window_title    = 'Test: Popup to confirm'
                    window_position = if_wd_window=>co_center )."#EC *
      l_api = wd_this->wd_get_api( ).
      l_popup->subscribe_to_button_event(
                   button            = if_wd_window=>co_button_yes
                   action_name       = 'YES'
                   action_view       = l_api
                   is_default_button = abap_true ).
      l_popup->subscribe_to_button_event(
                   button            = if_wd_window=>co_button_no
                   action_name       = 'NO'
                   action_view       = l_api
                   is_default_button = abap_false ).
      l_popup->subscribe_to_button_event(
                   button            = if_wd_window=>co_button_cancel
                   action_name       = 'CANCEL'
                   action_view       = l_api
                   is_default_button = abap_false ).
      l_popup->open( ).
    endmethod.
    The SUBSCRIBE_TO_BUTTON_EVENT method of IF_WD_WINDOW assigns the actions to the appropriate buttons
    Thanks
    Vinay

  • How to create a user in UME Database using web dynpro java custom application

    Hi,
    Can you please suggest me how to create a user in UME Database using web dynpro java custom application.
    My Requirement is user can register his/her user id in SAP Portal 7.3 UME database.
    Please suggest me.
    Thanks and Regards,
    Amit

    Hi Amit,
    Generated Documentation (Untitled)
    This is what you're looking for, there's no real cook-book -- though Amey mentioned there might be some material on SDN, perhaps some tutorials.
    You should be looking into com.sap.security.api.IUserFactory, methods newUser(String) which gives you and IUserMaint and commitUser(IUserMaint, IUserAccount) -- IUserAccount can be obtained using com.sap.security.api.IUserAccountFactory, method newUserAccount(String)
    Hope it helps,
    D.

Maybe you are looking for