ALV inside popup

Hi!
I create popup window with ALV grid inside it with method if_wd_window_manager->create_window.
When the popup is shown for the first time everything is ok, but for the second and subsequent times the ALV disappears from the popup.
Probably when the window is closed the ALV must be destroyed in some special way. Or may be there is other reason.
Can anyone give an advice on this issue?

Hi,
Where are you writing the code to populate the ALV ??
If you are writing the code in WDOINIT of the popup then it will show data only for the first time, since the WDOINT is called only once.
Check that.
Regards,
Bharat

Similar Messages

  • Embeding Regions inside Popup Windows-Pattern

    Hi folks,
    i'm trying to build a prototype using the "Embeding Regions inside Popup Windows"-Pattern.
    I've got one emp-VO on a jspx page and a popup displaying the same VO as read-only table in a region created from a fragment.
    The popup should be used to choose a employee that could be edited on the underlying formular.
    The problem:
    When the popup opens only the header of the table and the text "Daten werden übertragen" (Fetching data) is displayed.
    But data is never displayed.
    Does somebody know what's going on?
    Thanks!

    Hi,
    if you use a dynamic region for this, make sure the managed bean that switches between the empty task Flow id and the Task Flow to show is neither in backingBeanScope, nor in request scope. It should be at least in viewScope.
    Frank

  • LED in field of ALV(OOPs oriented)- Traffic lights in ALV filter popup

    Hi experts,
    Am showing LED in field of ALV(OOPs oriented)and when i click on  ALV filter for led field..it shows me Traffic lights in poup for filter.Please help me to get LED in filter popup also.
    Thanks,
    Sajay.

    Hi,
    Use the fuction module 'ICON_CREATE' as follows.
    CALL FUNCTION 'ICON_CREATE'
        "To create Red/Yellow/Green traffic icons
          EXPORTING
            name   = wrk_light
          IMPORTING
            RESULT = ip_status.
    wrk_light can be;
    'ICON_RED_LIGHT'
    'ICON_YELLOW_LIGHT'
    or 'ICON_GREEN_LIGHT' according to your scenario, that you can use the logic for your scondition.
    Use it in PBO.
    Regards,
    Renjith Michael.

  • Commandbutton inside popup does not fire action/actionlistener methods

    Hi,
    I am using 11.1.1.4.0
    I have a page and on click of a button on that page, I launch a popup (using showpopupbehaviour, triggertype="click") which has a region (taskflow) inside it. The region is within a af:panelWindow inside the popup. I have also added 2 commandbuttons in the popup. Everything works fine, but the when the popup is visible, and I click the 2 command buttons on the popup, it does not execute the action method (or actionListener) method that I defined for those buttons. Any idea why this must be happening?
    Code for the popup:
    <af:popup id="popup1" contentDelivery="lazyUncached" binding="#{BackingBean.popup}">
    <af:panelWindow modal="true"
    title="#{pageFlowScope.tabContext.outcomeForPopup}"
    id="paWin12"
    helpTopicId="TOPICID_ALL"
    resize="on">
    <af:panelTabbed id="pt123" position="above"
    inlineStyle="width:650px; height:650.0px;">
    <af:showDetailItem id="sdi0"
    text="#{pageFlowScope.tabContext.outcomeForPopup}"
    stretchChildren="first"
    accessKey="0"
    immediate="true">
    <af:region value="#{bindings.r0.regionModel}"
    id="r1"/>
    </af:showDetailItem>
    </af:panelTabbed>
    <af:commandButton text="First"
    action="#{BackingBean.firstClick}"
    actionListener="#{BackingBean.firstClick}"
    id="cb3">
    </af:commandButton>
    <af:commandButton text="Second"
    action="#{BackingBean.secondClick}"
    actionListener="#{BackingBean.secondClick}"
    id="cb4">
    </af:commandButton>
    </af:panelWindow>
    </af:popup>
    In the page definition of the main screen, I have this taskflow added
    <taskFlow id="r0" Refresh="ifNeeded" activation="deferred"
    xmlns="http://xmlns.oracle.com/adf/controller/binding"
    taskFlowId="#{pageFlowScope.tabContext.taskFlowIdForPopup}">
    <parameters>
    <parameter id="outcome"
    value="#{pageFlowScope.tabContext.outcomeForPopup}"
    xmlns="http://xmlns.oracle.com/adfm/uimodel"/>
    <parameter id="tabContext" value="#{pageFlowScope.tabContext}"
    xmlns="http://xmlns.oracle.com/adfm/uimodel"/>
    </parameters>
    </taskFlow>
    Thanks
    Vishal

    Hi friend ,
    1,Inside the pop up u give two command buttons and double click the one button and it asking for create one bean.
    2.U create the bean and inside u give coding like
    public class popvisible
    public popvisible()
    public String page1naviagetion()
    // Add event code here...
    return "popTouser";(This is is Control flow case name it will go to another JSPX page.)
    public String page2navigation()
    // Add event code here...
    return null;
    }

  • CreateInsert for Detail Iterator INSIDE popup possible?

    ADF 11gR1
    Table Structure: MASTER >1:n> DETAIL >1:n> SUBDETAIL
    I have button that performs a create for MASTERIterator then opens a popup with an edittable form. In that form, I have af:iterator for DETAILIterator's attributes, as well as a table for SUBDETAILIterator. There are also createinsert pushbuttons for DETAILIterator and SUBDETAILIterator.
    I have the popup set to lazyUncached.
    When clicking on the createinsert for the DETAILIterator, the popup immediately closes.
    If this form is moved out of a popup to a standard page, it works fine. I assume because createInsert for a af:iterator tag would need to render additional HTML, perhaps this isn't possible in a single popup? I rather not perform this functionality as a "popup w/ a nested popup."
    Don't know if this is even possible, but I'm looking for insight.
    Thanks,
    -R

    for now i deleted the grandchild table (SUBDETAIL), so in the pop-up I only have
    MASTER (as a form)
    DETAIL (as a form inside an af:iterator tag).
    For example (don't have access to the machine at this moment, so excuse the pseudo-code)
    Master.attribute1
    Master.attribute2
    Master.attribute3
    <create-insert pushbutton for DETAIL>
    <af:iterator>
    row.DETAIL.attribute1
    row.DETAIL.attribute2
    </af:iterator>
    The af:iterator tag does not have a PartialTrigger attribute.
    Edited by: Roy R on Oct 27, 2009 3:51 PM

  • ShowPrintablePageBehavior is not working inside popup. Is it an ADF Bug?

    Hi,
    I am facing some issues with showPrintablePageBehavior component.
    1. I have placed a command button with showPrintablePageBehavior inside a popup. But I am getting a blank page in print mode. But the showPrintablePageBehavior is working fine without popup.
    2. I have a pivot table with a button having showPrintablePageBehavior and these components are surrounded with panelSplitter. But pivot table is not rendering in print mode.
    Using JDeveloper 11.1.1.5.0 / 11.1.1.6 - adfbc
    code:
    <af:form id="f1">
    <af:panelSplitter id="ps1">
    <f:facet name="first">
    <af:panelGroupLayout layout="scroll"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
    id="pgl1">
    <af:commandButton text="Popup" id="cb1">
    <af:showPopupBehavior triggerType="action" popupId="p1"/>
    </af:commandButton>
    <af:commandButton text="Print" id="cb3">
    <af:showPrintablePageBehavior/>
    </af:commandButton>
    <af:outputText value="Hai Output Text" id="outputText1"/>
    <af:popup id="p1">
    <af:dialog id="d2">
    <af:panelSplitter id="ps2">
    <f:facet name="first">
    <af:panelGroupLayout layout="scroll"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
    id="pgl2" clientComponent="true">
    <af:commandButton text="Print" id="cb2">
    <af:showPrintablePageBehavior/>
    </af:commandButton>
    <af:outputText value="Hai Popup Output Text" id="it9"/>
    <af:clientAttribute name="print" value="true"/>
    </af:panelGroupLayout>
    </f:facet>
    </af:panelSplitter>
    </af:dialog>
    </af:popup>
    </af:panelGroupLayout>
    </f:facet>
    </af:panelSplitter>
    </af:form>
    Thanks,
    Dinil Mithra V S

    Thank you Srinivas,
    Point 1.
    I wanted to print the content of popup. So I have placed an af:outputText text inside af:panelSplitter component. But this layout is not rendering in print mode while printing from a popup ant it works without popup.
    Point 2.
    I have downloaded and deployed oracle dvt-demo war into my local wls.I can see the same issue (pivot table is not rendering in print mode) in my local deployed version.
    Thanks,
    Dinil Mithra V S

  • Hierarchical ALV in PopUp

    Hi.
    I want display my data into a  popup. But I want to use a hierarchical ALV.
    Can I do?
    Regards
    Angela

    hi check this example code..
    *& Report  ZPR_02
    REPORT  ZPR_02.
    TYPE-POOLS: SLIS.
    Tables Declaration.
    TABLES: VBAK.
    Constants
    CONSTANTS : C_X VALUE 'X',
                C_GT_VBAP TYPE SLIS_TABNAME VALUE 'IT_VBAP',
                C_GT_VBAK TYPE SLIS_TABNAME VALUE 'IT_VBAK'.
    *Internal tables and data declaration.
    DATA: BEGIN OF IT_VBAK OCCURS 0,
            VBELN LIKE VBAK-VBELN,
            VKORG LIKE VBAK-VKORG,
            WAERK LIKE VBAK-WAERK,
            EXPAND TYPE XFELD,
          END OF IT_VBAK,
          BEGIN OF IT_VBAP OCCURS 0,
             VBELN LIKE VBAP-VBELN,
             POSNR LIKE VBAP-POSNR,
             MATNR LIKE VBAP-MATNR,
             NETWR LIKE VBAP-NETWR,
          END OF IT_VBAP.
    DATA: WA_FIELD_CAT TYPE SLIS_FIELDCAT_ALV,
          IT_FIELD_CAT TYPE SLIS_T_FIELDCAT_ALV,
          WA_KEYINFO TYPE SLIS_KEYINFO_ALV,
          IT_LAYOUT TYPE SLIS_LAYOUT_ALV,
          WA_SORT     TYPE SLIS_SORTINFO_ALV,
          IT_SORT     TYPE SLIS_T_SORTINFO_ALV. " Sort table
    *Selection Screen.
    SELECTION-SCREEN: BEGIN OF LINE,
                      COMMENT 5(25) V_1 FOR FIELD P_MAX.
    PARAMETER P_MAX(2) TYPE N DEFAULT 10 OBLIGATORY.
    SELECTION-SCREEN: END OF LINE.
    SELECTION-SCREEN: SKIP,
                      BEGIN OF LINE,
                      COMMENT 5(25) V_2 FOR FIELD P_EXPAND.
    PARAMETER: P_EXPAND AS CHECKBOX DEFAULT 'X'.
    SELECTION-SCREEN END OF LINE.
    *Initialization
    INITIALIZATION.
      V_1 = 'Max No of Record read'.
      V_2 = 'With expand'.
    *Start Of selection.
    START-OF-SELECTION.
    *Selecting the data.
      PERFORM SELECT_DATA.
    *Populating the field catelogue.
      PERFORM BUILD_FIELD_CAT.
    *Displaying the final output.
      PERFORM DISPLY_OUTPUT.
          Form USER_COMMAND                                             *
    FORM USER_COMMAND USING I_UCOMM     TYPE SY-UCOMM
                            IS_SELFIELD TYPE SLIS_SELFIELD.     "#EC CALLED
      DATA LS_VBAK LIKE IT_VBAK.
      CASE I_UCOMM.
        WHEN '&IC1'.                       " Pick
          CASE IS_SELFIELD-TABNAME.
            WHEN C_GT_VBAP.
            WHEN C_GT_VBAK.
              READ TABLE IT_VBAK INDEX IS_SELFIELD-TABINDEX INTO LS_VBAK.
              IF SY-SUBRC EQ 0.
              Sales order number
                SET PARAMETER ID 'AUN' FIELD LS_VBAK-VBELN.
              Display Sales Order
                CALL TRANSACTION 'VA03' AND SKIP FIRST SCREEN.
              ENDIF.
          ENDCASE.
      ENDCASE.
    ENDFORM.                               " USER_COMMAND
    *&      Form  Select_data
          Selecting the data.
    FORM SELECT_DATA .
      SELECT VBELN
             VKORG
             WAERK FROM VBAK
           INTO TABLE IT_VBAK
           UP TO P_MAX ROWS.
      IF NOT IT_VBAK[] IS INITIAL.
        SELECT VBELN
               POSNR
               MATNR
               NETWR FROM VBAP
             INTO TABLE IT_VBAP
             FOR ALL ENTRIES IN IT_VBAK
             WHERE VBELN = IT_VBAK-VBELN.
      ENDIF.
      SORT IT_VBAP BY VBELN.
      SORT IT_VBAK BY VBELN.
    ENDFORM.                    " Select_data
    *&      Form  Build_field_cat
         Populating the field catelogue.
    FORM BUILD_FIELD_CAT .
      DEFINE M_FIELDCAT.
        WA_FIELD_CAT-TABNAME = &1.
        WA_FIELD_CAT-FIELDNAME = &2.
        WA_FIELD_CAT-REF_TABNAME = &3.
        WA_FIELD_CAT-CFIELDNAME = &4.
        APPEND WA_FIELD_CAT TO IT_FIELD_CAT.
      END-OF-DEFINITION.
      DEFINE M_SORT.
        WA_SORT-TABNAME = &1.
        WA_SORT-FIELDNAME = &2.
        WA_SORT-UP        = C_X.
        APPEND WA_SORT TO IT_SORT.
      END-OF-DEFINITION.
      M_FIELDCAT C_GT_VBAK 'VBELN' 'VBAK' ''.
      M_FIELDCAT C_GT_VBAK 'VKORG' 'VBAK' ''.
      M_FIELDCAT C_GT_VBAK 'WAERK' 'VBAK' ''.
      M_FIELDCAT C_GT_VBAP 'POSNR' 'VBAP' ''.
      M_FIELDCAT C_GT_VBAP 'MATNR' 'VBAP' ''.
      M_FIELDCAT C_GT_VBAP 'NETWR' 'VBAP' ''.
      M_SORT C_GT_VBAP 'NETWR'.
    ENDFORM.                    " Build_field_cat
    *&      Form  disply_output
         Displaying the final output.
    FORM DISPLY_OUTPUT .
      IT_LAYOUT-GROUP_CHANGE_EDIT = C_X.
      IT_LAYOUT-COLWIDTH_OPTIMIZE = C_X.
      IT_LAYOUT-ZEBRA             = C_X.
      IT_LAYOUT-DETAIL_POPUP      = C_X.
      IT_LAYOUT-GET_SELINFOS      = C_X.
      IF P_EXPAND = C_X.
        IT_LAYOUT-EXPAND_FIELDNAME  = 'EXPAND'.
      ENDIF.
      WA_KEYINFO-HEADER01 = 'VBELN'.
      WA_KEYINFO-ITEM01 = 'VBELN'.
      WA_KEYINFO-ITEM02 = 'POSNR'.
      CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'
        EXPORTING
          I_CALLBACK_PROGRAM      = SY-CPROG
          I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
          IS_LAYOUT               = IT_LAYOUT
          IT_FIELDCAT             = IT_FIELD_CAT
          IT_SORT                 = IT_SORT
          I_TABNAME_HEADER        = C_GT_VBAK
          I_TABNAME_ITEM          = C_GT_VBAP
          IS_KEYINFO              = WA_KEYINFO
       I_SCREEN_START_COLUMN          = 12
       I_SCREEN_START_LINE            = 6
       I_SCREEN_END_COLUMN            = 60
       I_SCREEN_END_LINE              = 70
        TABLES
          T_OUTTAB_HEADER         = IT_VBAK
          T_OUTTAB_ITEM           = IT_VBAP.
    ENDFORM.                    " disply_output

  • How to capture ALV messages(popup window) in BDC...

    Hello Experts,
    I am currently doing a recording for transaction ABT1(Intercompany asset transfer)
    and I noticed that messages are displayed via ALV popup if you post it. The messages
    contain the posting information(what company it is posted, document number, etc)
    Now, is there a way to capture those messages? because I noticed that it is not captured
    in my recording so I have no way of knowing if it was successfully posted or not.
    Also, is there a way to supress transaction/status messages in a transaction?(E.g. posting
    will take place in an earlier fiscal year, etc)
    Hope you can help me guys. Thank you and take care!

    Hi,
    have a look at fm 'AMDP_MESSAGE_SEND'.
    it is used in transaction ABT1.
    you can as well use this:
    CALL FUNCTION 'MESSAGES_INITIALIZE'.
    LOOP AT it_return_bapi.
        CALL FUNCTION 'MESSAGE_STORE'
             EXPORTING
                  arbgb                   = it_return_bapi-id
                  exception_if_not_active = ' '
                  msgty                   = it_return_bapi-type
                  msgv1                   = it_return_bapi-message_v1
                  msgv2                   = it_return_bapi-message_v2
                  msgv3                   = it_return_bapi-message_v3
                  msgv4                   = it_return_bapi-message_v4
                  txtnr                   = it_return_bapi-number
                  zeile                   = ' '
             EXCEPTIONS
                  message_type_not_valid  = 1
                  not_active              = 2
                  OTHERS                  = 3.
      ENDLOOP.
    CALL FUNCTION 'MESSAGES_STOP'
           EXCEPTIONS
                a_message = 04
                e_message = 03
                i_message = 02
                w_message = 01.
    IF NOT sy-subrc IS INITIAL.
        CALL FUNCTION 'MESSAGES_SHOW'
             EXPORTING
                  i_use_grid         = 'X'
                  i_amodal_window    = i_amod_window
             EXCEPTIONS
                  inconsistent_range = 1
                  no_messages        = 2
                  OTHERS             = 3.
      ENDIF.
    Best regards
    Edited by: pablo casamayor on Jun 23, 2008 8:31 AM

  • Scrollbar inside Popup Window

    Hi Experts,
    I have created a popup window with a table inside that. Data is getting populated from BAPI into this table.
    Please tell me the procedure for creating a scrollbar inside the table.
    Thanks.

    Hi
    No need to  create scrollbar inside the table fro popup or any element It will introduce whenever it required.
    Just set the number of rows for table 5 ,10  etc Once data from BAPI/RFC will more than this number scroller
    will comes automatically.
    Best Regards
    Satish Kumar

  • Targeting Object properties Inside PopUp Object

    In my project I am creating a window using the PopUpManager.
    The symbol used to create that window has several objects.
    For the sake of discussion we'll discuss the object
    message_txt inside myWindow.
    How do I reference message_txt.text from actionscript after
    the object is dynamically created?

    Bump

  • Embedding Regions Inside PopUp Windows

    <b>Problem Description</b>
    Regions can be incorporated into ADF Faces popup content to support potentially complex navigation through a series of pages to complete a task. Another important benefit of including regions within ADF Faces popups is content reuse. These great benefits make ADF Faces popups containing regions a commonly used application development pattern. Incorporating regions into <af:popup> content can seem similar to incorporating regions into a page, especially since an <af:popup> is actually considered part of a page. However, there are some important differences to keep in mind. When incorporating regions into <af:popup> content, the following default development constraints must be taken into consideration:
    <ul>
    <li>Content within the <af:popup> component is created and executed when its corresponding page is initially displayed. It’s not automatically refreshed when a <af:popup> is disclosed.</li>
    <li>When disclosing an <af:popup> subsequent times from the same page, region content isn’t automatically refreshed and restarted from the beginning.</li>
    <li>An <af:popup> is not automatically dismissed when its region content completes via navigation flow. Likewise, when an <af:popup> is dismissed, its corresponding region content is not automatically considered “complete”. Therefore, resources used by the corresponding task flow (e.g., memory, DB transactions) are not released.</li>
    <li>Region components activate when their <af:region> UI component is invoked (i.e., component tree built), not when the component tree is rendered. Most JSF UI components build their component tree and wait until rendering to activate. The <af:region> UI component is different since it must first resolve its task flow’s target view to include the corresponding page fragment.</li>
    </ul>
    Many of these default development constraints are the result of <af:popup> behavior being mainly client-side only. When a user discloses an <af:popup>, JavaScript on the client unhides the <af:popup> created previously when the page was initially displayed. When the <af:popup> is dismissed, JavaScipt on the client simply hides the <af:popup> again. In both cases, no event or request is sent to the server to refresh the region content or retrieve data based on the current application state. If the <af:popup> is displayed a second time, it simply redisplays the <af:popup> content remaining from the previous disclosure.
    <br>
    <b>Technical Pattern Description</b>
    This document describes the recommended development approach for the “ADF Faces Popup + Region” pattern. Other development approaches may be possible to achieve the same desired use case behavior. The development approach described in detail within this document is considered the most comprehensive and least complex approach.
    For releases <b>prior to</b> JDeveloper Studio Edition Version 11.1.1.2.0
    Click here to see the pattern described in this document.
    See the below blog entry for an overview of how this pattern is addressed in the JDeveloper Studio Edition Version 11.1.1.2.0 release as an ADF feature.
    http://blogs.oracle.com/DavidGiammona/2009/09/task_flow_call_activity_run_as.html
    Edited by: Richard Wright on Nov 17, 2009 5:28 PM
    Edited by: Richard Wright on Dec 10, 2009 8:32 AM
    Edited by: Richard Wright on May 13, 2010 1:04 PM

    Hi,
    I am wondering, if there a way to, while staying on the same popup (so, _without clossing popup), to refresh and restart region content from beginning ? For example, when user presses button on the popup, what I want, is :
    1. stay on the same popup
    2. release resources used by the corresponding task flow
    3. refresh and restart dynamic region content (thus calling default task flow activity from the same task flow).
    4. new content (depending on the default t.flow activity) should be displayed on the popup.
    This can be used in the following use-case : Imagine that user inserts new record on the popup. Default activity is the CreateInsertRow.
    When user press the 'Save and Create New' button, the data should be commited to the database, resources used by t.flow should be released, and default activity should be called again.
    Thanks in advance,...
    Richard Wright wrote:
    <b>Problem Description</b>
    > Regions can be incorporated into ADF Faces popup content to support potentially complex navigation through a series of pages to complete a task. Another important benefit of including regions within ADF Faces popups is content reuse. These great benefits make ADF Faces popups containing regions a commonly used application development pattern. Incorporating regions into <af:popup> content can seem similar to incorporating regions into a page, especially since an <af:popup> is actually considered part of a page. However, there are some important differences to keep in mind. When incorporating regions into <af:popup> content, the following default development constraints must be taken into consideration:(...)
    >
    For releases <b>prior to</b> JDeveloper Studio Edition Version 11.1.1.2.0
    Click here to see the pattern described in this document.

  • Table never gets populated inside popup window on customer's site

    I'm working on application in ADF (ADF BC, ADF Faces) with JDeveloper 11.1.1.4 (application deployed on customer's site in Weblogic Server 10.3.6)
    and in one page I'm having a button behind which is a code to execute a query against a table whose data is going to be shown in popup window.
    Query limits the number of records to be shown to 100 (in query: rownum <= 100).
    In my development environment this works fine, but there is a problem on customer's site.
    For the query to execute it takes about 20 seconds at the site of customer. After that in backing bean there is a code to show popup.
    In the page - popup starts showing (it means that query ended) but never fetching data in the table (all the time there is a message - "Fetching data" like framework is retrieving it but nothing happens).
    I have tested a query in SQL*plus - it returns data.
    I couldn't find out what is the reason for such behaviour.
    Do you have any suggestions what to try?
    Thanks,
    Nebojsa

    I've found the reason for not populating table in popup.
    Although there is a limitation to the number of rows displayed in table in the form of additional where clause: "rownum <=n" this part of where clause is added to the VO in overridden method: executeQueryForCollection.
    Before executing this method framework is executing: getEstimatedRowCount which when executed for the first time through method getQueryHitCount executes a query against the database (select count(1) from... without my rowum <=n which is added to the query afterwards in above mentioned method executeQueryForCollection).
    My question is: if I don't want to add rownum <= n at design-time, where it would be the best place to add it to the query so to avoid above described situation and to have that rownum <= n in place for the count query as well?
    Nebojsa

  • Download to excel in not coming in alv popup

    Hi All,
    Please have a look at the demo program SALV_DEMO_TABLE_POPUP.  The ALV displayed as a popup don not have button to download the data into a excel sheet/ spread sheet. Can someone please suggest how it can be added to alv toolbar ?
    I  have similar requirement to display alv as popup with that button.
    I dont have any choice to use any other way to create ALV apart from CL_SALV_TABLE class.
    Regards
    Vishal Kapoor

    Hi Vishal,
    I have a same problem like you got. I am not able to get download option in ALV popup though I am using the below code.
    Could you please let me know how you fixed this issue? I mean how you got the download option button in pop up screen? Thanks in advance. Request you please reach out me at [email protected]
    DATA: lo_table      TYPE REF TO cl_salv_table,
                   lo_functions  TYPE REF TO cl_salv_functions_list,
                   lo_columns    TYPE REF TO cl_salv_columns.
             DATA: lt_data TYPE TABLE OF zehs_stderr.
             TRY.
                 cl_salv_table=>factory(
                 IMPORTING
                 r_salv_table = lo_table
                 CHANGING
                 t_table      = it_zehs_stderr ).
               CATCH cx_salv_msg.
             ENDTRY.
             lo_functions = lo_table->get_functions( ).
             lo_functions->set_all( abap_true ).
             lo_columns = lo_table->get_columns( ).
             lo_columns->set_optimize( abap_true ).

  • ALV Popup in userexit

    Hi,
    An ALV Grid Popup has to be displayed and the code for this has to be written in the user exit.
    The requirement is such that when a particular button is clicked on the cat3_iscr transaction the ALV Grid popup should appear with still the cat3_iscr screen visible in the background.
    The appearing ALV Popup should contain the features of a standard ALV Grid (standard buttons of a toolbar, …)
    It would be great if you can suggest a solution for this.     
    Thanks,
    Siva

    I have written a generic function module to do just this.
    Here is the code.
    function z_popup_with_alvgrid.
    *"*"Global interface:
    *"  IMPORTING
    *"     REFERENCE(ENDPOS_COL) TYPE  I DEFAULT 90
    *"     REFERENCE(ENDPOS_ROW) TYPE  I DEFAULT 22
    *"     REFERENCE(STARTPOS_COL) TYPE  I DEFAULT 10
    *"     REFERENCE(STARTPOS_ROW) TYPE  I DEFAULT 2
    *"     REFERENCE(TITLE) TYPE  C OPTIONAL
    *"     REFERENCE(FIELDCAT) TYPE  LVC_T_FCAT
    *"  TABLES
    *"      I_ALV
      call screen 0200 starting at startpos_col
                                   startpos_row
                         ending at endpos_col
                                   endpos_row.
    endfunction.
    *      Module  STATUS_0200  OUTPUT
    module status_0200 output.
      set pf-status '0200'.
      set titlebar  '0200' with title.
      data: alv_container  type ref to cl_gui_custom_container.
      data: alv_grid       type ref to cl_gui_alv_grid.
      data: xfieldcat type lvc_t_fcat.
      xfieldcat = fieldcat.
    * Create Controls
      create object:
         alv_container
                 exporting
                       container_name    = 'ALV_CONTAINER',
         alv_grid
                 exporting
                       i_parent          =  alv_container.
    *  Set grid for first display
      call method alv_grid->set_table_for_first_display(
          exporting
               i_structure_name       = 'I_ALV'
          changing
               it_outtab       = i_alv[]
               it_fieldcatalog = xfieldcat[] ).
    endmodule.
    *     Module  USER_COMMAND_0100  INPUT
    module user_command_0200 input.
      case sy-ucomm.
        when 'CONTINUE' or 'CANCEL'.
          set screen 0.
          leave screen.
      endcase.
    endmodule.
    Create the screen 200.  In that screen, put a container and name it ALV_CONTAINER.  As you can see from the interface, you must pass the field catalog and of course the internal table which holds the data.
    Here is an example of the call to the function module.
        call function 'Z_POPUP_WITH_ALVGRID'
          exporting
    *       ENDPOS_COL         = 90
    *       ENDPOS_ROW         = 22
    *       STARTPOS_COL       = 10
    *       STARTPOS_ROW       = 2
            title              = 'This is the title'
            fieldcat           = fieldcat
          tables
            i_alv              = i_alv.
    Regards,
    Rich Heilman

  • Single Printing for Multiple ALVs in Splitter Containers

    Hi,
    I am creating multiple ALVs (3 to 4) of CL_GUI_ALV_GRID class in my report. The ALVs are being displayed inside the splitter containers of class CL_GUI_SPLITTER_CONTAINER. My question is how to print all the ALVs inside these multiple containers with a single execution? I've found a close answer to this at this thread but it is using the REUSE_ALV... function.
    How to print multiple ALV Grids with only one print dialog?
    Is there a way to do this by making use of the CL_GUI_ALV_GRID printing functionality, if there is?
    Thanks for your kind attention,
    Kamal.

    -found alternative.

Maybe you are looking for