Classical Report Expand-Collapse functionality

Hi All!
I am doing a program that displays a classical report as an output.  It has buttons on the top of the output (using Menu Painter) and it has "Expand" and "Collapse" buttons.  I do not know how to implement this expand and collapse functionality.  Please help.
The output of the report looks like this:
Plant: <data>
<data>
<data>
Plant: <data>
<data>
<data>
When I click on "Expand" button, the output will look like the one above.  When I click on "Collapse" button, the output will look like this:
Plant: <data>
Plant: <data>
Please help me achieve this functionality.
Thank you!

Hi,
Try this sample code....
DATA : BEGIN OF itab OCCURS 0,
       state   TYPE char20,
       city    TYPE char18,
       flag,
       END   OF itab.
DATA   disptab LIKE itab OCCURS 0.
DATA   sel_lin TYPE char20.
START-OF-SELECTION.
  itab-state = 'Tamil Nadu'.
  itab-city  = 'Chennai'.
  APPEND itab.
  itab-state = 'Tamil Nadu'.
  itab-city  = 'Coimbatore'.
  APPEND itab.
  itab-state = 'West Bengal'.
  itab-city  = 'Kolkata'.
  APPEND itab.
  itab-state = 'West Bengal'.
  itab-city  = 'Durgapur'.
  APPEND itab.
END-OF-SELECTION.
  LOOP AT itab.
    AT NEW state.
      WRITE /3 itab-state COLOR 4 HOTSPOT.
    ENDAT.
  ENDLOOP.
AT LINE-SELECTION.
  MOVE sy-lisel+2(20) TO sel_lin.
  LOOP AT itab.
    AT NEW state.
      WRITE /3 itab-state COLOR 4 HOTSPOT.
    ENDAT.
    IF itab-flag <> 'X'.
      IF itab-state = sel_lin.
        itab-flag = 'X'.
      ENDIF.
    ELSE.
      IF itab-state = sel_lin.
        itab-flag = ' '.
      ENDIF.
    ENDIF.
    IF itab-flag = 'X'.
      WRITE /5 itab-city  COLOR 2.
    ENDIF.
    MODIFY itab.
    CLEAR itab.
  ENDLOOP.
Cheers,
jose.

Similar Messages

  • Expand Collapse Functionality on Left Vertical Navigation

    Hi,
    I am trying to implement an expand/collapse functionality for subcommunities and their links in the left vertical navigation menu. My communities appear as horizontal tabs (as in the support center navigation). Once i have a community selected, the left navigation is rendered with all subcommunities and their links. If i now want to collapse/expand a specific subcommunity, how do i do it?
    More specifically, how do i identify what subcommunity i clicked on the vertical nav, so that the next time i am rendering the display of the left nav, i can appropriately expand/collapse only that subcommunity.
    regards

    hi,
    go through the sample code , in this there are 2 radiobuttons, if one is pressed then first sunscreen will come and if second radiobutton is pressed then second subscreen will come
    write this where u r decleraing code for selection screen:
    PARAMETERS:      par_cust     radiobutton group g1 DEFAULT 'X' USER-COMMAND sel ,
                     par_vend     radiobutton group g1.
    PARAMETERS:      par_cust     radiobutton group g1 DEFAULT 'X' USER-COMMAND sel ,
                     par_vend     radiobutton group g1.
    *selection criteria for venodr if par_vend radiobutton is ticked
    SELECT-OPTIONS:  s_txcd1      FOR  bset-mwskz MODIF ID M1,
                     s_txcd2      FOR  bset-mwskz MODIF ID M1,
                     s_txcd3      FOR  bset-mwskz MODIF ID M1,
    *selection criteria for customer if par_CUST radiobutton is ticked
                     s_txcd12     FOR  bset-mwskz MODIF ID M2,
                     s_txcd13     FOR  bset-mwskz MODIF ID M2,
    *write this code at : AT SELECTION-SCREEN OUTPUT
    AT SELECTION-SCREEN OUTPUT.
    LOOP AT SCREEN.
    IF par_vend = 'X' AND SCREEN-GROUP1 = 'M2'.
    SCREEN-INPUT = 0.
    SCREEN-ACTIVE = 0.
    SCREEN-INVISIBLE = 1.
    MODIFY SCREEN.
    ENDIF.
    IF par_cust = 'X' AND SCREEN-GROUP1 = 'M1'.
    SCREEN-INPUT = 0.
    SCREEN-ACTIVE = 0.
    SCREEN-INVISIBLE = 1.
    MODIFY SCREEN.
    ENDIF.
    ENDLOOP.
    regards
    rahul

  • Expand/Collapse functionality in Survey

    Dear Experts,
    We have build survey Form using Survey Builder. The survey Form has 4
    sections , in each section 5 questions & its relevant answer
    options are there.
    We are using the standard CSS style sheet : CRM_SVY_OPP_WINLOSS.CSS. Out
    put displays standard HTML page with out Expand & Collapse
    functionality at section & Questional level.
    Client required expand and collapse functionality to view the entire
    survey form in one page which allows the user to navigate to required
    question .
    For that we are tring to change Static Survey XSLT, however system is
    not allowed to edit XSLT file .
    Please suggest ,how can we enable the expand & Collapse
    functionality for our surveys in Survey Buider ?
    Regards
    Pramod

    Hello Aks,
    After seeing the ME2ON transaction, what i can suggest you is following:
    --> Display a column in your Grid with the hotspot on it
    --> You can give the icon as a value in the column
    --> Then for the hotspot click you need to display the expanded data i.e. regenerate the grid.
    My suggestion to you would be that if you dont need to edit anything in the grid i.e. dont want have any editable field on the grid, then you should opt for an ALV tree using class CL_GUI_ALV_TREE. The expand collapse functionality is already there and you will be saved from a lot of coding.
    Hope this helps.
    Regards,
    Himanshu

  • Xml report Expand/Collapse option

    Is there a way to show the results in the xml report in 'Collapsed form' by default, when I view report? (Report format-ATML 5.0 standard report, Style sheet - tr5_report.xsl)
    I have many steps in my test sequence and the report is quite long. Because the results of all the steps and sub steps are in Expanded view by default, it is very difficult to see the results of a particular step and I have to scroll a lot.
    An option to collapse all the step results at once, even after opening the report would also be helpful for me.

    Try using tr5_horizontal.xsl or tr5_expand.xsl stylesheet for the ATML 5.0 report. Both stylesheet has expand and collapse functionality.
    Also, if you dont want any of the steps to be displayed in report, you can disable result logging for the step or use result filtering expression in Report Option to filter the step result in report.
    - Shashidhar

  • Bug in Classic Report based on Function?

    As a simple example, suppose I want a classic report in which I can change the sort field by selecting from the item P1_SORTFIELD. In Apex 4.2 I was able to implement the report using the PL/SQL function
    return 'select ENAME, SAL from EMP order by ' || :P1_SORTFIELD;
    I cannot do this in Apex 5 on my apex.oracle.com workspace. I either get an "SQL command not property ended" runtime error if I use generic column names, or "not all variables bound" parse error if I don't.
    My real application uses generic column names, so I am most interested in a solution to that.  For example, I tried creating a report having the source
    return 'select ENAME from EMP order by ENAME';
    If I run it using generic column names I still get the "SQL Command not properly ended" runtime error.
    Is this a bug??
    Ed Sciore

    Ed Sciore wrote:
    As a simple example, suppose I want a classic report in which I can change the sort field by selecting from the item P1_SORTFIELD. In Apex 4.2 I was able to implement the report using the PL/SQL function
    return 'select ENAME, SAL from EMP order by ' || :P1_SORTFIELD;
    I cannot do this in Apex 5 on my apex.oracle.com workspace. I either get an "SQL command not property ended" runtime error if I use generic column names, or "not all variables bound" parse error if I don't.
    My real application uses generic column names, so I am most interested in a solution to that.  For example, I tried creating a report having the source
    return 'select ENAME from EMP order by ENAME';
    If I run it using generic column names I still get the "SQL Command not properly ended" runtime error.
    I cannot reproduce the same error messages in my workspace on apex.oracle.com.
    The basic problem here is that the function body will not return a syntactically correct SQL query if the session state value of P1_SORTFIELD is not a valid sort expression for the query. This will always be the case when the region source is validated in the App Builder, and also if P1_SORTFIELD is null at runtime. The solution is to ensure that the function body always returns a valid query irrespective of the value of P1_SORTFIELD:
    return 'select ENAME, SAL from EMP' || nullif(' order by ' || :p1_sortfield, ' order by ');
    Here is another weird thing. I looked at my Apex 4.2 application that got transferred over to Apex 5. The region that does the dynamic sorting still works. But now I just created a new region on that page that has the same source, and as far as I can tell, exactly the same properties. And this region gives me the runtime error. The URL is apex.oracle.com/pls/apex/f?p=80034:33 if that helps.
    Given that I can't reproduce your results based on the information provided, I think we'd need access to the app in your workspace in debug mode to investigate this fully.

  • Expand/Collapse function in WAD 7.0

    Hi,
    I have made a report in WAD using a table and a chart. In the output which I am running on a portal I have a table Report Navigation with  in which I have some of the export options and an Expand / Collapse icons are present on the button group and also I have one drop down box calendar year .As soon as I click on the icon Collapse in  the above table Report Navigation my drop down should get collapsed and again when I click on the Expand the drop down should be visible
    Report naviagtion and  Drop down boxes are present in a seperate table where in when I click on the icons( Expand / Collapse ) it should get reflected on the dropdown box which is present on the 2nd table
    I have done the above in WAD 3.5 using Java script Code
    How can this be done in WAD 7.0
    Regards,
    Maya

    Hi,
    After setting the Analysis item properties, just click on the 7th icon on top menu bar, i think its Verify or Check on server. Somthing like that.
    Or try re-opening the template after sometime. Close the existing Web window, where you see your output, and execute the template once again. This should work.
    If nothing of the above works, theres one more thing. You may have to re-create the Template.
    This happens at times when there is no proper connection between the Portal and WAD. I have faced it myself. So, just try something like that.

  • Ssrs group report expand-collapse in html render

    I created a ssrs report in a server and this report has row groups. My use in the report is through my website as i use the reportexecutionserivcesoap to render the report in HTML4.0 format.
    I put the html result (after i set the parameters in my app server) in my website and the table looks good but the problem is that when i click the expand '+' icon of the group i get an error: "This report requirea a default or user-defined value for
    the report parametrt". I have read that the expand button sends a postback request to the report server so i assume that the postback request being sent without the parameters i already set.
    The ultimate behavior for me is the way the excel render works - all the data is already there, its just hided and when i click the '+' button the data in the group is visible again but i didnt find a way to change the html behavior...
    What can i do so the parameter (wich i noticed that exists in the html result in tags) will be sent to the report server in the postback request
    thanks ahead

    Hi alon0230,
    According to your description, when you use the reportexecutionserivcesoap to render the report in HTML 4.0 format, you comes an error as soon as you click the expand button.
    In your scenario, I would like to know if you add the subreport as the expanded content, and the subreport only run when the parameter values are specified. If so, please specify the parameter values for the subreport.
    Besides, since you mentioned you are using the reportexecutionserivcesoap to render the report, could you tell me which application you are using and how it works. And about the ultimate behavior you took, do you mean that you are exporting the report to
    Excel? Or render the report as Excel format with URL access? Please provide report design and some screenshots for our analysis.
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • Decision Report: Toggling Expand / Collapse All (v10.2)

    Hi everyone,
    We're wondering if anyone can share an approach for enabling users to "expand/collapse all" (all nodes) in a decision report dynamically - i.e. using a button or toggle, rather than a global configuration or preference setting. For example, we would like to initially display a collapsed report (to show the high-level conclusions), and then enable the client to fully expand the report for printing.
    Importantly, we would like to be able to do this in version *10.2*.
    Thanks,
    - Patrick

    Granting my JavaScript is a bit rusty, I'm wondering if anyone else has encountered the following challenge when changing the global configuration settings for decision report (expanded/collapsed):
    Issue: The plus signs ( + ) at the nodes appear as minus signs ( - ), and vice versa. In other words, after our modifications, the user needs to click on a minus sign to expand a node.
    Our approach was simply to do a CTRL-F and replace "expanded" with "collapsed", so it's not surprising that there were unintended side effects.

  • ALV classical report

    hi,
    can any one of you send me the simple classical report using ALV functionality.
    and if you can send me also an interactive report on ALV functionality plsssssss.
    advance thanks and also i will give points .
    yours,
    sara.

    Hi,
    For <b>Classical Report</b> Example refer to link,
    http://www.sapmaterial.com/?gclid=CN322K28t4sCFQ-WbgodSGbK2g
    For <b>Interactive Report</b> check the following Example,
    Check this sample code which provides exact info.
    REPORT YMS_ALVINTER1.
    TABLE DECLARATION
    TABLES: vbak , "Sales Document: Header Data
    vbap , "Sales Document: Item Data
    makt , "Material Descriptions
    lips . "SD document: Delivery: Item data
    DECLARATION OF TYPE-POOL
    *THIS TYPE-POOL CONTAINS THE EVENTS,
    TYPE-POOLS : slis.
    DECLARATION OF EVENTS
    DATA: i_event TYPE slis_t_event.
    DATA: t_event TYPE slis_alv_event.
    DECLARATION OF LIST HEADER
    DATA: i_listheader TYPE slis_t_listheader.
    DECLARATION OF FIELD CATALOG FOR SCREEN 1
    DATA: i_fldcat TYPE slis_t_fieldcat_alv WITH HEADER LINE.
    DECLARATION OF FIELD CATALOG FOR SCREEN 2
    DATA: i_fldcat2 TYPE slis_t_fieldcat_alv WITH HEADER LINE.
    DECLARATION OF FIELD LAYOUT
    DATA: i_layout TYPE slis_layout_alv.
    SORTING OF OUTPUT
    DATA: i_sort TYPE slis_t_sortinfo_alv.
    *DATA DECLARATION
    DATA: v_auart TYPE tvak-auart,
    v_vkorg TYPE tvko-vkorg,
    v_kunnr TYPE kna1-kunnr,
    v_matnr TYPE mara-matnr ,
    v_spart TYPE tvta-spart .
    TYPES: BEGIN OF it_so ,
    vbeln TYPE vbeln_va , "SALES ORDER NO.
    auart TYPE auart , "SALES DOC. TYPE
    vkorg TYPE vkorg , "SALES ORG.
    spart TYPE spart , "DIVISION
    kunnr TYPE kunag , "SOLD TO PARTY
    posnr TYPE posnr_va , "SALES DOC. ITEM
    matnr TYPE matnr , "MATERIAL NO
    maktx TYPE maktx , "DESCRIPTION
    kwmeng TYPE kwmeng , "QUANTITY
    vrkme TYPE vrkme , "SALES UNIT
    line_color(4) TYPE c ,
    END OF it_so .
    TYPES: BEGIN OF it_del ,
    vbeln TYPE vbeln_vl , "SALES ORDER NO.
    posnr TYPE posnr_vl , "SALES DOC. ITEM
    matnr TYPE matnr , "MATERIAL NO
    werks TYPE werks_d , "PLANT
    lgort TYPE lgort_d , "STORAGE LOCATION
    charg TYPE charg_d , "BATCH NO.
    lfimg TYPE lfimg , "ACTUAL DELIVERY QTY.
    vrkme TYPE vrkme , "SALES UNIT
    END OF it_del .
    TYPES: BEGIN OF type_vbfa ,
    vbelv TYPE vbeln_von , "Preceding sales and distribution document
    posnv TYPE posnr_von , "Preceding item of an SD document
    vbeln TYPE vbeln_nach, "Subsequent sales and distribution document
    posnn TYPE posnr_nach, "Document category of subsequent document
    vbtyp_n TYPE vbtyp_n ,
    END OF type_vbfa .
    DATA: it_so1 TYPE STANDARD TABLE OF it_so ,
    it_del1 TYPE STANDARD TABLE OF it_del ,
    it_vbfa TYPE STANDARD TABLE OF type_vbfa,
    it_del_ful TYPE STANDARD TABLE OF it_del.
    DATA: wa_so TYPE it_so ,
    wa_del TYPE it_del ,
    wa_vbfa TYPE type_vbfa,
    wa_it_del_ful TYPE it_del.
    DATA: i_title_vbfa TYPE lvc_title VALUE 'SALES ORDER LIST DISPLAYED'.
    DATA: i_title_vbpa TYPE lvc_title VALUE
    'DELIVERY DETAILS DISPLAYED AGAINST GIVEN SALES ORDER'.
    *SELECTION SCREEN *
    SELECTION-SCREEN BEGIN OF BLOCK blk1 WITH FRAME TITLE text-004 .
    SELECT-OPTIONS: s_vbeln FOR vbak-vbeln ,
    s_auart FOR v_auart ,
    s_vkorg FOR v_vkorg ,
    s_spart FOR v_spart ,
    s_kunnr FOR v_kunnr ,
    s_matnr FOR v_matnr .
    SELECTION-SCREEN END OF BLOCK blk1 .
    *AT SELECTION SCREEN *
    AT SELECTION-SCREEN.
    SELECT SINGLE vbeln
    FROM vbak INTO vbak-vbeln
    WHERE vbeln IN s_vbeln.
    IF sy-subrc <> 0.
    MESSAGE e202.
    ENDIF.
    *START OF SELECTION *
    START-OF-SELECTION .
    PERFORM data_select.
    PERFORM t_sort USING i_sort .
    PERFORM event_cat USING i_event .
    PERFORM fld_cat USING i_fldcat[] .
    PERFORM t_layout USING i_layout .
    PERFORM fld_cat2 USING i_fldcat2[] .
    PERFORM call_alv.
    DATA SELECT *
    *& Form DATA_SELECT
    text
    --> p1 text
    <-- p2 text
    FORM data_select .
    REFRESH: it_vbfa, it_so1, it_del_ful ,it_del1 .
    BREAK-POINT.
    SELECT
    a~vbeln
    a~auart
    a~vkorg
    a~spart
    a~kunnr
    b~posnr
    b~matnr
    c~maktx
    b~kwmeng
    b~vrkme
    INTO TABLE it_so1 FROM vbak AS a
    JOIN vbap AS b ON bvbeln = avbeln
    JOIN makt AS c ON cmatnr = bmatnr
    AND c~spras = sy-langu
    WHERE a~vbeln IN s_vbeln .
    COLURING DISPLAY *
    DATA: ld_color(1) TYPE c .
    LOOP AT it_so1 INTO wa_so.
    Populate color variable with colour properties
    Char 1 = C (This is a color property)
    Char 2 = 3 (Color codes: 1 - 7)
    Char 3 = Intensified on/off ( 1 or 0 )
    Char 4 = Inverse display on/off ( 1 or 0 )
    i.e. wa_ekko-line_color = 'C410'
    ld_color = ld_color + 1.
    Only 7 colours so need to reset color value
    IF ld_color = 8.
    ld_color = 1.
    ENDIF.
    CONCATENATE 'C' ld_color '10' INTO wa_so-line_color.
    wa_ekko-line_color = 'C410'.
    MODIFY it_so1 FROM wa_so.
    ENDLOOP .
    IF sy-subrc = 0.
    SELECT vbelv
    posnv
    vbeln
    posnn
    vbtyp_n
    INTO TABLE it_vbfa
    FROM vbfa
    FOR ALL ENTRIES IN it_so1
    WHERE vbelv = it_so1-vbeln
    AND posnn = it_so1-posnr
    AND vbtyp_n ='J' .
    IF sy-subrc = 0.
    SELECT vbeln
    posnr
    matnr
    werks
    lgort
    charg
    lfimg
    vrkme
    FROM lips INTO TABLE it_del_ful
    FOR ALL ENTRIES IN it_vbfa
    WHERE vbeln = it_vbfa-vbeln
    AND posnr = it_vbfa-posnn.
    ENDIF.
    ENDIF.
    ENDFORM. " DATA_SELECT
    EVENT CATALOG ****************************************
    *& Form EVENT_CAT
    text
    -->P_I_EVENT text
    FORM event_cat USING p_i_event TYPE slis_t_event .
    REFRESH p_i_event .
    CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
    EXPORTING
    I_LIST_TYPE = 0
    IMPORTING
    et_events = p_i_event
    EXCEPTIONS
    LIST_TYPE_WRONG = 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.
    READ TABLE p_i_event WITH KEY name = slis_ev_top_of_page INTO t_event.
    IF sy-subrc = 0.
    MOVE 'TOP_OF_PAGE' TO t_event-form.
    MODIFY p_i_event FROM t_event INDEX sy-tabix TRANSPORTING form.
    ENDIF.
    CLEAR t_event .
    ENDFORM. " EVENT_CAT
    *********FORM FOR EVENT TOP_OF_PAGE*********************************
    FORM top_of_page .
    REFRESH i_listheader.
    DATA: t_header TYPE slis_listheader.
    DATA: v_text(50).
    WRITE sy-datum TO v_text.
    CLEAR t_header.
    t_header-typ = 'S'.
    t_header-key = 'Date'.
    t_header-info = v_text.
    APPEND t_header TO i_listheader.
    CLEAR t_header.
    CLEAR v_text.
    WRITE: 'SALES ORDER REPORT ' TO v_text .
    t_header-typ = 'S'.
    t_header-key = 'TITLE'.
    t_header-info = v_text.
    APPEND t_header TO i_listheader.
    CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
    EXPORTING
    it_list_commentary = i_listheader
    I_LOGO = 'ENJOYSAP_LOGO' .
    I_END_OF_LIST_GRID =
    ENDFORM. "TOP_OF_PAGE
    FIRST ALV GRID DISPLAY ***************************************
    *& Form CALL_ALV
    text
    --> p1 text
    <-- p2 text
    FORM call_alv .
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
    i_callback_program = sy-repid
    I_CALLBACK_PF_STATUS_SET = 'SET_PF_STATUS'
    i_callback_user_command = 'USER_COMMAND1'
    i_callback_top_of_page = 'TOP_OF_PAGE'
    I_BACKGROUND_ID = 'ALV_BACKGROUND'
    i_grid_title = i_title_vbfa
    is_layout = i_layout
    it_fieldcat = i_fldcat[]
    it_sort = i_sort
    it_events = i_event
    TABLES
    t_outtab = it_so1
    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. " CALL_ALV
    FIRST FIELDCATALOG *************************************
    *& Form FLD_CAT
    text
    -->P_I_FLDCAT[] text
    FORM fld_cat USING p_i_fldcat TYPE slis_t_fieldcat_alv.
    CLEAR i_fldcat.
    i_fldcat-fieldname = 'VBELN'. "FIELD FOR WHICH CATALOG ID FILLED
    i_fldcat-tabname = 'IT_SO1'."TABLE NAME
    i_fldcat-seltext_m = 'SALES ORDER NO.'.
    i_fldcat-col_pos = 1. " POSITION OF THE COLUMN.
    i_fldcat-outputlen = 20. " SET THE OUTPUT LENGTH.
    i_fldcat-emphasize = 'X'. " COLOR OF THIS COLUMN.
    i_fldcat-key = 'X'. " SO THAT THIS FIELD IS NOT
    "SCROLLABLE AND HIDDABLE.
    i_fldcat-just(1) = 'C'.
    APPEND i_fldcat.
    CLEAR i_fldcat.
    i_fldcat-fieldname = 'AUART'. "FIELD FOR WHICH CATALOG ID FILLED
    i_fldcat-tabname = 'IT_SO1'."TABLE NAME
    i_fldcat-seltext_m = 'SALES DOC. TYPE'.
    i_fldcat-col_pos = 2. " POSITION OF THE COLUMN.
    i_fldcat-outputlen = 15. " SET THE OUTPUT LENGTH.
    i_fldcat-emphasize = 'X'. " COLOR OF THIS COLUMN.
    i_fldcat-key = 'X'. " SO THAT THIS FIELD IS NOT
    "SCROLLABLE AND HIDDABLE.
    i_fldcat-just(1) = 'C'.
    APPEND i_fldcat.
    CLEAR i_fldcat.
    i_fldcat-fieldname = 'VKORG'. "FIELD FOR WHICH CATALOG ID FILLED
    i_fldcat-tabname = 'IT_SO1'.
    i_fldcat-seltext_m = 'SALES ORG.'.
    i_fldcat-col_pos = 3. " POSITION OF THE COLUMN.
    i_fldcat-outputlen = 12. " SET THE OUTPUT LENGTH.
    i_fldcat-emphasize = 'X'. " COLOR OF THIS COLUMN.
    i_fldcat-key = 'X'. " SO THAT THIS FIELD IS NOT
    "SCROLLABLE AND HIDDABLE.
    i_fldcat-just(1) = 'C'.
    APPEND i_fldcat.
    CLEAR i_fldcat.
    i_fldcat-fieldname = 'SPART'. "FIELD FOR WHICH CATALOG ID FILLED
    i_fldcat-tabname = 'IT_SO1'.
    i_fldcat-seltext_m = 'DIVISION'.
    i_fldcat-col_pos = 4. " POSITION OF THE COLUMN.
    i_fldcat-outputlen = 10. " SET THE OUTPUT LENGTH.
    i_fldcat-emphasize = 'X'. " COLOR OF THIS COLUMN.
    i_fldcat-key = 'X'. " SO THAT THIS FIELD IS NOT
    "SCROLLABLE AND HIDDABLE.
    i_fldcat-just(1) = 'C'.
    APPEND i_fldcat.
    CLEAR i_fldcat.
    i_fldcat-fieldname = 'KUNNR'. "FIELD FOR WHICH CATALOG ID FILLED
    i_fldcat-tabname = 'IT_SO1'.
    i_fldcat-seltext_m = 'SOLD TO PARTY'.
    i_fldcat-col_pos = 5. " POSITION OF THE COLUMN.
    i_fldcat-outputlen = 15. " SET THE OUTPUT LENGTH.
    i_fldcat-emphasize = 'X'. " COLOR OF THIS COLUMN.
    i_fldcat-key = 'X'. " SO THAT THIS FIELD IS NOT
    "SCROLLABLE AND HIDDABLE.
    i_fldcat-just(1) = 'C'.
    APPEND i_fldcat.
    CLEAR i_fldcat.
    i_fldcat-fieldname = 'POSNR'. "FIELD FOR WHICH CATALOG ID FILLED
    i_fldcat-tabname = 'IT_SO1'.
    i_fldcat-seltext_m = 'SALES DOC. ITEM'.
    i_fldcat-col_pos = 6. " POSITION OF THE COLUMN.
    i_fldcat-outputlen = 17. " SET THE OUTPUT LENGTH.
    i_fldcat-emphasize = 'X'. " COLOR OF THIS COLUMN.
    i_fldcat-key = 'X'. " SO THAT THIS FIELD IS NOT
    "SCROLLABLE AND HIDDABLE.
    i_fldcat-just(1) = 'C'.
    APPEND i_fldcat.
    CLEAR i_fldcat.
    i_fldcat-fieldname = 'MATNR'. "FIELD FOR WHICH CATALOG ID FILLED
    i_fldcat-tabname = 'IT_SO1'.
    i_fldcat-seltext_m = 'MATERIAL NO.'.
    i_fldcat-col_pos = 7. " POSITION OF THE COLUMN.
    i_fldcat-outputlen = 20. " SET THE OUTPUT LENGTH.
    i_fldcat-emphasize = 'X'. " COLOR OF THIS COLUMN.
    i_fldcat-key = 'X'. " SO THAT THIS FIELD IS NOT
    "SCROLLABLE AND HIDDABLE.
    i_fldcat-just(1) = 'C'.
    APPEND i_fldcat.
    CLEAR i_fldcat.
    i_fldcat-fieldname = 'MAKTX'. "FIELD FOR WHICH CATALOG ID FILLED
    i_fldcat-tabname = 'IT_SO1'.
    i_fldcat-seltext_m = 'DESCRIPTION'.
    i_fldcat-col_pos = 8. " POSITION OF THE COLUMN.
    i_fldcat-outputlen = 20. " SET THE OUTPUT LENGTH.
    i_fldcat-emphasize = 'X'. " COLOR OF THIS COLUMN.
    i_fldcat-key = 'X'. " SO THAT THIS FIELD IS NOT
    "SCROLLABLE AND HIDDABLE.
    i_fldcat-just(1) = 'C'.
    APPEND i_fldcat.
    CLEAR i_fldcat.
    i_fldcat-fieldname = 'KWMENG'. "FIELD FOR WHICH CATALOG ID FILLED
    i_fldcat-tabname = 'IT_SO1'.
    i_fldcat-seltext_m = 'QUANTITY'.
    i_fldcat-col_pos = 9. " POSITION OF THE COLUMN.
    i_fldcat-outputlen = 15. " SET THE OUTPUT LENGTH.
    i_fldcat-emphasize = 'X'. " COLOR OF THIS COLUMN.
    i_fldcat-key = 'X'. " SO THAT THIS FIELD IS NOT
    "SCROLLABLE AND HIDDABLE.
    i_fldcat-do_sum = 'X'. " For doing "SUM"
    i_fldcat-just(1) = 'C'.
    APPEND i_fldcat.
    CLEAR i_fldcat.
    i_fldcat-fieldname = 'VRKME'. "FIELD FOR WHICH CATALOG ID FILLED
    i_fldcat-tabname = 'IT_SO1'.
    i_fldcat-seltext_m = 'SALES UNIT'.
    i_fldcat-col_pos = 10. " POSITION OF THE COLUMN.
    i_fldcat-outputlen = 10. " SET THE OUTPUT LENGTH.
    i_fldcat-emphasize = 'X'. " COLOR OF THIS COLUMN.
    i_fldcat-key = 'X'. " SO THAT THIS FIELD IS NOT
    "SCROLLABLE AND HIDDABLE.
    i_fldcat-just(1) = 'C'.
    APPEND i_fldcat.
    ENDFORM. " FLD_CAT
    ALV SORTING ***************************************
    *& Form SORT
    text
    -->P_I_SORT text
    FORM t_sort USING p_i_sort TYPE slis_t_sortinfo_alv .
    DATA: i_sort TYPE slis_sortinfo_alv .
    REFRESH p_i_sort .
    CLEAR i_sort.
    i_sort-spos = 1.
    i_sort-tabname = 'IT_SO1'.
    i_sort-fieldname = 'VBELN'.
    i_sort-up = 'X'.
    i_sort-subtot = 'X'.
    i_sort-group = '*'.
    APPEND i_sort TO p_i_sort.
    ENDFORM. " SORT
    *FORM SET_PF_STATUS USING rt_extab TYPE slis_t_extab.
    SET PF-STATUS 'ZSTANDARD'.
    *ENDFORM. "Set_pf_status
    **********FORM FOR EVENT USER_COMMAND1*******************************
    FORM user_command1 USING r_ucomm LIKE sy-ucomm
    rs_selfield TYPE slis_selfield.
    *CASE R_UCOMM .
    WHEN '&IC1' .
    IF rs_selfield-FIELDNAME = 'VBELN' .
    ENDIF .
    WHEN OTHERS .
    ENDCASE .
    CLEAR wa_so.
    REFRESH: it_del1 .
    IF r_ucomm = '&IC1' AND rs_selfield-fieldname = 'VBELN' AND
    rs_selfield-value IS NOT INITIAL.
    READ TABLE it_so1 INTO wa_so INDEX rs_selfield-tabindex.
    IF sy-subrc = 0.
    LOOP AT it_vbfa INTO wa_vbfa WHERE vbelv = wa_so-vbeln
    AND posnv = wa_so-posnr.
    READ TABLE it_del_ful INTO wa_it_del_ful
    WITH KEY vbeln = wa_vbfa-vbelv
    posnr = wa_vbfa-posnn.
    IF sy-subrc = 0.
    CLEAR wa_del.
    MOVE wa_it_del_ful TO wa_del.
    APPEND wa_del TO it_del1.
    ENDIF.
    ENDLOOP.
    ENDIF.
    ENDIF.
    SECOND ALV GRID DISPLAY ***********************************
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
    i_callback_program = sy-repid
    I_CALLBACK_PF_STATUS_SET = 'SET_PF_STATUS'
    i_callback_user_command = 'USER_COMMAND2'
    i_callback_top_of_page = 'TOP_OF_PAGE'
    I_BACKGROUND_ID = 'ALV_BACKGROUND'
    i_grid_title = i_title_vbpa
    it_fieldcat = i_fldcat2[]
    it_sort = i_sort
    TABLES
    t_outtab = it_del_ful
    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 . "USER_COMMAND1
    FORM FOR EVENT USER_COMMAND 2 ******************************
    FORM user_command2 USING r_ucomm LIKE sy-ucomm
    rs_selfield TYPE slis_selfield.
    CLEAR wa_so.
    REFRESH: it_del1 .
    IF r_ucomm = '&IC1' AND rs_selfield-fieldname = 'VBELN' AND
    rs_selfield-value IS NOT INITIAL.
    READ TABLE it_so1 INTO wa_so INDEX rs_selfield-tabindex.
    IF SY-SUBRC = 0.
    LOOP AT it_vbfa INTO wa_vbfa WHERE vbelv = WA_SO-vbeln
    AND posnv = WA_SO-posnr.
    READ TABLE it_del_ful INTO wa_it_del_ful
    WITH KEY vbeln = rs_selfield-value
    posnr = wa_vbfa-posnn.
    IF rs_selfield-fieldname = 'VBELN'.
    SET PARAMETER ID 'VL' FIELD wa_vbfa-vbeln .
    CALL TRANSACTION 'VL03' AND SKIP FIRST SCREEN.
    ENDIF .
    ENDLOOP.
    ENDIF.
    ENDIF.
    ENDFORM . "USER_COMMAND2
    SECOND FIELDCATALOG ******************************************
    *& Form FLD_CAT2
    text
    -->P_I_FLDCAT2[] text
    FORM fld_cat2 USING p_i_fldcat2 TYPE slis_t_fieldcat_alv .
    CLEAR i_fldcat2.
    i_fldcat2-fieldname = 'VBELN'. "FIELD FOR WHICH CATALOG ID FILLED
    i_fldcat2-tabname = 'IT_DEL_FUL'."TABLE NAME
    i_fldcat2-seltext_m = 'DELIVERY NO.'.
    i_fldcat2-col_pos = 1. " POSITION OF THE COLUMN.
    i_fldcat2-outputlen = 20. " SET THE OUTPUT LENGTH.
    i_fldcat2-emphasize = 'X'. " COLOR OF THIS COLUMN.
    i_fldcat2-key = 'X'. " SO THAT THIS FIELD IS NOT
    "SCROLLABLE AND HIDDABLE.
    i_fldcat2-hotspot = 'X'.
    i_fldcat2-just(1) = 'C'.
    APPEND i_fldcat2.
    CLEAR i_fldcat2.
    i_fldcat2-fieldname = 'POSNR'. "FIELD FOR WHICH CATALOG ID FILLED
    i_fldcat2-seltext_m = 'DELIVERY ITEM'.
    i_fldcat2-col_pos = 2. " POSITION OF THE COLUMN.
    i_fldcat2-outputlen = 20. " SET THE OUTPUT LENGTH.
    i_fldcat2-emphasize = 'X'. " COLOR OF THIS COLUMN.
    i_fldcat2-key = 'X'. " SO THAT THIS FIELD IS NOT
    "SCROLLABLE AND HIDDABLE.
    i_fldcat2-just(1) = 'C'.
    APPEND i_fldcat2.
    CLEAR i_fldcat2.
    i_fldcat2-fieldname = 'MATNR'. "FIELD FOR WHICH CATALOG ID FILLED
    i_fldcat2-seltext_m = 'MATERIAL NO.'.
    i_fldcat2-col_pos = 3. " POSITION OF THE COLUMN.
    i_fldcat2-outputlen = 20. " SET THE OUTPUT LENGTH.
    i_fldcat2-emphasize = 'X'. " COLOR OF THIS COLUMN.
    i_fldcat2-key = 'X'. " SO THAT THIS FIELD IS NOT
    "SCROLLABLE AND HIDDABLE.
    i_fldcat2-just(1) = 'C'.
    APPEND i_fldcat2.
    CLEAR i_fldcat2.
    i_fldcat2-fieldname = 'WERKS'. "FIELD FOR WHICH CATALOG ID FILLED
    i_fldcat2-seltext_m = 'PLANT.'.
    i_fldcat2-col_pos = 4. " POSITION OF THE COLUMN.
    i_fldcat2-outputlen = 20. " SET THE OUTPUT LENGTH.
    i_fldcat2-emphasize = 'X'. " COLOR OF THIS COLUMN.
    i_fldcat2-key = 'X'. " SO THAT THIS FIELD IS NOT
    "SCROLLABLE AND HIDDABLE.
    i_fldcat2-just(1) = 'C'.
    APPEND i_fldcat2.
    CLEAR i_fldcat2.
    i_fldcat2-fieldname = 'LGORT'. "FIELD FOR WHICH CATALOG ID FILLED
    i_fldcat2-seltext_m = 'ST. LOCATION'.
    i_fldcat2-col_pos = 5. " POSITION OF THE COLUMN.
    i_fldcat2-outputlen = 20. " SET THE OUTPUT LENGTH.
    i_fldcat2-emphasize = 'X'. " COLOR OF THIS COLUMN.
    i_fldcat2-key = 'X'. " SO THAT THIS FIELD IS NOT
    "SCROLLABLE AND HIDDABLE.
    i_fldcat2-just(1) = 'C'.
    APPEND i_fldcat2.
    CLEAR i_fldcat2.
    i_fldcat2-fieldname = 'CHARG'. "FIELD FOR WHICH CATALOG ID FILLED
    i_fldcat2-seltext_m = 'BATCH NO.'.
    i_fldcat2-col_pos = 6. " POSITION OF THE COLUMN.
    i_fldcat2-outputlen = 20. " SET THE OUTPUT LENGTH.
    i_fldcat2-emphasize = 'X'. " COLOR OF THIS COLUMN.
    i_fldcat2-key = 'X'. " SO THAT THIS FIELD IS NOT
    "SCROLLABLE AND HIDDABLE.
    i_fldcat2-just(1) = 'C'.
    APPEND i_fldcat2.
    CLEAR i_fldcat2.
    i_fldcat2-fieldname = 'LFIMG'. "FIELD FOR WHICH CATALOG ID FILLED
    i_fldcat2-seltext_m = 'ACT. DEL. QTY.'.
    i_fldcat2-col_pos = 7. " POSITION OF THE COLUMN.
    i_fldcat2-outputlen = 20. " SET THE OUTPUT LENGTH.
    i_fldcat2-emphasize = 'X'. " COLOR OF THIS COLUMN.
    i_fldcat2-key = 'X'. " SO THAT THIS FIELD IS NOT
    "SCROLLABLE AND HIDDABLE.
    i_fldcat2-just(1) = 'C'.
    APPEND i_fldcat2.
    CLEAR i_fldcat2.
    i_fldcat2-fieldname = 'VRKME'. "FIELD FOR WHICH CATALOG ID FILLED
    i_fldcat2-seltext_m = 'SALES UNIT.'.
    i_fldcat2-col_pos = 8. " POSITION OF THE COLUMN.
    i_fldcat2-outputlen = 20. " SET THE OUTPUT LENGTH.
    i_fldcat2-emphasize = 'X'. " COLOR OF THIS COLUMN.
    i_fldcat2-key = 'X'. " SO THAT THIS FIELD IS NOT
    "SCROLLABLE AND HIDDABLE.
    i_fldcat2-just(1) = 'C'.
    APPEND i_fldcat2.
    ENDFORM. " FLD_CAT2
    ALV LAYOUT *******************************************
    *& Form LAYOUT
    text
    -->P_I_LAYOUT text
    FORM t_layout USING p_i_layout TYPE slis_layout_alv .
    p_i_layout-zebra = 'X'.
    p_i_layout-totals_text = 'GRAND TOTAL ='.
    p_i_layout-CONFIRMATION_PROMPT = 'X'.
    p_i_layout-DEF_STATUS = ' '.
    p_i_layout-info_fieldname = 'LINE_COLOR'.
    ENDFORM. " LAYOUT
    Regards,
    Padmam.

  • How to expand/collapse detail rows per each row in APEX reports

    Hi
    I want to add functionality to my APEX classic reports which allows me to expand/collapse rows using something like +/- buttons. Please let me know how to achieve this.
    Thanks
    Hina

    Hi,
    This Carls example might help
    http://htmldb.oracle.com/pls/otn/f?p=11933:1
    See also post relating that sample
    Re: Question for Carl Backstrom
    Regards,
    Jari
    http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0

  • [Forum FAQ] How to use parameter to control the Expand/Collapse drill-down options in SSRS report?

    In SQL Server Reporting Services (SSRS), drill-down is an action we can apply to any report item to hide and show other report items. They all are ways that we can organize and display data to help our users understand our report better. In this article,
    we are talking about how to use parameter to control the Expand/Collapse drill-down options in SSRS report.
    Consider that the report has a dataset (dsSales) with following fields: SalesTerritoryGroup, SalesTerritoryCountry, CalendarYear, SalesAmount.
    1. The report has the following group settings:
    Parent Group: SalesTerritoryGroup
     Child Group: SalesTerritoryCountry
      Child Group: CalendarYear
       Details: SalesAmount
    2. Add three parameters in the report:
    GroupExpand:
    Available Values: “Specify values”
    Label: Yes           Value: Yes
    Label: No            Value: No
    Default Values: “Specify values”
    Value: Yes
    CountryExpand:
    Available Values: “Specify values”
    Label: Yes           Value: =IIF(Parameters!GroupExpand.Value="No",Nothing,"Yes")
    Label: No            Value: No
    Default Values: “Specify values”
    Value: =IIF(Parameters!GroupExpand.Value="No","No","Yes")
    YearExpand:
    Available Values: “Specify values”
    Label: Yes          
    Value: =IIF(Parameters!GroupExpand.Value="No" or Parameters!CountryExpand.Value="No",Nothing,"Yes")
    Label: No            Value: No
    Default Values: “Specify values”
    Value: =IIF(Parameters!GroupExpand.Value="No" or Parameters!CountryExpand.Value="No","No","Yes")
    3. Right click SalesTerritoryCountry icon in the Row Groups dialog box, select Group Properties.
    4. Click Visibility in the left pane. Select “Show or hide based on an expression” and type with following expression:
    =IIF(Parameters!GroupExpand.Value="Yes", False, True)
    Select “Display can be toggled by this report item” option, and select “SalesTerritoryGroup” in the drop down list.
    5. Use the same method setting CalendarYear, (Details) drill-down with following expression:
    =IIF(Parameters!CountryExpand.Value="Yes", False, True)
    =IIF(Parameters!YearExpand.Value="Yes", False, True)
    6. Click SalesTerritoryGroup text box in the tablix. Select InitialToggleState property in the Properties dialog box, and type following expression:
    =IIF(Parameters!GroupExpand.Value="Yes", True, False)
    7. Use the same method setting SalesTerritoryCountry, CalendarYear text box with following expression:
    =IIF(Parameters!CountryExpand.Value="Yes", True, False)
    =IIF(Parameters!YearExpand.Value="Yes", True, False)
    After that, when we preview the report, we can use these three parameters to expand/collapse drill-down.
    Note:
    In our test, we may meet following issue. We can check the expression of InitialToggleState property to troubleshooting the issue.
    Applies to
    Reporting Services 2008
    Reporting Services 2008 R2
    Reporting Services 2012

    In SQL Server Reporting Services (SSRS), drill-down is an action we can apply to any report item to hide and show other report items. They all are ways that we can organize and display data to help our users understand our report better. In this article,
    we are talking about how to use parameter to control the Expand/Collapse drill-down options in SSRS report.
    Consider that the report has a dataset (dsSales) with following fields: SalesTerritoryGroup, SalesTerritoryCountry, CalendarYear, SalesAmount.
    1. The report has the following group settings:
    Parent Group: SalesTerritoryGroup
     Child Group: SalesTerritoryCountry
      Child Group: CalendarYear
       Details: SalesAmount
    2. Add three parameters in the report:
    GroupExpand:
    Available Values: “Specify values”
    Label: Yes           Value: Yes
    Label: No            Value: No
    Default Values: “Specify values”
    Value: Yes
    CountryExpand:
    Available Values: “Specify values”
    Label: Yes           Value: =IIF(Parameters!GroupExpand.Value="No",Nothing,"Yes")
    Label: No            Value: No
    Default Values: “Specify values”
    Value: =IIF(Parameters!GroupExpand.Value="No","No","Yes")
    YearExpand:
    Available Values: “Specify values”
    Label: Yes          
    Value: =IIF(Parameters!GroupExpand.Value="No" or Parameters!CountryExpand.Value="No",Nothing,"Yes")
    Label: No            Value: No
    Default Values: “Specify values”
    Value: =IIF(Parameters!GroupExpand.Value="No" or Parameters!CountryExpand.Value="No","No","Yes")
    3. Right click SalesTerritoryCountry icon in the Row Groups dialog box, select Group Properties.
    4. Click Visibility in the left pane. Select “Show or hide based on an expression” and type with following expression:
    =IIF(Parameters!GroupExpand.Value="Yes", False, True)
    Select “Display can be toggled by this report item” option, and select “SalesTerritoryGroup” in the drop down list.
    5. Use the same method setting CalendarYear, (Details) drill-down with following expression:
    =IIF(Parameters!CountryExpand.Value="Yes", False, True)
    =IIF(Parameters!YearExpand.Value="Yes", False, True)
    6. Click SalesTerritoryGroup text box in the tablix. Select InitialToggleState property in the Properties dialog box, and type following expression:
    =IIF(Parameters!GroupExpand.Value="Yes", True, False)
    7. Use the same method setting SalesTerritoryCountry, CalendarYear text box with following expression:
    =IIF(Parameters!CountryExpand.Value="Yes", True, False)
    =IIF(Parameters!YearExpand.Value="Yes", True, False)
    After that, when we preview the report, we can use these three parameters to expand/collapse drill-down.
    Note:
    In our test, we may meet following issue. We can check the expression of InitialToggleState property to troubleshooting the issue.
    Applies to
    Reporting Services 2008
    Reporting Services 2008 R2
    Reporting Services 2012

  • Expand/collapse button functionality on module pool screen

    Hi ,
    I want to design a module pool screen with a expand/collapse button on it.
    The desired functionality associated with this button would be something similiar to that available in ME21N screen. When the expand button is clicked it should open up a section of screen that allows the user to enter some parameter. Based on this parameter some selections from DB can be perfomed and then displayed below it.
    Any pointers on how to achieve this? Any kind of help would be appreciated.
    Regards-
    Harmeet Singh.

    example for three pushbutton with expand collapse .
    First of all define your push button as output field with icon tick in the pushbutton characteristick,
    then define this pushbutton in top_include
    include <icon>.
    data : push_a1 like icons-l4,
             push_a2 like icons-l4,
             push_a3 like icons-l4.
    data : a1 ,
             a2,
             a3.
    in pai of the screen
    suppose i had assign function code a1 ,a2 , a3 for repective pushbutton
    module user_command_9002 input.
      okcd = ok_code.
      clear ok_code.
      case okcd.
        when 'A1'.
          if a1 is initial.
            a1 = 'X'.
          else.
            clear a1.
          endif.
        when 'A2'.
          if a2 is initial.
            a2 = 'X'.
          else.
            clear a2.
          endif.
        when 'A3'.
          if a3 is initial.
            a3 = 'X'.
          else.
            clear a3.
          endif.
      endcase.
    endmodule.                 " USER_COMMAND_9002  INPUT
    define three seprate screen -group for three pushbutton say a1 a2 a3
    during pbo you can directly assign name of icon .
    if a1 is initial.
        push_a1 = icon_collapse.
      else.
        push_a1 = icon_expand.
      endif.
      if a2 is initial.
        push_a2 = icon_collapse.
      else.
        push_a2 = icon_expand.
      endif.
      if a3 is initial.
        push_a3 = icon_collapse.
      else.
        push_a3 = icon_expand.
      endif.
    loop at screen.
        if screen-group1 = 'A1'.
          if a1 = 'X'.
            screen-invisible = 1.
            screen-input = 0.
            modify screen.
          else.
            screen-active = 1.
            screen-invisible = 0.
            screen-input = 1.
          endif.
        elseif screen-group1 = 'A2'.
          if a2 = 'X'.
            screen-invisible = 1.
            screen-input = 0.
            modify screen.
          else.
            screen-active = 1.
            screen-invisible = 0.
            screen-input = 1.
          endif.
        elseif screen-group1 = 'A3'.
          if a3 = 'X'.
            screen-invisible = 1.
            screen-input = 0.
            modify screen.
          else.
            screen-active = 1.
            screen-invisible = 0.
            screen-input = 1.
          endif.
        endif.
      endloop.
    regards,
    Alpesh
    Edited by: Alpesh on May 28, 2009 10:28 AM

  • Collapse All and Expand All functionality in Tree

    Hi All,
    I am using TreeByNestingTableColumn element to display the tree hierarchy .
    Does anyone knows how to implement Collapse All and Expand All functionality for this tree (if someone have sample code for these functionality then it will be great for me) ?
    Thanks in advance.
    Ravi.

    Hello Ravindra Sahu,
    Code for EXPAND ALL button:
    *step 1:Access node
      lo_nd_tree_hierarchy = wd_context->get_child_node( name = wd_this->wdctx_tree_hierarchy ).
    *step2: Extract all the table entries from node which is binded to table
    lo_nd_tree_hierarchy->get_static_attributes_table(
        IMPORTING
          table = lt_tree_hierarchy ).
    *step3:set element attribute Expanded to abap_true
        loop at lt_tree_hierarchy ASSIGNING <ls_tree_hierarchy>.
          <ls_tree_hierarchy>-expanded = abap_true.
        endloop.
    *step4: Finally the updated data needs to be binded.
      lo_nd_tree_hierarchy->bind_table( lt_tree_hierarchy ).
    Code for COLLAPSE ALL button:
    *step 1:Access node
      lo_nd_tree_hierarchy = wd_context->get_child_node( name = wd_this->wdctx_tree_hierarchy ).
    *step2: Extract all the table entries from node which is binded to table
    lo_nd_tree_hierarchy->get_static_attributes_table(
        IMPORTING
          table = lt_tree_hierarchy ).
    *step3:set element attribute Expanded to abap_true
        loop at lt_tree_hierarchy ASSIGNING <ls_tree_hierarchy>.
          <ls_tree_hierarchy>-expanded = abap_false.
        endloop.
    *step4: Finally the updated data needs to be binded.
      lo_nd_tree_hierarchy->bind_table( lt_tree_hierarchy ).
    Please don't forget giving REWARD points...:-)
    Edited by: Bharath Komarapalem on Jul 11, 2008 9:17 AM

  • Interactive report functionality for classic report

    Hi ,
    I have to implement IR report search functionality (*when ever we click on column header it will display all the values in that particular column , once we click on particular value , the report will filter based on that particular value * ) in classic report ... is that possible
    please help me
    Thanks
    Sagar

    sag wrote:
    I have to implement IR report search functionality (*when ever we click on column header it will display all the values in that particular column , once we click on particular value , the report will filter based on that particular value * ) in classic report ... is that possiblePossible? Yes. A lot of work? Yes. Reinventing IRs? Yes.
    Why not use an IR?

  • How to generate expand/collapse ssrs report?

    Hi,
    I have a requirement, where i have to expand/collapse the columns like below
    ID  Name  Profile
    1     X          A
    1     X           B
    2     Y            C
    2     X             D
    2     X             E
    now i want to group ID's  and Names  
    ID  name  Profile
    1
    when i expand '1' then 
    ID  Name profile
    1     X
    when i expand 'X' then i have to c Profiles of that
    jo

    Hi jyoshnaa,
    Based on my understanding, you want to display the Name values toggled by the ID, and the Profile toggled by Name.
    In your scenario, you can specify the Visibility for the textbox as hidden, then make the Textbox can be toggled by the corresponding report item. Please refer to the steps below:
    1. Specify the Visibility option for the Name group and [Profile] textbox like below:
    2. Preview the report.
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

Maybe you are looking for

  • Going full screen in Adobe Reader 7

    I have happily used Acroread 5 under SuSE 9.2 on my desktop. Now I moved a latex-generated PDF presentation of mine on a laptop with SuSE 10.2 and Adobe Reader 7, and I've noted what it looks like a non-conformance to the X11 standards. On my old sys

  • Connecting Ipad 2 to time capsule

    Hi there... I've just purchased a Time Capsule 3TB. I have an Ipad 2 which is using the network that I have setup via the Time Machine. Is there anyway I can access files - music, films etc from the time capsule directly from the ipad ? Many thanks i

  • Solaris 10 x86 06/06 GRUB hangs

    Dear forum, I need help regarding Solaris 10 x86 06/06 OS GRUB hangs. I had installed Solaris 10 06/06 OS in my SFX4200 server. After installation, i has installed Solaris 10 Recommended patches and rebooted the system. My next tast is to mirror the

  • Activation woes

    I just purchased an iPhone for myself and my wife. Activation of the first phone went smoothly. However, the fun really began when I tried to activate the second. When plugging the phone into a XP (then later Vista) equipped PC, iTunes would see the

  • Can you loop through a collection of entites to read a given attribute?

    I got an entity called <b>the applicant</b>. and this entity has an attribute called <b>the full name of the applicant</b>. I want to go through the collection of <b>the applicants</b> and get the <b>full name</b> for each applicant and assign it to