Hide the group in module pool

Hi All,
I need to hide the all fields defined in a group at once when it find the code in PBO...
if scrren-group1 = 'ABC'
screen-invisible = 1.
modify screen.
exit.
endif.
But the problem is that it hide only first field defined in group. If we erase the EXIT command after modifing the screen then within the loop it hide all field of group one by one.
Thanks and regards
Alok Vishnoi
<< Personal information removed >>
Please follow up on your unanswered posts.
Edited by: Rob Burbank on Feb 9, 2009 11:36 AM

Hi,
Take the group of the textboxes as 'ABC' which you want to hide.
in PBO, use code:-
if <condition>. "if required
  if screen-group1 = 'ABC'.
    loop at screen.
      screen-invisible = 1. "hide conrtol
      screen-active = 0.
    endloop.
    modify screen.
  endif.
else. "if condition is not true
  if screen-group1 = 'ABC'.
    loop at screen.
      screen-invisible = 0. "display control
      screen-active = 1.
    endloop.
    modify screen.
  endif.
endif. "for condition (if loop)
In this case if condition is true textbox are invisible else displayed to user.
Condtion can be used as per your requirement.
Hope this helps you.
Regards,
Tarun

Similar Messages

  • Hide the 'group tree' in crystal reports 2008

    Hey Guys,
    Please help me out.
    I need to hide the group tree which automatically shoots on the crystal report after execution.
    This is what i need to see. Only the report data (After report execution) i do not need to see the group tree under the tab 'main report' which appears on the left had side of the report.
    I know that in the previous version there was an option which would hide the group tree option under File>Report Option> uncheck Group tree.
    But there is no option here in CR 2008.
    Is there a code i need to insert somewhere in the report??
    Regards,
    Harvino

    Hi Chinmay,
    Thanks for your quick reply, I was late on the reply because I had a load of other things to do. Sorry for that....
    I am aware that we can click the toggle panel to remove the group tree.
    But a user wants to hide the group tree on 1st run,,,, that is causing the problem.....
    I cant seem to find an option we can disable group tree for the user, so that he may not view the group tree..
    Harvin

  • How to set the size of the screen in module pool.

    how to edit  the actual size of the screen in module pool  programing.

    Hi purshothaman,
    1. use the FM RPY_DYNPRO_READ
    2. Pass the programname and screen number
    3. We will get back various values in HEADER structure
        LINES
    COLUMNS
    regards,
    amit m.

  • COPY THE STANDARD SAP MODULE POOL PROGRAM

    HOW I CAN COPY THE STANDARD SAP MODULE POOL PROGRAM ((INCLUDING SCREENS) INTO Z REPORT?

    Hi,
    Go to transactionSE38 ABAP Editor.Type the program name.Click copy.It will ask whether you want copy documentation,screens,etc.,
    Check mark it.

  • How to hide the Group Tree in WPF viewer

    I am trying to hide the GroupTree when I run a report, I would like to be able to turn this feature on for a few reports, however; I will normally like to hide the groups.
    Your help will be highly appreciated

    Are you using the CR4VS2010 beta? If so check the readme and change your subject line then search.
    See this link for more info on Beta release: Crystal Reports for Visual Studio 2010 Beta - read before posting
    Edited by: Don Williams on Jul 25, 2010 12:39 PM

  • What are the events in Module Pool Programming ?

    hi,
    what are the events in Module Pool Programming ???
    thx

    Refer the following links :
    http://www.sapdevelopment.co.uk/dialog/dialoghome.htm
    http://help.sap.com/saphelp_webas630/helpdata/en/9f/db9cdc35c111d1829f0000e829fbfe/content.htm
    http://www.sap-img.com/
    http://help.sap.com/saphelp_46c/helpdata/en/08/bef2dadb5311d1ad10080009b0fb56/content.htm
    http://www.sapgenie.com/links/abap.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/c9/5472fc787f11d194c90000e8353423/frameset.htm
    http://www.sapdevelopment.co.uk/dialog/dialoghome.htm
    http://help.sap.com
    http://www.sapgenie.com/abap/example_code.htm
    http://help.sap.com/saphelp_47x200/helpdata/en/52/670ba2439b11d1896f0000e8322d00/frameset.htm
    http://www.allsaplinks.com/dialog_programming.html
    http://www.sapbrain.com/TUTORIALS/default.html
    http://www.sappoint.com/abap/spmp.pdf
    <b>Reward points if it helps in any way.</b>

  • CRVS2010 Beta - How do you hide the Group Tree for Visual Studio 2010

    Would anyone know how to hide the group tree in the Crystal Reports viewer for Visual Studio 2010.  I have tried
    DisplayGroupTree="False" and found the property doesn't exist in the new version for VS 2010.  I have search in the designer options and found nothing.  Note this report is for ASP.net.
    Thanks
    Dave.
    Subject modified as per the sticky post at the top of this forum; [Crystal Reports for Visual Studio 2010 Beta - read before posting|Crystal Reports for Visual Studio 2010 Beta - read before posting;
    Edited by: Ludek Uher on Sep 15, 2010 8:55 AM

    A simple search using the search box in the top right corner of this web page would have come up with the following KBase as one of the 1st - if not the 1st hit (for once, we beat Google    ).
    [1183704 - How to display or hide the Group Tree in CrystalReportViewer control through code in Crystal Reports 2008|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333133383333333733303334%7D.do]
    - Ludek

  • Hide the group tree while previewing the report

    Post Author: sanjay_usa1
    CA Forum: General
    Hello! Everyone i would like to hide the group tree which comes in the report while previewing it when i preview the report each time the group tree in the left hand side appears everytime i know i can hide and unhide it from the toolbar in the upperside but i dont want it to dispaly the group tree while previewing it as default , Is it possible to do that.
    Pls Help out it will be a great help
    Regards,Sanjay

    Post Author: yangster
    CA Forum: General
    Under file -> optionsuncheck the display group tree that will remove the group tree from displaying by default

  • How to extract the data from module pool program to Excel Sheet?

    Hi Guys
            I am having a requirement to transfer the data from Module pool screen to excel sheet directly.
            This is an urgent requirement.
            So plz reply me with some coding examples.
            I will give points for that.

    This report extract excel file. From that concept you can easily extract data from module pool program also by coding in PAI of the screen.
    REPORT ztest1 .
    * this report demonstrates how to send some ABAP data to an
    * EXCEL sheet using OLE automation.
    include ole2incl.
    * handles for OLE objects
    data: h_excel type ole2_object,        " Excel object
          h_mapl type ole2_object,         " list of workbooks
          h_map type ole2_object,          " workbook
          h_zl type ole2_object,           " cell
          h_f type ole2_object,            " font
          h_c type ole2_object.            " color
    DATA: FILENAME LIKE RLGRAP-FILENAME.
    tables: spfli.
    data  h type i.
    * table of flights
    data: it_spfli like spfli occurs 10 with header line.
    *&   Event START-OF-SELECTION
    start-of-selection.
    * read flights
      select * from spfli into table it_spfli.
    * display header
      uline (61).
      write: /     sy-vline no-gap,
              (3)  'Flg'(001) color col_heading no-gap, sy-vline no-gap,
              (4)  'Nr'(002) color col_heading no-gap, sy-vline no-gap,
              (20) 'Von'(003) color col_heading no-gap, sy-vline no-gap,
              (20) 'Nach'(004) color col_heading no-gap, sy-vline no-gap,
              (8)  'Zeit'(005) color col_heading no-gap, sy-vline no-gap.
      uline /(61).
    * display flights
      loop at it_spfli.
        write: / sy-vline no-gap,
                 it_spfli-carrid color col_key no-gap, sy-vline no-gap,
                 it_spfli-connid color col_normal no-gap, sy-vline no-gap,
                 it_spfli-cityfrom color col_normal no-gap, sy-vline no-gap,
                 it_spfli-cityto color col_normal no-gap, sy-vline no-gap,
                 it_spfli-deptime color col_normal no-gap, sy-vline no-gap.
      endloop.
      uline /(61).
    * tell user what is going on
      call function 'SAPGUI_PROGRESS_INDICATOR'
         exporting
    *           PERCENTAGE = 0
               text       = text-007
           exceptions
                others     = 1.
    * start Excel
      create object h_excel 'EXCEL.APPLICATION'.
    *  PERFORM ERR_HDL.
      set property of h_excel  'Visible' = 1.
    *  CALL METHOD OF H_EXCEL 'FILESAVEAS' EXPORTING #1 = 'c:kis_excel.xls'
    *  PERFORM ERR_HDL.
    * tell user what is going on
      call function 'SAPGUI_PROGRESS_INDICATOR'
         exporting
    *           PERCENTAGE = 0
               text       = text-008
           exceptions
                others     = 1.
    * get list of workbooks, initially empty
      call method of h_excel 'Workbooks' = h_mapl.
      perform err_hdl.
    * add a new workbook
      call method of h_mapl 'Add' = h_map.
      perform err_hdl.
    * tell user what is going on
      call function 'SAPGUI_PROGRESS_INDICATOR'
         exporting
    *           PERCENTAGE = 0
               text       = text-009
           exceptions
                others     = 1.
    * output column headings to active Excel sheet
      perform fill_cell using 1 1 1 200 'Carrier id'(001).
      perform fill_cell using 1 2 1 200 'Connection id'(002).
      perform fill_cell using 1 3 1 200 'City from'(003).
      perform fill_cell using 1 4 1 200 'City to'(004).
      perform fill_cell using 1 5 1 200 'Dep. Time'(005).
      loop at it_spfli.
    * copy flights to active EXCEL sheet
        h = sy-tabix + 1.
        if it_spfli-carrid cs 'AA'.
          perform fill_cell using h 1 0 000255000 it_spfli-carrid.
        elseif it_spfli-carrid cs 'AZ'.
          perform fill_cell using h 1 0 168000000 it_spfli-carrid.
        elseif it_spfli-carrid cs 'JL'.
          perform fill_cell using h 1 0 168168000 it_spfli-carrid.
        elseif it_spfli-carrid cs 'LH'.
          perform fill_cell using h 1 0 111111111 it_spfli-carrid.
        elseif it_spfli-carrid cs 'SQ'.
          perform fill_cell using h 1 0 100100100 it_spfli-carrid.
        else.
          perform fill_cell using h 1 0 000145000 it_spfli-carrid.
        endif.
        if it_spfli-connid lt 400.
          perform fill_cell using h 2 0 255000255 it_spfli-connid.
        elseif it_spfli-connid lt 800.
          perform fill_cell using h 2 0 077099088 it_spfli-connid.
        else.
          perform fill_cell using h 2 0 246156138 it_spfli-connid.
        endif.
        if it_spfli-cityfrom cp 'S*'.
          perform fill_cell using h 3 0 155155155 it_spfli-cityfrom.
        elseif it_spfli-cityfrom cp 'N*'.
          perform fill_cell using h 3 0 189111222 it_spfli-cityfrom.
        else.
          perform fill_cell using h 3 0 111230222 it_spfli-cityfrom.
        endif.
        if it_spfli-cityto cp 'S*'.
          perform fill_cell using h 4 0 200200200 it_spfli-cityto.
        elseif it_spfli-cityto cp 'N*'.
          perform fill_cell using h 4 0 000111222 it_spfli-cityto.
        else.
          perform fill_cell using h 4 0 130230230 it_spfli-cityto.
        endif.
        if it_spfli-deptime lt '020000'.
          perform fill_cell using h 5 0 145145145 it_spfli-deptime.
        elseif it_spfli-deptime lt '120000' .
          perform fill_cell using h 5 0 015215205 it_spfli-deptime.
        elseif it_spfli-deptime lt '180000' .
          perform fill_cell using h 5 0 000215205 it_spfli-deptime.
        else.
          perform fill_cell using h 5 0 115115105 it_spfli-deptime.
        endif.
      endloop.
    * EXCEL FILENAME
      CONCATENATE SY-REPID '_' SY-DATUM+6(2) '_' SY-DATUM+4(2) '_'
                  SY-DATUM(4) '_' SY-UZEIT '.XLS' INTO FILENAME.
      CALL METHOD OF H_MAP 'SAVEAS' EXPORTING #1 = FILENAME.
      free object h_excel.
      perform err_hdl.
    *       FORM FILL_CELL                                                *
    *       sets cell at coordinates i,j to value val boldtype bold       *
    form fill_cell using i j bold col val.
      call method of h_excel 'Cells' = h_zl
        exporting
          #1 = i
          #2 = j.
      perform err_hdl.
      set property of h_zl 'Value' = val .
      perform err_hdl.
      get property of h_zl 'Font' = h_f.
      perform err_hdl.
      set property of h_f 'Bold' = bold .
      perform err_hdl.
      set property of h_f 'Color' = col.
      perform err_hdl.
    endform.                    "FILL_CELL
    *&      Form  ERR_HDL
    *       outputs OLE error if any                                       *
    *  -->  p1        text
    *  <--  p2        text
    form err_hdl.
      if sy-subrc <> 0.
        write: / 'OLE-Automation Error:'(010), sy-subrc.
        stop.
      endif.
    endform.                    " ERR_HDL

  • How to store the variant in Module Pool Programming

    Hi,
       I have the module pool program which is having 4 screen. depends on the first and second screen, third screen is called. i want to store the data of third screen to the variant. All the screen except first screen is a subscreen.
    Regards,
    Dhiraj.

    Hi Dhiraj,
    You can create a variant only for a Report. Module Pool Programs require a dialog with the user & hence creating a varint is not possible. You  can possibly create some Parameter IDs & default values in there.
    Regards,
    Suresh Datti

  • Hide the group by item in the final output

    Hi All,
    I am using BIP version:10.1.3.4.1
    I have BIP publisher which is a group by report
    Group1
    item dept
    it1 d1
    it2 d2
    Can I not to display the Group1 field in the final output(but the field should be present in the .rtf file).
    Thanks in advance
    Regards,

    Sorry for the confusion.
    I have generating the report on the basis of Group1 field.
    in the RTF file I have code for
    Group1 <?VENDOR?>
    F <?for-each:current-group()?>
    I want to keep the Group1 the rtf file but do want not want to display in the output file.
    Is there any setting for the item where we can hide the item from the final output but the item will be present in the rtf file.
    Thanks & Regards

  • Display the list in module pool program

    Hi All,
    I want to display the list of material like report after some user command in module pool.
    How can I achive the same.
    Regards
    Sagar

    Hi,
       If you want to display in ALV, you can use REUSE_ALV_GRID_DISPLAY FM also, which will call standard program from module pool and will display the list.
      If you use module pool, it is not mandatory that you have to use only OO ALV.
      You can create list output also from module pool. For that in user command you can write like
      IF sy-ucomm = '.....'.
         leave to list processing and return.
         write :/ '..............'.
    Endif.
    Thanks and regards,
    Venkat

  • Double clikc on the field in module pool

    when i double click on the field then it should go to another screen in module pool? <removed_by_moderator>.
    Edited by: Julius Bussche on Jul 20, 2008 10:52 AM

    Hi Krishna,
    in the PBO of main screen
    set the pf status
    and in the pf status
    in freely assigned function keys assign FCT code PICK for key F2
    In PAI of main screen
    in
       CASE SY-UCOMM.
         when 'PICK'.
       <code>
         call screen <screen number>
        ENDCASE.
    regards
    prasanth

  • Hide the group section while previewing the report

    Post Author: sanjay_usa1
    CA Forum: General
    In CMC when i preview the reports which has a group category i can see the groups showing up in the left hand side by default everytime when i preview the reoport i can disable it in the upper toolbar but is there any way i can set up the group to hidden whenever i preview the report. So, that the groups are not shown in the left hand side whenever i preview report.
    Pls. help me out
    Pls. help me out i would really appreciate your help Regards, Sanjay

    Post Author: sanjay_usa1
    CA Forum: General
    Thanks a lot SKodidine, i tried it and published the report through CMC and while seeing the preview in CMC i didnt see the left panel for groups and i also didnt see the Groups tree hide and unhide button at the top of the report, we dont want the panel at the left but we want the button at the top which use to come with the Groups to hide and unhide the group tree panel at the left pls. guide me how can i do it.
    Your kind co-operation will be highly appreciated
    Thanks with best regards,
    Sanjay

  • Can any body tell me how to catch the enter  in module pool.

    this is my first objet in module pool...
    when user provides val in the screen and if he presses enter then i want to diaply other vals in same screen how....please tell me

    Hi Kamala,
    suppose..two fields are there in screen Material and Material desctiption.
    After entering Material if u press enter material description aslo dispaly in the corresponding field.
    for this.
    PBO.
    >>>>>>>>>
    PAI.
    MODULE  get_materail_description.
    Mobule Get_materail_descripton.
    If sy-ucom is SPACE.
    Select Maktx into (screen field) from MAKT.
    ENDIF.
    END MODULE.
    Regards,
    Sunil.

Maybe you are looking for

  • Time machine hard drive for transfering files from 2010 MBP to rMBP

    Hello! I have a couple of questions here! I will be getting the rMBP in the next few weeks so want to do a bit of housekeeping before transferring across. 1) What is the best way to clear my current MBP of files and applications that i dont use and a

  • Implementing SQL Server Reporting Services with a Java EE Application

    Hi All, I need to find some tutorial on "Implementing SQL Server Reporting Services with a Java EE Application" for my j2EE application. Until now i have searched a lot of sites but have not any thing related to this topic. I am using apache axis alo

  • Grid view slow to scroll

    My preference is to view my albums by grid view. However, I'm getting frustrated that when I scroll there is a short wait while it loads up the next lot of album cover art. The bit I don't understand is why it doesn't do this in the background ahead

  • No HTML report from ISE in linux

    Hello everybody :) I work with Xilinx ISE 14.7 undre linux openSUSE 13.1 bootle kernel 3.11.29. I have such a small issue. After synthesis when I want to see Design summary mainly "advanced synthersis report" and "timing details" I cannot generate or

  • Webi report runs in schedule in mins, times out when trying to modify

    I have a Webi Report that runs in schedule copy sent to an inbox (takes a minute to run) However when you try to modify refresh or edit in Webi on Infoview. The application just sits there with one green bar on progress bar, No Timeouts etc. Any idea