Limiting no. of records that can be entered in a block

I'm trying to prevent users from entering more than 3 number of records within a block.
Since I have to do this during the CREATE-RECORD process, I thought my logic would be within WHEN-CREATE-RECORD. Unfortuantely, WHEN-CREATE-RECORD seems restrictive (no good for navigating to last record to see if it's greater than 3). Ideally, I want to use :SYSTEM.CURSOR_RECORD, but it's not useful in WHEN-CREATE-RECORD since the new record only equals the current record AFTER WHEN-CREATE-RECORD.
Any suggestions?
CHL3

Hey Ikon,
Thanks for the reply!
Actually, I was logging on to leave a message that I was going to try something totaly different ... and hence short circuit this topic... when I saw your message.
I had just previously concluded and implemented just using POST-BLOCK, navigating to LAST_RECORD and if it's >3, display error message and RAISE Form_Trigger_Failure. In short, "if I can't stop them from taking the cookie out of the cookie jar, prevent them from eating it" :)
While it's not as elegant as immediately stopping the user whenever they attempt to insert a record (via KEY-CREREC at any record or KEY-DOWN from last record)into a block that takes the total count of records in the block beyond 3(my original intent), it does comply with my functional specification and gets me moving again after loosing so many hours on this.
Oddly, enough keeping track of a "total" variable got suprisingly messy when WHEN-CREATE-RECORD, POST-QUERY, KEY-DELREC, and a seemingly untrapable "Clear-Record" where used in various scenerios. It would be great if a "SYSTEM.TOTAL_RECORDS_IN_BLOCK" variable come to life one day.
Anyway, thanks to you & all who took the time to help.
Cheers
CHL3

Similar Messages

  • Commands that can be entered in the 'Command Field'

    Hello All,
    Does anyone know all commands that can be entered in the 'Command Field'.
    I am interested in the commands that start with &. For example &sapedit, &vexcel, &vgrid; etc. (OR commands such as PRFB; etc.)
    Just curious, where all these commands are stored?
    Thanks
    Naved

    Hi Nablan,
    I tried your suggestion. I noticed that it lists some commands but not all.
    Foe example, if I am in CMOD tcode; I clicked on GUI Status but nowhere I saw Command 'PRFB'.
    According to a post in SDN, in CMOD tcode; by entering PRFB in the command field a list of all field exits are displayed.
    Similary, in SE16n; there are field commands like &sapedit, &vexcel and &vgrid...
    Please shed light on this,
    Thanks

  • Max no of records that can be dispalyed using ALV GRID CONTROLS

    Hi ,
    Can any one please tell me the maximum no of records that are allowed to be displayed using the ALV grid controls.
    As I am getting dump for more records and I need to control the report based on the max no of records that can be actually diplayed using contols.
    Thanks,
    Kavya.

    Dear Kavya.
    If you are getting Dump because you have too many records it means that there is something wrong with the program design.
    ALV is not meant to display more than few thousands of records.
    There is no point is displaying more than few thousands because it will over-flow the users and it will do no good for them.
    If the problem is with the Internal-tables that you're using to manipulate the data, you can think of using an intermidiate DB table that will hold summarized data of the DB data and can be filled via a periodic job. This have the benfit of speeding up the ALV program too.
    thanx
    ayal.

  • [svn] 4074: FxNumericStepper now has a maxChars property, and it now restricts the characters that can be entered into its FxTextInput .

    Revision: 4074
    Author: [email protected]
    Date: 2008-11-11 14:10:34 -0800 (Tue, 11 Nov 2008)
    Log Message:
    FxNumericStepper now has a maxChars property, and it now restricts the characters that can be entered into its FxTextInput.
    Fixed a problem with 'restrict' in TextView. If there are no characters left to insert after restriction, do nothing; don't insert an empty string and thereby delete the insertion.
    QE Notes: None
    Doc Notes: None
    Bugs: None
    Reviewer: Glenn
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/TextView.as

    When I installed iTunes 7.3 I noticed some artwork
    was gone. I compared the actual file sizes to the
    backup and there was no change at all. I was able to
    get the covers again from the iTS, but as I really
    want to have the artwork inside the files, I tried to
    paste it into the tags (like I used to do since 7.0).
    That doesn't work, after pasting it, the artwork is
    gone again completely, but the files are now 4mb
    bigger. The artwork of these files (about 300 in
    total, and I cant figure out why some and some not)
    can not be browsed, but the rest of the tags is fine
    and the songs play just normal.
    I trashed one of the affected albums and re-added it
    from the backup. Now the tags in iTunes were gone
    completely! I re-entered the correct tags and let
    iTunes get the artwork from the iTS. The artwork
    shows, but not for all files of the album. So again I
    tried to paste it into the tags of all songs, and
    voila: all artwork of this album is gone again and
    the files are 4mb bigger.
    Same behaviour in iTunes 7.3.1.
    I'm happy I have a good backup of my music, and I
    think the artwork is still inside the files, but
    iTunes 7.3 and 7.3.1 mess it up. From what I see only
    non-iTS files are affected, but only iTS artwork is
    lost. NOT nice.
    Any ideas? I'm no really a friend of downgrading...
    After some more time consuming tinkering I still have no luck in giving certain files their artwork back. I better go back to 7.2 tomorrow... Apple keep that lousy 7.3.1 BS yourself

  • [svn] 4072: FxNumericStepper now has a maxChars property, and it now restricts the characters that can be entered into its FxTextInput .

    Revision: 4072
    Author: [email protected]
    Date: 2008-11-11 14:08:39 -0800 (Tue, 11 Nov 2008)
    Log Message:
    FxNumericStepper now has a maxChars property, and it now restricts the characters that can be entered into its FxTextInput.
    QE Notes: None
    Doc Notes: None
    Bugs: SDK-16293, SDK-16627
    Reviewer: Glenn
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-16293
    http://bugs.adobe.com/jira/browse/SDK-16627
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxNumericStepper.as
    Property Changed:
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxNumericStepper.as

    When I installed iTunes 7.3 I noticed some artwork
    was gone. I compared the actual file sizes to the
    backup and there was no change at all. I was able to
    get the covers again from the iTS, but as I really
    want to have the artwork inside the files, I tried to
    paste it into the tags (like I used to do since 7.0).
    That doesn't work, after pasting it, the artwork is
    gone again completely, but the files are now 4mb
    bigger. The artwork of these files (about 300 in
    total, and I cant figure out why some and some not)
    can not be browsed, but the rest of the tags is fine
    and the songs play just normal.
    I trashed one of the affected albums and re-added it
    from the backup. Now the tags in iTunes were gone
    completely! I re-entered the correct tags and let
    iTunes get the artwork from the iTS. The artwork
    shows, but not for all files of the album. So again I
    tried to paste it into the tags of all songs, and
    voila: all artwork of this album is gone again and
    the files are 4mb bigger.
    Same behaviour in iTunes 7.3.1.
    I'm happy I have a good backup of my music, and I
    think the artwork is still inside the files, but
    iTunes 7.3 and 7.3.1 mess it up. From what I see only
    non-iTS files are affected, but only iTS artwork is
    lost. NOT nice.
    Any ideas? I'm no really a friend of downgrading...
    After some more time consuming tinkering I still have no luck in giving certain files their artwork back. I better go back to 7.2 tomorrow... Apple keep that lousy 7.3.1 BS yourself

  • Maximum number of values that can be entered in an "in list" filter

    When prompted for a values, or when filtering on existing values, is there a maximum number of values you have can have in the filter?  Thanks.

    Likely no. However, these fields end up being part of the SQL SELECT statement that is sent to the data manager/DBMS. There is a size limit of the SQL statement that can be sent (16Kb or some such). If SQL statement exceeds that, you get a short dump.

  • Is there any limitation on field size that can be defined in Idoc segments

    Hi all,
    I have extended a standard Idoc type and in my extended segment I have defined four fields GUID (char32), info1 (char255) , info2(char255) , info3(char255).
    This is a total of 797 bits which is well within EDIDD-sdata(char1000). But I am not able to put more than 132 characters in either info1, 2 or 3.
    Is there any limitation on this ?
    Regards
    Priyanka

    Hi Priyanka,
    I personally feel this error is not due to limitations but it might be due to the IDOC extension you had made and hence the default settings.
    Could you please try doing this -
    Note: Users require an authorization in order to carry out the procedure.
    The following correction is carried out with a fictitious attribute: 'info'.
    a) Call Transaction SE11.
    b) Enter the attribute name into the 'Domain' field, followed by '' (wildcard). For example: info
    c) The system displays the following hit list:
    info1
    info2
    info3
    d) Select the first domain and choose 'Change'
    e) Correct the number of characters. Forexample:
    Numberof characters   255
    f) Activate this domain
    Assign points in case this helps.
    Rgds
    Sum

  • How do I make a simple voice recording that can be attached to an email?

    I want to record a short message, mp3 or any format is fine, and attach it to an email. I've tried opening Garage Band to do it, and downloaded Audacity, but I have no idea how to use either one. I have a microphone that plugs into the audio port, and know how to switch to "use audio port for sound input" in preferences. But I want a simple command that says "start recording" instead of the complicated control panels I see in the two programs I've looked at.

    dianefromeliot wrote:
    Thanks for the software suggestion - http://mac.softpedia.com/get/Audio/Audio-Recorder.shtml - it looks good. Why do you use it instead of Garage Band?
    Had it before GB existed; I use other audio software for other tasks, but this one is probably the most easy to use app (of any kind) I've ever used. Click, speak, click, click. Done, with file sitting on my desktop.

  • How can I use QuickTime to make a screen recording that has both video and audio?

    How do use QuickTime to make a screen recording that can be saved with both video and audio together?

    do you know of any software that would record a QT movie playing on my Mac screen with both audio and video?
    I have used Ambrosia's Snapz Pro X ($69) for years, but they are currently upgrading their Kext (Kernel Extension) software for changes inroduced by the Lion release so it might not be your best bet at this time. I also use ScreenFlow but it is a combination capture and editing utility which runs $99 and may include more features than you may need or will use. Have also tried Screenflick ($29) which, to some extent, appears to have a functionality somewhere between that of Snapz Pro X and ScreenFlow. It is a bit more complicated to set up but for the price might be the best bargin at this point. All three can capture the entire screen or a portion thereof, with or without mic/line and/or system audio. (Or at least they all will as soon as Ambrosia updates its Kext routine.)
    Here is a URL link posted by QTKirk three days ago to an article that recaps of a number of currently available third-party screen capture apps from around the world several of which may interest you: http://mac.appstorm.net/roundups/utilities-roundups/10-screen-recording-tools-fo r-mac/

  • Is there any limit on the amount of data that can be read using DB Adpater?

    We are trying to read large amount of data using "Select" of DB Adapter. I wanted to know if there is any limit to amount of records that can be returned in 1 message?
    We have tried for 30K so far and no issues - but any clues on the threshold?

    Hmmm...I dont think there is a restriction for reading data from tables.
    I have fetched more than 65k data and it ran successfully.
    Cheers,
    Abhi...

  • How can I get the number of distinct records that each field of a DB table has?

    Hi everyone,
    I would like to know how to get he number of distinct records that each field of a DB table has. When tracing a SQL statement either in ST12 or ST05, in the plan execution, if the sentence made useage of an index, then I can click in the index name and see this kind of information (no. of distinct values for each field of that index).
    Can I do something like this but with the whole fields of a table?
    What I have found until now is in Tx ST10; I search for whatever kind of table statistics and then use the function of "Analyze table" (which takes me to Tx DB05). In here, I can enter a table and up to 5 fields in order to get the information that I want.
    Is there any other way to do this?
    Regards,
    David Reza

    Hi David,
    You can export the same to excel and sort as per requirement.
    Sorry is that what you are looking for ?
    Regards,
    Deepanshu Sharma

  • I tried using the Voice Memos iPhone app and ended up with a red banner on top of the screen that flashes "recording 00.00" but I can't locate what I thought I was recording.  can you help me?

    I tried using the Voice Memos iPhone app and ended up with a red banner on top of the screen that flashes "recording 00.00" but I can't locate what I thought I was recording.  can you help me?
    jacknil

    I found an answer to this on another page (I was having the same problem) This worked for me:
    Double-click the Home button.
    Swipe left or right until you have located the app you wish to close.
    Swipe the app up to close it.
    more here: https://discussions.apple.com/thread/5596831

  • How can I enter data in an input schedule on a member in the EPM Add-On that is not a base member?

    Hello, all,
    how can I enter data in an input schedule on a member in the EPM Add-On that is not a base member?
    E.g. I want to implement a top-down-planning scenario and I have the following hierarchy:
    Europe
         Germany
         France
         UK
         Spain
         Italy
    How can I enter a value on Europe in an input schedule in order to allocate this value afterwards?
    Thanks in advance and best regards
    Gerd

    Gerd,
    It should be something like below -
    EuropeInput
    Europe
         Germany
         France
         UK
         Spain
         Italy
    EuropeInput shall be kept out of hierarchy and should be a base level member. Users will enter the numbers in this member. In your script logic, you will make use of this member to allocate the data in Bas(Europe) i.e. Germany, France, etc.
    Effectively, after allocation the same data will be rolled up to Europe.
    Many top-down planning would use such work-around as BPC doesn't allow writing to parent node.
    Regards,
    Ashish

  • I am looking for an app for my iPad that can be used to record field work information in a specified format, with the ability to draw diagrams if necessary, and include photos taken from the iPad.

    Any suggestions for apps that could do this?
    It will be used to collect field notes for daily use on a biological field study site. It would be optimal if the information could be collected in a manner that can be moved easily into excel as well. Most of the data will be qualitative descriptions, and some of it quantitative numeric (time stamps etc). We want to make it extremely easy for the user to enter information, such that we will set up a template and the technicians can fill out the individual fields in that template with minimal software knowledge required.
    Hope the community can recommend a few apps to test out.
    Thanks!

    I looked at Bento and at first glance I think it would do everything I want it to do, then I saw a review or something from a customer that indicated the information in Bento could not be exported (say to send out a mailing).  I may want a program that can do that as well, is there one out there? If not it does look like Bento will work.  When you save a picture to a customer in Bento can you open it up full size?

  • I want to enter ICE numbers that can be seen from the lock screen of my iPhone. Any solutions?

    ICE numbers (In Case of Emergency) help first responders make important phone calls on your behalf in the event of an emergency. Typically these are stored as ICE numbers in your contacts, however, your contacts can't be accessed from a lock screen if you have set a password to get into your phone. Any wonderful solutions? I have developed one solution that works: I entered my ICE information into "Notes", and then took a screen shot of the information. Then I mailed it to myself and saved it in my camera roll. Once I selected the "photo" of my ICE information, I saved this as my lock screen photo. Now when anyone turns on my phone, they see my ICE numbers and they do not have access to any other parts of my phone.

    Having access to contact numbers stored in a phone without knowing the passcode sort of nullifies part of the reason for the passcode protection in the first place.  However, I do support giving users more freedom, os long as they understand the possible negative consequences.

Maybe you are looking for

  • Javascript help - Hide/Show a page item

    Environment: APEX 3.1.00.09 running on AIX 5.3 Sample application on apex.oracle.com: Workspace: GALWAY UserID: gwicke Password: gwicke To see where my issues are: 1- Start on page 3 2- In the Agency drop down select 'J & B Marketing' 3- In the Contr

  • Mouse Scrolls up on software screens, but will not scroll down

    My wired apple mouse will scroll back up a web page or other software screen but will not scroll down using the finger tip scroller ball - any ideas on how to make it work properly again?

  • Portrait/Landscape Question

    Using Reports 6i I have a report that has it's orientation set to default in the Header, Main and Trailer section in the Layout Editor. However, the width is set to 11 and the height to 8.5 in the same properties. When the report is run through the p

  • Forte & web.xml problem

    Hi there, I hope what I have is a simple problem to fix. I'm running Forte For Java 4 and developing a web application. When I run a servlet (although it works fine) I am getting a run-time error: ContextConfig[] Configuration error in application we

  • Help Menu Implementatiohn

    Hi All, please help me how to implement Help menu in a project Rgrds, Narayan