PCH database program loop?

Hi there,
Have anybody seen before a GET OBJEC looping indefinetelly? We have a PCH program to handle some training management.
The EV PATH is L-D-E-E.
We always start the execution with an L object. If the L object is not on one of the highest levels, the program works and ends fine, but from a certain level up, the GET OBJEC start looping and the program never stops.
Once the last E object of the catalog has been reached, for some reason, the next GET OBJEC execution starts again from the original L object.
Any idea why?
The obviuos work around is to flag the first L object and exit the program when reached for the second time, but I was looking for an ellegant solution
Other question (hope stupid one): How can you exit a GET OBJECT loop and continue processing at the END-OF-SELECTION command?
Thanks in advance
Message was edited by:
        Miguel Guardo

I think slowly I understand your point.
You get the same ID more than once, correct?
If these objects are more than once in the evaluation period in the structure, this is correct.
E.g. the department Sales migh occur twice in an Org.structure if it  was reorganized during the year and you start from the BOard with evaluation period complete year. It will appear under Orgunit Europe and Global with different dates (only as an example)
That's also something you can check using RHSTRU00.
Normally this vanishes if you use a key date as evaluation pariod.
Maybe this clarifies it?
If you only want each object ID only once, collect them at GET OBJEC. and do all the rest of the processing in END-OF-SELECTION. after throwing away the duplicates.
Regards,
Michael

Similar Messages

  • How to generate a single output pulse on 64 different digital out lines (PCI-6513) each with a different start time relative to an event in a main program loop.

    Long question.
    I am running a main program loop of 60 msec. At one point in the loop I create a 64 element array of delay times. At that point I need to begin outputting a predefined single pulse to each of the 64 lines on my PCI-6513. Each line outputs the pulse with a starting delay set by the "delay time" in the array.
    Each delay time is such that the pulses will be done before the next loop commands another one.
    Thank You
    Roger

    Hi,
    You have multiple ways of doing this, since there is no timing engine on the 6513 your code is going to control the output of the card, which is what we called “software timed”.  If you take a look at the example called: “Write Dig Chan.vi”, you can individually control each line.
    So to change the state of the line; since you have an array of delays time you can aid yourself with “stacked sequence structure” where in each frame you control the time it takes to go to the next frame and the data been written to the card.
    Another option is using a state machine where each state write the data you want and you can also control the time between states. For further references take a look at this article Application Design Patterns: State Machines.
    I hope it helps
    Jaime Hoffiz
    National Instruments
    Product Expert
    Digital Multimeters and LCR Meters

  • Error with calendar database: Program version 4.2 doesn't match enviroment

    hi!
    im instaling jes in a windows 2000 machine and i get this error when trying to start calendar:
    [21/Aug/2006:16:35:58 +0200] jes csadmind[1752]: General Information: Log created (1156170958)
    [21/Aug/2006:16:35:58 +0200] jes csadmind[1752]: General Notice: Sun Java System Calendar Server 6 2005Q4 (built Dec 27 2005) csadmind starting up
    [21/Aug/2006:16:35:58 +0200] jes csadmind[1752]: General Notice: csadmind attempting to open Counters Database
    [21/Aug/2006:16:35:58 +0200] jes csadmind[1752]: General Notice: csadmind successfully opened the Counters Database
    [21/Aug/2006:16:35:58 +0200] jes csadmind[1752]: General Notice: HTTP Module is refreshing
    [21/Aug/2006:16:35:58 +0200] jes csadmind[1752]: General Notice: csadmind is refreshing
    [21/Aug/2006:16:35:58 +0200] jes csadmind[1752]: General Notice: csadmind is refreshed
    [21/Aug/2006:16:35:58 +0200] jes csadmind[1752]: General Notice: HTTP Module has refreshed
    [21/Aug/2006:16:35:58 +0200] jes csadmind[1752]: General Notice: csadmind argc=1 argv[0]=C:\Sun\CalendarServer\bin\csadmind.exe
    [21/Aug/2006:16:35:58 +0200] jes csadmind[1752]: General Notice: csadmind attempting to open Calendar Database
    [21/Aug/2006:16:35:58 +0200] jes csadmind[1752]: General Error: caldb: Error with calendar database: Program version 4.2 doesn't match environment version
    [21/Aug/2006:16:35:58 +0200] jes csadmind[1752]: General Error: caldb: caldb_InitializeEnvironment: dbenv->open returned 22
    [21/Aug/2006:16:35:58 +0200] jes csadmind[1752]: General Critical: Fatal error 70: Cannot open calendar database
    anyone have faced same problem?
    thanks in advance

    Hi Vyacheslav,
    its wierd that when I run db_stat on windows, for my environment, it works.... I installed Berkeley DB XML 2.4.16 from a self extracting package.
    When I tried running from my Linux box, the error message appear... The native library on my Linux box was built from the zip package dbxml-2.4.16.zip
    Arent they the same?
    Thanks!

  • What   the   Enviroment  required  for java databases programs?

    Hi guys
    What the enviroment required for java databases programs?
    If I have oracle of version 9i and java 1.4.1 platform
    do I need Jdeveloper platform ?

    What the enviroment required for java databases programs?What do you mean by "environment"?
    f I have oracle of version 9i and java 1.4.1 platformYou just need to download Oracle's 9i JDBC driver (ojdbc14.jar) and put that in your CLASSPATH. Then write JDBC code to connect to Oracle and issue SQL commands.
    do I need Jdeveloper platform ?No, JDeveloper is an IDE. Not required.
    Why Java 1.4.1? We're up to Java 6 now. You're two major versions of the JDK behind.
    %

  • What is the best IDE for database programming in java?

    im just new to java, i have experience in powerbuilder and visual basic. Im looking for an IDE for JAVA Database Programming that have same ease of use of the GUI builder of visual basic and power of the Datawindow in Powerbuilder.
    What is the best IDE for database programming in java?

    hey sabre why not just help me? instead of posting
    annoying replies. You want me to browse all the post
    two weeks ago to find what im looking for. stoopsMost regulars to this forum find X-posting annoying. Since you are lazy and want me to search the posts of the last couple of week for you, I find you very annoying.

  • What database program will convert my Appleworks DB for use on Intel platform?

    What database program will convert my Appleworks DB for use on Intel platform?

    Yes, you just need the appleworks folder from applications.
    However, whether or not this is strictly legal is another question entirely, I'm afraid, unless you are planning to remove appleworks from your computer. You could just buy her her own copy of Appleworks, too.

  • Database programs

    Hey everyone
    I'm trying to find the best database program that will work on a mac, pc and a pda, any ideas?
    Thanks
    Bevan

    I don't think there's anything that meets that spec. You may find one that works on Windows and a PDA, but I don't believe there's any that works on the Mac and a PDA - at least not the same product.
    There could be some specialty products. For example the Splash series for the Palm PDA. They have SplashShopper which works on the PDA and also has a master app for the Mac. I believe they also have a PC version. However, I don't know if this is what you have in mind.
    Versiontracker.com has a Palm OS section you can search.

  • Need a Database Program

    I am looking for a database program like MS Access. I see that even the Office 2008 for Mac does not over Access. What else is out there? I would really like to have some compatibility to go between platforms, but will take what I can get.
    Thanks in advance,

    The FileMaker people have also now released a lighter weight DB program called Bento. If you need Access then you can use the database component of NeoOffice Aqua which is quite similar to Access. NeoOffice is a native implementation of Sun's Star Office and is much like Microsoft's Office for Windows (pre-2007.) NeoOffice is Open Source and free.
    Another "free" relational database is MySQL or PostgreSQL. Both are available in free and commercial versions depending upon extensions. Both are originally Open Source. You will find them at VersionTracker or MacUpdate.
    And, there's Panorama which has been around on the Mac for many years. It's a commercial product. I do not believe they've yet come out with a universal binary version.
    And, last is Valentina also a commercial product.

  • Macro for PCH database

    Hello,
    with the following macros I can restrict the results on the database PCH.
    TABLES: objec.
    START-OF-SELECTION.
    RH-SET-INDEX-INFTY '1007'.
    RH-CONDITION-LINE VACAN EQ 'X' SPACE.
    RH-SET-INDEX-INFTY-CONDITION.
    GET objec.
    Is it possible to repeat the macro RH-CONDITION-LINE? I tried to do it that way and only the last line condition seems to be executed.
    Is there a documentation regarding the macros for the database PCH? Google didn't find a thing about it.
    Thanks,
    Aline

    Hi
    The system by default gets populated in the date field. All other macros which are provided by SAP, will behave in the same way.
    Incase u need to display date as per your requirement, you may refer to existing SAP Macros, which u can get from any of the standard programs.
    Regards
    rams

  • Trying to create a simple database program.....help, please

    I am trying to create a database and I am having trouble gettig my code correct..........I think I am on the right track but I haven't a clue from this point, can anyone point me in the right direction as far as getting my program to have a master file and a transaction file and be able to manipulate the data........records.
    import java.awt.*;
    import java.applet.*;
    public class recordsApplet
    // Declare variables
    String lstName;
    String frstName;
    Int socSec;
    String street;
    String city;
    String state;
    Int zip;
    float rate;
    Int numofdep;
    //The buttons =
    Button Submit = new Button("Add");
    Button Change = new Button("Change");
    Button Delete = new Button("Delete");
    submit.addActionListner(this);
    Change.addActionListener(this);
    Delete.addActionListener(this);
    //get input from users
    System.out.println("Last Name:")
    lstName = dataIn.readline();
    System.out.println("First Name:")
    frstName = dataIn.readline();
    System.out.println("Social Security #:")
    socSec = dataIn.readline();
    System.out.println("Last Name:")
    street = dataIn.readline();
    System.out.println("Last Name:")
    city = dataIn.readline();
    System.out.println("Last Name:")
    state = dataIn.readline();
    System.out.println("Last Name:")
    zip = dataIn.readline();
    System.out.println("Rate of Pay:")
    rate = dataIn.readline();
    System.out.println("Number of Dependants:")
    numofdep = dataIn.readline();
    public void main(String[] args)
    //store the information in a text file
    try
    output = DataOutputStream(new FileOutputStream("mocdb.txt"));
    catch(IOException er)
    system.exit(0)
    //Print fields to text file
    String arg = e.getActionCommand();
    String code;
    if (arg == "Submit")
    code = "A";
    elseif
    code = "C";
    else
    code = "D";
    try
    output.writeUTF(code);
    output.writeUTF(lstName.getText());
    output.writeUTF(frstName.getText());
    output.writeUTF(socSec.getText());
    output.writeUTF(street.getText());
    output.writeUTF(city.getText());
    output.writeUTF(state.getText());
    output.writeUTF(zip.getText());
    output.writeUTF(rate.getText());
    output.writeUTF(numofdep.getText());
    catch(IOException c)
    System.exit(1);
    //Retrieve record from file
    System.out.println("Last Name:")
    lstName = dataIn.readline();
    System.out.println("First Name:")
    frstName = dataIn.readline();
    try
    record = new DataInputStream(new FileInputStream("mocdb.txt");
    catch(IOException c)
    system.exit(2)
    //Check first and last name and get file
    //Change data in file
    //Delete the data in file

    Sorry, but your question has nothing to do with JavaHelp. Please use another forum.
    /Mauritz

  • How can I set up a database program for inputing baseball team statistics that is compatible with numbers?

    I have been asked to be a statistician bar and athletic team. We are playing Dartball, a game of darts that is based on baseball.  The previous status station used Apple works which included a database manager that was compatible with numbers. I have checked with the Apple geniuses online for my MacBook Pro and they did not have an answer to my problem. Is there a program that can be used on my MacBook Pro that will keep up with statistics for eight baseball team?

    Im all for the dumb questions, because its probably a dumb mistake I did.
    I have checked that both sus ped and exp. ped are fully plugged in.
    Neither pedals show up in the Midi meter in the transport.
    I dont know how to set a patch for the keyboard, but if both pedals work in other programs (i.e. Reason), wouldn't it not be an issue with a Logic configuration and not in the keyboard's setting? (Unless I have a separate Logic setting that loads automatically when it detects Logic is booted. I dont know how that would work though.)
    Thank you for your prompt help, though. Any other ideas?

  • Selection screen in Logical Database programming

    In my Executable program,i have used 'GET PERNR' .
    but i don't need the standrd selection screen as such.I want to modify the std selection screen . Instead of allowing user to select the PERNR's , i want to set their PERNR's by default .
    Advance Thanks .
    J

    You have write this in your INITIALIZATION and AT SELECTION-SCREEN OUTPUT events.
    In your INITIALIZATION event, default the PERNR to the PERNR of the employee who is running it.
    In the AT SELECTION-SCREEN OUTPUT, add the code to make it display only as follows.
    LOOP AT SCREEN.
      IF SCREEN-NAME = PERNR.
        SCREEN-INPUT =0.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
    Srinivas

  • IPhoto Database Update loop

    After installing iLife11 my Database is in an update loop.
    If I start iPhoto it tells me that I have to update my database in order to work with iPhoto.
    It takes serveral minutes to updaten. After the update iPhoto freezes with the Apple loding circle.
    If I choose faces or other it shows my the resules.
    While importing new pic from my HDD iPhoto freezes.
    After restart iPhoto wants to update the database again.
    Even if I just work with iPhoto (without import) and do a restart of iPhoto it comes again with the Update of the Database.
    Does somebody know how to solve the issue?

    Welcome to Apple Discussions. This appears to be a problem for many users and there is a very detailed discussion on this issue here: http://discussions.apple.com/thread.jspa?threadID=2620921&tstart=0
    I had the same issue and after several hours of trial and error I found that several "Keepsake" items in my iPhoto library were not supported in iPhoto '11.
    If you have any keepsake items in your left pane, I suggest you open the original database in iPhoto '09 (you did do a full backup before you tried to upgrade didn't you?), delete and Keepsake items, and then restart iPhoto '11. The database should convert properly at that point.
    Hope this helps.
    David

  • Logical Database-GET-LOOP.

    Hi,
    I am debugging a standard code where PYF logical database is used.
    START-OF-SELECTION.
    GET REGUH.
      CHECK SEL_ZAWE.
      CHECK SEL_UZAW.
      CHECK SEL_HBKI.
      CHECK SEL_HKTI.
      CHECK SEL_WAER.
      CHECK SEL_VBLN.
      PERFORM PRUEFUNG.
      PERFORM EXTRACT_VORBEREITUNG.
      PERFORM SORTBANK.
    GET REGUP.
      PERFORM SORTBOLETO.
      PERFORM EXTRACT.
    END-OF-SELECTION.
    SORT BY
        REGUH-ZBUKR                      
        REGUH-UBNKS                      
        REGUH-UBNKY                      
        REGUH-UBNKL                      
        REGUH-UBKNT                       
        REGUD-XEINZ                       
        REGUH-ZBNKS   
        REGUH-ZBNKY
        REGUH-ZBNKL
        REGUH-ZBNKN
        REGUH-LIFNR
        REGUH-KUNNR
        REGUH-EMPFG
        REGUH-VBLNR
        REGUP-BELNR.
    LOOP.
    AT END OF REGUH-VBLNR.
    ENDAT.
    ENDLOOP.
    Can anyone here please let me know
    1.whether it is looping on REGUH or REGUP.Is it on REGUH ?
    2.How to see the records in debugging for this loop.
    I mean as in internal table where we will get to see all the records that it is looping (loop at itab..endloop),how to see
    all the records that are considered for this loop in debugging.
    3.Does it loops both REGUH and REGUP ?
    Thanks,
    K.Kiran.

    INSERT
      reguh
      regup
      regud-gjahr
      regud-xabwz
    INTO daten.
    this create a structure (field group) for DATEN with every fields of reguh and regup, and two fields of regud.
    EXTRACT daten.
    move current values of the above mentionned structures to the group field and append it into the extract.
    LOOP.
    ENDLOOP.
    will read the extract, here DATEN, so in each loop the whole data of the above mentionned structures will be available.
    There are also SORT and AT options similar to those of internal tables, and a AT field_group when multiple structures were defined by INSERT statements.
    Read some documentation at [Extracts|http://help.sap.com/abapdocu_70/en/ABENABAP_EXTRACTS_EXTENDED.htm]
    Regards,
    Raymond

  • Postgresql database programming... little help? [SOLVED]

    For an exam I need to program a forum using using Postgresql as database system.
    I made all the tables using the database's superuser, now I'd like to make the application who uses them.
    But I am not sure how keep security policy.
    If not moderator or administrator a user can only edit its messages, if I give the to application role the right of UPDATE the message table any user (skipping the application, but login as it) will be able of edit messages of everyone.
    My original idea was implementing all the interface using sql or psplsql functions that made all needed checks and grant to the application role the right of EXECUTE them.
    But I see that you can execute the function, but it can not do its work if the role does not have the right about INSERT or UPDATE the tables. But on the other hand I can't just say the application can do everything or anyone can mess up the forum...
    I need help solving this problem... Thanks
    Last edited by ezzetabi (2007-08-28 14:10:44)

    Well, I didn't ever use Postgresql, but I use MySQL from time to time, though I am not really experienced.
    Anyway, I think what you want to do, namely solving permission rights for an application on sql server level, is impossible and you have to perform the necessary steps on application level.
    If I understand correctly, you want three types of users: Administrators, Moderators and Users. This is a pretty simple setup and as long as you don't want to add other, customized defined groups, you can realize it very easily (though I think you will get help if you want a more advanced variant).
    First you have to save the permission of each user everywhere. This can be done in several ways:
    * You can add a additional column to your users table which holds the granted permission
    * You maintain an independent table which holds the permission defined at least as: user_id permission [...].
    * You create two tables, namely moderators and administrators, add the users you need there, and origin in everyone else being user.
    I'd recommend the first or the second variant, depending on how you've structured your database so far and how customizable you want to have your application.
    Then you can easily query the user's permission on each action (e.g. editing a post) and check (slightly simplified) weather the user is an administrator, or moderator of the section the post is in or is the user who has written the post itself. Then you permit the action, otherwise you return an error.
    I hope this helps to get a picture of how this is often be accomplished (at least by the board's I've stumbled over and how I accomplish permission levels in my scripts).
    Last edited by harlekin (2007-08-28 11:34:51)

Maybe you are looking for

  • How to get keynote presentation to play all day on apple tv via iPad

    Hello, I currently have an iPad (1st Gen iPad Mini) at my shop that I would like to use for playing a keynote presentation in my lobby throughout the day. My presentation plays on a loop about 5 or 6 times then keynote shuts down. Any ideas on what I

  • Using an external HD with MacBook Pro

    I just bought an xHD because I use a lot of memory. I have some questions that I hope you can help me answer: - The HD comes with an ON and OFF switch. Is it an absolute must to switch on and off as I turn the Mac on and off? - Is it a must to keep t

  • Encoding a Premiere project with WME

    I have an evolving project that I have been able to export audio and video separately (AVI and WAV) then to encode with Windows Media Encoder with good results quite a few times. Then, suddently - and although I have been able to export to DVD succes

  • Exporting/Sharing Custom XMP metadata schema not possible?

    I've written a Python script which automatically encodes Quicktime files which I've mastered out of Premiere Pro CC with embedded custom XMP metadata (created using "New Schema" in the Metadata Display panel). I'm using the embedded custom metadata t

  • Is there a default for text size

    Text size varies between 12pt and about 8pt - there does not seem tro be any logic that determines which. Size can be adjusted using CTL/+/- but you don't want to do this on every other page.