Displaying a popup

HI
  I have a selection screen which has the button 'No of entries' at the application toolbar. when user clicks on it on the basis of selection in screen the data is fetched. now i want to show the the number of entries as a popup which will only have close button in it. Is there any FM to acheive this.
Thanks.

u avn use the following fm
REUSE_ALV_POPUP_TO_SELECT
CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'
      EXPORTING
  I_TITLE                       =
       i_selection                = 'X'
  I_ALLOW_NO_SELECTION          =
  I_ZEBRA                       = ' '
  I_SCREEN_START_COLUMN         = 0
  I_SCREEN_START_LINE           = 0
  I_SCREEN_END_COLUMN           = 0
  I_SCREEN_END_LINE             = 0
  I_CHECKBOX_FIELDNAME          =
  I_LINEMARK_FIELDNAME          =
  I_SCROLL_TO_SEL_LINE          = 'X'
        i_tabname                 = 'it_data'
  I_STRUCTURE_NAME              = 'ty_data'
       it_fieldcat                = ad_fdcat
  IT_EXCLUDING                  =
       i_callback_program         = ad_repid
  I_CALLBACK_USER_COMMAND       =
  IS_PRIVATE                    =
IMPORTING
<u><i><b>   es_selfield                    = it_selfield</b></i></u>
  E_EXIT                        =
      TABLES
        t_outtab                  = it_data
EXCEPTIONS
  PROGRAM_ERROR                 = 1
  OTHERS                        = 2
    IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
*IFLAG = 0 .
  ENDIF.
<u><i><b>just pass the internal table with data to this fm and also the catalog name which u will build . catalogue contains the fields and thier order to be displayed in pop up</b></i></u>
code for catalogue is
declaring field catalog
  DATA: ad_fdcat TYPE slis_fieldcat_alv.
defining its colums
  ad_fdcat-col_pos = 1.
  ad_fdcat-fieldname = 'NETPR'.
  ad_fdcat-tabname = 'it_data'.
*AD_FDCAT-EMPHASIZE = 'C311'.
  ad_fdcat-seltext_l = 'PRICE'.
  ad_fdcat-hotspot = 'X'.
  APPEND ad_fdcat TO p_ad_fdcat.
  ad_fdcat-col_pos = 2.
  ad_fdcat-fieldname = 'WAERS'.
  ad_fdcat-tabname = 'it_data'.
  ad_fdcat-emphasize = 'C511'.
  ad_fdcat-seltext_l = 'CURRENCY'.
  ad_fdcat-hotspot = 'X'.
  APPEND ad_fdcat TO p_ad_fdcat.
  ad_fdcat-col_pos = 3.
  ad_fdcat-fieldname = 'MEINS'.
  ad_fdcat-tabname = 'it_data'.
  ad_fdcat-emphasize = 'C311'.
  ad_fdcat-seltext_l = 'UNIT'.
  ad_fdcat-hotspot = 'X'.
  APPEND ad_fdcat TO p_ad_fdcat.
<u><i><b>important</b></i></u>
<u><i><b>it_selfield field will contain the index of the selected entry.
now by looping at ur internal table u can select this index and display in ur fields</b></i></u>
loop at itab index it_selfield
do somethn
endloop.
regards
navjot
reward accordingly

Similar Messages

  • How to report print to the printer immediately and display the popup?

    Dear friends,
    I am running my report in background and displaying the confirm results on popup window and sending the results to printer,
    but now i want to send the results page to printer then  want to display the popup.
    i have writen my popup perform after printer perform only but its not working...when i am clossing the popup or came back from that popup then only the results sending to printer...
    How to report print to the printer immediately and display the popup?
    Thanks in advance
    Sridhar

    Hi Sudheer,
    I am using my print parameters like this :
        NEW-PAGE PRINT ON DESTINATION ws_printer
                             IMMEDIATELY 'X'
                             KEEP IN SPOOL 'X'
                             NEW LIST IDENTIFICATION 'X'
                             SAP COVER PAGE 'X'
                             ARCHIVE MODE '1'
                             LINE-COUNT 64
                             LINE-SIZE 170
                             NEW-SECTION
                             NO DIALOG.
    Then also its not printing immediatly.
    here one thing for displaying the popup i am using submit report(calling another report for popup purpose)
    before trigering the submit programe i need to print this.
    Thanks
    Sridhar.

  • Voucher Number to be displayed as popup

    Hello,
    Once AP invoice header details are entered and then distribution button is pressed, the following message is dispalyed as a popup:
    The sequence 80_AP_INV_10 was used to assing a value of 1004521.
    1004521 refers to voucher number. This popup is not displayed when an invoice is created from BNL - AP Manager User. I have verified the custom pll and forms personalization to know if any modifications are done to display the message, I did not observe any thing.
    Can any one let me know how can I display the popup message from BNL - AP Manager User responsibility.
    Thank You in Advance.
    Thanks,
    Srinivas

    I Presume the Pop-up which you are getting is based on the configuration of Document Sequencing for AP module.
    This set up is performed in System Administrator module.
    The steps of setup are as mentioned below:
    1) Define Document Sequences
    2) Deifne Document Categories
    3) Assign the Document Sequence
    Once the sequence is assigned to a Set of Books, which in turn is set to a responsibility via Profile Options i.e. Gl Set of Books Name.
    Secondly there is another profile option named Document Sequencing for which the values are set as Never Used, Partially or Always Used.
    Based on the above setup whenever an invioce is created a voucher number will be automatically generated and you will see the popup.
    Hope this helps.
    Thanks and Regards
    Manish Jain.

  • How to  display a popup window with tables values to input

    hi experts,
    I need to display a popup  displaying values of table in UI.
    Is there any function module to dispaly a popup.

    Hi Ashwini,
    There is no function module to call the pop up in CRM UI.
    You need to follow following steps:
    1. Create an event handler for your click event on which you want to call this pop up.
    2. Create a Z component with a table view and in the table view, define the context nodes and attributes you want to use in the  pop up view.
    3. In the .htm coding of this view, define the layout and buttons you want on this pop up view.
    4. Go to Runtime Repositry, create a ViewSet, ViewArea and in this View Area add the table view you created just now.
    5. Create a MainWindow in the Runtime repositry and add the same table view you created.
    6. Now come back to the main Component and add Component Usage (e.g CUXYZ) .......
    7. While Creating the Component Usage, mention Component Name as your Z Component name and in the Interface View, choose MainWindow from the F4 help.
    8. Go to event handler method of your main Component/View and create separate methods for creating your pop up and handling the close event of the pop up as well.
    For seeing the coding, you cna refer to any standard pop up handling and do the coding in similar format.
    I hope this will helps you.
    Thanks
    Vishal

  • How to display a popup window (DialogMessage) via code behind c#?

    hi all,
    How to display a popup window (DialogMessage) via code behind c#?
    I use sp 2013, in else case I want show the DialogMessage:
    if(condition)
    else
      HttpContext.Current.Response.Redirect(SPContext.Current.Web.Url+"/_layouts/TestError/ErrorDueDate.aspx");
    the above Redirect work good but I want show the error in a DialogMessage its better because of Usability and not redirect the user to new page...
    if not via code behind is there a better way to do it?
    thanks in advance
    Ahmad
    SP 2013 & SPD 2013 & VS 2013 & MSSQL 2012

    thanks for you answer,
    And yes I includ them via CDN, like below:
    <script
    type="text/javascript"
    src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
    <script
    src="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.9/jquery-ui.js"
    type="text/javascript"></script>
    <link
    href="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.9/themes/start/jquery-ui.css"
    rel="stylesheet" type="text/css"
    />
    But I get still the above error in my previes post.
    SP 2013 & SPD 2013 & VS 2013 & MSSQL 2012

  • How to display a popup when closing a sales order form

    Hi Team,
    I need to display a popup when a user tries to close a sales order. Can anyone please let me know if we can do it through personalization or custom.pll.
    Thanks,
    Vikash S.

    When we close order form with out saving , a pop up shows to save or not, try to check that how closing event is being captured.

  • How display a Popup of information ?

    I wuold like to display a popup In information.. I have searched on the API but I'm a beginner and ...
    Thanks a lot ...

    look at JOptionPane in the API:
    http://java.sun.com/j2se/1.4.1/docs/api/javax/swing/JOptionPane.html#showMessageDialog(java.awt.Component,%20java.lang.Object,%20java.lang.String,%20int)

  • How to display a popup message in query (through process chain)

    Hi Gurus,
    I need your help.
    I have an input query that triggers an event (through a button) and runs a process chain.
    I would like to show a popup message to inform the user when the process chain is over.
    Using function modules I've been able to show popup messages in the workbench, but I want to display this message directly in Bex Analyzer 7.0.
    Thanks
    Gabbo

    Hi,
    I'm also looking for a solution to display a custom message in the Bex Analyser at logon.
    Using function module in the logon user-exit works but only when loggin to the workbench.
    I don't want to use SM02 (which works in both cases) because I need to display a variable message depending on the user.
    If someone has an idea, I'll really appreciate.
    Best regards and happy New Year to all of you.

  • To display a popup message alongwith ALV grid

    Hi Experts,
    I have a requirement where I need to display data using ALV Grid. Also, in case there are any errors encountered during the data extraction I need to inform the user about it by using either a popup message or a status message stating that he needs to check the error log. To display the error log I have provided a push button which will take the user to another screen where he can see all the errors encountered.
    Can anyone please let me know as to how to accomplish the task of displaying a status message alongwith a ALV grid display?
    Looking forward to your reply.
    -Warm regards,
    Prajakta K.

    use exception handling and pop up.........
    try following in grid..
    *--Exception handling
    ENDIF .
    ENDIF .
    WHEN 'EU' .
    READ TABLE gt_list INDEX ls_selected_row-row_id .
    IF sy-subrc = 0 .
    CALL FUNCTION 'ZPOPUP_CONV_CURR_AND_DISPLAY'
    EXPORTING monun = 'EU'
    quant = gt_list-paymentsum.
    ENDIF .
    ENDCASE .
    ENDFORM .

  • Missing Shortcut under Conditionnal Item Display in popup window

    Just under each Condition Type in APEX, we have nice Shortcut Like [PL/SQL] [item=value] [item not null]...
    Do you know why you dont put these shortcuts in the popup windows in Conditional Item Display region when you active the Edit Links on the yellow bar ?
    I'm think is missing.
    Sylvain Michaud
    Homepage : http://www.insum.ca
    InSum Solutions' blog : http://insum-apex.blogspot.com

    Sylvain,
    Thanks for pointing this out. We'll fix it. Note that if you edit a "button item" you see these quick links.
    Scott

  • ALV table not displayed in Popup

    Hello Experts,
    I have created a view which contains an ALV table. This view is embedded in one window.
    I am opening this window on click of a button. I am reading data from one custom table and displaying it in ALV.
    The problem I am facing is that ALV displays the data the very first time window is opened. After closing the window if we again open the window the ALV table is not displayed.
    I have checked the code in debugging and values are coming in Node but not displayed. There is no visibility property attached to this ALV.
    Every thing was working fine until patching was applied. The same code is working fine in prod but in Dev I am facing this issue.
    Can any one you guys suggest me that why it is happening? Is it because of Patch upgrade  and is there any sap note to resolve this.
    Thanks in Advance
    Amit

    Hi Khandelwala,
    Is the entire ALV table disappearing? as it is a popup, the view will always be destroyed when the popup window is closed. It will be again recreated once the popup window is thrown again.
    However the component controller instance will not be freed and will exist.
    My guess is some plugs are being fired displaying empty view.
    Please let us know if it is only data that is disappearing.
    Just check the stack level of ur dev and production landscapes. If Dev is on higher version, then it might be due to patch.
    Thanks,
    Anand

  • How to make a multi column display in popup

    Hi,
    I have a popup component which gets invoked on the click of a command button. The popup display a tree with 2 level hierarchy. Since at the level 1 there are many nodes, and all getting displayed in one column, there is vertical scrollbar coming in the popup. How can I avoid scrollbar and display the level one nodes in multiple columns. For eg, show only 10 nodes in one column and then start the second column.
    Any help is highly appreciated.
    Regards,
    Ann

    I too want the tree to be hierarchical. But only thing is if my level one has 20 nodes, only 10 nodes to be shown in the first column and the remaining in the second column instead of all being shown in the same column. But clicking on any level 1 node should show the level 2 nodes hierarchically. If we go to www.oracle.com, in the top right , there is "Oracle Technology Network" menu , clicking on which will show a flyout which shows an expanded tree hierrachy in two columns. I am trying to achieve something like this in popup.

  • Displaying the Popup Help

    It was my assumption that whatever text we attach to the comments of the database columns get associated with the help text in the popup help for all the items created when a region is based on that table.
    I surely remember I saw that initially. But now its not happening. Any clue?
    Thanks
    Debraj
    Edited by: debrajgh on Dec 13, 2010 10:28 AM

    hi,
      You can change your layout using alv layout display. Use BCALV* for demo programs on alv oops.Use following link for oops alv material.
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVALV/BCSRVALV.pdf
    Message was edited by:
            veereshbabu ponnada

  • Intermittent problems displaying autocomplete popups for autotext entries

    When autotext entries are saved into a template in the startup directory. the autocomplete names for the autotext entries popup and allow the user to press Enter to expand them into the document SOME OF THE TIME.  If I save the autotext entries into
    a building blocks template in the user's appdata BB directory, the popups NEVER display.  I also know that turning the HORIZONTAL SCROLL BAR ON affects the display of the autotext popups. 
    Does anyone know how to make them appear every time?  Saving them in NORMAL.DOT is not an option.
    Thank you.

    You should NOT be getting "autocomplete/tooltips" for AutoText stored anywhere other than the normal template (or the attached template) in Word 2010. You got them for AT stored anywhere in Word 2003. You got them for no AutoText in Word 2007.
    The ability to have them for any available AT was restored in Word 2013/365.
    Automated Boilerplate Using Microsoft Word
    The naming of entries is crucial. The default (and poor) name assigned to AT entries is the beginning text in the entry. This is seldom unique. If the first four characters are not unique it can lead to problems. Also, it is possible to have different AutoText
    have the same name and stored in different templates. As with macros havng the same names stored in different templates, Word has a hierarchy.
    The F3 key has brought in AutoText entries as long as I can remember, I believe before Word 95. Again, it is looking for a unique 4-character name.
    "...saved as AUto Text | General  | Normal" to me indicates it is being saved in the normal template.
    That is the diefault location for saving AT, and seldom what you want.
    I now see that this is an older thread and you are not the original poster. You should read Stefan Blom's responses to the OP. There is no known bug in Word 2010 with AT other than the constraint of storage locations.
    Charles Kenyon Madison, WI

  • Blank popup is displayed after popup is displayed

    Hi,
    Am calling an application from a link in another application. Both the applications are in the same component. The application that is being called is being displayed in an IFRAME and am just opening the view containing the IFRAME in a popup. The problem am facing is whenever am opening some popup in the popup (application 2) there is some other blank window named SAP Popup Window. Am not sure how to attach that screen shot here but anyone has any idea how to eliminate this.
    Thanks in Advance,
    Kiran.

    So you are running another WD Component/Application within an iFrame of a parent WD Application?  This is not a recommended or supported appraoch.  You should not use iFrames to intgrate WD Components.  Instead use Component Usages to embed the component within another component (use the ALV as an example).

Maybe you are looking for

  • Import from older ibook to imac

    I had a ibook and saved my address book to a usb drive and when I got my new iMac I am unable to import the addresses. I could not use firewire because the computers did not overlap. They are for work and I switched jobs. Is there anyway to get my ol

  • My compy crashed and i lost all my stuff

    My mac crashed last semester (during finals week too!) and I lost all the songs that I had downloaded. I have tried to look around, but is there anybody who would know how to find/ download them again? I'd rather not have to spend all that again.

  • Folders and Sub Folders

    Hi, Could someone tell me if there is an easy way to open all the sub folders inside a folder? For example I'm sorting out my iTunes folder the itunes music folder has about 70 folders inside it and each one of them has other folders inside, I spend

  • Ipad 2 battery dies quick

    Hi i had this ipad 2 for 2 months now and the battery dies very quick what can i do to not make it die so fast and another problem is when i have it plugged in my laptop it says not charging on the ipad in the corner what do i do for that i think it

  • User Exit or Badi for MIRO

    Hi I need add some validations to data entry in MIRO for send their respective error messages and stop data saving. Does somebody knows some User Exit or Badi for make validations in MIRO ? Regards Frank