How to open an ALV (the OO way) in Excel-View  right away?

Dear experts,
i'm creating an ALV Grid by using method set_table_for_first_display and I wonder if I can initially choose the Excel-view for it as if the user had switched over to it by using the standard "view" function. I figured that this might be posible by using the "FRONTEND" field in the Layout-structure, but this has no efect. Does anybody know how to do that? (if possible without creating an instance of the office integration class).
regards
Andreas

Yeah, it is possible
Check this code
*   Container auxiliar
    create object g_o_container
      exporting
        container_name              = 'G_D_CONTAINER'
      exceptions
        cntl_error                  = 1
        cntl_system_error           = 2
        create_error                = 3
        lifetime_error              = 4
        lifetime_dynpro_dynpro_link = 5
        others                      = 6.
    create object g_d_grid
      exporting
        i_parent          = g_o_container
        i_parentdbg       = cl_gui_custom_container=>default_screen
      exceptions
        error_cntl_create = 1
        error_cntl_init   = 2
        error_cntl_link   = 3
        error_dp_create   = 4
        others            = 5.
  endif.
  perform layout.
  perform fieldcat.
  call method g_d_grid->set_table_for_first_display
   exporting
      is_layout                     = gs_layout
*     is_print                      =
*     it_special_groups             =
*     it_toolbar_excluding          =
    changing
      it_outtab                     = g_t_alv
      it_fieldcatalog               = g_t_fieldcatalog
    exceptions
      invalid_parameter_combination = 1
      program_error                 = 2
      too_many_lines                = 3
      others                        = 4
The key is using the i_parentdbg parameter when creating the ALV Grid, it's kind of a trick, but it worked for me.

Similar Messages

  • I no longer have access to system folders that allow me to remove old or incorrect PAGES templates. Need to find out how to do that. The only way I can do it now is to blank the template and replace the bad template with a blank.

    I no longer have access to system folders that allow me to remove old or incorrect PAGES templates. Need to find out how to do that. The only way I can do it now is to blank the template and replace the unwanted template with a blank. It was previously possible to go to MY TEMPLATES and remove the unwanted templates. I don't if this issue is before or since installation of 10.8 (a nightmare in my case, which led to significant failure issues).  And because I haven't tried to remove templates since finally managing to install 10.8 (now at 10.8.4), I don't know if this is typical of the newer OS or a problem. I've been a Mac user for more than 25 years, but I think I'm nearing the end of the road. By the way, I've never needed to do this before because the manuals always offered an answer... they don't seem to do that anymore. In any case, I don't know how this works... I'd prefer an email reply if that's possible. But that would probably be too easy, and I don't know how to get a reply.

    Thanks, I appreciate the help.  I think this is one of the problems Apple is creating by changing the OS so often. I had fomer colleagues at [a major aerospace contractor] who told me that so many original files were ultimately lost because of the deadly change in the "Save As" operation that they are now afraid of every OS update. Apple has badly damaged their support base with that very prominent company (they won't update now until they've fully examined and understand changes in the pre-conditioned nature of OS computer functions), and they are a whole lot less enthaled with Mac-related equipment/software. Can't blame them, I too used orginal files that way (as easy-to-use templates), and lost some important files before I realized what was happening (to late to revert). Companies should not have to retrain employees each time an OS gets an update, it's can be very expensive several different ways. They learned a painful lesson with that one. And because I'm now retired and don't use multiple devices, I need iCloud like I need a hole in the head... but I'm told there's no way to keep Apple out of my computer. Fortunately, because of major problems when initially installing Mountain Lion, one hold-over of the hardware/software damage I experienced was that iCloud can no longer access my computer even though everything else is working fine again. That was the only "good luck" I had as a result of that expensive nightmare.

  • How can one accept that the only way to sync with OSX 10.9 is through I cloud?

    How can one accept that the only way to sync with OSX 10.9 is through I cloud?
    One is now obliged to send private information to an external server...

    Thank you for the link but what a waist of time.
    Who is the idiot that decided to drop manual syncing of contacts and calendars?
    I am on the point of dropping all APPLE machines!
    I am looking to sync without having to worry about security issues, keeping my files and passwords locally on my machines, and not an external server such as a cloud drive.
    Do you know if Outlook syncs also over an external server?
    Do you know of this solution? http://www.codetwo.com/public-folders/share-windows-files-securely/

  • How do you do anchors - the three ways listed did not work.  I am using the jQuery mobile template 11.  I want to link to a spot on the same page.

    How do you do anchors - the three ways listed did not work.  I am using the jQuery mobile template 11.  I want to link to a spot on the same page.

    How do you do anchors - the three ways listed did not work.  I am using the jQuery mobile template 11.
    You have aroused my curiousity, what are three ways listed that do not work? At risk of being labeled as an ignoramus, could you also tell me where to get the other 10 templates?
    I usually give an element an ID and use that in my link as in
    <a href="#mySpot">Go to my spot</a>
    <div id="mySpot">
    </div>

  • Using the new iPad, what's the best way to watch video files (away from home) which are stored on a NAS (WD My Book Live)? Any help would be appreciated!

    Using the new iPad, what’s the best way to watch video files (away from home) which are stored on a NAS (WD My Book Live)?  Any help would be appreciated!

    Before you go, move the files to I tunes and sync them down.  There is no viable way to stream from your nas drive to the pad.

  • I signed on for the 9.99 month Photoshop plan right away - I feel I should be getting Lightroom also

    I signed on for the 9.99 month Photoshop plan right away - I feel I should be getting Lightroom also now that that promo is available to everyone - it's like I'm punshed for being an early adopter.

    You can. Just have Adobe transition your one-App PS membership to the Photography Program membership. Just hope youu can get into the Customers Service, I still can't (The Netherlands).

  • How to open petstore in the jbuilder8???

    i have downloaded the sourcecode petstore1.3.1 and want to open it in the jubilder8,but i can not know how to do it.
    Who can tell me?
    thanks

    Hi,
    This is probably a question for a jbuilder8 forum, but you could try asking on the interest list to see if another user could help you
    http://archives.java.sun.com/archives/j2eeblueprints-interest.html
    hope that helps,
    Sean

  • How to get pictures organised the same way on the iPad as they are on the PC?

    When syncing pictures from my PC to my iPad the same albums are shown on my iPad as on my PC, but the pictures seems to be organised in random order within the albums, i.e. they are not organised the same way as on my PC. I've named all pictures on my PC and organised them based on name. Does anyone know how I can get iTunes/the iPad to sync the pictures in the same order?
    Best regards,
    Cecilie

    Are you syncing the photos by selecting folders or by selecting a photo app that you have on your computer ? If you are syncing folders then they will be sorted by their 'date modified' fields (I assume that still applies on iOS 8), not by their filenames - so you will need to amend their 'modified' fields to be in the order that you want them to show in.
    Or there are third-party photo management apps such as Photo Manager Pro (help pages) - you can copy photos to/from that app and your computer, and you can change the sort order of albums within the app.

  • How to open and validate the tif images via java?

    Is it possible to open and validating the photoshop images via java. Kindly advise me.
    Thanks for looking into this.
    Maria Prabudass

    I have recently looked at athe code for Image Processor.
    To avoid bailing on errors it uses two techniques.
    1) It turns off all PS error reporting in addition to just turning off dialogs with:     app.displayDialogs = DialogModes.NO;  (it restores the original settings when exiting)
    2) It uses the Javascript construct  Try.....Catch around the basic body of the code so "any" error will not abort the script but just jump to the "Catch" code.
    Hope that is useful

  • How to open iPhoto in the new update ??

    Why can i no longer open iPhoto after the Yosemite update ?

    At a guess: because you didn't also update iPhoto from the App Store. But it's only a guess as you give us no information to work with.

  • How to migrate What is the best way to connectold iMac to new iMac

    What is the best way to connect a 2006 iMac to a 2013 iMac? ( Lion to Mountain Lion )
    I have a TM on the older Mac. I understand using set-up is best. I cannot afford to lose
    Any data.
    Thanks.
    OGT

    By Firewire. However, you will need a Thunderbolt to Firewire adaptor from Apple to use on your new iMac.
    See Target Disk Mode.

  • How to Open PDF in the browser...JSF

    String strUrl = http://..../xxxxxe43cb072378947fe8c1b7bcc7201691a.pdf
    FacesContext faces = FacesContext.getCurrentInstance();
    ExternalContext context = faces.getExternalContext();
    HttpServletResponse response = (HttpServletResponse)context.getResponse();
    response.sendRedirect(strURl);          Hello,
    I have to open PDF in the browser, I am trying to redirect using the above code, but it is throwing exception as below. Could some one help me in this issue?
    Thanks In advance
    Error Message:
    java.lang.IllegalStateException: Cannot forward after response has been committed
    Error details:
    java.lang.IllegalStateException: Cannot forward after response has been committed
         at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:313)
         at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
         at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
         at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)
         at com.esri.adf.web.faces.application.ADFViewHandler.renderView(Unknown Source)
         at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
         at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at com.esri.adf.web.util.ADFSessionTimeoutFilter.doFilter(Unknown Source)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
         at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)

    You cannot send two responses per request. The solution is to let the client create two requests. Common approach is to add an onclick to the commandbutton/commandlink which opens the PDF in a new browser window and let the actual command action invoke a redirect on the current browser window.
    E.g.<h:commandLink value="Download PDF" action="#{myBean.action}" onclick="window.open('http://..../xxxxxe43cb072378947fe8c1b7bcc7201691a.pdf');" />where the #{myBean.action} invokes a redirect and the http://..../xxxxxe43cb072378947fe8c1b7bcc7201691a.pdf opens the PDF in the new window.
    Edit
    I've read your question/problem once more and now I am a bit confused. All you want to do is to open the PDF file in a new window and you don't need to do something in the backing bean? Just use a link with target="_blank".
    <h:outputLink value="http://..../xxxxxe43cb072378947fe8c1b7bcc7201691a.pdf" target="_blank">Download PDF</h:outputLink>No need for a redirect here.
    Edited by: BalusC on Nov 21, 2007 7:21 AM

  • HTML presentation how to open url on the same page

    I have a presentation in keynote that I exported in HTML; it works no problem.
    What I want to do is to open a url embedded in the presentation on the same browser window, and not in a new tab so I can go back to the presentation with the browser point.
    Help please!!!

    I was wondering if there's an edit tom insert the "_self" command for links
    place a shape on the slide to act as a button
    right click the shape and select > add link
    from the add link to  dropdown menu:  select web page
    type in the URL
    click open to test the link

  • I have a iPhone 4S with a cracked screen and I believe it needs a SIM card. My question is how much would it be the cheapest way to repair it completely?

    I have a iPhone 4S with a cracked screen and I believe it needs a SIM card. My question is what would be the cheapest way to repair it completely?

    I would replace it out of warantee for the 200. but if you really need to save a few bucks
    iphone repair store (craked glass) - $150
    new sim card (if charged for one) - $20
    but getting another one for 200 (through insurance) will give you a year warantee
    no insurance, no $200 option

Maybe you are looking for

  • BP Relationship - Partner Function Assignment not maintained

    During the initial load for CUSTOMER_REL the Partner Function Assignment is not maintained for the Relationship "Usage". We want to default this information based on the Sales Area data of the Sold to party and Partner Function maintain in the ECC KN

  • GS60 digital audio - how is this used?

    I have a GS60 and I would like to use the digital audio output to connect to a receiver.  This laptop has 2 audio jacks: - Microphone engraving, 3.5mm jack with mini toslink capability - Headphone engraving, 3.5mm jack, electrical only I found some b

  • Bounded WildCard

    hi, What is the exact use of <?> of this wildCard Set<?> is it equal to Set<Object> Can you also explain me, why this code is not compilling. I couldn't figure it out. import java.util.ArrayList; public class Generic1{ public static void main(String[

  • POR in SRM 7 PPS Scenario

    Hi, We are upgrading to SRM 7.0 Enh 1 with PPS from SRM 5.0. We were using the Purchase Order Response(POR) functionality in SRM 5.0. We got a confirmation from SAP that the POR functionality is not supported in the PPS scenario. I don't know whats t

  • Call Library Function Node produces error in Windows 7

    Hi,       I've created a simple program using LabVIEW 8.5 that uses calls in winscard.dll to read and write to a Smart Card.  I use Call Library Function Node to call functions in C:\Windows\System32\winscard.dll.  This program works without a proble