How to close the adobe forms in popup windows once.

hi,expert..
i show a adobe form in a popup windows in my webdynpro program...but i find out that i at least click twice on the "CLOSE" button on the right top of the window.....how can i modify my program to  close the window once..
the original codes are as follow:
method onactionprint .
   data lo_nd_zhrhap_vp_app_01 type ref to if_wd_context_node.
  data lo_nd_zhrhap_t_document type ref to if_wd_context_node.
  data lt_zhrhap_t_document type wd_this->elements_zhrhap_t_document.
  lo_nd_zhrhap_vp_app_01 = wd_context->get_child_node( name =
wd_this->wdctx_zhrhap_vp_app_01 ).
  lo_nd_zhrhap_t_document = lo_nd_zhrhap_vp_app_01->get_child_node(
name = wd_this->wdctx_zhrhap_t_document ).
  lo_nd_zhrhap_t_document->get_static_attributes_table(
    importing
      table = lt_zhrhap_t_document ).
DATA lo_nd_zhrhap_s_app_leader TYPE REF TO if_wd_context_node.
DATA lo_el_zhrhap_s_app_leader TYPE REF TO if_wd_context_element.
   data ls_zhrhap_s_app_leader type
wd_this->element_zhrhap_s_app_leader.
lo_nd_zhrhap_s_app_leader = lo_nd_zhrhap_vp_app_01->get_child_node(
*name = wd_this->wdctx_zhrhap_s_app_leader ).
lo_el_zhrhap_s_app_leader = lo_nd_zhrhap_s_app_leader->get_element(
lo_el_zhrhap_s_app_leader->get_static_attributes(
   IMPORTING
     static_attributes = ls_zhrhap_s_app_leader ).
DATA lo_nd_zhrhap_s_dates TYPE REF TO if_wd_context_node.
DATA lo_el_zhrhap_s_dates TYPE REF TO if_wd_context_element.
   data ls_zhrhap_s_dates type wd_this->element_zhrhap_s_dates.
lo_nd_zhrhap_s_dates = lo_nd_zhrhap_vp_app_01->get_child_node( name
*= wd_this->wdctx_zhrhap_s_dates ).
lo_el_zhrhap_s_dates = lo_nd_zhrhap_s_dates->get_element(  ).
lo_el_zhrhap_s_dates->get_static_attributes(
   IMPORTING
     static_attributes = ls_zhrhap_s_dates ).
采集表名称和日期
  data lo_nd_if_data type ref to if_wd_context_node.
  data lo_el_if_data type ref to if_wd_context_element.
  data ls_if_data type wd_this->element_if_data.
  lo_nd_if_data = wd_context->get_child_node( name =
wd_this->wdctx_if_data ).
  lo_el_if_data = lo_nd_if_data->get_element(  ).
  lo_el_if_data->get_static_attributes(
    importing
      static_attributes = ls_if_data ).
  ls_zhrhap_s_dates-valid_begda = ls_if_data-begda.
  ls_zhrhap_s_dates-valid_endda = ls_if_data-endda.
DATA lo_el_zhrhap_vp_app_01 TYPE REF TO if_wd_context_element.
   data ls_zhrhap_vp_app_01 type wd_this->element_zhrhap_vp_app_01.
   data lv_description like ls_zhrhap_vp_app_01-description.
lo_el_zhrhap_vp_app_01 = lo_nd_zhrhap_vp_app_01->get_element(  ).
lo_el_zhrhap_vp_app_01->get_attribute(
   EXPORTING
     name =  `DESCRIPTION`
   IMPORTING
     value = lv_description ).
REPLACE ALL OCCURRENCES OF '类别:' in lv_description with ''.
  lv_description = ls_if_data-stext.
  data l_is_ok    type boole_d.
  data pdf_source type xstring.
  data l_msg      type ref to cl_hrpa_message_list.
  create object l_msg.
  call method zcl_hr_appraisal_utility=>print_contract_direct
    exporting
    form_type           = 'COD'
      zhrhap_t_document   = lt_zhrhap_t_document
      zhrhap_s_dates      = ls_zhrhap_s_dates
      zhrhap_s_app_leader = ls_zhrhap_s_app_leader
      description         = lv_description
    job_description     =
      message_handler     = l_msg
     importing
      is_ok               = l_is_ok
      pdf_xstring         = pdf_source
  check l_is_ok is not initial and pdf_source is not initial.
  data lo_nd_pdf type ref to if_wd_context_node.
  data lo_el_pdf type ref to if_wd_context_element.
  data ls_pdf type wd_this->element_pdf.
  data lv_source like ls_pdf-source.
  lo_nd_pdf = wd_context->get_child_node( name = wd_this->wdctx_pdf ).
  lo_el_pdf = lo_nd_pdf->get_element(  ).
  lo_el_pdf->set_attribute(
    exporting
      name =  `SOURCE`
      value = pdf_source ).
*-->ADOBE View embeded to ViewContainer UI
  data: lr_view               type ref to if_wd_view_controller,
        lr_api_main           type ref to if_wd_component,
        lr_window_man         type ref to if_wd_window_manager,
        comp_usage            type ref to if_wd_component_usage,
        l_title               type string value '打印合同',
        lr_window             type ref to if_wd_window.
  lr_view = wd_this->wd_get_api( ).
  lr_api_main = wd_comp_controller->wd_get_api( ).
  lr_window_man = lr_api_main->get_window_manager( ).
l_title = wd_colr_mp_controller->model->get_text( '006' ).
  call method lr_window_man->create_window
    exporting
      modal        = abap_true
      window_name  = 'POPUP'
      title        = l_title
      button_kind  = if_wd_window=>co_buttons_yesno
     message_type = if_wd_window=>co_msg_type_none
      default_button = if_wd_window=>co_button_yes
    receiving
      window       = lr_window.
  lr_window->open( ).
endmethod.
looking forward to your help....thanks in advance

Ping,
1st, see the Markup formatting options over on the right part of the screen - if you wrap your code between the code tags it will read MUCH better.
2nd, I can't replicate this issue - we have several PDFs opening in new windows & we only need to click once on the clost 'X' - how are you calling the PDF in a new window?
If you can't find a final resolution, an alternative would be to place a LinktoAction on your web dynpro application somewhere that makes sense which would close the window for you.
We do this on Sucess Message Views...
You can simply add the link to action to the screen, and in the event handler use
   data : l_view_cntr type ref to if_wd_view_controller,
       l_win_cntr  type ref to if_wd_window_controller,
       l_window    type ref to if_wd_window,
       l_parameter_list  type wdr_event_parameter_list,
       l_parameter       type   wdr_event_parameter,
       l_val type ref to data.
field-symbols <fs> type any.
l_view_cntr = wd_this->wd_get_api( ).
l_win_cntr  = l_view_cntr->get_embedding_window_ctlr( ).
l_parameter-name = 'CLOSE_WINDOW'.
create data l_val type c.
assign l_val->* to <fs>.
<fs> = 'X'.
l_parameter-value = l_val.
insert l_parameter into table l_parameter_list.
l_win_cntr->if_wd_view_controller~fire_plug(
exporting plug_name = 'EXIT_PLUG'
           parameters = l_parameter_list ).
Make sure you have an Exit plug on your Window with Plug Type EXIT.

Similar Messages

  • How to transport the adobe form

    Hi Experts,
    We created an adobe form based on the web service.
    Now we moved all the transport request to the quality system.But the web service holds the dev system details only how to change these.
    What is the procedure to move the Adobe forms based on web service, any thoughts.
    Please help me on this.
    Thanks in Advance,
    Praveen

    Praveen,
    It always a good practice to share your solution when you close the thread so that it serves as reference for others with same problem.
    Chintan

  • How to display the return message in popup window

    Hi Experts,
    In WDA i want to display the return message through popup window.
    Regards,
    M.Chella Meenal.

    hi Chella Meenal ,
    you can generate the popup using popup factory class also , look at the below sample code for displaying message in a popup , and you can do your own configurating like visible , enable the buttons you want ..
    data:
        lr_component type ref to if_wd_component,
        ls_conf type wdr_popup_to_confirm,
        lt_texts     type string_table.
      ls_conf-window_position = '1'.
      ls_conf-button_1-text = 'OK'.
      ls_conf-button_1-icon = 'ICON_OKAY'.
      ls_conf-button_1-enabled = 'X'.
      ls_conf-button_1-visible = CL_WD_UIELEMENT=>E_VISIBLE-VISIBLE.
      ls_conf-button_2-visible = CL_WD_UIELEMENT=>E_VISIBLE-NONE.
      ls_conf-button_cancel-visible = CL_WD_UIELEMENT=>E_VISIBLE-NONE.
      lr_component = wd_comp_controller->wd_get_api( ).
      append 'some text' to lt_texts.
      cl_wd_popup_factory=>popup_to_confirm(
          component        = lr_component
          text             = lt_texts
          CONFIGURATION    = ls_conf
          window_title     = 'some title' ).
    Regards
    Chinnaiya P

  • How to config the adobe form to report RFIDYYWT

    I have created a new custom Adobe form ,can any one of you help me in configuring that form to repot RFIDYYWT,if I config standard form (IDWTCERT_US_1099MISC) in SPRO and it is working fine but when i am config the custom form,i am not able view the print.Please help me.

    I found this thread while researching the same question.  By creating an implementation of BADI IDWTREP_ADOBEPRINT, you'll be able to add your custom forms to the filter values of your BADI implementation after which program RFIDYYWT will recognize them.  You'll need to add code to the PREPARE_ADOBE_PRINT method of your implementation in order to print your custom forms.
    In my scenario, I needed to copy the SAP delivered 1099-Misc Adobe forms in order to create a custom version of them.  The steps I performed were:
    Copy SAP Adobe forms IDWTCERT_US_1099MISC and IDWTCERT_US_1099MISC1 to create custom versions of them (ZIDWTCERT_US_1099MISC and ZIDWTCERT_US_1099MISC1). 
    Created ZIDWTREP_ADOBEPRINT implementation of BADI IDWTREP_ADOBEPRINT.
    Added my custom forms ZIDWTCERT_US_1099MISC and ZIDWTCERT_US_1099MISC1 to the filter values of my implementation.
    The code I added to the PREPARE_ADOBE_PRINT method was copied directly from the SAP class CL_IM_IMPUS_IDWTREP_ADOBE method IF_EX_IDWTREP_ADOBEPRINT~PREPARE_ADOBE_PRINT.  The only change I had to make to the copied code was to replace the references to the SAP forms with the values for my custom forms.
    Now with our custom forms in place, we're able to produce Copy B, as well as Copy 1 and Copy 2 when printing our 1099 MISC forms.   

  • How to Convert the adobe form to web services

    Hi Experts ,
    Can you please help me  i need to  Connect Adobe form to WEB Services .
    what Function Module DO i need to use to Convert  or to create ADOBE Forms.
    once after Createing i need to connect to web service through SAP>
    Regd's
    Raj

    /people/r.eijpe/blog/2007/01/08/performing-sap-interactive-forms-by-adobe
    Expert Forums » SAP NetWeaver » SAP Interactive Forms by Adobe
    https://www.sdn.sap.com/irj/sdn/interactiveforms
    /people/thomas.jung/blog/2006/06/20/web-dynpro-abap-demonstration-videos
    http://help.sap.com/saphelp_nw2004s/helpdata/en/18/ecb69017ad4765855425b97f666470/frameset.htm
    Regards

  • How to put the messages getting in popup window on statusbar facet:

    In panelcollection i dragged a table.in toolbar i have createinsert and committ buttons.
    i am able to display the messages like "*Dupliacte rows not allowed* " using customErrorhandler by ovveriding the getdisplaymessage() when JBO,SQl exceptions occured.
    and also able to display message like "*record saved successfully* " using managed bean method.
    i am getting these messages in popup window.but i want to get these messages in statusbar of panelcolletion.
    please anyone help me what i need to do.
    Thanks
    Sailaja.

    Hi,
    Check the below sample code
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        </fx:Declarations>
        <fx:Style>
            @namespace s "library://ns.adobe.com/flex/spark";
            @namespace mx "library://ns.adobe.com/flex/mx";
            s|BorderContainer {
                background-image:Embed(source="image/wheres_the_green_rez.jpg");
                background-image-fill-mode:clip;
        </fx:Style>
        <s:TitleWindow width="100%" height="100%">
            <s:BorderContainer width="100%" height="100%"/>
        </s:TitleWindow>
    </s:Application>
    Regards,
    Anitha

  • How to display an ADOBE FORM in the same view

    Hi forum
      I am displaying an Adobe Form in a view of Web Dynpro for Java, but when this open, the adobe form open another windows with de pdf... how can i diplay this adobe form in the same view ?
    Thnks
    Josué Cruz

    Hi Josué Cruz,
    Insert the 'Interactive Form' UI element in the desired view.
    And bind its 'pdfSource' property to the context atribute pdf source. Optionally, you can set height and width of the form.
    -Aarthi

  • To integrate the Adobe form in webdynpro ABAP

    Hi Experts,
                    How to use the adobe form in Webdynpro ABAP?
    Thanks & regads
        Vino

    That is quite the general question and I think if you search SCN you will find many resources - such as videos, tutorials, how-to guides, documentation - on the subject.  Perhaps just starting with the online Help and the associated links form the help article will get you started:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/0f/128841e8231709e10000000a155106/frameset.htm

  • Access the adobe form pdf data in abap or java programs

    Hi,
    We created an adobe form, with few text boxes, and emailed to user for filing his data into the pdf file.
    He filled the text boxes and saved the pdf, and sent back the pdf file by mail.
    Now our requirement is:
    we need to read the values entered by the user in pdf and update in certain ztables using abap or java.
    case 1: using abap
    How can abap program read the entries/values in pdf.
    is there any doc/blog that shows how to access the adobe form data in abap.
    do we need to use/install any software for this.
    case 2: using java
    Is it possible to read/retrive the adobe form data into java. once the data is into java program, i can utilise the data for several puposes.

    using ABAP:
    check the program: FP_PDF_TEST_03
    This program reads the data from Adobe into XML format.
    After this you have to read the data from XML format into ABAP(hope you know how to convert XML to ABAP or simply google it).
    Thanks,
    Chandra

  • Using the Adobe Forms for printing through portal

    Hi All,
    I've got a problem with the fact that I do not know exactly how to use the Adobe Forms from the portal.
    I've got the Form Objects done (Interface & Form using SE80) and they work OK when testing the form. The Interface gathers all the datas etc. and the form displays this correctly.
    My problem now is that I need to have this form available from the portal, and this I presume needs some WebDynPro stuff or something else? I'm totally lost on this part ...
    The customer wants to have a button or link in the portal that opens a new window with the produced PDF opened in the new window, much like opening a static PDF file. The user then has the option to print the PDF him/herself using Adobe Readers own print mechanism.
    My interface has only one Import parameter (PERNR number) and one EXPORT parameter (default). The PERNR number must be supplied to the interface so that it can gather all the needed data based on this number.
    Any help on this will be greatly appreciated and rewarded accordingly.
    Thankyou in advance,
    Kim

    Hi Arnab,
    from a forms point of view:
    (I assume you have the ADS up and running on the Java stack. Without it, the form generation doesn't work.)
    If you create your form in transaction SFP and execute the corresponding program that calls the form for testing in SE38, you get to the print dialogue. Here you may choose either locl or lp01 (or any other printer accessible through your network) and then select Print Preview. This should then display the PDF in SAP GUI.
    If you are asking about general printer setup within SAP, check the corresponding documentation: http://help.sap.com/saphelp_nw04s/helpdata/en/d9/4a8eb751ea11d189570000e829fbbd/frameset.htm
    Hope this helps,
    Markus

  • How to use the separate symbol in the text field in the adobe form.

    Hi,experts,
    I don’t know how to use the separate symbol to make a paragraph separate into several lines correctly in the text field in the adobe form.
    Action:
    1. config the ADS successfully.
    2. create the adobe form with a mult-line textfield(binding the 'remark' context in the interface of the form) using sfp.
    3. create a WDA for invoke the form and transfer the 'remark' context data.
    I use the following codes to display the paragraph in the PDF document:
    CONCATENATE
    '1&#12289;aaaaaaaaaaa&#65307;'
    '2&#12289;bbbbbbbbb '
    '3&#12289;ccccccccccc'
    '4&#12289;ddddddddd'
    INTO remark .
    lo_nd_z_hr_php_payslip->set_attribute(
    EXPORTING
    name = `REMARK`
    value = remark ).
    But I found all the content aren't paragraph separate correctly in the text field in the adobe form when I run the WDA.
    Could you please give me some hints to make the paragraph separate correctly in PDF document? Thanks a lot in advance!
    My email is : [email protected]
    Best regards,
    Tao
    Edited by: wang tao on Apr 8, 2008 1:58 AM

    Hi,
    If it is just a one word value then you could use this in the exist event;
    this.rawValue    
    = util.printx(">?<*",this.rawValue);
    This changes the first character (represented by the ?) to uppercase (represented by the >) and all trailing characters (represented by the *) to lowercase (represented by the <).
    If you wanted something more general ... if they could also enter a middle name then you could call a function like;
    function        toTitleCase(textValue)
      return  textValue.toLowerCase().replace(/\b[a-z]/g, function replacer(match) { return match.toUpperCase(); });
    This uses a regex to change all lowercase letters following a word boundary to uppercase.
    Bruce

  • How to close the detach popup on click of a button in the panel collection

    Hi,
    I'm using Jdeveloper 11.1.2.3.0.
    I have an af table surrounded by panel collection. There is a button on panel collection to commit the changes in the table.
    Clicked detach button to view the table in full browser.
    On click of Commit button, the detach popup is not closed. I have set partialSubmit of that button to false. Then also detach popup is not closed.
    Can anybody suggest me how to close the detach popup on click of a button in the toolbar.
    Thanks,
    Vinod

    Hi Frank,
    Thanks for your response. Popup is not closed.
    I tried this approach, when the view tree is navigated on the Detach, I see that the tree is same as if it is traversed on the page without detach.
    Printed client id and UI component class in the while loop, result is as below.
    r1:0:pc1:t3 class oracle.adf.view.rich.component.rich.layout.RichToolbar
    r1:0:pc1 class oracle.adf.view.rich.component.rich.output.RichPanelCollection
    r1:0:ph2 class oracle.adf.view.rich.component.rich.layout.RichPanelHeader
    r1:0:pgl1 class oracle.adf.view.rich.component.rich.layout.RichPanelGroupLayout
    r1 class oracle.adf.view.rich.component.rich.fragment.RichRegion
    pgl1 class oracle.adf.view.rich.component.rich.layout.RichPanelGroupLayout
    db2 class oracle.adf.view.rich.component.rich.layout.RichDecorativeBox
    db1 class oracle.adf.view.rich.component.rich.layout.RichDecorativeBox
    psl1 class oracle.adf.view.rich.component.rich.layout.RichPanelStretchLayout
    ps1 class oracle.adf.view.rich.component.rich.layout.RichPanelSplitter
    f1 class oracle.adf.view.rich.component.rich.RichForm
    Tried with setting partialsubmit property to false on the command button, still the popup is not closed and my Faces Message are shown behind the detach popup.
    Thanks,
    Vinod

  • I am downloading illustrator, during installing, I was asked to close the adobe bridge.  I have no clue as how to close it?

    I am installing the try version of illustrator, I was asked to close the adobe bridge before the installation can be completed.  I have no clue as how to close it

    Error "Installation cannot continue until... Adobe Bridge is closed" | Installation | CS5

  • I need to align the margins of my forms with those of my website, I have looked at all the options and unfortunately I am unable to do it with access to the Adobe.form.min.CSS file which I can't access as a consumer, how else can I fix my problem

    I need to align the margins of my forms with those of my website, I have looked at all the options and unfortunately I am unable to do it with access to the Adobe.form.min.CSS file which I can't access as a consumer, how else can I fix my problem

    I need to align the margins of my forms with those of my website, I have looked at all the options and unfortunately I am unable to do it with access to the Adobe.form.min.CSS file which I can't access as a consumer, how else can I fix my problem

  • How to write a application using WDJ with the adobe form ?

    Hi, experts,
    I don't know how to write a application using !!webdynpro for java!! with the adobe form so that I can fill data to the adobe form and get data from the adobe form.
    Note: I have configed the ADS(adobe document services),and I can create a application with a interactiveform in webdynpro for abap and run it successfully, so that I can  fill data to the adobe form and get data from the adobe form.
    Do you give me some hint?
    Thanks a lot.
    Best regards,
    tao
    Edited by: wang tao on Sep 9, 2008 8:59 AM

    Hi,
    Refers the following links.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/4fd2d690-0201-0010-de83-b4fa0c93e1a9
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/5f27e290-0201-0010-ff82-c21557572da1
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70c9a954-aa20-2a10-64bb-ea0835204e03
    Thanks
    Abhilasha.

Maybe you are looking for

  • Need to setAttribute in beforeCommit in ViewObject

    Helo, i need to setAttribute in beforeCommit method in View Object. but why i always get Need to re-validate and post error ? error message : (oracle.jbo.JboException) JBO-28202: Entities invalidated in beforeCommit(). Need to re-validate and post. T

  • Report file not found error

    We recently upgraded from JBoss 4.2 to JBoss 5.1.  Our Crystal reports were working fine in JBoss 4.2, but we've had several issues in 5.1.  after resolving several issues, I have reached a point where the application iis unable to locate the .rpt fi

  • Maintaining resolutions when placing embedded files

    Hi, I am just getting the hang of placing embedded files into my documents and the issue I am having is when I place an embedded psd into another document it seems to shrink it down and lose it's sharpness. Why is this and how do I fix it? Thank You!

  • Command line jaas

    I am trying out JAAS for the first time and i am trying to runa java file com.jaas.TestJaas. I cant seem to set the system property javax.security.auth.login.confg=jass.config. I run the file with the following command java -Djavax.security.auth.logi

  • Not Able to start SOA Server

    I am using linux system with Jdeveloper 11g.I installed SOA components as a update from jdeveloper. Now i can create a domain with Weblogic and also can create a SOA server and i can also start that domain,but when i try to start the SOA domain from