Custom pushbutton in ME21N should display a popup window with item details

Hello,,
The requirement is to
1. Add a custom pushbutton in ME21N screen at header level.
2. The user will select some PO line items and will click on this push button.
    This inturn should trigger a popup window with item details only for those selected PO line items along with schedule line qty.
I have created the custom push button in a custom tab using the BADI ME_GUI_PO_CUST.
Now I am not able to retrieve item details and schedule line details inside the PAI of the custom tab..
i.e., when i click on the custom push button, I am not able to retrive the item data and schedule line data.
Please help me to retrive PO line item data and schedule line data.
Regards,
Sharah

JSF is not so relevant in this question. It's all about how the generated client side code look like. Which is usually a bunch of HTML/CSS/JS (open page in browser, rightclick and view source). If you know HTML, you should know that using target="_blank" in a <form> or <a> element would open a new window. If you know JS, you should know that using window.open() would open a new window.
Apply this so in the JSF source code so that the generated HTML/JS output is exactly what you want.

Similar Messages

  • 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

  • I want to suppress the display of additional windows with a popup blocker

    I am on the website "nscorp.com" and am trying to open a window in the website. I am getting the message " The info is displayed in a new window. If you want to suppress the display of additional windows with a popup blocker, you must first deactivate this."
    How do I do this?

    I'm not sure what you want to achieve?
    Do you have a problem with displaying pop-ups and can't you open a pop-up or do you want to suppress a pop-up or do you get a notification?
    Can you attach a screenshot?
    *http://en.wikipedia.org/wiki/Screenshot
    Use a compressed image type like PNG or JPG to save the screenshot and make sure that you do not exceed the maximum file size (1 MB).

  • I upgraded to Mountain Lion (MacbookPro). Now when I open ical I get a popup window with a list I had added to Reminders app with the message 'Your calendar couldn't be refreshed' it won't go away-'delete' is greyed out-can't access calendar! Help!

    I upgraded to Mountain Lion (MacbookPro). Now when I open ical I get a popup window with a list I had added to Reminders app with the message 'Your calendar couldn't be refreshed' i--t won't go away-'delete' is greyed out--can't access calendar! Help!

    I upgraded to Mountain Lion (MacbookPro). Now when I open ical I get a popup window with a list I had added to Reminders app with the message 'Your calendar couldn't be refreshed' i--t won't go away-'delete' is greyed out--can't access calendar! Help!

  • What happened to the "Block Popup Windows" menu item in Safari 6?

    What happened to the "Block Popup Windows" menu item in Safari 6?  Seems to be gone.

    Shheesh!  Loki is saying that this was a very useful tool/option.  Is there any way to BRING IT BACK TO THE SAFARI MENU?  Not how to do it in Preferences.
    What I am saying is: What incompetent is responsible for this build of Safari?  There was no reason to take that out... plenty of room in the Safari menu.  But if you REALLY want to know why I'm ******, Older people can no longer go into "Appearances" and change the Fonts and Size without knowing how to use terminal or how to make .css files.  (which doesn't work well anyway)
    This build is infuriating.

  • Popup window with radio button-urgent

    Hi..
    Is ther any functionmodule for dispalying a popup window with radio button ....

    Use This
    K_KKB_POPUP_RADIO2
    I_TITLE   ...                      This is the title                       
    I_TEXT1   ...                      first radio button                      
    I_TEXT2    ...                     second radio button                     
    I_DEFAULT     ...                  default                     
    reward if useful
    Amit Singla

  • Popup windows with annotation

    When I click on an annotation, a litle popup windows is coming in the middle of the screen. Does it exit a way (preferences) to make this popup window to fit the entire screen (easier to read the text inside the popup windows with th vertical scroll bar).

    There is really no way to expand this popup ?
    Because on a PC, Adobe Reader is taking care of the dimensions I gave to this popup.
    I use QuickPdf library to do that. The command is :
    int QuickPDFAddNoteAnnotation(int InstanceID, double Left, double Top,
    int AnnotType, double PopupLeft, double PopupTop,
    double PopupWidth, double PopupHeight, wchar_t * Title,
    wchar_t * Contents, double Red, double Green, double Blue,
    int Open)
    Parameters
    Left The horizontal co-ordinate of the anchor for the annotation
    Top The vertical co-ordinate of the anchor for the annotation
    AnnotType The annotation type:
    0 = Note
    1 = Comment
    2 = Help
    3 = Insert
    4 = Key
    5 = New paragraph
    6 = Paragraph
    Add 100 to any of the above values to suppress the date shown in the popup
    annotation's title
    PopupLeft The horizontal co-ordinate of the left edge of the popup window
    PopupTop The vertical co-ordinate of the left edge of the popup window
    PopupWidth The width of the popup window
    PopupHeight The height of the popup window
    Title The title of the annotation
    Contents The body of the popup annotation
    Red The red component of the color of the annotation
    Green The green component of the color of the annotation
    Blue The blue component of the color of the annotation
    Open Specifies whether to show the annotation when the document is opened:
    0 = hide
    1 = show
    Unfortunatly the Android Adobe reader doesn't take care of theses values and put the popup windows in the middle of the screen
    It's very difficult to read the text on an galaxy SII : too small
    Thanks

  • How to create a popup window that shows detail information when press submi

    hi,all
    how to create a popup window that shows detail information when press the submit button ?I mean,when I press the button "Sumit"there will appear a popup window that shows the detail information you typed before.it means are u sure to submit,it is like some confirmation window.
    how to do achieve this ?help plz .
    best regards
    hlee
    Edited by: hlee on 2011-4-15 上午1:26

    hey,vee
    thanks for your response,but i had already read this thread before i put up a new question.any way,thanks.
    best regards
    hlee

  • 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

  • Function module for popup window  with list display.

    Hi,
       I need simple program or function module name that accepts internal table as input and displays the content of the internal table as list in popup window.
    Regards
    Madhu.

    Hii Madhu
    check this fm
    <b>REUSE_ALV_POPUP_TO_SELECT</b>
    check this implementation..
    *& Report  ZALV_SAMPLE                                                *
    *& Program for displaying data using function modules :                *
    *& REUSE_ALV_LIST_DISPLAY                                              *
    *& REUSE_ALV_POPUP_TO_SELECT                                           *
    *& REUSE_ALV_GRID_DISPLAY                                              *
    REPORT  ZALV_SAMPLE                            .
    TABLES VBAK.
    DATA it_vbak LIKE VBAK OCCURS 0 WITH HEADER LINE.
    SELECTION-SCREEN uline.
    PARAMETERS: ALV1 RADIOBUTTON GROUP ALV,       "REUSE_ALV_LIST_DISPLAY
                ALV2 RADIOBUTTON GROUP ALV,       "REUSE_ALV_POPUP_TO_SELECT
                ALV3 RADIOBUTTON GROUP ALV,       "REUSE_ALV_GRID_DISPLAY
                ALV4 RADIOBUTTON GROUP ALV.       " NORMAL DISPLAY
    SELECTION-SCREEN uline.
    SELECT * FROM  VBAK
             INTO CORRESPONDING FIELDS OF TABLE it_vbak
             UP TO 10 ROWS.
    IF ALV1 = 'X'.
       PERFORM ALV_FUNC1.
    ELSEIF ALV2 = 'X'.
       PERFORM ALV_FUNC2.
    ELSEIF ALV3 = 'X'.
      PERFORM ALV_FUNC3.
    ELSEIF ALV4 = 'X'.
      PERFORM NORM.
    ENDIF.
    *&      Form  ALV_FUNC1
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM ALV_FUNC1 .
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
      EXPORTING
        I_STRUCTURE_NAME               = 'VBAK'
      TABLES
        T_OUTTAB                       = it_vbak
       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.
    ENDFORM.                    " ALV_FUNC1
    *&      Form  ALV_FUNC2
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM ALV_FUNC2 .
    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
    IF SY-SUBRC <> 0.
       MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDFORM.                    " ALV_FUNC2
    *&      Form  ALV_FUNC3
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM ALV_FUNC3 .
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
      EXPORTING
        I_STRUCTURE_NAME                  = 'vbak'
        I_GRID_TITLE                      = 'SALES ORDER INFO'
      TABLES
        T_OUTTAB                          = it_vbak
       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.
    ENDFORM.                    " ALV_FUNC3
    *&      Form  NORM
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM NORM .
    format intensified.
    skip 1.
    WRITE: /'SALES DOC.',
            '    Created on ',
            '    Time',
            '      Created by',
            '       Valid from ',
            '     Sold-to party'.
    format intensified off.
    skip 2.
    LOOP AT it_vbak.
    write: / it_vbak-vbeln,'   ',
             it_vbak-erdat,'   ',
             it_vbak-erzet,'   ',
             it_vbak-ERNAM,'   ',
             it_vbak-ANGDT,'       ',
             it_vbak-KUNNR.
    endloop.
    ENDFORM.                    " NORM
    Reward points if helpful
    Revert back for more help
    REGARDS
    Naresh

  • Not closing popup window with firing Exitplug

    Hi Friends,
    Could you please help me in resolving below webdynpro issue.
    With a button (SAVE) click on 1st webdynpro application, Iu2019m calling a confirmation popup window using CREATE_POPUP_TO_CONFIRM method ("Data has been saved" is the message in the popup window). Then with the OK button on confirmation popup window, Iu2019m calling the EXIT plug to go to another webdynpro application
    Issue is: If I execute this webdynpro application in Enterprise Portal then the confirmation popup window is not getting closed even after reaching to the 2nd webdynpro.
    But If I execute direct webdynpro URL, confirmation pop is getting closed and there is no issue.
    CODE:
    Code for SAVE button action: Here Im calling the confirmation popup window.
        DATA: lt_text TYPE string_table.
        DATA: mr_popup_window TYPE REF TO if_wd_window.
    pop a confirmation window for display purpose
        DATA: l_window_manager TYPE REF TO if_wd_window_manager,
              l_cmp_api        TYPE REF TO if_wd_component,
        l_window         TYPE REF TO if_wd_window.
        l_cmp_api        = wd_comp_controller->wd_get_api( ).
        l_window_manager = l_cmp_api->get_window_manager( ).
        APPEND 'Data has been saved' TO lt_text.
        CALL METHOD l_window_manager->create_popup_to_confirm
          EXPORTING
            text           = lt_text
            button_kind    = if_wd_window=>co_buttons_ok
            default_button = if_wd_window=>co_button_ok
          RECEIVING
            result         = mr_popup_window.
    associated the action handling methods with the window
        DATA: view_controller TYPE REF TO if_wd_view_controller.
        view_controller = wd_this->wd_get_api( ).
        mr_popup_window->set_remove_on_close( abap_true ).    CALL METHOD mr_popup_window->subscribe_to_button_event
          EXPORTING
            button      = if_wd_window=>co_button_ok
            action_name = 'ON_SUCCESS_OK'
            action_view = view_controller.
        mr_popup_window->open( ).
    Code for OK button action of POPUP window: Here Im calling the EXIT plug.
        DATA: lr_ref TYPE REF TO ig_yics_userdefault,
              lv_url TYPE string.
        CALL METHOD cl_wd_utilities=>construct_wd_url
          EXPORTING
            application_name = 'YICS_HOMEPAGE'
          IMPORTING
            out_absolute_url = lv_url.
        lr_ref = wd_this->get_yics_userdefault_ctr( ).
        lr_ref->fire_go_exit_plg( url = lv_url ).
    Regards,
    Vijay.

    >Exit plugs do not work in a portal environment.
    This is a good point that I feel silly for not remembering...
    You can check if your application is running in the portal using the IF_WD_APPLICATION->GET_CLIENT_ENVIRONMENT method
      lo_api_componentcontroller = wd_this->wd_get_api( ).
      lo_api_application = lo_api_componentcontroller->get_application( ).
      l_client_environment = lo_ap_application->get_client_environment( ).
    if it is - then you can use the IF_WD_PORTAL_INTEGRATION interface
    lo_portal_integration = lo_api_componentcontroller->get_portal_manager( ).
    and the you can use the IF_WD_PORTAL_INTEGRATION methods to navigate eg - NAVIGATE_ABSOLUTE
    call method lo_portal_manager->navigate_absolute
        exporting
          navigation_target   = 'ROLES://portal_content/blah/test_URL'
          navigation_mode     = if_wd_portal_integration=>co_show_inplace
    If you're navigating in the portal you should probably have iViews set up for the apps you are calling, but it is possible to create a pass-through iView which will redirect to a URL passed as a parameter.
    [Setting the URL at Runtime - in URL iVIew|http://help.sap.com/saphelp_nw04/helpdata/en/45/85087d755d1f88e10000000a1553f6/frameset.htm]
      data lo_api_component  type ref to if_wd_component.
      data lo_portal_manager type ref to if_wd_portal_integration.
      data lt_params type wdy_key_value_list.
      data ls_param type wdy_key_value.
      lo_api_component = wd_comp_controller->wd_get_api( ).
      lo_portal_manager = lo_api_component->get_portal_manager( ).
      ls_param-key = 'forcedURL'.
      ls_param-value = 'http://www.google.com'.
      append ls_param to lt_params.
      call method lo_portal_manager->navigate_absolute
        exporting
          navigation_target   = 'ROLES://portal_content/blah/test_URL'
          navigation_mode     = if_wd_portal_integration=>co_show_inplace
          use_sap_launcher    = abap_false
          launcher_parameters = lt_params.
    Hope this helps
    Chris
    Chris

  • ReturnListener invocation when closing popup window with (X) Button

    When I use a bounded task flow in an inline-pop, when the user clicks on the upper right (X) button of the popup window, the ReturnListener
    is not invoked which needs to be called in my use case because I need to refresh the caller’s table displayed in the calling screen. Do you know if there is a way to invoke the ReturnListener method to be invoked in case of closing the dialog via (X) button on the top right? Or how to refresh(addPartialTrigger) the caller’s table in that case.
    This behavior is described in Andrejus following
    http://andrejusb.blogspot.com/2009/11/crud-operations-in-jdeveloperadf-11g-r1.html
    Thanks for your feedback.
    Best Regards,
    JP

    Hi,
    We created our own region in popup system partly for that reason. You have to add a popupClosed client listener and send a custom event to the server to in turn call the returnListener. Sadly, it's really not simple to implement, so I cannot come up with a good solution for you. :(
    Regards,
    ~ Simon

  • Popup Window with coordinates from Browser

    Hi
    I have a problem with the popup window display.
    My requirement is:
    I have a flex application ,with height=200,width=200, which
    is occupying small amount of the browser window space.
    In the application, when i click on a button a new popup
    window is to be created with height=700 and width=700.
    I created the samething.
    But the problem is, the popup is displaying(overlaying)
    within the flex application area, where the full screen of the
    popup window will not be shown. bcoz the flex application is having
    only 200 Height & 200 Width.
    I want to have something like the popup window should be
    displayed with browser coordinates and overlayed on the browser
    window.
    Can anybody suggest me how to get this...
    I appreciate the help.
    thanks
    KVS

    You would have to open a new browser window by hitting
    another html page with a different SWF file in the html. I think
    that would be the easiest way.

  • F110 - An email should go to the vendor with payment details?

    Hi
    Friends,
    When payment is done through F110, an email should go to the vendor with the payment details. The vendor email stored in master record.
    I done entire configuration BTE (Business Transaction events) I checked FBZP - country/company code it is showing correctly.
    Form for the Payment Advice - ZF110_US_AVIS
    Payment medium program - RFFOD__U
    Form for the Payment Medium - ZF110_US_AVIS
    I posted FB60, F110, But am not getting an email in T code SOST.
    Kindly help me where I gone wrong?
    My Functional module name is ZF_F110_PROCESS_00002040
    Thanks

    Hi Anil,
    check this may be useful for you...
    There is a custom table YFEMAIL_PAYADV maintained in sm30. This table contains Flags for Emails and Fax for each combination of Company Code and Payment Method.
    Every time a Payment Advice is sought to be generated after executing F110 transaction this BTE is triggered. The Function module attached to this BTE then checks the combination of the Company code and Payment method from the REGUH table in the custom table YFEMAIL_PAYADV. If the flag for email is checked for the given combination, it would trigger an email to the recipient, maintained in the vendor master data. If email address is missing in Vendor Master Data, it will check for the Fax flag. If the Fax Flag is checked in the custom table, it would send the fax to the Fax number maintained in the Vendor Master. If the Fax number is missing as well in the vendor master, a print out of the Payment Advice is generated.
    However, if the email flag is not maintained for a combination of the Company code and Payment method in the custom table, the system would exit from the Function Module.
    Master Data Maintenance :
    u2022The email address of the recipient should be maintained in the vendor master and the
    Notes ID u2018PAYADVu2019 should be maintained just next to the recipient the mail is intended to be sent. The first email address (with the radio button) is the default email address used by the system to send other documents (like P.O etc). The email address where Notes ID is u2018PAYADVu2019 will be used to email the Payment Advice. Hence this care needs to be taken while maintaining the email addresses in the Vendor Master.
    Variant for the Payment Program:-
    The checkbox for u2018Print payment advice notesu2019 in the variant attached should be checked.
    Check the SAP Connect gateway - T.code : S0SB or S0SG
    Technical settings in SAP Connect :-
    The email addresses and fax numbers of the Vendors would be activated in SAP Connect so that emails or facsimile could be sent from R3 to external systems. Using the Transaction u2018SCOTu2019 the nodes u2018SMTPu2019 for Emails
    t/r
    Gopinath

Maybe you are looking for