Control Block - Preventing creation of new record

hi,
i have a control block with two text fields. i do not want new record created for this block when the down key is pressed.
How do i do that ?

Re: data disappears when pressing down arrow key

Similar Messages

  • Restricting creation of new records using forms personalization

    Hi,
    I have a requirement for which I have to restrict he user from creating a record in the Supplier Master form if the suppliier type is 'Affiliate Supplier'.
    I have done the following setups
    Seq     10
    Description Restricting user from creating Affiliate records
    Level     Function
    Enabled Yes
    Condition:
    Trigger Event     WHEN-VALIDATE-RECORD
    Trigger object     VNDR
    Condition "${item.VNDR.VENDOR_TYPE_DISP_MIR.value} is NOT NULL
    and
    ${item.VNDR.VENDOR_TYPE_DISP_MIR.value} LIKE 'Affiliate%'
    Processing Mode BOTH
    Context     
    Level     User
    Value User Name
    Action Sequence     1
    Type          Message
    Action Description     Saving Affiliate record
    Language          ALL
    Message Type     Show
    Message Text     You Cannot Create Affiliate records Here
    Action Sequence     2
    Type          Builtin
    Action Description     Stop Proceesing
    Language          ALL
    Action Enabled     Yes
    Builtin Type     RAISE FORM_TRIGGER_FAILURE;
    Thi is working good on one instance but when I moved it to another instance
    when I query the form and try to navigate to the bank accounts tab of the form which is based on a differnt block i.e VNDR_USES block, this trigger fires there also and stops the processing.
    Any suggestions on this would be higly appriciated.
    Thanks in Advance.

    Is this oracle apps? There's other forums for that where you're more likely to get an answer.
    Here, perhaps?
    Personalization

  • Duplicate control label preventing creation of unit test using UTF

    Hello Everyone,
                       I was trying to create a unit test for a VI using the unit test framework (evaluation version) to try out this tool.  I have two questions regarding that.
    1. Several sub-VIs are called by this VI. I wanted to create a unit test for each of these sub-VIs so that I could test each of them separately. But UTF provided me with the option to create a unit test for the main VI alone. The main VI is huge and getting 100% code coverage is going to be a challenging task. Is there a way by which I can create unit tests for the individual sub-VIs?
    2. When I tried to create the unit test for the main VI, I got an error saying: Cannot create a test from this VI. Contains the following duplicate control labels. This is because the same indicators are being used in different cases within a case structure.
    Is there anyway to resolve this issue?
    Thanks

    If I understand what the problem is you have to controls or indicators that have the same name. To fix this you need to give them unique names. If they need to say the same thing on the user interface then you can use the caption and change the name on that so they both have the same name.
    Tim
    Johnson Controls
    Holland Michigan

  • Block creation of new Internal Order Type

    Hello,
       We have several internal Orders types and we want to block the creation of new IO. Is there any way through customizing to do that?
       I have considering to do it using an step in a validation but I think can be a better way.
    Thanks,

    Hi,
    Ravi is right, you can restrict through authorizations. To do that, you have to modify the role assigned to users that allow them to create internal orders of any type. Use the transaction SUIM, search the role by user or by transaction (KO01). Then, in the role, there is an entry that corresponds to Controlling (CO) -
    > CO-OPA: General authorization object for internal orders (K_ORDER) -
    >
    Order Type  (AUFART)   : Select for example RA01
    Internal order authorization  (AUTHPHASE) :
    Actions for CO-OM Authorizatio (CO_ACTION) :  0000  Master Data.
    Cost Element  (KSTAR) :    
    CO-OM Responsibility Area  (RESPAREA) : 
    Usually a BASIS do the modification of the role.
    Regards,
    David Z.

  • Moving to specific field in new record with mouse

    Hi,
    Is there any way of navigating directly to a field (by clicking on it with the mouse) on a new record in a block? The default behavior appears to be to focus on the first field(?)
    Thanks in advance,
    Nik

    The order in the object navigator is ok.
    You can check also these properties:
    keep cursor position, insert allowed and update allowed.
    If an item has insert allowes set to NO, then I think you could not move on it during creation of new record.
    Hope it helps you,
    Fabrizio
    If this answer is helpful or correct, please mark it. Thanks.

  • How to block IT Creation in PA30 ??

    Hi Everyone!!
    I would like to block the creation of an occurrence in Pa30. And authorise the creation only in a measure.
    Do you have any idea how can it be achieved?
    Any help would be greatly appreciated.
    Have a great day

    Hi Quentin,
    I assume that you've found the user-exit for PA30. Now the code you can place there is as follows.
    *****************Begin of code by Sam********
    DATA: GS_PERNR LIKE P9020-PERNR,
          GS_PERNR1 LIKE P9020-PERNR,
          GS_CNT TYPE I.
    To check Transaction Code.
    IF SY-TCODE = 'PA30' and INNNN-INFTY = '0000'.
      MOVE INNNN TO I0000.
    To check whether - Creation of new record.
      IF IPSYST-IOPER = 'INS'.
    To check for user-id. 
         IF SY-UNAME <> 'SAMUEL_D' AND SY-UNAME <> 'HRADMIN'.
            MESSAGE E000(ZH) WITH
            'You are not authorized to create a new record'.
         ENDIF.
      ENDIF.
    ENDIF.
    *********END OF CODE**********
    Put this code in the user exit for PAI of PA30. It'll work perfectly. In this case, you can also store the user-ids in a ZTABLE and check the same from it rather than hardcoding it in the program.
    Hope this helps. Kindly award points if this was helpful for u.
    Cheers,
    Sam.

  • When-new-record-instance

    Hi All !
    I have a form, where in
    *Trigger:when new form instance*
    enter_query;
    *Block level Trigger :when-new-record-instance*
    :empaply.employeeid:=:global.employeeid;
    select employee_id,firstname into :empaply.employeeid,:empaply.employeename
    from pim_emplpersonalinfo where employee_id =:global.employeeid;
    if :empaply.leavetype='Casual Leave' then
    :empaply.status1:='Not Applicable';
    :empaply.status2:='Not Applicable';
    :empaply.status:='Pending Approval';
    elsif :empaply.leavetype='Earn Leave' then
    :empaply.status1:='Pending Approval';
    :empaply.status2:='Pending Approval';
    :empaply.status:='Pending Approval';
    elsif :empaply.leavetype='Earn Leave' and :empaply.status='Rejected' then
    :empaply.status1:='Not Applicable';
    :empaply.status2:='Not Applicable';
    elsif :empaply.leavetype='Earn Leave' and :empaply.status1='Rejected' then
    :empaply.status2:='Not Applicable';
    end if;And for a push button
    *Trigger: when button pressed*
    execute_query;Now my issue is the initial value i have set in the new record instance is not working automatically, it works when i click any other text box in my form or when i scroll down..
    What can i down to overcome this?
    Pls help !
    Thanks and Regards
    user 10685325
    Edited by: user10685325 on Jun 22, 2009 1:19 AM

    Hai,
    The NEW-RECORD-INSTANCE Trigger will work only when the cursor moves to that record.
    write in the POST-QUERY Trigger of the block.
    Regards,
    Manu.
    If this answer is helpful or correct, please mark it. Thanks.

  • IP: How to create new records in an empty (but planable) Cube

    Hi specialists,
    I'm looking for a way to add new records to a (so far) empty but planning-enabled cube.
    As soon as I inserted some records via the data-loading-process (from a datasource), I can change the planable key-figures and I can add new lines/records to the cube.
    But if I delete all data from the cube (or start from scratch with an empty cube), the Web/BEx Analyzer only tells me that there're no (filter-fitting) Data in the cube. It does not present the new-line input-fields.
    What might be the problem here ?
    Or is the creation of new records in an empty cube not allowed by concept/design ? (What is about a cube which should only be used for planning, which hasn't any actual or pre-planned values already stored ?).
    Thanks for your hints in advance !

    Sorry - found the problem on my own.
    By mistake the Real-Time Cube was still in "data-loading-enabled" (instead of "planning-enabled") mode.
    So the problem isn't one - Thanks for your attention.
    Edited by: Marco Simon on Jan 24, 2008 11:23 AM

  • How to stop new record creation when mouse click

    Hi,
    I am working with Oracle Forms 6i.
    I have a multi record block. I have provided a 'New' button that the user should click when a new record creation is required. This is because there is some other function that needs to be performed when the new record is created. Specifically, on clicking the new button, the program populates the field with values read from another table. This works fine.
    However, I realized, that if the user clicks on the mutli-record block just below the last record, a new record gets created. This action does not cause the logic behind the 'New' button to execute and the record is created in a manner that is not acceptable.
    First question is why does the new record get created only by clicking with the mouse with the pointer below the last record? Is there a way to stop this from happening?
    Thanks in advance for your help.
    Shailesh

    Hi Andreas,
    Probably I was not able to explaing my problem.
    I have a button that creates a new record when clicked. The button's trigger has the CREATE_RECORD statement.
    When a new record is created, I need to copy values from the record above it. I have therefore used DUPLICATE_RECORD in my block's WHEN-NEW-RECORD-INSTANCE trigger.
    I cannot use DUPLICATE-RECORD in WHEN-CREATE-RECORD trigger.
    So, I am not clear about what you are suggesting.
    My problem is that a new record gets created when click with my mouse pointer below the last record in the multi-record block. Why does that happen and how to prevent it?
    Thanks
    Shailesh

  • RM-30410: Warning: Single Record property ignored for non-control block

    Hi gurus,
    I have one block, as oracle default behavious is that when any user enters record and during that if he/she hits down arrow key then it gets to next new record, i want to prevent this behaviour.
    In other words i want that user should not enter second record and if he or she needs to enter second record after saving first then user can only do if he navigate to the form second time.
    In property pallete i put yes to single record but when i compile the form it gives me following warning
    FRM-30410: Warning: Single Record property ignored for non-control block Employees
    Created form file C:\my_forms\employees.fmxPlease seeks help that how can i sort it out.
    Thank you
    Hina

    if he/she hits down arrow key then it gets to next new record, i want to prevent this behaviour. Change the block's key-down and/or key-nxtrec trigger to
    begin
      null;
    end;(or give the user a message "Key not allowed here").

  • Prevent creation of duplicate material master record

    Hi Experts
    1)  Is there any control or validation to prevent creation of duplicate material? I mean, if the description of new material is 100% or 95% matching with an existing material, there should be a validation.
    2) Is there any feature of usage of catelogs for creation of material master description?
    warm regards
    ramSiva

    Hi,
    Have a try to use Enhancement: MGA00001, user exit: EXIT_SAPLMGMU_001 for control you need.
    You can also use BAdI for this:
    BADI_MATERIAL_CHECK -> method CHECK.
    In both enhacements there is a structure STEXT - here short text(s) of new created material should be found for validation.
    Here you can make some ABAP works necessary.
    Hope it helps,
    regards,
    w.
    Edited by: Wojciech Zalech on May 19, 2010 9:43 AM

  • Previous record dont show in control block

    Hi
    I have 2 blocks, one is control and other is database so this is working well but when i press F8 then it show records and i move to next record then it show data in both blocks but when i try to back (previous record) then it show data in my database data block not in my control block................
    Any help
    thanks in advance
    REgards,

    Andreas Weiden Reply:
    As i understand you want to populate some items in a non-database-block with additional information to the current record in the database-block.
    The "right" way:
    Do not create a non-database-block for the additional items at all, simply place the additional items in the database-block with property "Database Item"= No. If you want to show only 1 line of data and your database-blcok is tabular, set "No. of records displayed" to "1" for the non-database-items.
    Now put the code to populate the items into the POST-QUERY-trigger of your database-block.
    The "other" way:
    Keep the additional items in the non-database-block where they are, and put your code to populate the items in the WHEN-NEW-RECORD-INSTANCE-trigger of your database-block.

  • Add a new record to table control

    Dear all,
    How to add a new  blank record to a table control?
    Following code is not working for adding  a new blank record to a table control
    MODULE USER_COMMAND_0100 INPUT.
        SAVE_OK = OK_CODE.
        CLEAR OK_CODE.
        CASE SAVE_OK.
          WHEN 'EXIT'.
            LEAVE PROGRAM.
          WHEN 'APND'.             " A button "Add" to add a new record to table control
            REFRESH IT_KNA1.
            CLEAR IT_KNA1.
            APPEND IT_KNA1.
        ENDCASE.
    ENDMODULE.        
    Thanks you

    Hope you have done all table control specific coding
    refer this example program
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbac5e35c111d1829f0000e829fbfe/content.htm

  • Cancel the creation of a new record from a tree-form

    Hi all,
    We have an application with a tree-form interface. On the form is an option to create a new object (e.g. Employee, as an analogy). We would like to provide a way to cancel the creation and return to the previous selected node/employee; e.g. with a cancel button.
    How can we accomplish that?
    We tried to use the standard bindings rollback as an actionListener (#{bindings.Rolback.execute}), but this doesn't work as expected. The employee on the form is not the same as the selected one in the tree, but always the first one. After deep investigations it seems that the synchronization mthod
    JhsPageLifecycle.restoreRowCurrencies tries the synchronization with the (now obsolete) key of the new record.
    This gives the impression that rollback can be used to rollback changes on existing objects, but not to rollback the creation of a new record. So we're looking for another approach; any suggestions?
    Ciao
    Aino

    Hi,
    problem does not seem to be solved after all :-(
    As I wrote in the first post, the rollback tries to synchronize, using the id of the new row (that we retrieve from a database sequence when the viewrow is created).
    Any suggestion how we can synchronize with the 'selected' row?
    The strange thing is that it seems to work when we create a 'subordinate' (like create an employee from a department page), but it does not work when we create the same object (like a department from a department page).
    Ciao
    Aino

  • How to clear a record of control block

    i have one control block with 2 items and the Max. records displayed property is set to 10.I have populated 5 records and now i want to clear one record, but the clear_record statement does not seem to be working. How to clear a record in a control block. Please help me out in this doubt of mine.

    You have probably moved focus to another block. You have to go_block and maybe go_record before using clear_block.

Maybe you are looking for

  • Calling a new browser window with WD Abap and passing data via POST

    Hi there, does anybody know whether passing data via POST method is possible when opening a new browser window from within a Web Dynpro Component? In my case I use method IF_WD_WINDOW_MANAGER->CREATE_EXTERNAL_WINDOW for opening a new browser window.

  • Apple ID for app purchases

    My iPad used to ask for an ID before purchasing apps or in app purchases. Now after I buy one thing other apps can be added without my ID. Young kids play on this iPad and I have to make it Impossible for them to make purchases.  I don't know how to

  • Unable to open forms in EBS 11i on vmware player.

    Hi I have installed an EBS 11i (11.5.10) on my laptop (OS: Windows XP SP2) on vmware using vmware player running Linux (OS: RHEL 4 Update 5). The installation of EBS 11i was successful. But after that once I start the services, everything starts fine

  • Remote works except 1 button

    So I have a Pavillion Entertainment Laptop DV6809wm I think. It says DV6000 on the top of the screen. On bottom the tag reads Product: DV6700, and warrant info states its a DV6809wm. I hope this all helps. Well this laptop came with Vista Home Premiu

  • When using Camera to upload pictures to Facebook, unable to see on Timeline.

    Went to a picture in my Camera Roll on iPhone and uploaded to Facebook via the share button.  The picture was nowhere to be seen on my timeline or on my profile.  I tried multiple times with no luck. Upon closer look, the pictures I uploaded WERE in