SD-Exclusion

hi,
In which kind of scenario we will be going for Exclusion in Condition type creation.
Thanks

Hi Ganesh,
I can give a small ex of what we have done:
If product belongs to a particular division then we have to calculate the price based ob Gross Weight. But when it belongs to any other division then frieght is calculated on % basis.
We already had a pricing procedure and frieght condition type in place. so to fulfill this requirement, we add a condition Type for frieght calculation on Gross weight and then made this a group condtion with the already existing Frieght condition type using a special requirement.
Hope this provides some understanding.
Reward if it helps
Regards
Srini

Similar Messages

  • Free goods - Exclusive - Quantity of free goods

    I want to give free goods by the condition record I have made at the tcode VBN1. Free godds will be given by the exclusive technique. The material code of the main material with active prcing is 100005 and the material that I will give as free good is 700001. For every 4 pieces of 100005 I will give 1 piece of 700001. I have entered 100005 at the "Material" column, 4 at the "Min. qty" column, 4 at the "For" column st at the "Unit" column, 1 at the "add. FG" column, ST at the "AddQTYUnit" column, 1 at the "Calc.Rule" column, 2 at the "FreeGoods" column, 700001 at the AddMatFrGd" column. The system gives 2 free goods (700001) for 6 priced material (100005) or 4 pieces of 700001 for 14 pieces of 100005. On the other hand I want the system to give free goods for the exactly enough piece of price material. I mean: 2 pieces of 700001 for 8 or 9 or 10 or 11 pieces of 100005; not 2 pieces of 700001 for 6 or 7 pieces of 100005 but the system behaves this way. can anybody help me abput this subject?
    Thanks in advance for the answers....

    Hi Yasar,
    You need to create a new routine for calculate type.
    Do as below:
    1. Go to VOFM>Formulas>calc.rule Rebate InKd to create a new routine for calculate type.  for example 601.
    2. add the following code in this routine 601 and then save.
      USING L_FRM STRUCTURE KONDN_FRM.
    DATA: VORKOMMA  LIKE KONDN-KNRMM,
           NACHKOMMA LIKE KONDN-KNRMM.
      L_FRM-NRMENGE = 0.
      L_FRM-NRRUND  = 0.
      L_FRM-NRMENGE = ( L_FRM-MGLME / L_FRM-KNRNM * L_FRM-KNRZM ).
    business rounding
        VORKOMMA = FLOOR( L_FRM-NRMENGE ).
      L_FRM-NRRUND  = L_FRM-NRMENGE - VORKOMMA.
      L_FRM-NRMENGE = VORKOMMA.
    3. Select routine 601 in field "Calc.Rule" when you create free goods condition record.
    Hope it helps.

  • Free Goods (Use of Inclusive & Exclusive at the same time)

    Hi Gurrus,
    i have a scenario and i need your help.
    my company has started given free goods to the customers.
    Example,
    if a customer buy 4 PAC of material "A", He should get 1 PAC of Material "A"  and also 8 PAC of Material "B".
    That means I have to use Inclusive and Exclusive at the same time in one order for Material A.
    My requiremet is if the order booker enters 4 PAC of Material in an order so system should generate two sub item lines,
    1 PAC of Material "A" as "TANN" &
    8 PAC of Material "B" as "TANN".
    I have tried to capture this through VBN1 but system is only allowing me to enter either inclusive or exclusive condition record for one material.

    hi,
           ya, it is possible to create free goods for 1:n material for inclusive & exclusive for 2 materials.
    create a sale order  2 material with diff qty.& free goods for 2 diff qty for inclusive & exclusive
    Regards,
    A.sithanandan

  • Free Goods Determination - Exclusive

    Hi All,
    Am trying to enable Free Goods determination (exclusive). I have set up the free goods determination procedure and the condition record. However, when I create my sales Order for the original material, a new line is generated with the material that should be given away for free however the quantity field is not populated. Any idea as to what I may be doing wrong ?
    Condition Record is as follows (VBN1)
    Material - Material A (This is the material for which the SO is raised)
    Min Qty - 2
    From - 2
    UnitFG - EA
    add FG - 1
    AddQtyUnit - 1
    in % = 33 % (this is an auto field that is calculated)
    Calc Rule - 3
    Free Goods - 2
    AddMatFrGd - Material B (This is the material that should be provided for free)
    FGDelyCont - B
    Your help is immensely appreciated.
    Thanks in advance,
    Imran

    Hi Ramesh,
    Thanks for your input. I did try your suggestion out, Calculation Rule 2,  but it still does not work. I have attached the procedure to my document type.
    When the SO is being created, an additional line item is generated with the free good material but without a quantity. how do i get it such that the quantity is also proposed on the new line item generated for the free good based on what has been defined in the condition record.
    Regards,
    Imran

  • Free goods problem (exclusive)

    when creating a condition in VBN1 with free goods category 2 (Exclusive) i got the following message
    "This selection is not possible in the inclusive bonus quantity field"
    how can i solve it ??

    Try this VBN1 T code , Enter the CnTy and Press enter and enter the sales org, dist ch. Before entering any other data, click on"Exclusive" Tab on the top (gift box).
    Regards
    Sai

  • Exclusive Free Goods

    Dear Experts,
    In transaction VBN1, is there anyway where I can set "Exclusive" and Calculation type "2" as default. This is to prevent the users from accidentally maintaining "Inclusive" free goods. Thanks in advance!

    Hi Sager,
    Thanks for your feedback.However,  it doesnt solve my problem as I would like default it to "Exclusive" and Calcuation type needs to be defaulted to "2" instead of maintaining it manually.

  • Free goods - exclusive - tax calculation

    dear Collegues,
        I have an issue, my client want me to configure Free goods exclusive ie 10+2 offer, but when i am creating a sales order or billing, the Net value will be for 10 items, Excise will be calculated on 12 pieces  as its a manufacturing unit, and the tax must be calculated only for 10 piece how can i do this, Kindly suggest me.
    regards,
    Sudhir

    Sir
    For this requirement only the suggestion was sent earlier
    You have to achieve thro alignment of steps and from and to in PP
    In real sense this settings is a challenge for any SD consultants ablitity
    It is difficult for me to explain step by step without looking at your screen or without knowing what are all the condition types you are having in PP
    Pls let me know what are all the  condition types you have in your PP and their alignment
    Because it can be achieved in standards
    Sir
    Have you got this correct?
    Once you do the correct settings you yourself will wonder is it this simple?
    The importance of From and to and the importance of alignment of steps in PP does the trick here
    All the best
    Regards
    Raja
    Edited by: ramanathan raja on Jan 8, 2009 12:07 PM

  • Free Goods exclusive option

    Hi All,
    Can anyone plz tell me, In free goods exclusive option, i have configured the minimum quantity is 100 and for every 100 unit one unit is free. The calculation type is unit reference.If i enter 220 units in the sales document . it displays 22 units as free goods.According to me , it should be two unit i.e the minimum quantity is 100 and from every additional 100 unit one unit is free. How come is it 22 ???
    Regards,
    Ashima

    Hi
    While maintaininig condition records in VBN1 in the minimum qty maintain 100 and also in the from qty maintain 100 with calculation type 2 for exclusive offer
    I think you have maintained 10 in the from column change this to 100
    Check this your problem will be solved
    I have tried to get your error and got it solved
    Raja
    Edited by: ramanathan raja on Sep 2, 2008 4:07 PM

  • I had all of my video files that I work on in iMovie saved to an external hard drive exclusively to save space on my Macbook.  I had just finalized a project, went to work on another one and files couldn't be found, were not deleted how do I find them?

    I had all of my video files that I work on in iMovie saved to an external hard drive exclusively to save space on my Macbook.  The other day I had just finalized a project and went to work on another one and when I opened the project I could see what should have been there, but scrolling over the entire clip I would only see black and that the file was missing.  I did not drag anything on the hard drive to the trash or move anything.  How can I get those files?  These are videos of my kids and I am devastated and willing to try anything!

    Control click does not work - no option to find files.  I have no idea what to do.  When I look at the usage of the external drive the space is being used, but I cannot find the files.  I am going to try MacKeeper's Undelete and see if I can make any progress with it. 

  • Multiple Exclusion Criteria[Exclusion Mask] in Sender File Adapter

    Hello All,
    I have a requirement to specify multiple exclusion criteria in the 'Exclusion Mask' property of a Sender File Adapter, i.e. I need to pick up files that correspond to 111*.txt from a specified source directory, but I would also want to exclude specific individual files that go by the following names:-111ACC.txt, 111INV.txt & 111PUR.txt.
    I have tried the following - Specified 111*.txt in the 'File Name' field and in the 'Exclusion Mask' field specified ACC, INV & PUR - the exclusion criteria separated by commas. But this does not seem to work. All the 111* files are getting picked up.
    Have gone through a couple of weblogs that deal with exclusion masks, but they do not talk about multiple exclusion criteria.
    Is there any other way I could accomplish this?
    Thanks,
    Anand

    Hi,
    Try this config.
    Give  *.txt in filename. and Directory as <YourDir>
    In exclusion mask give 111ACC.txt
    Below this there will be a table. Add two Entries
    Dont add anything to FilenameMask.
    Directory ->FileNameMask--->ExclusionMask
    <yourDir>->--->111INV.txt  
    <YourDir>->--->111PUR.txt
    Try this and get back.
    Regards,
    Sudharshan
    Message was edited by:
            Sudharshan Aravamudan

  • Exclusão em massa de DEPÓSITOS associados ao CADASTRO DE ITEM

    Bom dia experts!
    Estou com um problema resultante de um processo que necessito alterar.
    Em um processo de implantação, o cliente utilizou a configuração de TODOS OS DEPÓSITOS PARA TODOS OS ITENS. Ou seja, em um universo de 5000 itens, tenho 150 DEPÓSITOS pendurados em todos eles.
    A questão é que, a medida que este processo vai aumentando (o número de itens vai aumentando no banco de dados) também aumentam os registros na tabela OITW e estou com receio disto causar algum problema para mim. Também está gerando contabilizações incorretas, já que até mesmo depósitos de processos de despesas podem ser selecionados na compra, por exemplo.
    Gostaria de saber se existe algum processo em que eu possa tentar reduzir os depósitos de um determinado item ou grupamento de item, sem precisar excluir cada depósito um a um do CADASTRO DE ITEM.
    Agradeço antecipadamente pelo retorno.
    Leandro Martins
    Consultor
    [email protected]
    www.updatesolution.com.br

    Wesley Honorato,
      O meu problema não é bem este, o meu cliente apenas cadastrou um depósito incorretamente, mas só de efetuar o cadastro do depósito este já aparece no cadastro dos itens para que se o usuário desejar configurar este como depósito padrão, porém nada foi feito, nem movimentação nem seleção de depósito padrão, nada mesmo. Porém o sistema bloqueia a exclusão desse depósito, fazendo-se necessário a entrada item a item do cadastro de inventário para a exclusão da linha que contém este depósito na aba estoque do cadastro de itens, o que gera um imenso trabalho. Gostaria apenas de saber se tem um jeito menos trabalhoso de se fazer essa exclusão. Obrigado
    André Maia

  • Exclusão de Contas a Receber atraves de lançamento manual

    Boa tarde Amigos,
    Estou com um situação em uma de nossas Franquias, estão solicitando a exclusão de alguns boleto cadastrados no Saldo Inicial do Sistema, como devo proceder nesse caso?

    Boa tarde Cristiano, como o SAP Business One é um sistema 100% rastreável, não há como excluir lançamentos. Com isto há praticamente uma única alternativa, que seria realizar um LCM estornando os valores das contas contábeis envolvidas, é provável que lançar isto em uma data no passado (mesma data do lançamento original) deixe as informações mais claras, mas isto só será possível se o período de lançamento usado para o SI ainda estiver em aberto e nenhuma obrigação legal foi processada, pois os saldos contábeis serão afetados.
    Att,
    Rodrigo da Costa Feula

  • Exclusive update release for Adobe Cloud customers

    Excuse me, Adobe.
    Don't get this wrong, I personally have nothing against Adobe. Please know and realize that Adobe probably don't realize this, or simply don't have a heart to realize this by now. Adobe actually losing some valuable registered lifetime 'diehard' Adobe customers like other creative professionals and myself.
    Yesterday I learned that Adobe released exclusive update release only for Adobe Creative Cloud customers with Illustrator's new package update. I find that very ironic approach, because I know that diehard Adobe Illustrator customers have request for it for years. Adobe basically ignored us, creative professionals, instead of us, focusing on Adobe Creative Cloud customers.
    Rest assured, Adobe Master Collection CS6 is more likely my final upgrade purchase. It was a big slap in my face. I know that it is not just me, knowing that many other creative professionals are upset as I am.
    Don't get me wrong, I wholeheartedly am (now was) a lifetime diehard Adobe customer.
    Dear Adobe, just tell me if I am wrong. I just cannot justify the cost benefit analysis on advantage of Adobe Creative Cloud, where it is more of "renting" while many other creative professionals including myself prefer traditional way of upgrading through Adobe online store just as in the past and at present time. Many of us prefer "traditional" way of "owning" Adobe Creative Suite apps rather than 'renting' apps. In a long run, by owning traditional app/purchase do have super duper advantage over Cloud in terms of real cost of doing business. While traditional customers like myself still own Adobe apps even if when Adobe decides no longer support, we still own the legacy versions regardless.
    So, what happens if one day, out of blue, I fear that Adobe eventually realize that Adobe Creative Cloud is not viable or feasible to continue. That will certainly make some customers not happy. What happens to traditional customers like creative professionals and myself spent huge amount of investment in traditional qualified upgrades, and then switched to Cloud.. then one day Adobe decide not to support Adobe Creative Cloud.. what does this means to traditional customers like myself owned versions of serialization numbers over the years - down in the drain and Adobe Creative Cloud 'temporary' annual serial number no longer viable, and force us to pay FULL traditional license all over again. In that case, that is where I am dealing with this concern. I just cannot possibly trust Adobe on that one. I do have huge benefit of doubt on that one.
    For example, with Adobe decided to invest some of its resources developed new applications such as Adobe Flash Catalyst and few others in Adobe Creative Suite CS5. When Adobe released CS6, Adobe dropped Flash Catalyst. That is one of example on why I do have benefit of doubt on long term viability and feasibility of Adobe Creative Cloud.
    Please listen to us, creative professionals out of our concerns.
    If Adobe refuse to listen, include us in that respect, so be it. It is possible that Adobe eventually be losing many lifetime, diehard Adobe creative professionals.
    To be honest, I am very disappointed with Adobe's attitude toward creative professionals' being diehard lifetime support and invested lot of our time, tools, and skills and everything... time and money. It is all down in the drain. Thanks!
    Have a fabulous day!

    And customers fall for it like suckers.
    Software development during the emergence of a new category has always been lucrative. A small handful of developers with a good idea sweat blood for a couple years building the core application. Once it exists, delivery is cheap and profit-per-sale is high. Users buy licenses for several hundreds of dollars each. Each new license sale costs next to nothing to replicate in terms of manufacturing. It's all marketing, packaging, and distrubution. Disks are copied and printed for less than $1 each. Printed manuals, of course, may cost $20 or so, depending on color, quality, etc. There is real overhead, of course, in developing good content for manuals.
    When all this stuff was new software titles used to cost less, but shipped with installation disks and thorough printed manuals, and a set of added-value extras, like utilities, fonts, clipart. And new version improvements were quite significant and innovative.
    But once the software category "matures," with each version, the prices go up; the bundled "extras" become fewer. The focus shifts toward continually look for ways to cheap-out on the customers in order to "improve" the margin for the stockholders, and "milk" the increasingly archaic and mundane software for all that can be got out of it. One way this is done is by turning real value into mere perceived value. Adobe is the worst offender in this regard.
    Print manuals have become pay-extra, or non-existent. It astounds me that in the much-ballyhooed age of "information at your fingertips" the ondisk local help has become increasingly difficult and tedious to access. Now, the default behavior of the Help menu has even been modified to disuade users from accessing local PDF versions of the documentation to coerce them to go online for help files access (this from the company that is highly dependent upon PDF). Slow, tedious, and non-contextual as it is, PDF was bad enough. Having to go to Adobe's crappy "community help" system is ridiculous.
    This is all promoted, of course, as "immediate access to continual improvement." And customers fall for it like suckers.
    Look at the increasingly innane questions that occur  daily in this Forum. Newcomers ask the most basic questions, making it obvious they haven't even tried to read page one of the documentation. I've been at this stuff since the beginning. It didn't used to be this way.
    Are they all lazy dolts? No. Documentation has become less accessible and less thorough.
    Next, Adobe turns the online documentation essentially into blogs. "Live feedback"? "Continual improvement"? Baloney. Beginners clutter what should be authoritative documentation with innane comments. Questions get transferred to the User Forums, where Adobe sluffs off its responsibility for product support to its users; which more often than not turns into a time-wasting process of the blind leading the blind.
    Of course, only a mere mention of the term "tech support" will suffice. Everyone knows what thas become.
    Once you've eliminated the costs of printing, packaging, and delivering disks and documentation, and turned everything into electronic downloads (causing each customer hours of downtime--often even days futzing around with Adobe's horrible installers), what's next? Stockholders still want increased margin.
    Software by subscription and web-centric automation--while still increasing prices, of course--has long been the holy grail of software developers. This is true of all the biggies, including Microsoft, and of course Adobe. But how do you pull it off? How do you convince the suckers?
    Releasing new features to the buzzword "cloud" before making them available to perpetual licensees will be Adobe's attempt to "sweeten the pot" to con those who buy into the software subscription scheme. Time will tell how successful the ruse is for Adobe.
    The truth is, though, in terms of actual quality of the product, (especially Illustrator) nothing has changed for the better. Look at the very features that we who choose to stay with the relative safety of a traditional license are so upset about: Bundle for output? Export embedded images?
    People, how archaic, how old, how yesterdecade's news is that? This is "quick development" that can only be delivered by the "cloud"? Give me a break.
    It's utterly laughable, as Illustrator's cobby, clumsy, over-glorified, under-delivered, decades-late-to-the-game delevery of practical functionality always has been. So what's the big rush anyway for features that are already literal decades late? Sheesh, guys, Illustrator is not the only game in town.
    Consider: Since the release of CS6, how many posts have you forum regulars seen expressing excitement over the precious few actually new features, like grads-on-strokes? How many stunning examples of use of that feature have you seen users post?
    By comarison, how many posts have you seen on complaints about performance and buggy behavior? And proportionally how many are still the endless stream of repeats of the same old questions from newcomers trying to make sense out of Illustrator's uncomparably unintuitive, cluttered, and confused interface? I see the latter largely increasing. And I take that as clear indication that Adobe's treatment of "newfangled" documentation is not working. (And, of course, that Illustrator's interface is still as hideously unintutitve as it has always been.)
    Meanwhile, for the first time in too many years, I actually experienced again that new-purchase satisfaction of money-well-spent when I opened the Corel Graphic Design X6 Suite package to find a full-color manual with a hard-bound cover no less! Upgrade cost for anyone with a copy two full versions old? $200. Comes with 1000 OpenType fonts, huge clipart collection, truly useful utilities, and alot more.
    I still get a thrill out of every new release of Xara Designer Pro. So much elegant functionality, such clean-running speed, so stunning results possible from that tidy, inviting, intuitive interface in so affordably-priced and fun-to-use application.
    Meanwhile, Adobe upgrades have become more burden than pleasure. I actually dread them, especially having been suckered into the whole "Master Collection" thing. CS6 still sits on my desk uninstalled. I just dread having to mess with it.
    Oh, but James! That's why you should buy into "the creative cloud"!
    Well, don't hold your breath, bucko. If I decide to let CS7 or whatever just slide right by, I'll still be able to keep running the version I've got--without sending a monthly check to Adobe.
    These days--when so many younsters who have never swung a hammer at a nail actually try to rationalize renting over home ownership; and when so many middle-agers rationalize making perpetual interest payments for the instant gratification of driving a new car every year--who knows; the "creative cloud" sham may actually succeed.
    But not with me. Instead of watching money automatically fly out the window by itself, I'll be chuckling away, using whichever of my usual collection of 2D vector drawing programs I feel most advantageous--or most fun--for the task at hand.
    JET

  • What is difference between Shared ,Exclusive and Exclusive but not commulat

    what is difference between Shared ,Exclusive and Exclusive but not commulative lock modes plese tell me

    Lock objects are used to synchronize access to the same data by more than one program.
    The lock mode controls whether several users can access data records at the same time. The lock mode can be assigned separately for each table in the lock object. When the lock is set, the corresponding lock entry is stored in the lock table of the system for each table.
    There are three types of lock modes
    1.Exclusive
    2.Shared
    3.Exclusive not cummulative
    Exclusive lock: The locked data can only be displayed or edited by a single user. A request for another exclusive lock or for a shared lock is rejected.
    Shared lock: More than one user can access the locked data at the same time in display mode. A request for another shared lock is accepted, even if it comes from another user. An exclusive lock is rejected.
    Exclusive but not cumulative: Exclusive locks can be requested several times from the same transaction and are processed successively. In contrast, exclusive but not cumulative locks can be called only once from the same transaction. All other lock requests are rejected.
    please go through these links:
    http://help.sap.com/saphelp_nw04/helpdata/en/a2/3547360f2ea61fe10000009b38f839/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/af/22ab01dd0b11d1952000a0c929b3c3/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21eeb2446011d189700000e8322d00/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21eebf446011d189700000e8322d00/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21eed9446011d189700000e8322d00/frameset.htm
    briefly :
    You can lock the table or record by using following types of locking:
    1) Exclusive (E) the locked data can only be displayed or modified by single user i.e the owner of the object. Access to other users is denied.
    2) Shared (S) several users can access the same record simultaneously, but only in display mode and except the first one, who has asked for the data in update mode.
    3) Exclusive not cumulating (X) it is similar to exclusive lock. It allows only a single user access. E can be called several times from the same transaction. In contrast, a lock type X can be called only once during the transaction. Any other call for this lock is rejected.
    Activation of Lock Object
    1) When you activate the lock object, the functions are automatically generated. And these are ENQUEUE-EZN and DEQUEUE-EZN. EZN is name of the lock object.
    2) While ENQUEUE is used in program to set the code over the selected data depending upon the lock object arguments. DEQUEUE is used to release the lock.
    Thanks
    Seshu

  • How come full screen exclusive mode is so slow?

    Hi. I am currently working on customer facing point-of-sale application. This application has a lot of animation going on and so needs quite speedy graphics performance. When I first investigated this it looked like I could do it in pure Java 2D which would be a lot easier than resorting to DirectX or OpenGL and mixing languages.
    Unfortunately as the app has moved closer to functional complete the graphics performance appears to have deteriorated to the point where it is unusable. So I have gone back to the beginning and written a test program to identify the problem .
    The tests I have done indicate that full screen exclusive mode runs about ten times slower than windowed mode. Which is mind boggling. Normally - say in DirectX - you would expect a full screen exclusive version of a games/graphics app to run a little bit quicker than a windowed version since it doesn't have to mess around with clip regions and moving vram pointers.
    My test program creates a 32 bit image and blits it to the screen a variable number of times in both windowed and full screen mode. Edited results look like this:
    iter wndw fscrn performance
         10 16.0 298.0 1862% slower
         20 47.0 610.0 1297% slower
         30 94.0 923.0 981% slower
         40 141.0 1205.0 854% slower
         50 157.0 1486.0 946% slower
         60 204.0 1877.0 920% slower
         70 234.0 2127.0 908% slower
         80 266.0 2425.0 911% slower
         90 297.0 2722.0 916% slower
         100 344.0 3253.0 945% slower
    The results are substantially the same with the openGL hint turned on (although I don't have that option on the release hardware). I am assuming that the images end up as managed since they are created through BufferedImage and the system is running under 1.5.
    Is there a way to get the full screen version running as fast as the windowed version?
    Here's the test prog:
    import java.awt.*;
    import java.awt.image.*;
    import java.awt.event.*;
    import javax.swing.JFrame;
    public class BlittingTest extends JFrame {
         BufferedImage     blankImage;
         BufferedImage     testImage;
         boolean               fullscreen;
         int                    frameNum;
         public BlittingTest( boolean fullscreen ) throws HeadlessException {
              super();
              // window setup. Escape to exit!
              addKeyListener ( new KeyAdapter() {
                   public void keyPressed( KeyEvent ke ) {
                        if (ke.getKeyCode() == KeyEvent.VK_ESCAPE ) {
                             System.exit(0);
              this.fullscreen=fullscreen;
              if ( fullscreen ) {
                   setUndecorated ( true );
              } else {
                   setTitle( "BlittingTest - <esc> to exit)");
                   setSize( 800, 600 );
              setVisible(true);
              setIgnoreRepaint(true);
              // strategy setup
              if ( fullscreen ) {
                   GraphicsDevice gdev =
                        GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice();
                   DisplayMode newDisplayMode = new DisplayMode (800, 600, 32,
                                                 DisplayMode.REFRESH_RATE_UNKNOWN);
                   DisplayMode oldDisplayMode = gdev.getDisplayMode();               
                   gdev.setFullScreenWindow(this);
                   gdev.setDisplayMode(newDisplayMode);
                   createBufferStrategy(2);
              // create assets
              testImage = new BufferedImage ( 50, 50, BufferedImage.TYPE_INT_ARGB );
              Graphics2D g = testImage.createGraphics();
              for ( int i = 0; i < 50; i ++ ) {
                   g.setColor( new Color ( 0, (50 - i) * 3, 0, i * 3 ));
                   g.drawLine( i, 0, i, 49 );
              g.dispose();
              blankImage = new BufferedImage ( 50, 50, BufferedImage.TYPE_INT_ARGB );
              g = blankImage.createGraphics();
              g.setColor ( Color.WHITE );
              g.fillRect( 0, 0, 50, 50 );
              g.dispose();
              frameNum = -1;
         public void init() {
              // blank both screen buffers
              for ( int i = 0; i < 2; i++ ) {
                   Graphics g2 = getBufferStrategy().getDrawGraphics();
                   g2.setColor ( Color.WHITE );
                   g2.fillRect( 0, 0, 800, 600 );
                   g2.dispose();
                   getBufferStrategy().show();
         public long testFrame ( int numBlits ) {
              int          x, y;
              long     timeIn, timeOut;
              frameNum++;
              Graphics g = getBufferStrategy().getDrawGraphics();
              g.drawImage( testImage, 0, 0, null );
              // blank previous draw
              if ( fullscreen ) {
                   if ( frameNum > 1 ) {
                        x = frameNum - 2;
                        y = frameNum - 2;
                        g.drawImage ( blankImage, x, y, null);
              } else {
                   if ( frameNum > 0 ) {
                        x = frameNum - 1;
                        y = frameNum - 1;
                        g.drawImage ( blankImage, x, y, null);                    
              x = (int) frameNum;
              y = (int) frameNum;
              timeIn = System.currentTimeMillis();
              for ( int i = 0; i < numBlits; i++ ) {
                   g.drawImage ( blankImage, x, y, null);
                   g.drawImage ( testImage, x, y, null);
              timeOut = System.currentTimeMillis();
              g.dispose();
              getBufferStrategy().show();
              return     timeOut - timeIn;
         public static void main(String[] args) {
              boolean error = false;
              BlittingTest window = null;
              double []     windowedTest = new double [101];
              double []     fullscreenTest = new double [101];
              window = new BlittingTest ( false );     
              window.init();
              for ( int f = 1; f <= 100; f++ ) {
                   windowedTest[f] = window.testFrame( f * 10 );
              window.setVisible(false);
              window.dispose();
              window = new BlittingTest ( true );     
              window.init();
              for ( int f = 1; f <= 100; f++ ) {
                   fullscreenTest[f] = window.testFrame( f * 10 );
              window.setVisible(false);
              window.dispose();
              for ( int f = 10; f <= 100; f++ ) {
                   System.out.println ( "\t" + f + "\t" + windowedTest[f] +
                             "\t" + fullscreenTest[f] +
                             "\t" + (int) ( (fullscreenTest[f]/windowedTest[f])*100.0) + "% slower");
    }

    Well I could do...
    The problem is that I am compositing multiple layers of alpha transparent images. If I just render straight to the screen I get nasty flicker where I see glimpses of the background before the top layer(s) get rendered. So I would have to render to an offscreen buffer and then blit the assembled image into the screen. Even then there will be some tearing as you can never sync to the screen refresh in windowed mode.
    And the thing is - there ought to be a 'proper' solution, g*dd*mm*t. Surely the core team didn't put together a solution that is ten times slower than it should be and then say 'What the heck, we'll release it anyway'.
    I mean, if you can't believe in Sun engineering what can you believe in?

  • JInternalFrame Full Screen Exclusive mode lag Windows 7?

    <font size=2>Hi everyone I'm not sure if i'm posting this question in the right category so feel free to move it. I recently have been playing around with full screen exclusive mode and JInternalFrames. Now what iv'e noticed is on every platform i've tried it works fine. When clicking and dragging the JInternalFrame to a new location it is quick and responsive. However when doing this same operation in Windows 7 the JInternalFrame lags significantly behind the mouse location as i'm dragging the internal frame. I haven't had a chance to test this on any other Windows platforms such as Vista or XP but I don't think it happens on those platforms, at least I don't remember this ever happening when I had Windows Vista and it doesn't occur in Mac OS 10.6.
    The following are the circumstances i've found that produce this problem:
    *1. The program is set to Full Screen Exclusive mode.*
    *2. You are using Windows 7 (possibly other Windows platforms)*
    *3. Click and drag a JInternalFrame to a new location.*
    I've tried several things to see if it fixes the problem such as setting the look and feel to cross platform but nothing helps. In fact when the LAF is set to cross platform it is even worse.
    Now i'm new to Full Screen Exclusive mode so i'm guessing (hoping) this is a problem caused by an error on my part. Here is the source code, i'd appreciate it if you give it a try. My question is how do I fix this lag so that the JInternalFrame is quick and responsive to the user dragging the window and i'm also wondering if this only happens on Windows 7 so if anyone could also tell me if they experience the problem I am describing and the OS you are using that would be great. Thank you guys :)
    Also any input about wether i'm setting up full screen exclusive mode correctly would be much appreciated too.</font>
    package lag;
    import java.awt.event.*;
    import java.awt.*;
    import javax.swing.*;
    public class InternalFrameLag
        public static void main(String[] args) {
            SwingUtilities.invokeLater( new Runnable() {
                public void run() {
                    new InternalFrameLag();
        GraphicsEnvironment env = GraphicsEnvironment.getLocalGraphicsEnvironment();
        GraphicsDevice[] devices = env.getScreenDevices();
        GraphicsDevice device;
        JFrame frame = new JFrame("Internal Frame Lag");
        JDesktopPane pane = new JDesktopPane();
        JInternalFrame internalFrame = new JInternalFrame("Internal Frame", true, true, true, true);
        JButton exit = new JButton("Exit");
        public InternalFrameLag() {
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.setUndecorated(true);
            exit.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    System.exit(0);
            exit.setPreferredSize(new Dimension(250,23));
            internalFrame.setLayout(new FlowLayout());
            internalFrame.setBounds(100,100,500,300);
            internalFrame.add(exit);
            pane.add(internalFrame);
            frame.add(pane);
            // get device that supports full screen
            for(int i = 0; i<devices.length; i++) {
                if(devices.isFullScreenSupported()) {
    device = devices[i];
    break;
    if(device!=null) {
    device.setFullScreenWindow(frame);
    internalFrame.setVisible(true);
    } else {
    System.exit(0);
    Edit: Decided to make the font size bigger. Eyestrain is killing me.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Darryl Burke wrote:
    neptune692 wrote:
    <font size=2>
    Edit: Decided to make the font size bigger. Eyestrain is killing me.Hopefully that will carry over to my response and I won't have to edit to add it ;)
    I don't see the lag you describe. There's some flicker when moving the internal frame around rapidly (it looks as if the borders follow the content a split second later, but can't be caught in a screen capture) but that's no different when I show the internal frame in a normal (not full screen) window.
    <tt>Microsoft Windows [Version 6.1.7600]
    Copyright (c) 2009 Microsoft Corporation. All rights reserved.
    C:\Users\Darryl>java -version
    java version "1.6.0_17"
    Java(TM) SE Runtime Environment (build 1.6.0_17-b04)
    Java HotSpot(TM) Client VM (build 14.3-b01, mixed mode, sharing)</tt>
    db<font size=2>Thanks for your reply and thanks for testing out my code. Could this lag be something wrong with my VM on Windows 7, cause the lag is extremely bad as in it takes a couple seconds for the internal frame to catch up with the mouse. I also just noticed that any other components in full screen exclusive mode on Windows 7 lag as well. Such as scrolling though a large amount of text, the scroll bar will lag far behind the mouse location and take a couple of seconds to catch up even when the mouse is moving fairly slow. I was hoping it was something in the code I was doing wrong but I guess not? Any suggestions on how I could fix this problem? It really makes my applications appear sluggish. For example when you click on a normal window such as in Windows Explorer and drag it to a new location the mouse stays in a fixed position on the window while you are dragging it. However with this lag the mouse appears to be "detatched" from the window and does not stay in the same location on the window while dragging. Does anyone else experience this or is this normal? I'm using Windows 7 64bit but I don't think that would make any difference. I'd also like to point out that I'm using Java 6 update 21 I don't know if that would make a difference opposed to update 17.
    Thanks again.</Font>
    Edited by: neptune692 on Oct 2, 2010 10:23 AM

Maybe you are looking for

  • Macbook pro can't find the audio device

    Lately I have been having trouble with the audio. The sound doesn't work on the Macbook, and it can't seem to find any devices! I tried plugging in headphones, but nothing helped. In the time leading up to this fault, the sound in the mini jack was v

  • Database upgrade process and step

    Hi, I am trying to do as following: I have old server with 10.2.0.3 32 bits on Linux. We are trying to have RH Linux 5.4 64 bits and oracle 10.2.0.3 64 bits. How can i restore from 10.2.0.3 32 bits cold backup to new server? Thanks Pat Edited by: use

  • IMac 24" mid 2007 video card

    If my video card is bad will the mini dvi port work for an external monitor. My screens glows around the edges and flickers colors along edges also, no video at all. Thank you in advance.

  • Oracle VM Manager 3.0.2: Don't have generic storage plug in

    Hi, I am using Oracle VM Manager 3.0.2, a newly built box. When attempting to register storage I am lacking generic storage plug in in a drop down menu while changing storage type from SAN storage server to ISCSI storage server I can observe exceptio

  • Where can I find 3D starter models to download

    I keep seeing in tutorials about 3D in Photoshop CS6 that refer to starter models that can be downloaded from Adobe but have not been able to find the location to view and download them. Any suggestions?