Open new class or function builder window per program

Hello,
in my program I've got a string variable <b>a</b> that either holds the name of a class or of a function module. Besides there is a variable <b>b</b> that tells me whether <b>a</b> is the name of a class or a function module.
Now I would like to open a new sapgui window that either shows the class named by <b>a</b> in the class builder or the function module namend by <b>a</b> in the function builder depending on the value of <b>b</b>.
I experimented with sap's cl_wb_startup and cl_wb_request but calling the start method of cl_wb_startup gives an error stating that I've got no permission to access transaction wb_new_window.
Question is now if there is another way to open the desired sapgui window or if my experiments went into the right direction but I need to get the required transaction permission.
Thanks in advance and best ergards,
Patrick Baer

Definitely not the best way, but a solution none the less.
report zrich_0003 .
data:   bdcdata like bdcdata    occurs 0 with header line.
data:   messtab like bdcmsgcoll occurs 0 with header line.
parameters: p_fmname(50) type c,
            p_clname(50) type c.
start-of-selection.
  perform call_transaction.
*      Form  CALL_TRANSACTION.
form call_transaction..
  data: session_name(30) type c.
  data: tcode type sy-tcode.
  clear bdcdata. refresh bdcdata.
  clear messtab. refresh messtab.
  clear: session_name.
  concatenate sy-uname sy-datum sy-uzeit into session_name.
  if p_fmname <> space.
    tcode = 'SE37'.
    perform bdc_dynpro      using 'SAPMS38L' '1009'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RS38L-NAME'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=SHOW'.
    perform bdc_field       using 'RS38L-NAME'
                            p_fmname.
  elseif p_clname <> space.
    tcode = 'SE24'.
    perform bdc_dynpro      using 'SAPLSEOD' '1000'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'SEOCLASS-CLSNAME'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=CIDI'.
    perform bdc_field       using 'SEOCLASS-CLSNAME'
                            p_clname.
  endif.
* Call the transaction in another session
  call function 'ABAP4_CALL_TRANSACTION'
      starting new task session_name
          destination 'NONE'
               exporting
                 tcode                         = tcode
                 mode_val                      = 'E'
                 update_val                    = 'S'
               tables
                 using_tab                     = bdcdata
                 mess_tab                      = messtab
               exceptions
                 call_transaction_denied       = 1
                 tcode_invalid                 = 2
                 others                        = 3.
endform.
*        Start new screen                                              *
form bdc_dynpro using program dynpro.
  clear bdcdata.
  bdcdata-program  = program.
  bdcdata-dynpro   = dynpro.
  bdcdata-dynbegin = 'X'.
  append bdcdata.
endform.
*        Insert field                                                  *
form bdc_field using fnam fval.
  clear bdcdata.
  bdcdata-fnam = fnam.
  bdcdata-fval = fval.
  append bdcdata.
endform.
Regards,
Rich Heilman

Similar Messages

  • Use of "Open FPGA VI Reference" function --- Build Specification vs VI vs Bitfile

    When using the "Open FPGA VI Reference" function in a LV2012 cRIO application, there are 3 options: Build Specification, VI, or Bitfile. What would be the reasons for selecting one over the others? Does it affect the resulting startup.rtexe when the cRIO application is built? I searched through the help and in these forums, but I don't see criteria for selecting one over the others; maybe I missed it.

    Hello Chris,
    Apologies in advance for a long reply.  
    The reference method won't change the functionality of your rtexe.exe.  They all end up dropping a bitstream, based on a bitfile, onto the cRIO's FPGA.
    To a degree, the method used to reference the FPGA code is a matter of taste, but there are situations where one method is better suited than the others.
    Reference by VI:
    Setting the configuration options to open reference by VI is helpful during development when you are making changes to an FPGA VI often and building/testing using the same spec.  When this option is used, a bitfile is selected based on the default build specification for the project.  A project may have only one default build specification.  You can make any build the default by checking the option under the Source Files category in the build properties.  The default build is indicated in the project explorer by the green box around the builds icon.  
    Reference by Bitfile:
    This option references a bitfile directly.  Through the configuration window, you can select one specific bitfile to open a reference to (this is not dynamic and does not change unless you physically go make a change to that path).  If you're using this method, it helps to give your bitfiles more meaningful names than the ones that are automatically generated by LabVIEW.  When you run subsequent compilations off of the same build specification and do not change the bitfile nname or path in the build configuration, the old bitfile is overwritten and replaced with the new one.  When you are using this option, it is critical that you keep up with which bitfile is the one you want to be using.  There is an option now that will help alleviate any problems referencing by bitfile through the Open FPGA VI Reference function.  There is a new VI called Open Dynamic Bitfile Reference.  It is typically used when you want to chose a specific bitfile to load depending on something in your host code (a configuration option etc) - but it allows you to dynamically reference a bitfile on the block diagram by path.
    Referency by Build Specification:
    This option is good for when you want to always use a bitfile that is associated with/compiled with the same build configuration.  Say you have two options for top level FPGA VIs in your project (each with its own build spec).  Both of these VIs have the same interface (read/write controls, DMA) but they run different algorithms or something.  This is nice because you can easily switch your host application between them by picking the build spec associated with the FPGA VI you want to use.  In this type of sutation, referencing by VI is no good because you can only have on default build spec.
    cheers.
    Matthew H.
    Applications Engineer
    National Instruments

  • Open new document in the same window as before..how to?

    Dear all,
    I need to open a image document in a new browser window each time the user clicks on a particular button. The built-in I'm using is web.show_document('URL', '_blank'). But this opens a new browser window each time the button is clicked. The client wants to have open it in the first time in the day (in a new browser window) and later on open the new image on the same browser window. Do not want to open a new browser. I have tried the '_top' and '_parent' but they replace my application.
    Is there any way to open the image in the same open window? Please advice.

    It is possible to specifiy a named window instead of _blank.
    So you could use the following instead:
    web.show_document('html/hello.htm','my_window');
    where my_window can be anything you want to call that browser window.
    However, I have discovered that if you put this in a button trigger, the second time you press the button (if the window is still open) it will not take focus - ie. it remains in the background.
    You can get around this by closing the window if it is already open:
    web.show_document('html/close.htm','my_window');
    web.show_document('html/hello.htm','my_window');
    The close.htm needs to contain some javascript to close the window:
    <html>
    <body onload="closeit()">
    <script>
    function closeit()
    window.opener = top;
    window.close();
    </script>
    </body>
    </html>
    Apparently XP SP2 is a little stricter with javascript and may not allow this. Also, not sure if this works in all browsers, I only tried IE6.

  • Workbench can't open/new or design process in Windows 7 x64

    I have question after installed WB 10 in Windows 7 x64 and can't open/new process in new/get application. it showed blank screen that process.
    and i checked log in D:\Users\Songvit\Workbench 10\.metadata\.log
    !SESSION 2011-11-22 10:15:59.625 -----------------------------------------------
    eclipse.buildId=unknown
    java.version=1.6.0_26
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
    Framework arguments:  #Product Runtime Configuration File
    Command-line arguments:  -os win32 -ws win32 -arch x86 #Product Runtime Configuration File
    It loaded with JRE x86
    i install JDK 1.6 update 29 x64 (jdk-6u29-windows-x64.exe from ORACLE) and already set environment path of WB_JRE_Home to C:\Program Files\Java\jre6
    but in my ADEP server has installed in Windows 2003 Server (x86) and install WB too. It worked.

    I am having this issue also on my Windows 7 64 bit machine. When I try to open Workbench it takes forever, slips into a non-responsive state, and then when it finally does open I can't actually see anything in the design palette. On my old XP machine ADEP Workbench opened just fine. And on the same Windows 7 machine ES2 Workbench opens just fine.
    Any ideas?
    I am pasting in the Workbench log message.
    !SESSION 2011-12-22 13:29:12.136 -----------------------------------------------
    eclipse.buildId=unknown
    java.version=1.6.0_26
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
    Framework arguments:  #Product Runtime Configuration File
    Command-line arguments:  -os win32 -ws win32 -arch x86 #Product Runtime Configuration File
    !ENTRY org.eclipse.osgi 2 1 2011-12-22 13:29:13.586
    !MESSAGE NLS missing message: Product_ReleaseVersion in: com.adobe.livecycle.workbench.core.messages.messages
    !ENTRY com.adobe.lcide.rcp 1 0 2011-12-22 13:29:16.766
    !MESSAGE Workbench started at: Thu Dec 22 13:29:16 EST 2011
    !ENTRY com.adobe.ide.singlesignon 1 0 2011-12-22 13:29:17.696
    !MESSAGE Workbench version '10.0.0.v201107102105'
    !ENTRY org.eclipse.jface 2 0 2011-12-22 13:29:19.906
    !MESSAGE Keybinding conflicts occurred.  They may interfere with normal accelerator operation.
    !SUBENTRY 1 org.eclipse.jface 2 0 2011-12-22 13:29:19.906
    !MESSAGE A conflict occurred for F2:
    Binding(F2,
    ParameterizedCommand(Command(com.adobe.livecycle.workbench.applicationview.renameCommand, Rename...,
      Category(com.adobe.livecycle.workbench.applicationview.category,%applicationview.commands .category.name,%applicationview.commands.category.desc,true),
      com.adobe.livecycle.workbench.applicationview.handlers.RenameHandler,
      ,,true),null),
    org.eclipse.ui.defaultAcceleratorConfiguration,
    org.eclipse.ui.contexts.window,,,system)
    Binding(F2,
    ParameterizedCommand(Command(org.eclipse.ui.edit.rename,Rename,
      Rename the selected item,
      Category(org.eclipse.ui.category.file,File,null,true),
      ,,true),null),
    org.eclipse.ui.defaultAcceleratorConfiguration,
    org.eclipse.ui.contexts.window,,,system)
    !ENTRY com.adobe.ape.core 2 1 2011-12-22 13:29:22.097
    !MESSAGE Still waiting for DestinationService after 2 seconds

  • Opening new tabs makes the browser window wider

    when opening a new tab in safari
    it makes the browser window bigger (at the bottom)
    but not only at the bottom actually
    after a few close-open's it also starts growing at the top
    and for me it's unacceptable cause there are folders that i need fulltime access to (at the top)
    is there a way (a script) to prevent safari "grow" and make the browser window bigger in a while ?
    i don't really know why is it happening because if you press cmd+t it opens a new tab and the browser window kinda slides bigger at the bottom but then if you press cmd+w it does the opposite and the browser window stays the same size after those actions
    i can't follow but after some time it starts to be bigger not only at the bottom
    it grows til the dock and then starts growing at the top
    is there a way to prevent that ?
    i mean take opera for example. it always stays the same size and new opened tabs take the "inside space" if you know what i mean. the browser window doesn't get bigger. there is space allocated especially for tabs
    i like safari but it is very important for me that it stays the same size all the time
    i have all windows and folders situated exactly where i want them and if something moves and covers other items, it gets uncomfortable
    thank you

    nimionsergei wrote:
    (i have 'secrets' app installed and it makes pop up windows open in the same browser window, so it might be becasue of that)
    Yes, it sounds like this is the cause.
    Some pop-up window code forces the new window to be a certain size. Since it's intended to open in a new window, that normally wouldn't cause problems. But you're forcing the pop-up to open as a new tab in the current window, which causes the current window to be resized to that new page's defined size.

  • Compressor not opening / new version not functioning

    Hi folks- This is a stumper for any of you non-Intel chip users.
    Short version: A new version of Compressor was installed on my G4 recently , which doesn't function properly. I tried uninstalling it, and reinstalling an older version, but the older version doesn't open.
    Long version: I'm a professional videographer, and use FCP (Studio 1, 5.1) on a regular basis, frequently using DVD Studio Pro (4) for authoring DVDs, thus using Compressor (my last version was 2.3) as an intermediary.
    For an unrelated project, I recently purchased Logic (8.0.2), which during installation also upgraded a few other Apple softwares in the process, including an upgrade to Compressor 3.0.3.
    Unbeknownst to me, the Compressor 3.0.3 doesn't work on my machine properly, I'm guessing because it's an older machine. I opened up Compressor today for some routine work, to discover a warning that said:"The installed graphics card does not support the OpenGL features recommended by Compressor."
    This warning still allowed me to open the program, but when I loaded up several files for compression, it gave me a warning, saying "Each target assigned to a job must have a setting and destination" EVEN THOUGH every item did indeed have both a destination and two settings. Hmmm...
    So, I figured that since Compressor 3.0.3 wouldn't work correctly, I would uninstall it, and reinstall my older version off the FCP Studio disc. But when I did this, version 2.1 would NOT open at all on the machine. I could click the application all day long, but it won't open. Hmmm. I tried upgrading 2.1 to 2.3 through Apple's Software update, but the 2.3 upgraded to the 3.0 again. Arghh!
    I'm either left with an un-openable 2.1 or a non-functioning 3.0. Any suggestions, recommendations?
    -Chris

    Hi Alberto-
    Thanks for the reply, and the help. I was indeed dragging my settings onto the job itself (rather than the empty window), so I knew that wasn't the problem per se. But I'm so glad that you had within your previous post the URL to the Compressor Tutorial. Because at the very bottom of the tutorial page, I found exactly the problem I was having.
    It's some strange quirk with Compressor 3--sometimes when you drag your settings onto the job, it still leaves the first line as a destination with no setting. That's what my machine was doing. It's an odd bug they should work out--and you can see what was happening on the bottom of the tutorial page you sent me.
    Even so, I wasn't aware of this last night, so I had found an older support page about how to uninstall Compressor 3 (deleting files from the library folders & such--frameworks, receipts, et all), so I went ahead and did that, then reinstalled my Compressor 2.3 from scratch, and things worked well after that.
    For the time being, then, I'm back to Compressor 2, but now I know that when I reinstall Compressor 3, I have to look out for that problem, and I'll know how to work around that odd quirk.
    Thanks so much for your help, Alberto!!!
    -Chris

  • Open new URL page in same window

    Hi all,
    I am using LinkToUrl UI element for opening a new URL
    page.
    I did it successfully by giving the URL in reference property.
    But the link is opening in new window.It should be opened
    in same window instead of new window.
    Any one can help me........

    Hi
    Use the target property of LinktoURL .
    You can specify the window name where you want to load new URL.
    Check the following Link.
    [Link|http://help.sap.com/saphelp_erp2005/helpdata/en/25/e2f0416ab6da6fe10000000a1550b0/content.htm]
    Regards
    Naresh

  • Window.open opens new Firefox page, not a windows exploer window

    I have a javascript code within Dynamics CRM to open a windows explorer window if a field is double clicked with the folder location in that field. For example, if our local server name was COMPANYSERVER
    If the field contained \\COMPANYSERVER\Accounts and you double click it, that windows explorer window shows the Accounts folder in the COMPANYSERVER, and I can navigate to any child directories.
    If we use CRM in Internet Explorer, this works fine. However if CRM has been opened in Firefox, instead of opening a windows explorer field, it opens a new tab in Firefox, with a File or directory not found error, obviously because it is trying to find a webpage rather than an internal directory.
    I was not sure whether to log this on a Dynamics forum or Firefox forum, so I have done both, but as I say, it works perfectly with IE so I guess it's something I need to do differently for firefox, or change a setting somewhere within firefox?
    I am very new to firefox, so if you can be quite basic with your answers I would really appreciate it!

    I personally have not done this before, however there are two old sources that have both referenced the IE Tab extension.
    http://www.powerobjects.com/blog/2008/06/02/dynamics-crm-in-firefox-you-betcha/
    *Is Firefox the default browser?
    *Does it automatically run Firefox as the Administrator that is logged in?

  • Open New Instance of HTML Viewer Window

    I've read several past posts about this subject, but I'm not
    clear how to accomplish my goal. Here's what I want to do:
    Click a text link and open a topic in a new instance of the
    HTML Viewer. This new topic is not in an external .chm file. I do
    want to be able to have this feature work on the network, as well.
    I think this question is loaded based on past posts. I'm a
    novice when it comes to coding directly, so baby steps would be
    good for me.
    Thank you!
    Jane

    As you can see, there was much trial and error. Here's the
    final process that will work for RoboHelp HTML X3. Thanks to Rick
    for the original explanation and to John McCallum for helping me
    through this process.
    Creating a Secondary Window in RoboHelp HTML X3
    NOTE: We are using a defined a secondary window on the
    Project tab called $global_InterfaceWindow. The $global_ prevents
    the error message HH_GET_WIN_TYPE error.
    1. Enter the name of the text to which you want to create a
    secondary window. In this case, we will use ABC window.
    2. Select ABC window and click the Insert Hyperlink button.
    3. Enter JavaScript:RelatedTopics.Click() in the Link to
    field and click OK.
    4. Click next to the hypertext, and select Related
    Topics… from the Insert menu. The Related Topic Wizard dialog
    box opens.
    5. Click Hidden (for scripts) option button, and click Next.
    6. Select the topic to which you want to link, and click Add.
    7. Click Next. Click Next again. Click Finish.
    8. Click the Hidden rectangle , and click the TrueCode tab.
    9. Locate the following phrase in green text.
    <param name="Items" value="ABC Window\STYLE003.htm$$**$$"
    >
    Insert Name.chm::\ after ABC window;
    <param name="Items" value="ABC
    Window;Name.chm::\STYLE003.htm$$**$$" >
    NOTE: The path to your topic is not always the same path used
    in Windows Explorer. Be sure to set the path correctly, or the
    topic will not display.
    10. Complete the same process in the gray area; that is, the
    CLASSID section of the code.
    11. Locate the following phrase in green text.
    <param name="Window" value="" >
    Enter $global_InterfaceWindow between the double quotation
    marks.
    <param name="Window" value="$global_InterfaceWindow" >
    12. Copy this phrase and paste it in the gray area; that is
    the CLASSID section of the code.
    NOTE: Once you paste this phrase in the CLASSID section, you
    cannot click the WYSIWYG tab because it will remove the copied
    phrase. Click a different topic to save it in the TrueCode tab. If
    you need to access the TrueCode tab again for this topic, you MUST
    copy and past this phrase back inside the CLASSID section.

  • Open new URL in same window

    Hi all,
    I am using "linktourl"  element for open a new url page.
    This is done by reference property(opens in new window).
    My need is to open the New URL in same window instead
    of new......
    Anyone can help me plz and send the codings.....

    I think this is double posting.....please close one thread
    [link|open new URL page in same window;

  • Firefox 4 new tab opens new windows instead

    After upgrade to Firefox 4, the feature "mouserightclick-open new tab" opens a new window, instead.
    From then on, all "open new tab" operations open new tabs in the other window, the second one created.

    Thanks for the hint, cor-el , but problem persisted even with all Add-ons disabled.
    But after some 8 days and several O.S. reboots, the problem disappeared .
    No action was taken, I suppose that it was some bug that the developers corrected.
    Issue solved.

  • Firefox 4 stops opening new windows after browser window dragged to second display

    Firefox 4 stops opening new windows after browser window dragged to second display. It's weird. Behavior is fine until I drag any browser window to the attached second display, and after this point it stops opening new windows but will still open new tabs in the same window. Restart fixes it until I drag the window back to the second display.
    "Show all bookmarks" stops working too--won't open a new window.
    This is after clean reinstall with total deletion of any Firefox/Mozilla folders and the previously installed app and a restart of the computer.
    Mac OS X 10.6.7
    Firefox 4

    Pretty sure this is either:
    '''Bug 644733'''
    or
    '''Bug 609405'''
    (...and they may be reporting the same thing.)

  • Smartview Issue in Function Builder

    Hello Guys,
    We are upgrading our Smart view from 11.1.2.1.103_PSE13709867 to 11.1.2.2.310. But while testing the function builder, I found some strange behaviors.
    When I try to modify an existing formula it throws error in the function builder window. Although the existing formula fetches the correct data from HFM in both the versions.
    While editing if I replace any member selection with a cell reference, it will show the correct member there, but once you click "Ok" and again re-open function builder, you will find an extra double quotes (") in the syntax.
    Eg: Existing Formula: *"Scenario#AC"*
    Edited and Validated Formula: *"Scenario#"&BK140*
    After reopening Function Builer: *"Scenario#"&BK140*"*
    The extra double quotes at the end fails the validation.
    Did you face any issues like this? Any Workaround or it's just a annoying bug....
    Thanks in advance.
    //Sandip

    What version of MS Office do you have? Earlier versions of Office (2003 for example) is a bit buggy with System 11.

  • Yosemite: preview opens all pdf's in same window even after setting change

    After upgrading to Yosemite, Preview always opens new pdf's in prior window with sidebar including other documents. I have changed the setting "when opening new files" to "open each file in its own window" and restarted the program and the computer more than once since. No fix.
    This is extremely irritating and creates an extra step of me having to double click the new document  each time it is opened in order for it to open in its own window as the settings already dictate.
    This affects my workflow and is a real nuisance, thanks in advance for any guidance.

    It's controlled by a global setting in System Preferences -> General "Restore windows when quiting and re-opening apps.  Uncheck it.
    Steve

  • Can not open new tabs.

    I can not open new tabs in my current window. I have to open a whole new session to open additional web pages. Links work and will open in separate tabs, but I can not start a new tab. Please advise!!!!!

    That can a problem with the Ask<i></i>.com toolbar (Tools > Add-ons > Extensions)
    See:
    * [[Troubleshooting extensions and themes]]

Maybe you are looking for

  • AR Ageing Report

    Hello, I have APPS 10.7 SC I need to generate Ageing report in AR, as the parameter of Customer Outstanding amount more than or between criteria. For eg: I wanted to generate the Ageing based on Customer total outstanding amount between $10,000 and 2

  • Movie download stopped due to unknown error

    DOwnloading a movie that stopped with an error message (-50) any suggestions?

  • Raw update on Lightroom - problem with photos during import

    Hi I recently did an update provided by Adobe to help improve the "raw converter /import" or something like that, and now when I upload my photos - they change and become dark, the histogram looks awful... how do i go back to the way it was before..

  • Extended display cursors

    How do I move the cursor between screens in extended display? Mine will move to the extended screen but not move back.

  • How to handle idoc status record.

    Hi expert, We have configure custom idoc, the status of inbound custom idoc when posting by process code is 64 (Ready to posting), How we can post with status 54, have any idea ? When I am using report RBDAPP01, it is in status 51 (Error), How I can