Creating pop up window for data display in ALV

Friends,
I need to display my data in alv popup window from there I have to select a row and display the data in new popup window. For this purpose I had written this fuction. It's working fine But I don't know how to select row from this and display data in new popup window.  when I am displaying data in alv grid ,then I am  able to display data in POPUP window after selecting a row from grid  but dont know how to jump from one pop up window to another.
form output_alv.
CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'
  EXPORTING
    I_TITLE                       = 'SALES ORDER INFO'
    I_ZEBRA                       = 'X'
    I_TABNAME                     = 1
    I_STRUCTURE_NAME              = 'VBAK'
  TABLES
    T_OUTTAB                      = it_vbak
   EXCEPTIONS
     PROGRAM_ERROR                 = 1
     OTHERS                        = 2.
endform.

The following code may be of some help:
DATA: BEGIN OF it_prmhlp OCCURS 0.
        INCLUDE STRUCTURE zaltab_param.
DATA: flg(1) TYPE c,
      END OF it_prmhlp.
  DATA: wreturn LIKE ddshretval OCCURS 0 WITH HEADER LINE,
    wstep LIKE sy-stepl.
  DATA wsel1 VALUE 'X'. wsel1 = 'X'.
  TYPE-POOLS : slis.
  DATA : listtitle(30),
         l_lines     LIKE sy-tabix,
         ls_fldcat   TYPE slis_fieldcat_alv,
         lt_fldcat   TYPE slis_t_fieldcat_alv,
         ls_selfield TYPE slis_selfield.
  progname = sy-repid.
  dynnum   = sy-dynnr.
  DEFINE fldcat_add1.
    ls_fldcat-fieldname     = &1.
    ls_fldcat-ref_tabname   = &2.
    ls_fldcat-ref_fieldname = &3.
    ls_fldcat-reptext_ddic  = &4.
    ls_fldcat-outputlen     = &5.
    append ls_fldcat to lt_fldcat.
  END-OF-DEFINITION.
  REFRESH : lt_fldcat.
  fldcat_add1 'AUREL' 'ZALTAB_PARAM' 'AUREL' 'Alloc Table Relevancy' '25'.
  fldcat_add1 'PDESC' 'ZALTAB_PARAM' 'PDESC' 'Process Description' '40'.
  REFRESH it_prmhlp. CLEAR it_prmhlp.
  SELECT * FROM zaltab_param
    INTO TABLE it_prmhlp
    WHERE tcode = sy-tcode.
  SORT it_prmhlp BY aurel pdesc.
  listtitle = 'Allocaction Table Relvancy Selection'.
  CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'
       EXPORTING
            i_title                 = listtitle
            i_selection             = wsel1
            i_zebra                 = ' '
            i_checkbox_fieldname    = 'FLG'
            i_tabname               = 'IT_PRMHLP'
            it_fieldcat             = lt_fldcat
       TABLES
            t_outtab                = it_prmhlp
       EXCEPTIONS
            program_error           = 1
            OTHERS                  = 2
  DATA wfl1. CLEAR wfl1.
  LOOP AT it_prmhlp.
    IF it_prmhlp-flg = 'X'.
      IF wfl1 = 'X'.
        CLEAR it_prmhlp. REFRESH it_prmhlp.
        MESSAGE i000(yw) WITH 'Only 1 entry can be selected...'.
        EXIT.
      ENDIF.
      wfl1 = 'X'.
    ENDIF.
  ENDLOOP.
  IF wsel1 = 'X'.
    READ TABLE it_prmhlp WITH KEY flg = 'X'.
    IF sy-subrc EQ 0.
      paurel = it_prmhlp-aurel.
      paureltx = it_prmhlp-pdesc.
      wvariant = it_prmhlp-zvariant.
      PERFORM update_screen.
    ELSE.
      CLEAR it_prmhlp. REFRESH it_prmhlp.
    ENDIF.
  ENDIF.
The trick lies in using the box fieldname which is 'FLG' in this case and the wsel1 param passed to the fm to know whether any row is selected or not.

Similar Messages

  • How to create pop-up window to search for items

    Hi,
    I want to create a pop-up window were the user will be able to search for an item and select it.
    How can I use a pop-up window in a portlet? Is there any api in the pdk for creating pop-up windows?
    Thanks

    Hi,
    Can you let me know why you are trying to use a popup window for searching?
    You can always add a search portlet - Basic,Advanced,Custom
    - which will give you the link to the respective searched items.
    I couldn't get a clear idea of your requirement.
    Thanks.

  • Is it necessary to create a seperate window for a pop up view

    Hi Experts,
    Is it necessary to create a seperate window for a pop up view? I don't want to create a seperate window for a pop up view. As I don't want to make much changes in the present program logic.
    My only problem is following code. This code finds out the window. So I have to create a seperate window for a seperate pop up view.
    I am wondering if there is any API or the same API which can allow me to call the view instead of window
    IWDWindowInfo windowInfo =(IWDWindowInfo) wdComponentAPI.getComponentInfo().findInWindows("Popup");
    IWDWindow window = wdComponentAPI.getWindowManager().createModalWindow(windowInfo);
    window.show();
    Please help.
    Regards,
    Gary

    Hi
    On OK button's action  you can Destroy the window and navigate to Page1.
    Go through this link for more details and a step by step guide for creation of pop ups  and dialog boxes
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/903fed0d-7be4-2a10-cd96-9136707374e1?quicklink=index&overridelayout=true
    Hope it works
    Regards
    Suresh

  • How to Suppress the POP UP window for Print out Device

    Hi All,
    I have One ALV Grid report and in this report I want to SUBMIT another report which, when executes gives the POP UP window for Printer Device and sends the output to that device. if we give LOCL, sends output to Spool.
    So I want to Suppress that POP UP Window and by default that POP UP window should take 'LOCL' as Printer Device.
    Thanks in advance,
    Helpful answer get awareded.

    On the submit command is a spool parameters option.
    The addition WITHOUT SPOOL DYNPRO suppresses the print dialog box that is displayed as standard when you use the addition TO SAP-SPOOL.
    The addition SPOOL PARAMETERS is used to transfer the print parameters in a pri_params structure that belongs to the data type PRI_PARAMS from the ABAP Dictionary.
    PRI_PARAMS-PDEST specificies the output device.

  • Pop up window for a single field details..

    How to display a pop up window for details of one field by click?

    hi,
    chk this.
    report zsha.
    type-pools: slis.
    data: begin of iku occurs 0,
          check type c,
          kunnr type kna1-kunnr,
          name1 type kna1-name1,
          end of iku.
    data: ifldc type slis_t_fieldcat_alv .
    data: xfldc type slis_fieldcat_alv .
    select kunnr name1 into corresponding fields of table iku
            from kna1 up to 10 rows.
    clear xfldc.
    xfldc-reptext_ddic    = 'Customer'.
    xfldc-fieldname  = 'KUNNR'.
    xfldc-tabname   = 'IKU'.
    xfldc-outputlen  = '12'.
    append xfldc to ifldc.
    clear xfldc.
    xfldc-reptext_ddic    = 'Customer Name'.
    xfldc-fieldname  = 'NAME1'.
    xfldc-tabname   = 'IKU'.
    xfldc-outputlen  = '30'.
    append xfldc to ifldc.
    call function 'REUSE_ALV_POPUP_TO_SELECT'
         exporting
              I_TITLE  = 'This is the message here'
    *          i_checkbox_fieldname = 'CHECK'
              i_tabname            = 'IKU'
              it_fieldcat          = ifldc
         tables
              t_outtab             = iku
         exceptions
              program_error        = 1
              others               = 2.
    check sy-subrc  = 0.
    popup_with_table_display.
    Usage:
    CALL FUNCTION 'POPUP_WITH_TABLE_DISPLAY'
    EXPORTING ENDPOS_COL = 41
    ENDPOS_ROW = 10
    STARTPOS_COL = 1
    STARTPOS_ROW = 1
    TITLETEXT = TEXT-202
    IMPORTING CHOISE = SEL_ROW
    TABLES VALUETAB = ITAB
    EXCEPTIONS OTHERS = 99.
    IF SY-SUBRC EQ 0 AND SEL_ROW > 0.
    READ TABLE ITAB INDEX SEL_ROW.
    REF_NAME = ITAB-TABNAME.
    ELSE.
    REF_NAME = SPACE.
    ENDIF.
    Regards,
    Anver

  • Popup window for data selection in maintenance view

    Hi,
    How to create popup window for data selection in maintenance view. For example when you go to view v_t510 in se16, there you will see a popup window to enter values. after you enter the values in that window, then data related to those values that you entered in the popup window will displayed.
    How can we do that for the custom maintenance view?
    Thanks in advance for your help guys.
    Regards,
    Srinivas.

    In your custom maintainace view, if you select the Data browser / Table view maintainace under the tab "Maint Status" as "Dispaly maintanence allowed with restriction" than system will give you popup to restrict by selection.
    Regards,
    Naimesh Patel

  • How can I shut off all of the pop-up windows for all the Firefox updates?

    How can I shut off all of the pop-up windows for all the Firefox and Thunderbird updates?
    Apparently now Mozilla creates new versions of their browser and email apps every two weeks instead of just creating updates... I'm tired of all of the pop-up requests for these constant installation requests and all the problems that the new version installations create... I just want to use the software and be left alone.
    I can't find a way to make Firefox and Thunderbird stop with the pop-up requests for new installations... is there a way to do this or has Mozilla just got it rigged so one can't just use the software without re-installing a new version every two weeks and running in to new plugin issues and missing features every time?
    Help!
    Thanks,
    numetro

    Is it possible that her computer is infected with malware.
    Do a malware check with several malware scanning programs on the Windows computer.
    Please scan with all programs because each program detects different malware.
    All these programs have free versions.
    Make sure that you update each program to get the latest version of their databases before doing a scan.
    *Malwarebytes' Anti-Malware:<br>http://www.malwarebytes.org/mbam.php
    *AdwCleaner:<br>http://www.bleepingcomputer.com/download/adwcleaner/<br>http://www.softpedia.com/get/Antivirus/Removal-Tools/AdwCleaner.shtml
    *SuperAntispyware:<br>http://www.superantispyware.com/
    *Microsoft Safety Scanner:<br>http://www.microsoft.com/security/scanner/en-us/default.aspx
    *Windows Defender:<br>http://windows.microsoft.com/en-us/windows/using-defender
    *Spybot Search & Destroy:<br>http://www.safer-networking.org/en/index.html
    *Kasperky Free Security Scan:<br>http://www.kaspersky.com/security-scan
    You can also do a check for a rootkit infection with TDSSKiller.
    *Anti-rootkit utility TDSSKiller:<br>http://support.kaspersky.com/5350?el=88446
    See also:
    *"Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked

  • How can we create a popup window for confirmation while clicking of button

    HI Friends,
    I am creating a application, In which I want to create a popup window for confirmation on clicking of a button.
    I also need two buttons on popup window i.e. 'Yes' & 'No'.
    On yes i want to perform some operation and on No i want to cancel that operation.

    Hi Narendra,
    try using the following code in ONACTION of ur button for popup :
    * Popup
       *  Generate Popup
        DATA lo_window_manager TYPE REF TO if_wd_window_manager.
        DATA lo_api_component  TYPE REF TO if_wd_component.
        DATA lo_window         TYPE REF TO if_wd_window.
        lo_api_component  = wd_comp_controller->wd_get_api( ).
        lo_window_manager = lo_api_component->get_window_manager( ).
        lo_window         = lo_window_manager->create_window(
          window_name          = 'W_POPUP'
         window_position = if_wd_window=>co_center
          message_display_mode = if_wd_window=>co_msg_display_mode_selected
          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
        DATA:  l_api TYPE REF TO if_wd_view_controller.
        l_api = wd_this->wd_get_api( ).
        " subscribe action for Ok button
        lo_window->subscribe_to_button_event(
                     button            = if_wd_window=>co_button_yes
                     action_name       = 'OK_POPUP'
                     action_view       = l_api
                     is_default_button = abap_true ).
        lo_window->open( ).
    regds,
    amit

  • While Creating New Insert Form Existing Data Display from the Table

    Hi
    I am New To Sun Java Studio Creator and New to Java Also While Creating New Insert Form Existing Data Display from the Table while i am Run the Form. Can any one help me to Solve this one

    Dear Giri,
    As per your Advise, Literally I have Search the Properties for the Components to set value Null, but I am Unable to find the Value in Properties palate. I have tried in various options like
    In the Properties Palate
    TextField1_onselect use Value null
    TextField1_text I have selected use Value option and I have manually Keyed-in null;
    In the JSP Page, I have manually keyed in the null value below said
    <ui:textField binding="#{BI.textField2}" id="textField2" style="position: absolute; left: 240px; top: 96px" text="#{BI.bDataProvider.value['ISSUENO'] = null}"/>
    <ui:textField binding="#{BI.textField2.Value = null }" id="textField2" style="position: absolute; left: 240px; top: 96px" text="#{BI.bDataProvider.value['ISSUENO'] = null}"/>
    At last I am Failure. I am ignorant of it. Can you please help me on this where I have to set null value for the components? I will be very kind of you

  • Can you enter text into "info" pop-up window for TV Shows?

    It's not a big deal, but I was just wondering if there is a way (a script perhaps) of entering text into the little "info" pop-up window for TV Shows in iTunes? (You know the one...it pops-up when you click on the little "i" in the description box on the TV Shows main playlist)
    The show files I made myself have blank info windows of course and it would be nice to be able to enter a decent length description of the episode (the character limit in the "Description" box is so short).
    Like I said, it's not a big deal, but it would be nice to be able to enter info in there...so if anybody knows how...please let me know.
    Yhanx a lot!

    Thank you very much for your reply! I will definitely pass this along to the IT department! Smiling now!

  • Why doesn't pop-up window for serial number open?

    My mother has bought the Lightroom 5 CD and is installing it but for some reason when she clicks ther installed Lr icon as told in your instruction, the serial number is not requested. The whole window with the empty boxes for serial number does not appear. I'm not sure what she has done earlier but she is saying she hasn't been able to give any serial number to her Mac (she has had earlier version in other MAc but is facing major problems with this new Mac and Lightroom, she has had trial version in this Mac). So, could the problem be that she has removed some Adobe Acrobat reader, Java, Adobe ActiveX or something and that's why the pop up window for serial number does not appear or has she managed to activate something which is blocking something or if she has already put serial number somewhere could that be blocking the process? How to change the serial number? Does Lightroom require some other sw like cloud or sth?

    Hi Sari,
    Kindly try the below mentioned steps.
    Launch Lightroom
    Click on Help.
    Click on Lightroom Registration
    Follow the on screen instruction.
    Thanks,
    Atul Saini

  • Cannot select a music into slideshow and book slideshow presentations. In the older Mac this was easy. With new Mac OS X 10.6.8 it should work as I can stop the slideshow with cursor but pop up window for choosing music is dead. I cannot drag music into i

    Cannot select a music into slideshow and book slideshow presentations. In the older Mac this was easy. With new Mac OS X 10.6.8 it should work as I can stop the slideshow with cursor but pop up window for choosing music is dead. I cannot drag music into it. Preselected music just goes on.

    I am talking about iPhoto. In my old Mac even in Books choosing slideshow gives a pop up where you can select a music from I tunes library. In this new one I can stop the slideshow with cursor and it shows music option but it is, as I said dead. Does not response at all to commands.

  • Create electronic-digital signature for data

    Hello
    As possible create electronic-digital signature for data, referred through HTTP form internet explorer?
    Thank you very much for your support.

    George,
    Thank you for your submission.  It was helpful. This allowed me to create the signature block without having to place my own digital signature in the block.  However, when I send it to my client (who has Adobe Reader but not Acrobat) she is unable to input her digital signature … I’m now half-way there but I continue to pursue a solution.
    Dave Armstrong
    ============

  • ITunes 11: Pop-up windows for quick access on iTunes Store?

    Anybody know what happend or how to get back pop-up windows for quick access on iTunes 11?
    Please see link below for I mean:
    itunes-store-adds-pop-up-windows-for-quick-access-to-content-details-and-preview s
    Thanks.

    Sounds like some security software is freaking out, because it's not been set up properly for iTunes.

  • Tried to download(offline) a book from EBSCOhost, it was successfully checked out but no pop out windows for downloading. Any thoughts? Thanks.

    Tried to download(offline) a book from EBSCOhost, it was successfully checked out but no pop out windows for downloading. Any thoughts? Thanks.

    Okay, you need to contact support definitely about what's going on. Here is a form that will send an e-mail into support for you:
    http://www.apple.com/emea/support/itunes/contact.html
    As far as the prices, the difference is likely the laptop version is the SD version and the iPad one is available in HD. That's the only reason you'll see a price difference. It has nothing to do with the device with movies/movie rentals. Apps yes, these no.

Maybe you are looking for

  • How to get rid of compounded keys on WebI report

    Hello, I am (very) new to Business Objects and Web Intelligence, and have created a Universe on a BW multicube.<br /> When I setup the WebI report doc, the Fiscal year (and Fiscal Period/year) are showing with the Fiscal Variant as a prefix (e.g. Z3/

  • [SOLVED] Confused about development packages

    To build an embedded linux image using minifs utility, I need to install some development packages. The packages listed in the tutorial are named for Debian based distros, with the "-dev" suffix. Some of the listed packages are: libz-dev, libelf-dev,

  • Unable to create an instance of the Calendar Server after installation

    After installing Calendar Server, I am unable to create an instance of the Calendar Server. Instead, I receive the following error: <P> Error: "Authentication Credentials could not be obtained from the Admin Server" Check the /users/unison/misc/uniso

  • Logic express serial number

    does anyone know where to find serial # on Logic Express? all I can see is a number on side of box underneath product name- this is on a "sticker". there is no number on printed docs. I saved everything that came in package; want to upgrade to Logic

  • FCE Losing Render Files After Project is Copied

    I've been having a vexing problem that's been costing me a lot of time. FCE keeps losing the render files for my projects, or more accurately, it is overwriting them or otherwise making them disappear. More background: I have a large master project t