How to restrict records entry in a tabular block.

Hi Guys,
I have created a tabular block on my form. Now for a certain condision i want to restrict user, so that s/he cant enter more then 2 records in a tabular block.
I want to implement this check either at the time of record save OR as soon as user navigate to the third record.
Pliz help to implement this check on a block.
Regadrs,
Imran Baig

Hello,
You could implement the test in the WHEN-CREATE-RECORD trigger
If Get_Block_Property( 'the_block_name', CURRENT_RECORD ) > 2 Then
End if

Similar Messages

  • How to restrict the entry of same material twice on the order

    HI,
    How to restrict the entry of same material twice on the order before saving the Order ?
    I do not want my users to enter the same material as two different line items in the order.
    Any inputs wud b appreciated

    Hi Vam,
    For this you need to take the help of an ABAPer . Ask him to modify the user exit and add the logic.
    For user exit please go through the below link it will help you to resolve your issue.
    http://help.sap.com/saphelp_46c/helpdata/en/1c/f62c7dd435d1118b3f0060b03ca329/content.htm
    Regards,
    Krishna O
    Edited by: Krishna O on Jun 3, 2010 12:29 PM

  • How to restrict the entries of a database table based on the user name

    Hi All,
    I have created a Database Table. Table maintenance generator is generated for the table.
    UNAME(user name) is one of the fields in the table. whenever the user creates a new entry, the field UNAME will be populated automatically with SY-UNAME value. I have used Table event '05' to do this.
    My requirement is...
    When a user tries to maintain the entries of the table using SM30, when 'DISPLAY' is chosen, all the records of the table should be displayed.
    When 'MAINTAIN' is chosen, only those records which have UNAME = SY-UNAME(User Logged in) should be in EDIT mode. and rest all the records should be in DISPLAY mode(greyed out). It should allow to edit only those records which are created by the user logged in.
    Could you please tell me how to do this..? Thanks in advance.
    Thanks & Regards,
    Paddu.

    HI,
    In table main. gen there are number of events , try to select one event like 05 for the Sy-uname.
    For the  requirement:
    In that event write the code like
    this is basic idea not the code:
    Case ' Sy-ucomm'.
    when 'display'.  " button
       Nomally for the display button it will show all the records, but we need to write a code like this.
    select all records frm the table.
    ( Need to write the code in case if the user first maintained the data then again press the display , list has to be refreshed.)
    when ' Maintain'. " button.
    Fetch the records that are with SY-UNAME and find out the edit function and implement it on each and every record.
    endcase.
    Thanks and Regards,
    Bharani.

  • How to restrict records in Infoset query

    Hi Friends,
      I have created an Infoset & a query based on this infoset. I would like to restrict certain records being displayed, based on field value, say if field A = 'Blank' I do not want to see this record on the Bex report.
    Please let me know if this is possible at all.
    Thanks,
    JB

    Hi,
    if you want to restrict a report based on a characterristic value you have to:
    1)Open the query in design mode
    2)Insert the characteristic in your report (in this example field "A")
    3)Double clikc in the characteristic
    4)You will see 2 tabshett, here you have the option to restrict in a estatic (using a fix value) or dinamic value (usign variable)
    5)For example use static value, select the desire value and then OK
    6)Save
    7)Execute.
    Regards
    Asign points if useful please

  • How to restrict Manual entry in G/L with automatic Postings

    Dear Gurus
    We have a house bank account and have its three subsidiary account incoming, PDC and outgoing account. now whenever a user enter an incoming entry he has to do incoming debit and customer credit but some times as there is no blockage they mistakenly enter Main account instead of Incoming. We take the authorization of main account from them but it stops them from making reconciliation through ff67 or feban. Now please suggest what we do to stop them making manual entry in house bank account.
    Please suggest
    Salar

    Hi,
    Make autoposting for main bank account through master data maintenance.
    Regards
    Hari.

  • Restrict duplicate entry

    how to restrict duplicate entries to be entered in a table control...
    thanx,
    naveen vishal

    hi..
    after ur PAI table control loop, write another module.
    in tht u can declare one temporary int table and copy the original int table to the temp table.
    then sort this new internal table and delete adjacent duplicates comparing your key fields.
    if sy-subrc = 0.
    give some error msg.
    else.
    do nothing..
    endif.
    hope this helps...
    regards,
    naveen

  • How to insert records into an Excel file

    i was wondering if anyone knows how to insert records from a pl/sql block straight into an excel file

    try with spool or UTL_FILE...
    Re: CSV into Oracle and Oracle into CSV
    SQL> spool c:\test1.csv
    SQL> select substr(str,2,length(str)-3) from (select regexp_replace(column_value,'\s*<[^>]*>[^>]*>',',') str from table(xmlsequence(cursor(select * from test_emp))));
    SUBSTR(STR,2,LENGTH(STR)-3)
    9999,fredi&apos;s,CLERK,2345,10-OCT-06,1250,123,20
    4567,STEWART,ANALYST,3456,02-APR-07,3200,215,30
    2345,Cockrel,CLERK,7566,23-JAN-82,800,30
    3 rows selected.
    SQL> spool off;

  • How to restrict the number of Records into the Table?

    Is there any way that I can restrict the number of records can be entered into the table?
    For example I have created a table TAB1 with size category 0( zero).
    User dont want to enter more than 100 values, How to restrict the number entries? Whether Basis can do it?
    Regards,
    Prathap

    Hi Prathap,
    You can write a code in table maintenance events to restrict the number of Records added into the Table to constant.
    Solution:
    Se11 -> enter table name (TAB1) -> F6 -> Utlities -> Table maint. generator -> Envirnment -> modification -> events -> write here the form routine name.
    Double click on routine name. You will get into include section of the code. Write here code like:
    IF current_rec_num > 100.
       messgae error 'Entry restriceted to 100'
    ENDIF.
    Somewhat this way you can achieve your target.
    Regards,
    Sachin

  • How to restrict S_ALR_87003642 - Open and Close Posting Periods entry/updat

    How to restrict S_ALR_87003642 - Open and Close Posting Periods entry/update for certain group of users
    eg. for Subsidiaries to openr/close periods of their own company only.
    Refer to my screen, Company 1010 and 1060 is for Head Office while 1210 is for our Malaysia Company. How to restrict my Malaysia Company user to open and close only for 1210 and cannot perform any change to other Company.

    Hi,
    I guess you can use company code itself. Talk to your basis guy or else if you have some expertise & Authorization try out PFCG.
    Regards
    Santosh Hegde

  • How to restrict the last record and not moving to next reocrd

    1) how to restrict the last record and not moving to next reocrd.
    2) Also for the F6 key(for new record).

    When you are on the last record, next-record will create a new one, so that my question is do you want to forbid new record creation.
    Francois

  • How we can restrict record in CTL file on the basis of other table ?

    Hello all,
    How we can restrict record in CTL file on the basis of other table ?
    Eg.
    I have following control file to load the records in the table through the sql loader.
    LOAD DATA
    INTO TABLE THIST APPEND
    FIELDS TERMINATED BY "|" TRAILING NULLCOLS
    LNUM POSITION(1) Char "substr(:LOAN_NUM, 4, 13)",
    TSRNUM Char "rtrim:TRAN_SR_NUM)" ,
    TPROCDT Char "to_char(to_date rtrim:TRAN_PROC_DT), 'MMDDYYYY'), 'YYYYMMDD')"      
    I have another table c all TFILE in which I have LNUM. I want to import only those records from input text file using the control file and sql loader in which LNUM is exist in the TFILE.
    So how i can restrict it in the Control File.
    Thanks
    Kamlesh Gujarathi
    [email protected]

    Hello Satyaki De.
    Thank you very much for your suggestion but my Private information is totally apart from this question & I already I have changed each and every information from the question.
    Thanks
    Kamlesh Gujarathi
    [email protected]

  • Restrict Duplicate entry of record before saving the form

    Hi!!
    I need to validate duplicate entry of ITEM CODE before saving the FORM. Which means, if I have entered an ITEM CODE in a row, the same ITEM CODE should not be allowed to be entered in any other rows. It should throw an error message and should ask to enter another ITEM CODE instead. I did not get the correct logic from the threads.
    Regards
    Mitto

    hey i have a requirement that to restrict duplicate entry in both block(both multi record).the blocks are DEPT(MATER)
    EMP(DETAIL)
    the associated fieds in master block DEPT.DEPT_NO,in detail EMP.EMP_ID .
    I have done' Kevin D Clarke’s calculated item ' both in master and detail block
    its working fine for master block but in case of detail block its only respond to the current session(i.e. if the new value is inserted or save it will restrict another record to be inserted of that last record's value),it does not restrict duplicate value enter ,checking with other existing records(which are saved in earlier session,though after query it is shown on the form)
    can anyone guide me why its not working

  • How to restrict decimal point entry in numeric field?

    Hi All,
    There is a requirement from our client that, they cannot accept amount in decimals. That is, they cannot accept the cents, the amount that can be received from them is only in EURO and the same will be entered in the field. They want me to restrict the entry of a decimal point totally in the field, so that there requirement is fulfilled.
    Is this possible? If yes let me know how?
    If no, can you provide me justification, so that i can intimate the same to my client.

    Dear Steve,
    I had written in my first thread that, They want me to restrict the entry of a decimal point totally in the field.
    If i use 9999 as format mask, then it still allows me to enter a decimal, but when the focus moves out of the field, it highlights the field and warns me "Field must be of form 9999".
    But my requirment is to "Restrict the entry of decimal point totally @ runtime".

  • How we restrict the TECO fucntion without service entry sheet for PM03 cont

    Dear PM Guru's.
    one of my client asking to restrict the TECO function if there is no cost in order either by external service cost or internal service cost? If user raise an order for one external activity , he not created the service entry sheet against PO and he did TECO of the order, when FI people settles the cost system showing either order is already settled or there is nothing to settle. Please guide me how to restrict the user to do the teco function in order. Its very crucial and urgent for me. if any one have solution please update it immediately.
    regards
    Jalu

    IWO10004 Maintenance order: Customer check for order completion
    Use the above user exit to check the cost for the order. If there is no cost, then give error message.
    You can check tables PMCO and AUFK.
    Also you can use function module PM_WORKORDER_COSTS_LIST to retrieve the actual cost values.

  • How to restrict the decimal entry on dynamic table in adf 11 .6

    Hi All,
      JDev version 11.6
      I have a usecase based on dynamic VO. How to restrict the decimal numbers on table columns . When user enter the decimal number .I have to show error message.
      In order to achieve above requirement .I have added value change listener on table column .its not working as expected
    <af:table rows="#{bindings.EmployeeDynamicVO.rangeSize}"
                      fetchSize="#{bindings.EmployeeDynamicVO.rangeSize}"
                      emptyText="#{bindings.EmployeeDynamicVO.viewable ? 'No data to display.' : 'Access Denied.'}"
                      var="row" rowBandingInterval="0"
                      value="#{bindings.EmployeeDynamicVO.collectionModel}"
                      selectedRowKeys="#{bindings.EmployeeDynamicVO.collectionModel.selectedRow}"
                      selectionListener="#{bindings.EmployeeDynamicVO.collectionModel.makeCurrent}"
                      rowSelection="single" id="t1"
                      styleClass="AFStretchWidth" autoHeightRows="-1"
                      columnStretching="last" contentDelivery="immediate" >
              <af:forEach items="#{bindings.EmployeeDynamicVO.attributeDefs}"
                          var="def">
                <af:column headerText="#{bindings.EmployeeDynamicVO.labels[def.name]}"
                           sortProperty="#{def.name}" id="c1">
                  <af:inputText value="#{row[def.name]}" id="ot1"
                                valueChangeListener="#{backingBeanScope.EmployeeBean.validateINputs}"
                                autoSubmit="true">
                    </af:inputText>
                  <af:outputText value="#{row[def.name]}" id="ot6"
                                 visible="#{def.name eq 'Dummy'}"/>
                </af:column>
              </af:forEach>
            </af:table>
    So appriciate if any alternatives on above usecase. Thanks in advance

    HI
    Expected :as soon as user enter the decimal values in table column , it should throw the error message in new small new window
    Getting the value change listener and validating , but its working only tab out (Because VO is dynamic )
    please suggest us any reg expression and Validators to achieve the above scenario ?

Maybe you are looking for

  • Vendor Down Payment Request Setup

    Hi All, While trying to post vendor downpymt request(T-code:F-47), we encounter this error : <i>Special G/L indicator F is not defined for down payments     Message no. F5053 Diagnosis     The specified special G/L indicator is not classified as "dow

  • Add button to shipment dynpro vt02n without modification

    Hi all, is it possible to add a button (or someting else) into shipment transaction vt02n subdynpro 1030 (or any other subdynpro) without modification. In material master data it is possible over customizing. Is this possible in shipments, too? Thank

  • Evernote, kakaotalk, and many other apps NOT supported for bb10??

    is it just me or are there others who run into 'not supported' when trying to download app? my q10 allows me to add Evernote account but when i search for the actual app in the bbWorld, it does not exist. When trying to download from Evernote website

  • HP DV5 1110EM DTS sound to av receiver NO GO HELP PLEASE

    Hi I have a Pavilion dv5 1110em it has hdmi and is capable of 7.1 sound from the hdmi port. I'm playing MKV files via laptop hooked up to my lcd, the laptop is connected to my sony strdg 800 receiver via hdmi. My problem is i cannot get normal 5.1 dt

  • Keyword/best bet migration to 2013

    Has anyone found a way to migrate/upgrade keywords in a site collection from 2010 to 2013?  I have seen mention of the ability to convert the keyword/bestbet to a query rule.  Thanks for any suggestions.