Quick & dirty OO ALV, supress info icon on toolbar, how

Hello all,
This is an example of a program template I use to create quick ALVs.
I create a selection-screen 1001 and display the ALV grid on that screen.  I use this technique when my users just want to display data.  When the ALV is presented on screen 1001, clicking on the back, exit, or cancel buttons on the application toolbar exits the program.  Now I have been asked to go to screen 1000 (standard selection-screen) when exiting the ALV.
How can I back out to selection-screen 1000, versus leaving the program?
Thanks
Bruce
include rsdbc1xx.      " selection screen stuff
parameters: p_nuthin(20) default 'Does nothing' lower case.
selection-screen begin of screen 1001.
selection-screen end of screen 1001.
data: w_alv      type ref to   cl_gui_alv_grid,      " ALV grid
      i_t001 type table of t001.                 " ALV data table
data: w_lvc_s_layo type lvc_s_layo.                  " ALV layout
* Global table of function codes to disable
data: lt_exclude type ui_functions.   " itab
data ls_exclude  type ui_func.        " structure
*>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
* events at selection-screen output.
*>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
at selection-screen output.
  if sy-dynnr = '1001'.
    current_scr-mode = 'S'.
*                                        disable functions:
    append 'SPOS' to current_scr-excl.
    append 'SCRH' to current_scr-excl.
    append 'ONLI' to current_scr-excl.    "Online execution
*  append 'PRIN' to current_scr-excl.   "Execute and print
  endif.
*>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
start-of-selection.
*>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
  select * from t001 into table i_t001.
* Creation of the ALV object, when we use cl_gui_container=>screen0
* as parent, the ALVGrid control will automatically use the
* full screen to display the grid, NO CONTAINER DEFINITION IS REQUIRED !
  create object w_alv exporting i_parent = cl_gui_container=>screen0.
  w_lvc_s_layo-grid_title =
       'Grid title - 60 characters maximum'.
  data: w_is_variant type disvariant.
  w_is_variant-report = sy-cprog.
  call method w_alv->set_table_for_first_display
    exporting
      i_structure_name     = 'T001'
      is_layout            = w_lvc_s_layo
      it_toolbar_excluding = lt_exclude
      is_variant           = w_is_variant
      i_save               = 'A'
    changing
      it_outtab            = i_t001.
  call selection-screen 1001.

Since you are creating the ALV on the Selection-screen, you would not have better control. But, you can try to remove the standard button BACK button and replace it with Selection button. Handle this button and LEAVE TO Transaction or SUBMIT to program.
include rsdbc1xx.      " selection screen stuff
* ADD
TYPE-POOLS icon.
TABLES sscrfields.
DATA functxt TYPE smp_dyntxt.
parameters: p_nuthin(20) default 'Does nothing' lower case.
selection-screen begin of screen 1001.
SELECTION-SCREEN: FUNCTION KEY 1,   " ADD
                  FUNCTION KEY 2.   " ADD
selection-screen end of screen 1001.
data: w_alv      type ref to   cl_gui_alv_grid,      " ALV grid
      i_t001 type table of t001.                 " ALV data table
data: w_lvc_s_layo type lvc_s_layo.                  " ALV layout
* Global table of function codes to disable
data: lt_exclude type ui_functions.   " itab
data ls_exclude  type ui_func.        " structure
*>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
* events at selection-screen output.
*>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
INITIALIZATION.
load-OF-PROGRAM.
at selection-screen output.
  if sy-dynnr = '1001'.
    current_scr-mode = 'S'.
*                                        disable functions:
    append 'SPOS' to current_scr-excl.
    append 'SCRH' to current_scr-excl.
    append 'ONLI' to current_scr-excl.    "Online execution
    append 'E' to current_scr-excl.     "ADD - Back
*  append 'PRIN' to current_scr-excl.   "Execute and print
* ADD
    functxt-icon_id   = ICON_SYSTEM_BACK.
    functxt-quickinfo = 'Back'.
    sscrfields-functxt_01 = functxt.
  endif.
* ADD
AT SELECTION-SCREEN.
  CASE sscrfields-ucomm.
    when 'FC01'.
*      leave to TRANSACTION.
      SUBMIT ztest_np VIA SELECTION-SCREEN.
  ENDCASE.
*>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
start-of-selection.
*>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
  select * from t001 into table i_t001.
* Creation of the ALV object, when we use cl_gui_container=>screen0
* as parent, the ALVGrid control will automatically use the
* full screen to display the grid, NO CONTAINER DEFINITION IS REQUIRED !
  create object w_alv exporting i_parent = cl_gui_container=>screen0.
  w_lvc_s_layo-grid_title =
       'Grid title - 60 characters maximum'.
  data: w_is_variant type disvariant.
  w_is_variant-report = sy-cprog.
  call method w_alv->set_table_for_first_display
    exporting
      i_structure_name     = 'T001'
      is_layout            = w_lvc_s_layo
      it_toolbar_excluding = lt_exclude
      is_variant           = w_is_variant
      i_save               = 'A'
    changing
      it_outtab            = i_t001.
  call selection-screen 1001.
Alternatively, you can use the selection screen 1000 and generate the ALV on top of that. Check the example, [Display ALV report output in the SAME Selection Screen|http://help-abap.blogspot.com/2008/10/dispaly-alv-report-output-in-same.html]. This example uses the SALV, but you can very well use the ALV grid for the same purpose. In this case, you don't have to worry about the Std buttons at all!
Regards,
Naimesh Patel

Similar Messages

  • I accidentally deleted my rss feed icon from toolbar. how do I get it back?

    not sure how to get it to show up again

    Copy and paste this url in the location bar and click the button to subscribe to that feed.<br />
    You can move (create ) that bookmark to the Bookmarks Toolbar folder.
    *http://en-us.fxfeeds.mozilla.com/en-US/firefox/headlines.xml
    See also [[How to change the Latest Headlines feed]]

  • ALV GRID with icon fields. When exports to Excel, icon fields are emtpy.

    Hi all,
    In our SAP system (6.0 ECC) we've noticed the following behaviour:
    In ALV GRID with icons (color lights for example...) when we export the list to Excel format with the standard button bat, the icon column is always empty.
    We think that in previous SAP version (4.7), the code corresponding to the icon appeared (For example @08@ for green light).
    It's possible to have tha same functionality in this new version like in 4.7?
    Regards.
    Edited by: Ole ES on Nov 17, 2010 6:05 PM

    Hi,
    Check the format in which you export to Excel (MHTML, XML, ...) and try antoher one.
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/66/79ad48157f11d2953700a0c930328a/content.htm
    I think the integrated Excel mode shows '@08@'.
    Best regards,
    Guillaume

  • Document icon in Finder window differs from Get Info icon

    I've been noticing unexpected document icons in Finder windows for quite some time.
    This is especially true for PDF files. Since the early days of Mac OS X, I've configured my Macs to open PDF files in Adobe Reader, and I'm accustomed to seeing an Adobe PDF document icon on each PDF file. For some time, I've been seeing different PDF icons, e.g., a document with fuzzy text lines and a black ring binding on the left edge.
    I thought this might be a custom icon. But when I do a Get Info on the PDF file, the conventional Adobe PDF icon appears in the Get Info window.
    Is this different between the Finder icon and the Get Info icon a bug or a feature?
    -- Ward

    It's a feature. Any window that has the View Options set to "Show Icon Preview" will do that. It actually is rather handy in a folder that is set to icon view, with nice BIG icons, you can often see the first page (which is what is displayed) clearly enough to recognize exactly what the file is. In List view it isn't at all helpful, nor is it helpful in those cases where you have icon view set, but the icons are quite small (as is the case on my Desktop, and, I suspect, on most people's Desktops). A pdf that has multiple pages will additionally show the "binder" along the left edge. The Finder is drawing these custom icons on the fly from the contents of the file. The only way to defeat it is to turn of the Show Icon Preview for the folder(s) where you don't want an essentially useless and often counter-productive icon. Do that from the Finder's View menu item, Show View Options. Oh, and every folder has different options for each view. So you can turn it off for List view, but have it turned on for icon view, where it might actually be useful.
    Francine
    Francine
    Schwieder

  • I no longer have the info icon for a manual sync.

    I'm trying to do a manual sync with an iMac which I've done many times before and the "info" icon is missing from the list of syncable features. What am I missing?

    Well, yes my questions were answered but of course I came to realization that Apple in their hearts-of-hearts needs to herd everyone to iClod. (Tonque in cheek). Sad. or as SJ would say, it's a total POS.....

  • Adding info Icon to Spark Label

    I am trying to add a info Icon next to a Label in Flex so that when somebody hover over icon, they can see a tooltip but so far no lcuk as i dont see anything like that in spark label control. I m new to skining so do not want to goto that rout but any help with this regard will be greatly appreciated.
    Thanks

    Guessing that skinning is your best bet and it's really not that difficult if you take an hour or two to read carefully any one of a number of articles/introductions on the web.

  • ALV Grid and Icon : Printing Problem

    Hi, i develop some reports using ALV Grid and Icon and i'm facing printing problem, all report that using ALV grid with the option icon = 'X' cannot print properly, all the character field showing improper icon instead of the text. While all the ALV grid report with the option icon = ' ' can print normally.
    Thanks.

    Hi,
    Check the Demo Program <b>BCALV_DEMO_TOOLTIP</b>, Here i am able to see the Output Properly, and also able to Print them.
    Regards
    vijay

  • Playback Control - Remove Info icon

    Is there a way in which I can remove the info icon from the
    playback control? It takes up too much room for the location I have
    the control in. I'd like to be able to just eliminate it.
    Suggestions?

    Hi LabOwner (mad scientist or dog lover??)
    Click on the link below, it will take you to Paul Dewhurst's
    site where there are hordes of nifty Captivate gadgets and gimmicks
    including full skins with no i button. Note most of Paul's stuff is
    free to download as you want, but Paul does an awesome amount of
    work for us all and he does have a PayPal account on his site, so
    it would be nice to drop some change in the jar to encourage him to
    continue with further developments.
    The
    LINK
    Cheers
    Andrew

  • MDT: howto install some basic applications quick & dirty :-)?

    Hi,
    I'd like to install some applications quick & dirty (no loggings needed, just some lab testing), so an exe /qn in MDT without the hassle of importing application etc.
    I tried to map a share in a task sequence step then as a next step run ".\application - 1\application1.exe /qn" next step ".\application - 2\application2.exe /qn"  but that did not work.  The MDT is already shared under z:,
    should I point to z: instead?
    Anyhow, what's the proper way to do this? Or is there a quicker way to import a bunch of simple applications?
    Pls advise.
    J.
    Jan Hoedt

    MDT is easy, My uber command:
    msiexec.exe /qb- /i http://download.microsoft.com/download/B/F/5/BF5DF779-ED74-4BEC-A07E-9EB25694C6BB/MicrosoftDeploymentToolkit2013_x64.msi
    (Yes, msiexec.exe accepts http:// file paths, and works from anywhere with an internet connection).
    SCCM Setup is not trivial.
    What you are looking for is "Hydration":
    https://connect.microsoft.com/pocjumpstart/program8310
    http://www.deploymentresearch.com/Research/tabid/62/EntryId/113/The-Hydration-Kit-for-ConfigMgr-2012-R2-is-available-for-download.aspx
    http://www.david-obrien.net/2014/08/27/configmgr-uber-hydration-kit-v0-9-powershell-dsc/
    etcc
    Keith Garner - Principal Consultant [owner] -
    http://DeploymentLive.com

  • Changing behaviuor of "info icon"

    Hi
    I have made a custom fiori app. My problem is that when entering the detail page on device the info icon needs tabbed before data is visible. Im missing how i make it present at once. please give me the hint?
    br
    SImon

    app view
    <mvc:View
      controllerName="Zquota.view.App"
      xmlns:mvc="sap.ui.core.mvc"
      displayBlock="true"
      xmlns="sap.m">
      <SplitApp
         id="idAppControl" />
    </mvc:View>
    detail view
    <mvc:View
        controllerName="Zquota.view.Detail"
        xmlns="sap.m"
        xmlns:core="sap.ui.core"
        xmlns:mvc="sap.ui.core.mvc"
        xmlns:l="sap.ui.layout"
        xmlns:f="sap.ui.layout.form">
        <Page id="detailPage" navButtonPress="onNavBack" title="Title" showNavButton="true">
                        <IconTabBar class="iconTabBarPaddingTop" id="idIconTabBarMulti" expanded="true">
                            <items>
                                <IconTabFilter >
                                    <l:Grid width="auto" defaultSpan="L1 M1 S1">
                                        <l:content>
                                            <f:SimpleForm minWidth="1024" editable="false" labelSpanL="1" labelSpanM="1" emptySpanL="1" emptySpanM="1" columnsL="2" columnsM="2">
                                                <f:content>
                                                    <Label
                                             text="Quota entitled">
                                             </Label>
                                             <Text
                                             id="text5"
      text="{QuotaAmtTotal}  {UnitText}"
      ></Text>
                                             <Label
                                             text="Quota Used">
                                             </Label>
                                             <Text
                                             id="text3"
        text="{QuotaAmtUsed}  {UnitText}"
                                             maxLines="0">
                                             </Text>
                                             <Label
                                             text="Quota remaining">
                                             </Label>
                                             <Text
                                             id="text1"
      text="{QuotaAmtRest}  {UnitText}"
                                             maxLines="0">
                                             </Text>
                                             <Label
                                             text="Validity">
                                             </Label>
                                             <Text
                                             id="text7"
                                             text="{DeductStart} to {DeductEnd}"
                                             maxLines="0"
                                             >
      </Text>
                                                <core:ExtensionPoint
                           name="extIconTabFilterForm1"/>
                                                </f:content>
                                            </f:SimpleForm>
                                        </l:content>
                                    </l:Grid>
                                </IconTabFilter>
                                <IconTabFilter icon="sap-icon://group">
                                    <Text text="People content goes here ..." />
                                </IconTabFilter>
                            </items>
                        </IconTabBar>
                        <footer id="detailFooter">
                            <Toolbar id="detailToolbar">
                                <content>
                                    <ToolbarSpacer id="toolbarSpacer">
                                    </ToolbarSpacer>
                                    <Button id="actionButton" press="openActionSheet" icon="sap-icon://action">
                                    </Button>
                                </content>
                            </Toolbar>
                        </footer>
                    </Page>
    </mvc:View>
    Master view
    <mvc:View
        controllerName="Zquota.view.Master"
        xmlns="sap.m"
        xmlns:core="sap.ui.core"
        xmlns:mvc="sap.ui.core.mvc"
        xmlns:footerbar="sap.ushell.ui.footerbar">
        <Page
            id="masterPage"
            title="{i18n>masterTitle}">
            <content>
                <!--Button text="{i18n>ADD_INTERNAL_ATTENDEE}" icon="sap-icon://add" press="displayAddInternalAttendeeSelectDialog" /-->
                <Button text="" icon="sap-icon://home" press="onPressHomeIcon"/>
                <List
                    id="list"
                    select="onSelect"
                    mode="{device>/listMode}"
                    noDataText="{i18n>Qoutatype}"
                    text="{QuotaDesc}"
                    growing="true"
                    growingScrollToLoad="true"
      items="{/PersonalQuotaSet}">
                    <customData
                        id="customData1">
                        <core:CustomData
                            id="coreCustomData1"
                            key="sapDtResourcePath"
                            value="PersonalQuotaSet">
                        </core:CustomData>
                    </customData>
                    <items
                        id="masterList">
                        <ObjectListItem
                            id="mainListItem"
                            press="onSelect"
                            type="{device>/listItemType}"
                            counter="0"
      title="{QuotaDesc}"
      numberUnit=""
                            markFavorite="false"
                            markFlagged="false"
                            showMarkers="false">
                            <attributes>
                            </attributes>
                            <customData
                                id="customData2">
                                <core:CustomData
                                    id="coreCustomData2"
                                    key="sapDtResourcePath"
      value="PersonalQuotaSet">
                                </core:CustomData>
                            </customData>
                            <core:ExtensionPoint
                                name="extListItemInfo"/>
                        </ObjectListItem>
                    </items>
                </List>
            </content>
            <footer
                id="masterFooter">
                <Toolbar
                    id="masterToolbar">
                    <content>
                        <footerbar:SettingsButton
                            id="settingsButton"
                            icon="sap-icon://action-settings"
                            tooltip="Help">
                        </footerbar:SettingsButton>
                    </content>
                </Toolbar>
            </footer>
        </Page>
    </mvc:View>

  • HT204053 Hi! i need to transfer from mac iCloud contacts info to galaxy note3. how do i do it? Thanks

    Hi! i need to transfer from mac iCloud contacts info to galaxy note3. how do i do it? Thanks

    If the Galaxy allows importing from vCards files....
    You can export your contacts - go to the Contacts page at icloud.com (use computer's browser), click the top contact to select it then shift-click the bottom one to select all. Click the cogwheel icon at bottom left and choose 'Export vCard'.

  • Is there another way of getting apps from the appstore without putting your credit card number in, ive heard about the itunes gift card thing can anybody just give me more info about that and how i can buy free things free things from the appstorepls help

    Is there another way of getting apps from the appstore without putting your credit card number in, ive heard about the itunes gift card thing can anybody just give me more info about that and how i can buy free things free things from the appstore...pls help as im only a teenager and have no credit credit and my parents dont trust me with theres and they dont care about the fact that you can set up a password/.... PLEASE SOMEONE HELP I WILL BE SO GRATEFUL... And i would really like to get the iphone 4 but if there is no way of etting apps without your credit number then i would have to get a samsung galaxy s3 maybe ...

    You can set up an Apple ID without a credit card.
    Create iTunes Store account without credit card - Support - Apple - http://support.apple.com/kb/ht2534

  • I'm running iCloud on a Windows 7 PC. Photoes have been autmatically uploaded from my iPhone. However, the "Photoes" ICON does not load, and I receive an error message of a problem. Then the ICON disappears. How can I access my photoes?

    I'm running iCloud on a Windows 7 PC. Photoes have been autmatically uploaded from my iPhone. However, the "Photoes" ICON does not load, and I receive an error message of a problem. Then the ICON disappears. How can I access my photoes?

    Same issue here,  previously did work perfectly

  • I keep trying to set up a new Apple ID but apparently my card info is not working. how do i fix this? "contact ituunes support to complete this transaction"

    i keep trying to set up a new Apple ID but apparently my card info is not working. how do i fix this? "contact ituunes support to complete this transaction"

    If the problem persists, you'll probably have to make another apple id, it wont take off any games or music or apps or anything you've bought it will all stay there, i have two apple id's and i don't have a problem with anything.

  • I just purchased a software upgrade.  I received an e-mail that says, "To install your software, you simply launch the Mac App Store, click "Redeem"• found under Quick Links and enter your content code(s)." How do I do this??

    I just purchased a software upgrade to OSX Lion.  I received an e-mail that says, "To install your software, you simply launch the Mac App Store, click "Redeem"• found under Quick Links and enter your content code(s).  How do I "launch the Mac App Store?"

    Assuming you are running OS X 10.6.6 or later (10.7.x Lion, 10.8.x Mountain Lion or 10.9.x Mavericks), go to the Apple Menu (top left-hand corner of the screen)>App Store and it should become clear from there.

Maybe you are looking for

  • Aggregating multiple lists into a single list.

    I have a SharePoint site with several sub-sites, each with its own document library. I've created Site Columns and a Custom Content Type that is used by each library. I want to roll up all the documents with their associated metadata into a single li

  • DUAL BOOTING WINDOWS 8.1

    I want to dual boot my laptop. I have Windows 8.1 currently installed and want to also have LINUX OS. Please help.

  • What is my next step if Apple Tech support does not solve a problem?

    Apple Tech support and engineers have not been able to solve an iCal / iCloud issue.   What do I have to do next to be able to use native apple Calendar app with my iCloud calendar? Ron <Email Edited by Host>

  • How to control the processing of the request?

    I have something like this: <h:inputText value="#{sessionController.currentRowData.settlementId}"/> <h:inputText value="#{sessionController.currentRowData.remark}"/> <h:inputText value="#{sessionController.currentRowData.fromDate}">      <f:convertDa

  • MO Operating Unit Profile Option Needed for Mass Allocation in R12

    Mass Allocation does not work in R12 unless you set MO Operating Unit profile option at GL Responsibility level. Is that an official requirement from Oracle or is that a bug? A client should be able to implement and use GL without setting operating u