Applet screen location for frame

Can anyone help me please? I would like to create a frame which appears in the center of the parent applet. How can I do this?
Cheers
Dave

Use the getSize() to get the dimensions of the Applet and divide the width and hieght of the Applet by 2 to get the center point.
If you want to center the frame:
frameX = (getSize().getWidth() - frame.getWidth())/2; // for x pos of frame
frameY = (getSize().getWidth() - frame.getWidth())/2; // for y pos of frame

Similar Messages

  • How to get absolute screen position for component in borderlayout?

    I am trying to get the screen location for a point in a component in a panel. The panel has a borderlayout(). The component is currently in the CENTER position of the layout. When I use the getBounds() method for this component I can get the <x,y> coordinates relative to the client area of the panel. But that does not include the frame. I
    Does anyone know how I can do this?

    There is a convertPointToScreen method in SwingUtilities:
    http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/SwingUtilities.html

  • Helix - Exact dimensions of screen+bezel and cutout locations for custom screen protector?

    Hey Helix owners,
    I want to get a screen protector for the Helix, but I don't want the anti-glare one offered by 3M.  Photodon prints custom screen protects to dimensions you give them.  I was hoping to get the dimensions of the screen+bezel and the cutout locations for camera and tablet button... I'm not able to measure these very precisely myself.  Anyone know where this information can be obtained?  
    I called 3M and they sent me a data sheet for their anti-glare protector, but it contained no info on dimensions and cutout locations.
    Dylan

    Hi,
    I'm from germany so no 'best buy' but I think I will lock around sleeve/bag for a different product with same measures. Any tip?
    The clear plastic case is not what I want. I would like to use the player without such protections. I just want a sleeve to protect the player while its in my jacket/pants.
    Btw, i have bought this version: Creative Zen (maybe european version?). I also doesn't seem to have your mentioned sleeve. I also couldn't find it on the website.
    Anyway, thank you,
    Chris

  • When I go to a website, it half-way downloads and then the screen freezes for 10-20 seconds while ads appear; this never happened till recently.

    Until recently, I loved Firefox. Lately, when I go to any website and try to download a page, the screen freezes for between 10-20 seconds while ads load. Why the screen freezes is both frustrating and annoying. I have the latest version, nothing on my computer is different, and as I said, it didn't used to do this. Any ideas what's going on?

    Create a new profile as a test to check if your current profile is causing the problems.
    See "Basic Troubleshooting: Make a new profile":
    * https://support.mozilla.com/kb/Basic+Troubleshooting#w_8-make-a-new-profile
    There may be extensions and plugins installed by default in a new profile, so check that in "Tools > Add-ons > Extensions & Plugins" in case there are still problems.
    If that new profile works then you can transfer some files from the old profile to that new profile, but be careful not to copy corrupted files.
    See:
    * http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox
    See:
    * http://kb.mozillazine.org/Firefox_crashes
    * https://support.mozilla.com/kb/Firefox+crashes
    * https://support.mozilla.com/en-US/kb/latest-firefox-issues
    If you have submitted Breakpad crash reports then post the IDs of one or more Breakpad crash reports (bp-xxxxxxxx-xxxxxxxxx-xxxx-xxxxxxxxxxxx). You can find the IDs of the submitted crash reports on the about:crashes page. You can open the about:crashes page via the location bar, like you open a website.
    See:
    * http://kb.mozillazine.org/Breakpad (Mozilla Crash Reporter)
    * https://support.mozilla.com/kb/Mozilla+Crash+Reporter
    * https://developer.mozilla.org/en/How_to_get_a_stacktrace_for_a_bug_report

  • SBS 2011 GPO for changing the default save location for Word/Excel 2013 not working

    So this is a strange one. I've got an SBS 2011 server that's the only domain controller in the org. I've created a GPO to change the default save location for Excel 2013 and Word 2013 using the Office 2013 ADMX files which were installed to the PolicyDefinitions
    folder.
    The GPO (U-Office2013 Default Save Location) only contains:
    1. User Configuration - Microsoft Excel 2013/Excel Options/Save - Default file location - Enabled - Z:\
    2. User Configuration - Microsoft Word 2013/Word Options/Advanced/File Locations - Default file location - Enabled - Z:\
    The GPO is linked at the OU that contains my users for my SBS organization.
    When I do a gpupdate /force on a windows 7 system with office2013 installed, and then run a gpresult/rsop, the policy appears to be applied successfully as it lists my GPO under the Applied GPOs list on the workstation:
    Applied GPOs
    Default Domain Policy dyndns.local AD (24), Sysvol (24)
    U-Office2013 Default Save Location domain.local/SBSusers AD (6), Sysvol (6)
    In the gpresult report, the applied settings appear under:
    Administrative Templates
    Extra Registry Settings
    software\policies\microsoft\office\15.0\excel\options\defaultpath Z:\ U-Office2013 Default Save Location
    software\policies\microsoft\office\15.0\word\options\doc-path Z:\ U-Office2013 Default Save Location
    BUT, when I go to the workstation, and check office->options-Save-default file path, the path has not been changed to what the GPO is pushing.
    The strange thing is that in my test environment running 2008R2 server and Win7 with Office 2013 and identical settings the default save location is applied and works as expected.
    Any ideas?
    I've already tried re-installing the ADMX templates and re-created the GPO's several times.
    I should also note that other GPO's on the SBS2011 server such as the folder redirection GPO work as expected on the same windows 7 system. It just appears to be an issue with the default save location in office2013 and other Office 2013 related GPOs which
    utilize the recently added ADMX template that don't seem to be working for me.
    Thanks in advance.

    Hi Justin,
    Thanks for your reply. I have tried several different user accounts (all have local admin privileges to the workstation) with the same issue. The default save path does not get applied from the GPO to any of the users i've tried. Here's the steps I took
    per your suggestion:
    1. log on as a user who has never logged onto the workstation before.
    2. run gpupdate /force (entered y for yes when prompted to log off).
    3. Log back in as the user and open Office and check the default save path. It has not been changed to match the GPO setting.
    4. Check rsop to see if the policy was applied. Rsop states the gpo was applied successfully.
    I have attached the gpsvc.log file from a the session described above. The GPO Guid in question is: {DC3C93EC-7C28-48E9-BA38-FCA1E275A207}. Its common name is: U-Word 2013 Default Save Location. It's only setting is:
    Policies\Administrative Templates\Policy definitions(admx files retrieved from central store\Microsoft Word 2013\Word Options\Advanced\File Locations\Default File Location = Enabled\Documents = F:\
    -------gpsvc.log sections containing the aforementioned GUID start---------
    GPSVC(410.1730) 09:10:51:186 ProcessGPO:  ==============================
    GPSVC(410.df0) 09:10:51:186 GetGPOInfo:  ********************************
    GPSVC(410.1730) 09:10:51:186 ProcessGPO:  Searching <cn={DC3C93EC-7C28-48E9-BA38-FCA1E275A207},cn=policies,cn=system,DC=gc,DC=local>
    GPSVC(410.1730) 09:10:51:186 ProcessGPO:  User has access to this GPO.
    GPSVC(410.1730) 09:10:51:186 ProcessGPO:  GPO passes the filter check.
    GPSVC(410.1730) 09:10:51:186 ProcessGPO:  Found functionality version of:  2
    GPSVC(410.1730) 09:10:51:186 ProcessGPO:  Found file system path of:  <\\gc.local\SysVol\gc.local\Policies\{DC3C93EC-7C28-48E9-BA38-FCA1E275A207}>
    GPSVC(410.1730) 09:10:51:186 ProcessGPO:  Found common name of:  <{DC3C93EC-7C28-48E9-BA38-FCA1E275A207}>
    GPSVC(410.1730) 09:10:51:186 ProcessGPO:  Found display name of:  <U-Word 2013 Default Save Location>
    GPSVC(410.1730) 09:10:51:191 ProcessGPO:  Found user version of:  GPC is 3, GPT is 3
    GPSVC(410.1730) 09:10:51:191 ProcessGPO:  Found flags of:  0
    GPSVC(410.1730) 09:10:51:191 ProcessGPO:  Found extensions:  [{35378EAC-683F-11D2-A89A-00C04FBBCFA2}{D02B1F73-3407-48AE-BA88-E8213C6761F1}]
    GPSVC(410.1730) 09:10:51:191 ProcessGPO:  ==============================
    GPSVC(410.1730) 09:10:51:191 ProcessLocalGPO:  Local GPO's gpt.ini is not accessible, assuming default state.
    GPSVC(410.1730) 09:10:51:191 ProcessLocalGPO:  GPO Local Group Policy doesn't contain any data since the version number is 0.  It will be skipped.
    GPSVC(410.1730) 09:10:51:191 GetGPOInfo:  Leaving with 1
    GPSVC(410.1730) 09:10:51:191 GetGPOInfo:  ********************************
    -------gpsvc.log start---------
    -------output of gpresult /r-------
    Microsoft (R) Windows (R) Operating System Group Policy Result tool v2.0
    Copyright (C) Microsoft Corp. 1981-2001
    Created On 5/30/2014 at 9:24:08 AM
    RSOP data for GC\ssanders on OPTI9020-01 : Logging Mode
    OS Configuration:            Member Workstation
    OS Version:                  6.1.7601
    Site Name:                   Default-First-Site-Name
    Roaming Profile:             N/A
    Local Profile:               C:\Users\ssanders
    Connected over a slow link?: No
    COMPUTER SETTINGS
        CN=OPTI9020-01,OU=SBSComputers,OU=Computers,OU=MyBusiness,DC=gc,DC=local
        Last time Group Policy was applied: 5/30/2014 at 9:10:47 AM
        Group Policy was applied from:      GCSBS.gc.local
        Group Policy slow link threshold:   500 kbps
        Domain Name:                        GC
        Domain Type:                        Windows 2000
        Applied Group Policy Objects
            Windows SBS CSE Policy
            Windows SBS Client - Windows Vista Policy
            Windows SBS Client Policy
            Update Services Client Computers Policy
            C-Create Syntiro Root Folders
            Default Domain Policy
        The following GPOs were not applied because they were filtered out
            Local Group Policy
                Filtering:  Not Applied (Empty)
            Windows SBS Client - Windows XP Policy
                Filtering:  Denied (WMI Filter)
                WMI Filter: Windows SBS Client - Windows XP
        The computer is a part of the following security groups
            BUILTIN\Administrators
            Everyone
            BUILTIN\Users
            NT AUTHORITY\NETWORK
            NT AUTHORITY\Authenticated Users
            This Organization
            OPTI9020-01$
            Domain Computers
            System Mandatory Level
    USER SETTINGS
        CN=Stephen Sanders,OU=SBSUsers,OU=Users,OU=MyBusiness,DC=gc,DC=local
        Last time Group Policy was applied: 5/30/2014 at 9:13:17 AM
        Group Policy was applied from:      GCSBS.gc.local
        Group Policy slow link threshold:   500 kbps
        Domain Name:                        GC
        Domain Type:                        Windows 2000
        Applied Group Policy Objects
            Windows SBS User Policy
            Windows SBS CSE Policy
            Small Business Server Folder Redirection Policy
            U-Word 2013 Default Save Location
            U-Office 2013 Disable Backstage
            U-Office Disable Start Screen
            U-Office Trust Center Settings
            U-Word Autorecover Location
            U-Word Autosave Interval
            U-Word Disable Capitalization First Word
            U-Word Set Arial Default Font
            U-Word UI Customizations
            U-Power Plan Settings
            Default Domain Policy
        The following GPOs were not applied because they were filtered out
            Local Group Policy
                Filtering:  Not Applied (Empty)
        The user is a part of the following security groups
            Domain Users
            Everyone
            BUILTIN\Administrators
            BUILTIN\Users
            NT AUTHORITY\INTERACTIVE
            CONSOLE LOGON
            NT AUTHORITY\Authenticated Users
            This Organization
            LOCAL
            Windows SBS Link Users
            Windows SBS Fax Users
            Windows SBS SharePoint_MembersGroup
            Windows SBS Folder Redirection Accounts
            Windows SBS Remote Web Workplace Users
            High Mandatory Level
    -------end gpresult output-------       
    Thanks in advance for any help. I also have a pps ticket open with Microsoft, but they're dragging their feet.

  • Material document ,quantity and stock location for a given material

    hello all,
    i have a requirement like this.
    in the selection screen i have,
    material.....
    plant....
    posting document date.....
    i need to get material document number,quantity,units and stock location for the above mentioned selection criteria...
    what tables do i need to use..
    do i need to use any BAPI or Function module..
    thanks in advance...

    Hi Vinay ,
    Look into table MKPF & MSEG for material document
    anf for quantity in MARD
    Regards
    Yogendra Bhaskar

  • IPhone 5, Is there a way to stop screen rotation for specific apps?

    The automatic screen rotation feature is useful - sometimes, and just plain annoying other times.  I prefer to read my e-mail in portrait mode, however the slightest movement or rotation while doing so will cause the screen to rotate (with the phone generally still in portrait position).  I then have to shake the phone to get it to rotate back.  This is very annoying.
    I would like to be able to lock the screen rotation for only a single app (e.g. mail) while still keeping it active for the camera, or videos.  Many of the book programs that I use, have this feature built-in, however this question is for apps that do not have this built-in.
    The built in rotation lock is all-or-nothing, and is generally a pain to use.  It adds another step to just about everything I do (If I read mail, then want to view a video, I have to go back and unlock it).
    Is there a way to lock the screen rotation for a specific app?

    I would have expected this function to be available in settings where the application specific settings are located.  (At least for the major applications like e-mail).

  • Full screen preview drops frames

    Hi all,
    A continuation of the thread I opened here (with hardware specs for information):
    http://forums.adobe.com/thread/657008?tstart=0
    Whilst I resolved the tearing issue secribed in the previous thread I still can't get smooth playback on the third full screen preview display and I'd like some basic advice as to what I could do:
    A couple of things I have tried - firstly I tried a basic sequence with a spinning graphic (in order to rule out any issues with disk/network access), and then also tried two screens rather than three (so only one graphic card was in operation), a 60p/30p project with screens set to 60Hz and a 50p/25p project with screens set to 50Hz.
    All to no avail - the full screen preview drops frames, especially with 50p content - 25p is better but every 20 seconds or so frames are dropped. Audio is always fine, regardless of the source, BTW.
    As a reminder, this is a 12 core i7 with 2 x Quadro FX3800, all unnecessary services disabled, 12Gb RAM, CS5 5.0.3, latest WHQL Nvidia drivers.
    Not sure if 5.5 improves this in any regard as I'm still waiting for my licence key.
    Video playback outside of premiere is perfect, 1080p50 plays fine full screen on any display through windows media player/VLC.
    Any suggestions please - again I wonder if a Blackmagic Intensity or similar would help?
    Has anyone else seen this behaviour? Could anybody have a go a reproducing the issue (a simple spinning or sliding jpg demonstates the issue easily and simply)
    Thanks all
    Sacha Goodwin.

    There exist no 12 core i7's. The max is hexa-core, but in your previous thread you said Xeon X5670. So what is it?
    Well spotted, my bad - it is indeed 2 x hexa-core X5670's - which of course is 12 cores in total.
    I still suspect your Editshare NAS.
    I'd say unlikely since - we've replaced it with something else, also:
    I tried a basic sequence with a spinning graphic (in order to rule out any issues with disk/network access)
    and at any rate I tried it as a local project on local disks and it made no difference.
    For graphic read plain color matte and basic SD res JPG (same results with either)
    What happens when you increase memory to 24 GB?
    No idea as I don't have access to any - strikes me as odd though to think anyone would need 24Gb or RAM just to display a rotating still smoothly.
    Premiere is showing 300Mb of RAM, total RAM in use when everything is loaded and running is 3Gb, 9Gb free sitting there twiddling it's virtual thumbs.
    BTW I should also mention that this happens even on SD projects, not just HD ones. Also watching the task manager shows virtually CPU usage, no disk and no network access during playback (as I would expect). No peaks in any graphs correllating with the dropped frames. Also enabling/disabling MPE Hardware assist makes no difference.
    Sacha.

  • Resize applet within a HTML frame

    Hi,
    I am using an applet to display a tree in a HTML frame of a web page.
    I would like to resize or refresh the applet when the HTML frame is resized. Is there a way for the applet to know when the HTML frame is resized?
    Any help will be appreciated.
    Thanks

    I tried using the componentResized() method to solve this problem but I was unsuccessful.
    Here is what I tried:
    My application consists of using a Java applet to display a tree in a HTML frame. In addition I put the tree in a scroll pane. I tried using addComponentListener(this) to get the componentResized() method to be involked. I tried adding the component listener to the scroll pane:
    JScrollPane treeView = new JScrollPane(tree);
    treeView.addComponentListener(this);
    I tried adding the component listener to the root pane:
    JRootPane root = getRootPane();
    root.addComponentListener(this);
    and I tried adding the comoponent listener to the glass pane and the content pane.
    The componentResized() method was involked when the tree was initially displayed in some of my attempts but I was never able to get the componentResized() method to be involked when I resized the html frame.
    I believe that I am having a problem determining which component to add the addComponentListener to so that the componentResized() method get invoked when I resize the html frame.

  • How to spilt the screen in to frames and load different pages in a single window??

    i want to split the screen in to frames using flex help me...

    Welcome to the forum!
    The video I want to create is look like a cubic, with my face all around the centre and looking to her ( a video of her will be in the centre) and 8 different video of mine looking to hers.
    Put the clip(s) of you on 8 different video tracks in the timeline above each other, and the clip of the girl you want in the center on a 9th video track.
    Double-click one of the clips to open it into the viewer. Click the motion tab. There, adjust the scale value so it is the right size and the center value so that it is correctly positioned. Repeat for the other 8 video tracks.
    Hope this helped,
    Sasha

  • What does "Locations for this vendor not defined" - mean and how do I eliminate it

    A local restaurant sent me an e-mail with the statement " To receive your special birthday gift click here." When I do I get white screen with the sentence - "Locations for this vendor not defined". What does this mean and how do I eliminate or continue since I now can only go back to the e-mail. Using Firefox with AT&T Yahoo & Windows XP me

    Hello.
    Does this happen on other browsers (Internet Explorer, for example) or is it specific to Firefox?

  • Screen exit for me32k for header and for items

    hi experts,
    i need a screen exit  from me32k to add subscreen in :
    1. items
    2. header
    thanks in advanced,
    dana.

    Hi,
    Just some information on screen exits:
    Screen Exit:
    How to implement screen exit for a SAP standard transaction
    Introduction
    SAP provides standard transactions to enter data into database. But a client may want to maintain some additional information in SAP other than what is provided.
    To make provisions for this, additional screens have to be provided and additional fields must be added into appropriate database table.
    To pave way for this, SAP has provided the option for screen exits. Usually, SAP provides the following:
    An append structure in the database table with the new fields.
    A subscreen area into the standard screen – where the programmer can attach his subscreen of his own program with the new fields.
    A function group under which the new subscreen has to be created with the new fields.
    Function exits to synchronize the PBO and PAI of the standard SAP program with the PBO and PAI of the subscreen – so that data can flow back and forth between the standard SAP program and the program written by the developer for the subscreen. These function modules also exist in the same function group under which the subscreen will have to be developed.
    Finally, a linkage has to be done between the subscreen area of standard SAP screen with the custom subscreen constructed by the developer.
    Typically, SAP provides an enhancement in which the developer can create an append structure, use the function exits to synchronize the PBO and PAI of the standard SAP program and the custom subscreen program, and make the necessary linking( as mentioned above in step 4. But, again, this is not a hard and fast rule. Linking in some case, is also done by configurations.) SAP also usually provides the name of the function group under which the subscreen has to be developed.
    Necessary guidance about implementing a screen exit development is usually available in the Documentation section of the enhancement ( can be availed by transaction SMOD).
    Pre-Requisites
    The developer to work on screen exit should have essential knowledge on the following:
    DDIC concepts, including the knowledge of append structure.
    Concept of SAP Enhancements and implementing them using Projects.
    Concept of function exits.
    Knowledge on Module Pool – including subscreens, Tabstrip controls etc.
    Steps
    Guidelines
    So, a developer can follow the guidelines mentioned below to implement a screen exit to a standard SAP transaction, as and when required:
    Find out the Required Enhancements
    Go to SMOD. Press F4 in the Enhancement field. In the next popup window, click pushbutton ‘SAP Applications’. A list will appear that contains information on all the enhancements, categorized under functional areas. Developer must search for the enhancements relevant to his functional area of interest – for e.g., Purchasing, Asset Accounting, etc.
    Note down the enhancements. Then, come to the initial screen of SMOD and view the documentation of each enhancement to find out which one is required for your development.
    Utilize the Enhancement in a Project
    After you have found one, do as directed in the documentation. Generally, the steps are as follows:
    Create a project using CMOD including your enhancement.
    Create the append structure with new fields.
    Go to the desired function group and create a subscreen with the new fields. Write PBO and PAI for the subscreen, if required.
    Use the function exits in the enhancement to link the PBO and PAI of the subscreen with that of the main SAP program supporting the SAP transaction.
    Maintain necessary linkage between the subscreen area of standard SAP program with the custom subscreen developed along with the custom program name. This can be done in the project (developed by CMOD including the enhancement) or outside as a part of configuration.
    Activate the project.
    Test to ensure that required functionality are met.
    Case Study 1
    Add three new custom fields for Asset master and maintain information for them
    Requirement
    Three fields in the legacy system have to be maintained in Asset master. These fields are:
    Original Asset number – 20 characters
    Location 2 – 15 Characters.
    Model no – 20 characters
    Location 2 should start with ‘L’.
    Pre-Analysis
    Finding out the Enhancement
    As described above, the enhancement is determined. It was found, that enhancement AIST0002 will serve the purpose. It contains the following components (can be viewed by transaction SMOD):
    Exit Type Description EXIT_SAPL1022_001 Function Exit Check of User-Defined Fields when Using Create and Change BAPI EXIT_SAPLAIST_002 Function Exit Transfer Data for User Subscreens in PBO. EXIT_SAPLAIST_003 Function Exit Transfer of User-Defined Fields to SAP Master Data Transactions CI_ANLU Customizing Include Include structure to add new fields
    Studying the Function Exits
    The function module level documentation for the function exits are then viewed from transaction SE37. The documentation clearly laid out for the purpose for their use:
    EXIT_SAPLAIST_002
    Function module Level Documentation
    This function module is called by asset master data maintenance at the start of the dialog. (When changing, it is called after reading of the data from the database; when creating it is called after the transfer of the default values from the asset class and reference asset.) The purpose of the function module is to enable this function group to recognize the master data. For interpreting or controlling master data fields that are important for user fields, it is possible to transfer to global variables at this point, so that they can be recognized when the user subscreens are processed.
    Import Parameters
    Understanding
    This function module is called at the PBO to pass the information retrieved from the database to pass them to the custom subscreen and its underlying program. Import parameter : I_ANLU will be populated with the values for user-defined fields which will be passed to the subscreen program. So, there must be some sort of variable assignment from I_ANLU.
    EXIT_SAPLAIST_003
    Function module Documentation: This function module is called by SAP asset master data maintenance after the screens are processed, but before saving. The purpose of the function module is to transfer fields entered on user sub-screens of SAP asset data maintenance to the database for updating. The export parameter for this function module is:
    Understanding
    This function module will be used to transfer the user entered data in the subscreen fields to the main SAP program, which will then be saved into the database.
    Studying the Documentation of the Enhancement
    The enhancement documentation (as is viewed from the initial screen of SMOD] also supports the idea. Moreover, it informs that we need to develop a subscreen under function group XAIS. This is the function group under which the two function exit modules also exist. So, if the custom subscreen refers to the global data of the function group XAIS, then those values will also be available to these function exits as well.
    Going to SE80 and viewing the function group XAIS helps us to inform that there are three DDIC tables declared for it:
    Deciding the Final course of Action
    After making all the investigations, the final course of action was determined.
    SrlNo Step Justification
    A project has to be created using transaction CMOD where the enhancement AIST0002 will be included.
    Customizing include CI_ANLU has to be created with the custom fields demanded When CI_ANLU will be developed, the custom fields will get appended to the database table ANLU. Also, these fields will be used to create screen fields in the new subscreen.
    A custom subscreen, say, 9000 will be developed under function group XAIS. The screen group for the screen will be ‘CUST’ (or any name). The three custom fields added to table ANLU (by creating CI_ANLU) will be used to create new fields in the screen.
    In the PAI of the subscreen, validation for Location to start with ‘L’ will be added. The subscreen with three new fields has to be developed so that it can be attached to a subscreen area of the asset master screens.
    In the custom include of the function exit module ‘EXIT_SAPLAIST_002’, the following code will be written:-
    ANLU = I_ANLU. I_ANLU is the import parameter of this FM. The value is assigned to the global variable ANLU, referring which the three new subscreen fields are developed. So, data retrieved from database table ANLU will be passed to this FM as I_ANLU by the standard SAP main program. The value will be taken and passed to the global variable of the function group XAIS, so that the three custom fields (referring to ANLU of XAIS) get populated.
    In the custom include of the function exit module ‘EXIT_SAPLAIST_003’, the following code will be written:-
    E_ANLU = ANLU. The changed values in the subscreen fields exist in global variable ANLU for the function group XAIS. This function exit module will pass the data back to the SAP main program as E_ANLU.
    Proper linkage/configuration has to be done so that the new subscreens get linked to the appropriate subscreen area of the Asset master screen. This has to be done – otherwise, the new custom subscreen will not be displayed in the Asset master screens.
    Development
    Creating a Project to include the enhancement
    Go to transaction CMOD and create a project.
    Enter a description for the project. Then, click on the pushbutton ‘Enhancement Assignments’ in the Application Toolbar.
    Enter the name of the enhancement and Save.
    Go to ‘Components’.
    Creating Custom Include for ANLU
    The screen shown below will appear, showing all the enhancement components under the assignment AIST0002. Double-click on the name of the Include Structure to create it.
    Create the include structure with three new fields, as required. Then, save and activate it.
    Develop the subscreen and the program
    Go to transaction SE80. For the function group XAIS, create a new subscreen 9000.
    Create it as subscreen.
    Then, go to the Layout of the screen and create three new fields from Database table ANLU.
    Drag the fields in the screen body and place them.
    Then, save and activate the screen and come back to screen flow editor.
    Create the PAI module to add validation for field “Location 2”, as required .
    Activate the whole function group and come out.
    Write code in the Function Exits to synchronize the programs
    Now, code has to be written in the function modules EXIT_SAPLAIST_002 and EXIT_SAPLAIST_003 so that data flows to and fro between the main SAP program and custom subscreen program. For that, go back to transaction CMOD and change the function exits.
    Write code in the function module EXIT_SAPLAIST_002 called once at the beginning of the transaction:
    Write code in EXIT_SAPLAIST_003 to pass the data from the subscreen to SAP main program.
    Then, activate everything – the whole project and come out.
    Complete the configuration to link the subscreen
    The development portion is complete. Now, linking of the subscreen has to be done with the subscreen area of the main program. In most of the cases, this linking can be done in the enhancement itself. But, here, requirement is a bit different. It is done by configuration using SPRO.
    Assets are created under Asset class. And for each asset class, there is a layout assigned to it. For a layout, there are multiple tab pages assigned to it. And, for each tab page, there are multiple screen groups/field groups assigned.
    Here, the requirement is to create these three custom fields in the tab page ‘General’ of asset master screen ( AS01/AS02/AS03/AS91).
    Determine the Layout
    To achieve this, first of all, we need to find out which layout is assigned to asset class 1000.For that, go to transaction AOLK( information has to be obtained from functional consultant).Select the Asset Class ‘1000’ and click on folder ‘General Assignment of Layout’.
    Here, for Asset class 1000, for all the user groups, tab layout SAP is assigned. Since layout ‘SAP’ cannot be changed, it has to be copied and manipulated to include our screen group. Later, the new layout has to be assigned over here.
    Create new tab layout
    Go to transaction AOLA. Copy the tab layout ‘SAP’ to create another layout, say, YSUB.
    System will copy all the settings and will inform you about that.
    Select your newly created layout and double-click on the folder ‘Tab page titles’.
    You want to put your custom fields in the tab page “General”. So, select this tab page entry and double-click on the folder "Position of Groups".
    Here, all the field groups currently residing in the tab-page “General” are shown. Add an entry for your newly created fields.
    Select the group box from the list. An entry will come with “U” padded with the custom subscreen prepared by you.
    Then, save and come out.
    Assign the new Layout to Asset Class
    Now, go to tcode AOLK and assign tab layout YSUB for asset class 1000.
    Save and come out.
    Test the Exit
    Everything is over. Now, go to transaction code AS01/02/03 or AS91 to deal with an asset of asset class 1000. You will see your new fields added to the screen. Add values to them…save. Then, enter into the tcodes again to see whether the values entered by you are being displayed or not.
    Original Source: ittoolbox.com
    User Exits:
    User exits (Function module exits) are exits developed by SAP. The exit is implementerd as a call to a function module. The code for the function module is written by the developer. You are not writing the code directly in the function module, but in the include that is implemented in the function module.
    The naming standard of function modules for functionmodule exits is:
    EXIT_<program name><3 digit suffix>
    The call to a functionmodule exit is implemented as:
    CALL CUSTOMER.-FUNCTION <3 digit suffix>
    To find a Exit.
    Goto Transaction -- Find The Package
    SMOD >f4>Use the Package here to Find the Exits In the Package.
    Else if you Want to search by Application Area wise ,
    There is one more tab to find the Exits in the Respective Application Area.
    Implementing the Exit-- CMOD Create ProjectsAssgn your Component .
    Now Run ur Transaction to Check if it Triggers.
    Thats it..
    Suppose you need to find out all the user exits related to a tcode.
    1. Execute the Tcode.
    2. Open the SAP program.
    3. Get the Development Class.
    4. Execute Tcode SE84.
    5. Open the Node 'Envir. -> Exit Techniques -> 'Customer Exits -> Enhancements'
    6. Enter the Development class and execute.
    Check out this thread..
    The specified item was not found.
    1. Type the transaction : system->status-> <PROG. NAME>
    2 open SE37 , type EXIT<PROG NAME> and press F4 to get the list of function exits available.
    3. Open CMOD utilities->SAP enhancements
    EDIT->All selections
    4.type the function module name obtained in step 2, in fields 'component name' in 'additional selections' block. and execute.
    5. The displayed list contains the enhancements names for the transaction You were looking for.
    6. Create a project in CMOD and the code in default include->activate.
    http://www.erpgenie.com/sap/abap/code/abap26.htm
    which gives the list of exits for a tcode
    http://help.sap.com/saphelp_nw04/helpdata/en/bf/ec079f5db911d295ae0000e82de14a/frameset.htm
    For information on Exits, check these links
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sapgenie.com/abap/code/abap26.htm
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
    http://www.easymarketplace.de/userexit.php
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sappoint.com/abap/userexit.pdfUser-Exit
    http://www.planetsap.com/userexit_main_page.htm
    User-Exits
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sap-img.com/ab038.htm
    http://www.planetsap.com/userexit_main_page.htm
    http://www.sap-basis-abap.com/sapab013.htm
    http://sap.ittoolbox.com/documents/popular-q-and-a/user-exits-for-the-transaction-code-migo-3283
    These links will help you to learn more on user exits.
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/c8/1975cc43b111d1896f0000e8322d00/frameset.htm
    http://www.planetsap.com/userexit_main_page.htm
    http://www.allsaplinks.com/user_exit.html
    www.sap-img.com/abap/what-is-user-exits.htm
    Also please check these threads for more details about user exits.
    Re: Screen exit
    user exit and customer exit
    user exit
    1. Document on UserExits in FI/CO
    http://www.ficoexpertonline.com/downloads/User%20ExitsWPedit.doc
    2. Finding User Exits...
    http://sap.ionelburlacu.ro/abap/sap2/Other_Useful_Tips.html#Finding_User_Exits
    3. List of all User Exits...
    http://www.planetsap.com/userexit_main_page.htm
    Reward if found helpfull,
    Cheers,
    Chaitanya.

  • Screen Exit for adding custom fields in Additional Data tab in ME21N

    I need a screen exit or whatever other method for adding custom fields to the additional data tab at header level.
    I also need a similar exit for adding a filed at item level.
    Thanks in advance
    Martin

    Hello,
    1st find badi or exit and then create screen ...and assign the screen group and screen no for that implementation....some steps i can give u i did with SPRO tcode....
    please check it for VA02
    SPRO u2013 SAP Reference IMG ---  Logistics General --- Basic partner u2013 customers -- Control u2013 Adaption of customers own masters data element u2013 prepare modification of customer free enhancement of customer master record
    1)Screen group                                  description
            zs                                           creating badi      --- (save)
           click on (label tab pages) u2013 new entries
           number u2013 10 , function code u2013 zs10 ,  description u2013 func ---(save) u2013(back)
    2)select (FM_CUSTOMER_ADD) u2013 copy
         Implementation name u2013 ZAS
         (desc u2013 impl for cust) u2013 (save)
        interfaceu2014(check_add_on_active) double click on it
    3)the above screen appear --  write the code in it u2013 (save) --- (activate) u2013 (back) u2013 (save)
         -- (activate) u2013 (back)
       Business adds in customer sub screens
    4)select (FM_CUSTOMER_ADD) u2013 copy
         Implementation name u2013 ZAS1
         (description -- cust) u2013 in attribute u2013 (give screen group name)
    5)go to interfaces (GET_TAXI_SCREEN)  double click on it
       (save)  --- (activate) 
    6)(SAVE)  -- 
        Goto SE38  -- CREATE PROGRAM WITH NAME (ZQW) type module pool
         Goto SE51  -- Prog : ZQW
           Screen : 200 (Create)
          Goto layout u2013 design the screen
    7)save u2013 activate
       then goto transaction : va02
    For User Exit's
    goto to tcode->status->program name->double click on that,
    then goto to-> attribute take the package name and
    Goto SMOD tcode ->Utilities->give the package name and F8
    then a list of exits will display for that tcode as well as that package.
    u can check the table MODSAP
    u can check the table MODACT
    For BADI's,
    1)goto to tcode SE24 give the CL_EXITHANDLER and display and then double click on the GET_INSTANCE
    keep Break point at this location 'call method cl_exithandler=>get_class_name_by_interface'
    then the tcode it will trigger there and we can debugg there we can find badi'for that tcode and then remove the break point.
    2)Goto to tcode->status->program name->double click on that program will display's
    then  press crtl+F then cl_exithandler
    Thank u ,
    santhosh

  • Default Plant and storage location for components in MFBF

    Hi,
    I have 2 plants 1000-procurement plant and 2000- production plant. I am using special procurement key 70( Withdrawal from alternative plant from 1000 to 2000) for components in Plant 2000. The requirements for the components are transferred from 2000 plant to 1000 plant. The 1000 plant run MRP for the dependent requirements and procure the materials and transferred to the production storage location in Plant 2000.The raw materials are purchased in plant 1000 and transferred to Plant 2000 production storage location based on the manual reservations created with movement type 301. This is fine.
    But when I do backflush in MFBF the plant and storage location for the components issue are displayed as plant 1000 which is the procurement plant  and the production storage location in plant 2000-production plant location. In the BOM the production storage location is production storage location of plant 2000. Since we use the special procurement key system defaults the plant as 1000(procurement  plant) insteadd of 2000(production plant). can we make this plant default to the production plant 2000 as default in the MFBF goods issue screen.
    thanks and regards
    Murugesan

    Hi MURUGESAN !
          Can you give me some information more in Special Procument Configure in plant 2000 like:
              -  Procurement type (maybe F)
              -  Special procurement (Maybe U)
              -  Plant (Maybe 1000).
              - Issuing plant (maybe 2000)
           We will check together.
           Regards,
          Tony

  • Screen exit for transaction IW31 for ref. object O150

    Hi,
    I need for find screen enhancement for trasaction iw31 in plant maintenance.
    The requirement is to add 2 more fields (Functional location and Assembly) in the 'reference object' O150 on header tab. Currently the reference object has 2 fields and we want to add 2 more above mentioned fields.
    Please help me, thanks
    Sanjay Singh

    HI
    To search for a badi, go to se 24 display <b>class cl_exithandler.</b>
    double click on method get_instance, get a break point on case statement.
    execute and start the required transaction in new session.
    look for variable <b>exit_name.</b> It would show the available badi's.
    Please do reward if useful
    Regards
    Dinesh

Maybe you are looking for

  • Windows software update error

    I 'm getting notification saying there is software update for my phone but after it's downloaded I'm getting error message saying "the update was downloaded but couldn't be opened 8018830f error". can any one solve this issue for me please.

  • Post 10.4.3 update, HP printer color problems, sharing problems

    Hi all Hope you could help me; I've looked everywhere for tips, but I've not been able to find anything. Setup: HP deskjet 5700 plugged into my G5 via USB. I've got a Powerbook 12" as well, and all is connected via an Airport Express to a DSL modem.

  • The + operator

    Can anyone explain the logic behind the following code? char a = 'a' + 'b'; char b = 'a' + 'c'; char c = a + b; The first two lines will compile, but the third fails unless I cast the output to type char. I'd really just like to understand why this s

  • Oxc000007b problem with audition cc download-any ideas?

    Hi, had the same problem when downloading Lightroom 5 from the creative cloud desktop - dll package for lightroom solved the problem here. I am on Windows 7 Ultimate 64 bit. (I uninstalled audition cc and installed it again with the same result) Than

  • Exchange vs. 10.5 Server

    Great Event yesterday - But it left me wondering where 10.5 Server is going to be when the 2.0 firmware for the iPhone is released. No LDAP Adressbooks on the iPhone, no Push-Email, no Push-Calendars... What are your thoughts on that?