How Can i Get the reference of currently opened System form

Hi Experts,
I have a scenario in which i need the reference of currently opened SAP form The code is like
                                            SAPbobsCOM.ProductionOrders op = null;
                                            op = (SAPbobsCOM.ProductionOrders)SBO_Company.GetBusinessObject(BoObjectTypes.oProductionOrders);
now i want some logic like
op=currently opened production order in sap
so that i can edit the fields of that order
Thanks Amit

Hi Amit
You can access the currently opened form using this
for getting the active form
Dim oForm As SAPbouiCOM.Form= Sbo_Applicaion.Forms.ActiveForm
for getting the form using form type and count
Dim oForm As SAPbouiCOM.Form= Sbo_Applicaionl.Forms.GetFormByTypeAndCount("133", 0)
Hope this helps
Regards
Arun

Similar Messages

  • How can I get the information of current BW system id?

    How can I get the information of current BW system id '0TCTSYSID' or 'LOGSYS'?
    thank your attention!

    Transaction SCC4 will give you the current logical system you are connected to (double click on the current client).
    Regards,
    Fred

  • How can we get the reference of XML element on frame as soon as frame is created in Document?

    Hi,
    When ever we copy any text/table cells from any frame, and paste it directly on page, A new Frame is created and the pasted text is placed inside that frame.
    Now to capture this frame creation, We have two possible solutions:
    1) Attach Observer on Document 'kDocBoss' on IID_IHIERARCHY_DOCUMENT and it will notify on frame creation in update function.
    2) Notification event on new story creation.
    Now, I need to perform some changes in the newly created table, for example:
    a)  Need to delete XML tags from newly created frame
    b)  Need to perform action on table cells if any in the created frame.
    But the problem is, when the event comes, I can access basic properties of frame like it's name, type etc, but it does not give me the
    XML element on frame or tables in frame until the event is com pleat.
    I know it's quite a specif requirement, but I guess many of you might have faced these kind of challenges, while processing the event.
    Does any one has any idea how I can get the reference of XML element on frame as soon as it is created?

    Hi Kapoor,
    please give also others a chance, and excuse that I get up late on vacation ;-)
    Anyway, I'd keep the story creation responder to recognize the copy, then combine it with an observer on the backing xml story to catch the associated XML element which is created there. Something like below:
    UIDRef xmlStoryRef = Utils<IXMLUtils>()->GetBackingStore(doc);
    InterfacePtr<ISubject> subject ( xmlStoryRef,IID_ISUBJECT );
    subject->AttachObserver(observer,IID_IIDXMLELEMENT,observer->GetAttachIID());

  • How can I get the username and password from Oracle Forms to PJC !

    Dear Sir,
    I have username,password and push button fields in oracle forms. When user clicks the push button, I need to get username and password field contents to my Pluggable Java Program to authenticate the user trying to login. How can I get those text field contents to my java program..? Looking forward from you soon sir.
    Thanks in Advance,
    S Ramkumar

    I tried that trigger but nothing reflects. I write that method in WHEN_BUTTON_PRESSED trigger.
    In the form module I written,
    Set_Custom_Property('BL.USERNAME',1,'NAME','');
    Set_Custom_Property('BL.PASSWORD',1,'PASS','');
    Implementation class of the push button I gave my java class file name.
    In Java Code I tried register the form fields like,
    public static final ID userName = ID.registerProperty("NAME");
    public static final ID passWord = ID.registerProperty("PASS");
    In Java Code I tried get the contents from registered properties,
    public boolean setProperty(ID property, Object value) {
    if(property == userName) {
    System.out.println("Just I wish to see the name entered" + value.toString());
    if(property == passWord) {
    System.out.println("Just I wish to see the pass entered" + value.toString());
    But even System.out.println() is working.
    What's wrong with this code sir ???
    Can you tell me How to register and get those field values in Java ?

  • How can i get the reference to Controls from VI-reference

    Hello,
    i have a VI with ~5 controls on it.
    And with the Object "Current VIs path" and "Open VI reference" i can create a reference to the current VI.
    How can i create now a reference to the controls? (Starting with VI-reference?
    Of course i know how to create directly a reference from a control.
    My idea wasm that there areperhaps properties like:
    - Number of controls
    - Name of control
    - Type of control (string, bool. number...)
    Is this somewhere there and i just dont find it?
    Thanks for your help

    Once you have the VI Refnum, it's a two-step process. Wire the VI Refnum into a property node and get a reference to the Front Panel. Output the Front Panel reference into another property node and select the property Controls[ ], which outputs an array of references for all the controls on the front panel.
    Message Edited by Jarrod S. on 04-20-2007 11:06 AM
    Jarrod S.
    National Instruments
    Attachments:
    get_ref.PNG ‏5 KB

  • How can I get the Thursday of current week as a date?

    Is it possible to get Thursday of the current week as a date, using a select statement?
    For example, no matter what day of the week it is when I run the query, I'll get the Thursday of the current week in date form.
    It should be really simple, but I'm still scratching my head on this. Thanks!

    SELECT DATEADD(wk, DATEDIFF(wk,0,GETDATE()), 3) ThursdayOfCurrentWeek
    Hope this helps
    Thanks,
    Nihar
    SELECT DATEADD(wk, DATEDIFF(wk,0,GETDATE()), 3) ThursdayOfCurrentWeek

  • How can I get the iTunes Store to open on my PC running Windows 7?

    I have upgraded iTunes software for my iPod Touch and my PC.  iTunes store will not open on my PC.  Is it supposed to open to purchase items or do I have to use the iPod Touch for all of this.

    A message appears stating that iTunes has stopped working.  This happens everytime.  I have uninstalled iTunes and reinstalled it and still the same thing happens.  Is the problem in windows or the new iTunes that came out in October.  The computer has worked in the past, but I not had a need to go to the iTunes Store for several weeks and now I can't get to it from my PC.  It works fine from my iPod Touch.  This is my only Apple Device and it may be my only one to ever purchase if this is an example of the Apple service.
    I apologize on the lateness of this response, but I am not real adept at using sites such as this.  Just now figured out how to respond to a reply without going around the world.

  • I bought my g5 at a pawn shop. How can I get the proper disks for my system?

    All I get now is the apple icon when starting my computer why is that?

    All I get now is the apple icon when starting my computer why is that?
    Means the file system has become corrupted.  It could be because of a bad hd.  Hd's average life is five years.
    Getting a leopard disk is close enough. Has all g5 drivers.  you will miss bonus software that came with machine   ... could have been iLife & some Games, etc.   Not a biggie.
      Shutdown your machine.  Hold down the shift key.  Poweron.  Wait awhile Wait awhile while you harddrive
    is being checked.
        http://support.apple.com/kb/ht1455
    You need to get into single use mode.
    This page will tell you how to get into single user mode.
    http://support.apple.com/kb/HT1492
    Basically, you hold down the command-s key then  powering on your machine. The command key has a little apple symbol on the lower left. It is between the alt/option key and the space bar. On a PC keyboard, it will be the windows key, I think.  The boot up will take longer than normal.   The filesystem will be checked and repaired.
    # reboot  your mac
    shutdown -r now

  • How can I get the floating toolbar to open on a Mac OS X Lion?

    Floating Toolbar has dissappeared. Any ideas how to get it back?

    Hi
    I believe the panel section is hidden.
    Please try to enable that in Muse main menu , Windows >Show Panel
    Thanks,
    Sanjit

  • How can i get the current number of word in paragraph?

    I have cursor set on some word in Para. And i'd like to make italic all words before it. How can i get the number of current word in collection Words in mInd.Selection.Item(1)?

    Hi Dmitry1776,
    Try something like this:
    Set myInsertionPoint = myInDesign.Selection.Item(1)
    Set myStory = myInsertionPoint.ParentStory
    Set myStartCharacter = myStory.Characters.Item(myInsertionPoint.Paragraphs.Item(1).Index)
    Set myCharacter = myStory.Characters.Item(myInsertionPoint.Index)
    Set myEndCharacter = myStory.Characters.Item(myCharacter.Words.Item(1).Index - 1)
    Set myText = myInsertionPoint.ParentStory.Texts.ItemByRange(myStartCharacter, myEndCharacter).Item(1)
    ...at this point, myText is a range of text from the start of the paragraph to just before the text containing the insertion point.
    Thanks,
    Ole

  • How can I get a reference to the Local interface of a EJB 3 session?

    Hi,
    How can I get a reference to the Local interface of a EJB 3 session?
    My session implements both the local and remote interfaces, so in my client, when I look up the remote interface using the following code, I did get a reference
              processor = (IItemProcessorRemote)initialContext.lookup(IItemProcessorRemote.class.getName());but if I also look up the local interface in th eclient using this:
    processorLocal =(IItemProcessor)initialContext.lookup(IItemProcessor.class.getName());I got errors like the following, do you know why? Thanks a lot!
    Exception in thread "main" javax.naming.NameNotFoundException: sessions.IItemProcessor not found
         at com.sun.enterprise.naming.TransientContext.doLookup(TransientContext.java:203)
         at com.sun.enterprise.naming.TransientContext.lookup(TransientContext.java:175)
         at com.sun.enterprise.naming.SerialContextProviderImpl.lookup(SerialContextProviderImpl.java:61)
         at com.sun.enterprise.naming.RemoteSerialContextProviderImpl.lookup(RemoteSerialContextProviderImpl.java:116)
         at sun.reflect.GeneratedMethodAccessor114.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie._invoke(ReflectiveTie.java:121)
         at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatchToServant(CorbaServerRequestDispatcherImpl.java:650)
         at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:193)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1705)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:1565)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleInput(CorbaMessageMediatorImpl.java:947)
         at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:178)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:717)
         at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.dispatch(SocketOrChannelConnectionImpl.java:473)
         at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.doWork(SocketOrChannelConnectionImpl.java:1270)
         at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:479)

    BTW, findItemByTitle(String title) is a business method in my ItemProcessor session bean.
    public String findItemByTitle(String title) {
              AuctionItem item;
              String result = null;
              try {
                   Query query = entityManager
                             .createNativeQuery("SELECT i from AuctionItem i WHERE i.title LIKE : aTitle");
                   query.setParameter("aTitle", title);
                   item = (AuctionItem) query.getSingleResult();
                   result = item.toString();
              } catch (EntityNotFoundException notFound) {
              } catch (NonUniqueResultException nonUnique) {
              return result;
         }

  • How can I get a reference to all controls on a front panel of one type )for example of the type Text Ring?

    I'd like to set the strings[] property of all the Text Ring controls on a front panel at once without creating a property node for every text ring. How can i do that?

    > How can I get a reference to all controls on a front panel of one type
    > )for example of the type Text Ring?
    >
    > I'd like to set the strings[] property of all the Text Ring controls
    > on a front panel at once without creating a property node for every
    > text ring. How can i do that?
    This is likely more complicated than making property nodes for each
    ring, but you can do it. Make a subVI that takes in a panel reference,
    reads the array of control references, loops through them looking for
    rings, and modifying the Strings[] property on each ring.
    The part of this that will probably be the least obvious, when you
    have an array of control references there are two ways to find out
    if an element is a ring. You can read the classID and compare it
    to the cla
    ssID of a true ring control. An alternative is to cast
    the control reference to a ring control using a Cast to more specific
    node and wire the error out to a case structure. The error case is
    where the objects that aren't rings will go. The success case case
    where you will have a valid ring refnum that you can use to modify
    the strings.
    Greg McKaskle

  • How can I get the current user an  resource context  in a portal JSPDynPag

    How can I get the current user (com.sapportals.portal.security.usermanagement.IUser?)an the resource context  in a portal component (JSPDynPage)?
    Thanks.

    Hi Jon,
    Here is the code to get the current user and resource context in your JSPDynPage:
    IPortalComponentRequest  currentRequest  = (IPortalComponentRequest)pageContext.getAttribute(javax.servlet.jsp.PageContext.REQUEST);
    com.sapportals.portal.security.usermanagement.IUser contextUser = (com.sapportals.portal.security.usermanagement.IUser) currentRequest.getUser().getUser();
    ResourceContext resourceContext = new ResourceContext(contextUser);
    Greetings,
    Praveen Gudapati
    p.s. points are always welcome for helpful answers

  • How can I get the DPI of the current workstation?

    Hi can anyone help me?
    I want to know the dpi witch is set on a Windows system.
    How can i get it? Because i will reformat and fit the dpi of displaying images to the dpi of a current window system, e.g image= 200x200dpi and monitor=84dpi so the dpi of the images should be set to 84.
    But How can i get the current dpi of the Workstation?
    please help,
    florian

    yes but it sucks because windows-workstations
    manipulates the dpi to a standard value of 96 dpi...
    its equal if there is a 15" or a 17" monitor ...
    thanks floI agree, getScreenResolution() just doesn't work. Try changing your screen resolution setting (say from 1024x768 to 800x600) and this method will continue to return the same value!
    Can one adjust the scale so that you can draw a 1 inch square, for instance? The default affine transform property of the graphics object passed to paint methods is supposed to have 72 units = 1 inch, but that's not true. Again, adjust your screen settings and the same 72x72 square will come out in very different sizes.
    Is there any way to correct this, short of going to native code to get the screen resolution? I know that the screen display may be a bit miscallibrated, but anything would be better that the way it is now!

  • HT5312 I forgot the answers to my security questions and the e-mail where apple is sending the answers is no longer accessible, how can I get the answers to be sent to one of my current mails? Thank you

    I forgot the answers to my security questions and the e-mail where the replies are being answered is no longer valid or active, how can I get the answers to be sent to my current active e-mail? Thank you

    You need to contact Apple, either through the link in that article or by phoning them and asking for the Account Security team.
    (80384)

Maybe you are looking for

  • Cant see the buy button in itunes when making a ringtone???

    When I am in iTunes, making a ringtone, the bottom right portion of my iTunes screen cuts off at the button that says "Ca" - I cant see or get to the right of that button (which I assume says cancel) and I am unable to create ringtones for my iPhone.

  • IDVD Freezes when creating new project!?

    Hi all, When I open iDVD, it give me the main screen, I click Create New Project. The window comes up, but it has trouble opening the stuff inside the window, and does the dreaded rainbow ball.. Never comes out of it. I have to force quit it to get o

  • Backing up Library/Play Count/Ratings in 6.0.4.2

    I've looked through the forums trying to find out which file I should be backing up, and I found a thread talking about the iTunes Music Library.itl and .xml files. Trouble is, with iTunes 6.0.4, these files don't seem to exist. Which file in the 6.0

  • SAP MII  certification

    Are there any certifications available for SAP MII or any plans for the same in the near future?

  • Learning Portal -Confirm Participation

    Hi Folks, I have set up a e-leaning course with follow up control option as below Learning portal A System             B System             E When ever learner click the button - Confirm participation before starting the course (progress throgh cours