Help for creating a simple loop.....

Hi i have 2 internal tables
itab OCCURS 0 ,
       posnv LIKE vbfa-posnv,
       vbeln LIKE vbfa-vbeln,
       vbtyp_n LIKE vbfa-vbtyp_n,
       vbelv LIKE vbfa-vbelv,
  flag TYPE i,
       END OF itab.
and
itab1 OCCURS 0,
       vbelv LIKE vbfa-vbelv,
       flag TYPE i,
       END OF itab1.
they are declared according to the fields in the table vbfa
and i want to set the itab1-flag to 1 if there's a situation when a record in itab contains the following values
itab - vbelv = itab1-vbelv
and
itab-vbtyp_n='M'
so i have used the following code
LOOP AT itab.
    LOOP AT itab1.
      IF itab-vbelv = itab1-vbelv AND itab-vbtyp_n = 'M'.
        itab1-flag = 1.
      ENDIF.
    ENDLOOP.
  ENDLOOP.
but its not working. Please help me

Hi,
you have to change the loop as shown here........
loop at itab1.
loop at itab where vbeln = itab1-vbeln.
IF itab-vbelv = itab1-vbelv AND itab-vbtyp_n = 'M'.
itab1-flag = 1.
ENDIF.
endloop
MODIFY ITAB1 TRANSPORTING FLAG.
endloop.
Thanks and Regards,
Kunjal Patel

Similar Messages

  • Need help for creat apple id in iphone 5s

    need help for creat apple id in iphone 5s

    See this support document for instructions. http://support.apple.com/kb/HT2731

  • Please Help for Create Animated_Gif

    Hello All i recently Create a Animated Gif file for a Site and for creating it i have use 4 JPEG image and add all by Photoshop>Animation with Frmae time 4sec. When i have save it and set Dither 100% and Optimize 100% but now image show scattered .when uploaded on website please look at http://www.printsasia.com/
    Please suggest how to get Good Quality in GIF image.my all JPEG image has Good Quality
    Please Check all JPEG images

    First thing is you are mistaking the quality of jpg vs gif. There is no way to get the same quality as a jpg, it just does not have enough colors. If you took a jpg image and converted to grayscale, then it would have the same number of colors even though they all would be shades of gray. Gray is color so...
    Jpg does not support transparency, layers or animations which is why it is not a good candidate for web animations. If you need full color, full transparency, and/or animations then you amy want to consider flash. Currently it is the only format for the web that supports all 3 and layers.
    That being said, png does have a sister format for animations but is not supported in all web browsers.
    Another alternative is quicktime, or windows media. Each can play in a web browser if the plugin is installed they both support full color and transparency (the latter supported under certain circumstances {correct codec}) But not all users have either or both video players installed, so most of the time it will work, but there is that chance.
    The lastest version of HTML is suppose to support the quicktime format but I don't know enough about how well it is supported via HTML and the number of Browsers. But it is an option that is worth keeping an eye on.
    So for a gif file...
    Keep in mind that the entire file that includes all frames must maintain a maximum of 256 colors with 1 of the colors reserved for transparency. Which is the reason for harsh borders on a transparent edge of the image. Not enough shades for transparency to have a smooth gradation.
    Even though your second image may work fine, odds are the first image will not and will look as you put "scattered". Simply because each of those books are made up of multiple shades of that color times the number of colors needed for all the books, background, text, etc. Even the reflection effect for the text is made up of multiple shades of that color. So in reality it just does not have enough colors in the table to make the image look smooth.
    I hope this helps some, I am sure it is not quite what you wanted to hear, but if you do a bit of research or throw your hands up and say good enough. You will at least know why and it wasn't you to blame, it is the outdated technology of the gif format.
    Good luck at which ever way you decide to travel...

  • What are the "Add to Loop Library" requirements for creating automatically conforming loops?

    I am trying to create my own loops that conform to the tempo and key of a song. I have made several loops in this way by selecting a region that is exactly 4 bars, for example, and then selecting "Add to Loop Library". If the sample is cut correctly, the "Type:" field is enabled which allows you to make it a Loop and therefore have it automatically conform to the song tempo.
    In the past I have made loops that were very long, up to 128 beats, for the purpose of making mashups using instrumental tracks that I want to conform to the song. I now can't seem to create a large loop but I am not sure why. I know it is possible, but I don't know the steps I took to get there.
    What are the exact requirements that allow a loop to be added to the loop library while also conforming to song key and tempo?

    In the past I have made loops that were very long, up to 128 beats
    The longest loop I managed to save as "Loop" had 55 measures (220 beats, 203 bpm). Longer loops could only be saved as "One shot". And the loop had to be cut at the end, not simply be trimmed by dragging the end of the region. The tempo matters; for a slow song the loop can only have fewer measures.

  • I need some help for an explanation. Loop for 1 minute.

              int minute=1;
              long currentTime=System.currentTimeMillis();          
              long stoppingTime = currentTime + (minute * 60 * 1000);
              while (currentTime<stoppingTime) {
                   // do x;
                   currentTime=System.currentTimeMillis();
              }I want to have the loop to run for 1 minute. It does not seem to work.
    What did I miss? I need some help for an explanation.

    Ran:
    class PrintTimeAsProcess {
      public static void main(String[] argv)  throws Exception {
        int minute=1;
        long currentTime=System.currentTimeMillis();
        long stoppingTime = currentTime + (minute * 15 * 1000);
        System.out.println("START Time: "+currentTime);
        while (currentTime<stoppingTime) {
          currentTime=System.currentTimeMillis();
        System.out.println("END Time: "+currentTime);
    }Got:
    START Time: 1149278202718
    END Time: 1149278217718
    1149278217718
    -1149278202718
    15000

  • Help for creating classification view in mm01

    hi guys can anybody help on creating classification views in mm01 using bdc recording i need a step by step procedure . since when i tryed in mm01 there are filds like class name i dont know where all these data's to find one more thing is i was asked to create classification view using bdc recording ...please help me with some programs if u have

    Hi,
    You need to use the BAPI 'BAPI_OBJCL_CREATE' to create characteristics for a material.
    The characteristics are need to be passed in the table ALLOCVALUESCHAR.
    If you do not know the values for a particular characteristics then you canmake use of FM
    BAPI_CLASS_GET_CHARACTERISTICS and BAPI_CHARACT_GETDETAIL to get the values.
    Regards,
    Ankur Parab

  • What is the best method for creating a simple DVD from X?

    Now that I no longer have DVD SP on my system, I need to know the preferred method of creating a simple menu driven DVD. The DVD needs to have a simple (one click) since the local cable company needs that so it will trigger at a specified time. I shoot in 720p 60. The DVD is SD. I do have Toast, Compressor, and iDVD on the computer. Any input will really be appreciated. Thanks in advance.
    Cheers.
    Tom

    Thanks Luis.
    Can't beleive I missed that. I am so used to using Compressor or Toast. This method works great. Thanks.
    Best.
    Tom

  • Help for RT PC timed loop in us?

    I have created realtime target  quadcore PC  and created a pulse pattern(500kHz) using DIO pin0.1 and both counters. I want to repeat the pattern or send manny patterns after 512us. I am using time loop. It is not providing more than 28ms however it is showinh 1Mhz clock which is not present in not real time loops.Please help me out to have the time loop run at 512us interval?
    Yours sincerely 

    Hello Ali,
    I understand your frustation, and please accept my apologies for any inconvenience. I checked the domentation and according to this document:
    http://digital.ni.com/public.nsf/allkb/0C0A6EE528F​85A6486256F6700061790?OpenDocument
    The Desktop PC´s should be able to use the MHz clock source. However remember that if you are acquiring data, the sampling rate does not depend on how fast the timed loop iterates, as the DAQ board has it own clock. The timed loop just determine when you call the DAQmx read function to pull out the data that the DAQ board has out in the memory buffer. My advice at point however is that you create an Service Ticket so we can assist better, or if you want to share your code with me I can test it in one of our PXI devices to see if the issue is with your code or your hardware, in any case we would like to help you, as our final goal is that our customer are succesful while developing their projects
    Regards
    Mart G

  • Advice for creating a simple iPad presentation

    Hello,
    Just wondering what my options are for getting a document created in InDesign onto an iPad? I've been reading up on the DPS but there seems to be a lot of conflicting information out there depending on when it was written and by whom.
    Basically we do many presentations and pitches in my agency, these so far have consisted primarily of printed documents and boards. What they would like to do now is give the presentation to the client at the end of the meeting on an iPad for later viewing. These presentations are usually being worked on up to the last minute, so any iPad version needs to be as simple as exporting a file, plugging in the iPad and pressing an upload button.
    A few questions:
    1. They would like the presentation to appear as a standalone icon on the main iPad screen, as opposed to a document within a reader application. Is this possible?
    2. The DPS method of organising files and syncing with online servers doesn't seem ideal in my case. Am I right in saying there is still no local sideloading feature available?
    3. The 'stack' and 'article' method of sorting separate files seems very unwieldy in my case, is there are way to just have one long document (for printing and easy layout) and then have it scroll sideways like a magazine on the iPad?
    4. Failing all these, do I have any other options?
    Thanks for any help.

    Hi Aaron,
    Here are your answersd:
    1. No
    To enjoy your own Icon, would mean to go through the process of building a custom viewer in DPS and sending your app to Apple. It usually takes 5-20 days to have it accepted. So, no last minute changes.
    2. Yes
    You are right.
    3. Yes, sort of
    Instead of of on long document you create an Indesign book file, where each Indesign document represents one DPS article. You can then print your whole presentation with one click. In DP, you set your articles to horizontal swipe only.
    4. Yes
    Interactive PDF is an obvious one.
    Regards,
    Tomek

  • Need help for creating class

    i m designing a class named Fan to represent a fan. the class contains:
    Three constants name slow, medium, and fast with values 1, 2 and 3 to denote the fan speed.
    an int data field named speed that specifies the speed of fan(default slow)
    an boolean data field named on that specifies whether the fan is on(default false)
    a double data field named radius that specifies the radius of the fan(default 5)
    a string data field named color that specifies the color of the fan(default blue)
    so here is what i want, a method named toString(that returns the fan speed, color and radius in one combined string.if the fan is not on. the method returns fa n color and radius along with string "fan is off" in one combined string.
    and a test program creates two fan objects assign maximum speed, radius 10, color yellow, and turn it on to the first object. assign medium speed, radius 5, color blue, and tun it off to the second object.
    after i created my two objects this is my output
    speed1 is slow, the fan is off, the radius is5.0Blue
    speed2 is slow, the fan is off, the radius is5.0Blue
    its not the result i want, i know there r somethin wrong with the if statement and the method..but i cannot fix it.
    Thank everyone who can give me some tips or help.
    here is my class
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    package javaapplication1;
    * @author Administrator
    public class Fan {
        private int speed;
        private boolean on;
        private double radius;
        private String color;
        Fan(int speen, boolean on, double raidus, String color)
            this.speed = 1;
            this.on = false;
            this.radius = 5.0;
            this.color = "Blue";
        public int getSpeed()
            return speed;
        public void setSpeed(int speed)
            this.speed = speed;
        public boolean isOn()
            return on;
        public void setIsOn(boolean on)
            this.on = on;
        public double getRadius()
            return radius;
        public void setRadius(double radius)
            this.radius = radius;
        public String getColor()
            return color;
        public void setColor(String color)
            this.color = color;
        public String fanSpeed()
            String output = "";
           if(speed == 1)
               return output = "slow";
           else if(speed == 2)
               return output = "Medium";
           else
               return output = "Fast";
        public String IsFanon()
            String output = "";
            if(on == false)
                return output = "the fan is off";
            else
                return output = "the fan is on";
    }Here is my main class
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    package javaapplication1;
    * @author Administrator
    import javax.swing.JOptionPane;
    public class testFan {
         * @param args the command line arguments
        public static void main(String[] args) {
            Fan fan1 = new Fan(3, true, 10.0, "yellow");
            Fan fan2 = new Fan(2, false, 5.0, "blue");
            System.out.println("speed1 is" + "  " +fan1.fanSpeed() + ",  " + fan1.IsFanon() + ", " + "the radius is" +fan1.getRadius() + fan1.getColor());
            System.out.println("speed2 is" + "  " + fan2.fanSpeed() + ",  " + fan2.IsFanon() + ", " + "the radius is" + fan2.getRadius() + fan2.getColor());
    }

    Peter__Lawrey wrote:
    I would not suggest using a variable like "onoff". What would true mean, is it on or off or onoff (alternating)? e.g. an on-off relationship is one which is not clearly on or off for long.
    You could just use an IDE to generate the constructor which would be simpler, however if there is no good reason to have two names for parameters and fields I would make them the same.I was wondering what a "speen" is.

  • Need help for BPM Process Task - Looping

    Hi Folks,
        I need some info regarding Task Looping in a BPM Process.
    Is there any code sample which mentions how to perform task looping and setting the context appropriately.
    Thanks,
    Brian.

    Hi Brian,
    Please find the below link for Multiple Looping
    http://help.sap.com/saphelp_nwce72/helpdata/en/3d/786ec2dd1243c28aeffa4c1c70df25/content.htm
    Regards
    Srikanth

  • Need help for creating sharepoint sites for both internet and intranet users

    We would like to know what is the best approach to create SharePoint sites for our customers(internet users) and internal employees(intranet users) on the same SharePoint server. Here is the scenario:
    1) A customer posts a document from internet.
    2) This triggers a approval workflow that can only be accessed and executed in the intranet environment. This approval process requires approval's possible modifications to the customer's document.
    3) We would like the customer not to able to check the approval state and the modified document until the document is fully approved and finalized.
    We are pondering if we need to create two sites, one site for customer and the other site is for internal approvers. Or one site is possible. It also looks like we need to somehow copy customer's original document to intranet site and triggers the workflow.
    Any design ideas are helpful. Thank you advance!

    Hi Jason,
    Though it is perfectly possible to have both intranet and internet on the server, it is not a recommended practice. Having both on the same server would have multiple problems, instead me detailing it out, here is a forum thread on which Trevor had given
    enough reasons -
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/9b550c33-6f5f-4cd9-8762-8ff389b747d9/sharepoint-2013-one-farm-to-host-intranet-extranet-internet?forum=sharepointadmin
    If you have valid reason to go with single server, then you can also explore email enabled lists as one option and another one would be using custom sharepoint designer workflow.
    you can also try using event receivers to send documents to intranet site from internet site, process everything and update the document in the internet site.
    Hope this helps!
    Ram - SharePoint Architect
    Blog - SharePointDeveloper.in
    Please vote or mark your question answered, if the reply helps you

  • Hello, is Fireworks right for creating a simple interactive game with buttons and small animations?

    Hello,
    I could really use some advice with a new project I am undertaking,
    I am looking to design a step-by-step game where users will be required to click on my artwork at each stage to get the next one. I would like different animated consequences to occur according to which button option is chosen at each stage. Eventually I would like for it to be a website that anybody can enter. I was wondering which programme would be ideal to use, I have access to Adobe Flash, Fireworks and Dreamweaver, but currently I only have a very basic grasp of them. This would be a long-term project I will be working on, so I am prepared to learn the appropriate programme, but if you could help me with which one that would be and any tips, I would be really grateful.
    Thanks very much,
    Hugo

    Here I mentioned that you should use a graphics editor such as "Firefox" when I meant to say Fireworks.  Fireworks is NOT an interactivity program even though it might be able to do simple rollover buttons.  Please use Flash for that.  It will provide greater control for you as you will begin to see once you invest in a Flash book.  And in Flash a game is not really simple if it is interactive.  The part that makes it interactive is ActionScript and that is where you should focus your energies.  There are even books dedicated to teaching game programming in Flash.
    Hope this helps,
    markerline

  • A little help for creating a procedure

    Hi,
    I'm new to oracle so i would really appreciate your help. Here is the scenario: i have several table in a database, in one table, let's call it table_a i have some values like: assignment, employee_id, account and so on. In another table, table_b i also have some data the is found in table_a like: employee_id, assignmnet, employee_name... and so on. I must create a procedure to check in table_a by value assignment(pk) and find what assignments are not in table_b and then insert these values in table_b, table_c.... . How do i create the comparison part?

    Hi,
    If It would have to insert only in table_b, then you can go for MERGE, that will be fine instead of procedure.
    Other options would be
    INSERT ALL
    INTO table_b VALUES (<required columns>)
    INTO table_c VALUES (<required columns>)
    SELECT <the columns>
    FROM table_a
    where assignmnet_id not in (select assignmnet From table_b);
    - Pavan Kumar N

  • Help for creating a GREP

    As part of my job i create newspapers, i receive articles with footnotes marked this way: Example(2,4,14) / Example2(5).
    I want to create a GREP that change the numbers and commas inside the brackets (only brackets with numbers) to small footnotes, and if possible, delete the brackets.
    From this Example(2,4) to this Example2,4.
    Here is what i come up with: \([/d,])*
    but it dosent work right, can you help please?
    Second, the articles are in hebrew and english, i want a way to change the font style only for english, how can i do it?
    Regards,
    Avi.

    For Example(2,4,14)
    try:
    Find what: \((\d+,\d+,?\d+)\)
    Change to: $1
    For Example (5)
    Find what: \((\d)\)
    Change to: $1

Maybe you are looking for