How to restrict the creation of un wanted threads ?

Hello Techies,
I am using SunApplication Server 8.1. when I submit a request using Internet Explorer it is creating two threads for the same reaquest, due to this each task is executed twice by these threads.
The strange thing is , Using Mozilla Firefox, when I submit the request it is creating only one thread and program works fine.
I came to know that by seeing server logs .
Using Mozillla fire fox the server log is :-
[#|2006-06-20T20:00:50.240+0530|INFO|sun-appserver-pe8.1_02|global|_ThreadID=13;|
=Properties =
DbURL=jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.6.5)(PORT=1521)))(CONNECT_DATA=(SID=GEM)(SERVER=DEDICATED)))
DbPasswd=do4smf
ApplicationName=SmfCalc
[email protected]
Formula=((PV*INTEREST*((1+INTEREST)^PERIOD))/(((1+INTEREST)^PERIOD)-1))
ORGANIZATION=ORGANIZATION
smtp=mail.stivant.com
CookieName=gem_user
COUNTRY=GEM_COUNTRY
SessionName=LoginAs
wwwRoot=/www
BuildVersion=GEM_3.1_026
Context=gem
InstanceID=blr1
DbUser=smfcalc
|#]
[#|2006-06-20T20:00:50.240+0530|INFO|sun-appserver-pe8.1_02|global|_ThreadID=13;|Form Pass: selected_action=Login
LoginAsRole=any
LoginAs=any
selected=
onLoad=
PASSWORD=test123
do_action=Login
API=DEFAULT
USER_ID=aruna
ID=USER_ID
|#]
[#|2006-06-20T20:00:50.255+0530|INFO|sun-appserver-pe8.1_02|global|_ThreadID=13;|com.stivant.util.SQLUtil.singleSelect: select PASSWORD from GEM_USER where lower(ID)='aruna'|#]
[#|2006-06-20T20:00:50.286+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=13;|
cookie name is gem_user value is aruna|#]
[#|2006-06-20T20:00:50.286+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=13;|
Domain localhost|#]
[#|2006-06-20T20:00:50.286+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=13;|
cookie |#]
[#|2006-06-20T20:00:50.286+0530|INFO|sun-appserver-pe8.1_02|global|_ThreadID=13;|com.stivant.util.SQLUtil.select: select * from GEM_USER where lower(ID)='aruna'|#]
[#|2006-06-20T20:00:50.302+0530|INFO|sun-appserver-pe8.1_02|global|_ThreadID=13;|com.stivant.util.SQLUtil.getColumn: select distinct ROLE_ID from GEM_ACL where lower(USER_ID)='aruna' and ROLE_ID like '%' and lower(APPLICATION_ID)='any' and lower(RESTRICTION_ID)='any' and lower(RESTRICTION_VALUE_S)='default' order by ROLE_ID|#]
[#|2006-06-20T20:00:50.302+0530|INFO|sun-appserver-pe8.1_02|global|_ThreadID=13;|com.stivant.util.SQLUtil.getColumn: select distinct RESTRICTION_VALUE_S from GEM_ACL where lower(USER_ID)='aruna' and lower(ROLE_ID)='any' and lower(APPLICATION_ID)='any' and lower(RESTRICTION_ID)='role' order by RESTRICTION_VALUE_S|#]
[#|2006-06-20T20:00:50.318+0530|INFO|sun-appserver-pe8.1_02|global|_ThreadID=13;|com.stivant.util.SQLUtil.select: select * from GEM_ROLE where lower(ID)='calcadmin'|#]
[#|2006-06-20T20:00:50.318+0530|INFO|sun-appserver-pe8.1_02|global|_ThreadID=13;|com.stivant.util.SQLUtil.getColumn: select distinct APPLICATION_ID from GEM_ACL where lower(USER_ID)='any' and lower(ROLE_ID)='calcadmin' and APPLICATION_ID like '%' and lower(RESTRICTION_ID)='any' and lower(RESTRICTION_VALUE_S)='default' order by APPLICATION_ID|#]
[#|2006-06-20T20:00:50.333+0530|INFO|sun-appserver-pe8.1_02|global|_ThreadID=13;|com.stivant.util.SQLUtil.getColumn: select distinct RESTRICTION_VALUE_S from GEM_ACL where lower(USER_ID)='any' and lower(ROLE_ID)='calcadmin' and lower(APPLICATION_ID)='any' and lower(RESTRICTION_ID)='application' order by RESTRICTION_VALUE_S|#]
[#|2006-06-20T20:00:50.333+0530|INFO|sun-appserver-pe8.1_02|global|_ThreadID=13;|com.stivant.util.SQLUtil.getColumn: select distinct ID from GEM_ROLE where parent='calcAdmin' order by ID|#]
[#|2006-06-20T20:00:50.333+0530|INFO|sun-appserver-pe8.1_02|global|_ThreadID=13;|com.stivant.util.SQLUtil.getColumn: select distinct ID from GEM_ROLE where instr(',calcAdmin,',concat(concat(',',PARENT),','))>0 order by ID|#]
[#|2006-06-20T20:00:50.333+0530|INFO|sun-appserver-pe8.1_02|global|_ThreadID=13;|com.stivant.gem.User.getThisObject():
cache GEM_USER of aruna:{ID = aruna, PASSWORD = test123, FIRST_NAME = aruna, LAST_NAME = aruna, EMAIL = [email protected], ROLE_ID = calcAdmin, ROLE_ID_S = , APPLICATION_ID_S = LeaseCalculator,InterestManager,calcOrganization,calcResource,currency, NOT_EMPTY = ID,ROLE_ID, TABLE = GEM_USER, PK_KEY = ID, PK_NAME = ID, DisplayFile = gem/user.jsp, obj_id = com.stivant.gem.User, NOT_EMPTY = ID,ROLE_ID, }|#]
Using Internet Explorer the server log is:-
[#|2006-06-20T20:22:23.490+0530|INFO|sun-appserver-pe8.1_02|global|_ThreadID=13;|
=Properties =
DbURL=jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.6.5)(PORT=1521)))(CONNECT_DATA=(SID=GEM)(SERVER=DEDICATED)))
DbPasswd=do4smf
ApplicationName=SmfCalc
[email protected]
Formula=((PV*INTEREST*((1+INTEREST)^PERIOD))/(((1+INTEREST)^PERIOD)-1))
ORGANIZATION=ORGANIZATION
smtp=mail.stivant.com
CookieName=gem_user
COUNTRY=GEM_COUNTRY
SessionName=LoginAs
wwwRoot=/www
BuildVersion=GEM_3.1_026
Context=gem
InstanceID=blr1
DbUser=smfcalc
|#]
[#|2006-06-20T20:22:23.490+0530|INFO|sun-appserver-pe8.1_02|global|_ThreadID=13;|Form Pass: LoginAsRole=any
LoginAs=any
selected=
onLoad=
do_action=Login
PASSWORD=test123
API=DEFAULT
USER_ID=aruna
ID=USER_ID
|#]
[#|2006-06-20T20:22:23.490+0530|INFO|sun-appserver-pe8.1_02|global|_ThreadID=13;|com.stivant.util.SQLUtil.singleSelect: select PASSWORD from GEM_USER where lower(ID)='aruna'|#]
[#|2006-06-20T20:22:23.552+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=13;|
cookie name is gem_user value is aruna|#]
[#|2006-06-20T20:22:23.568+0530|INFO|sun-appserver-pe8.1_02|global|_ThreadID=14;|
=Properties =
DbURL=jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.6.5)(PORT=1521)))(CONNECT_DATA=(SID=GEM)(SERVER=DEDICATED)))
DbPasswd=do4smf
ApplicationName=SmfCalc
[email protected]
Formula=((PV*INTEREST*((1+INTEREST)^PERIOD))/(((1+INTEREST)^PERIOD)-1))
ORGANIZATION=ORGANIZATION
smtp=mail.stivant.com
CookieName=gem_user
COUNTRY=GEM_COUNTRY
SessionName=LoginAs
wwwRoot=/www
BuildVersion=GEM_3.1_026
Context=gem
InstanceID=blr1
DbUser=smfcalc
|#]
[#|2006-06-20T20:22:23.568+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=13;|
Domain localhost|#]
[#|2006-06-20T20:22:23.583+0530|INFO|sun-appserver-pe8.1_02|global|_ThreadID=14;|Form Pass: selected_action=Login
LoginAsRole=any
LoginAs=any
selected=
onLoad=
PASSWORD=test123
do_action=Login
API=DEFAULT
USER_ID=aruna
ID=USER_ID
|#]
[#|2006-06-20T20:22:23.583+0530|INFO|sun-appserver-pe8.1_02|global|_ThreadID=14;|com.stivant.util.SQLUtil.singleSelect: select PASSWORD from GEM_USER where lower(ID)='aruna'|#]
[#|2006-06-20T20:22:23.583+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=13;|
cookie |#]
[#|2006-06-20T20:22:23.583+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=14;|
cookie name is gem_user value is aruna|#]
[#|2006-06-20T20:22:23.583+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=14;|
Domain localhost|#]
[#|2006-06-20T20:22:23.583+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=14;|
cookie |#]
[#|2006-06-20T20:22:23.583+0530|INFO|sun-appserver-pe8.1_02|global|_ThreadID=14;|com.stivant.util.SQLUtil.select: select * from GEM_USER where lower(ID)='aruna'|#]
[#|2006-06-20T20:22:23.583+0530|INFO|sun-appserver-pe8.1_02|global|_ThreadID=13;|com.stivant.util.SQLUtil.select: select * from GEM_USER where lower(ID)='aruna'|#]
[#|2006-06-20T20:22:23.599+0530|INFO|sun-appserver-pe8.1_02|global|_ThreadID=13;|com.stivant.util.SQLUtil.getColumn: select distinct ROLE_ID from GEM_ACL where lower(USER_ID)='aruna' and ROLE_ID like '%' and lower(APPLICATION_ID)='any' and lower(RESTRICTION_ID)='any' and lower(RESTRICTION_VALUE_S)='default' order by ROLE_ID|#]
[#|2006-06-20T20:22:23.615+0530|INFO|sun-appserver-pe8.1_02|global|_ThreadID=13;|com.stivant.util.SQLUtil.getColumn: select distinct RESTRICTION_VALUE_S from GEM_ACL where lower(USER_ID)='aruna' and lower(ROLE_ID)='any' and lower(APPLICATION_ID)='any' and lower(RESTRICTION_ID)='role' order by RESTRICTION_VALUE_S|#]
[#|2006-06-20T20:22:23.615+0530|INFO|sun-appserver-pe8.1_02|global|_ThreadID=13;|com.stivant.util.SQLUtil.select: select * from GEM_ROLE where lower(ID)='calcadmin'|#]
[#|2006-06-20T20:22:23.630+0530|INFO|sun-appserver-pe8.1_02|global|_ThreadID=14;|com.stivant.util.SQLUtil.getColumn: select distinct ROLE_ID from GEM_ACL where lower(USER_ID)='aruna' and ROLE_ID like '%' and lower(APPLICATION_ID)='any' and lower(RESTRICTION_ID)='any' and lower(RESTRICTION_VALUE_S)='default' order by ROLE_ID|#]
[#|2006-06-20T20:22:23.646+0530|INFO|sun-appserver-pe8.1_02|global|_ThreadID=14;|com.stivant.util.SQLUtil.getColumn: select distinct RESTRICTION_VALUE_S from GEM_ACL where lower(USER_ID)='aruna' and lower(ROLE_ID)='any' and lower(APPLICATION_ID)='any' and lower(RESTRICTION_ID)='role' order by RESTRICTION_VALUE_S|#]
[#|2006-06-20T20:22:23.646+0530|INFO|sun-appserver-pe8.1_02|global|_ThreadID=14;|com.stivant.util.SQLUtil.select: select * from GEM_ROLE where lower(ID)='calcadmin'|#]
[#|2006-06-20T20:22:23.661+0530|INFO|sun-appserver-pe8.1_02|global|_ThreadID=14;|com.stivant.util.SQLUtil.getColumn: select distinct APPLICATION_ID from GEM_ACL where lower(USER_ID)='any' and lower(ROLE_ID)='calcadmin' and APPLICATION_ID like '%' and lower(RESTRICTION_ID)='any' and lower(RESTRICTION_VALUE_S)='default' order by APPLICATION_ID|#]
[#|2006-06-20T20:22:23.661+0530|INFO|sun-appserver-pe8.1_02|global|_ThreadID=14;|com.stivant.util.SQLUtil.getColumn: select distinct RESTRICTION_VALUE_S from GEM_ACL where lower(USER_ID)='any' and lower(ROLE_ID)='calcadmin' and lower(APPLICATION_ID)='any' and lower(RESTRICTION_ID)='application' order by RESTRICTION_VALUE_S|#]
[#|2006-06-20T20:22:23.677+0530|INFO|sun-appserver-pe8.1_02|global|_ThreadID=13;|com.stivant.util.SQLUtil.getColumn: select distinct APPLICATION_ID from GEM_ACL where lower(USER_ID)='any' and lower(ROLE_ID)='calcadmin' and APPLICATION_ID like '%' and lower(RESTRICTION_ID)='any' and lower(RESTRICTION_VALUE_S)='default' order by APPLICATION_ID|#]
[#|2006-06-20T20:22:23.677+0530|INFO|sun-appserver-pe8.1_02|global|_ThreadID=13;|com.stivant.util.SQLUtil.getColumn: select distinct RESTRICTION_VALUE_S from GEM_ACL where lower(USER_ID)='any' and lower(ROLE_ID)='calcadmin' and lower(APPLICATION_ID)='any' and lower(RESTRICTION_ID)='application' order by RESTRICTION_VALUE_S|#]
[#|2006-06-20T20:22:23.677+0530|INFO|sun-appserver-pe8.1_02|global|_ThreadID=13;|com.stivant.util.SQLUtil.getColumn: select distinct ID from GEM_ROLE where parent='calcAdmin' order by ID|#]
[#|2006-06-20T20:22:23.677+0530|INFO|sun-appserver-pe8.1_02|global|_ThreadID=14;|com.stivant.util.SQLUtil.getColumn: select distinct ID from GEM_ROLE where parent='calcAdmin' order by ID|#]
[#|2006-06-20T20:22:23.693+0530|INFO|sun-appserver-pe8.1_02|global|_ThreadID=14;|com.stivant.util.SQLUtil.getColumn: select distinct ID from GEM_ROLE where instr(',calcAdmin,',concat(concat(',',PARENT),','))>0 order by ID|#]
[#|2006-06-20T20:22:23.693+0530|INFO|sun-appserver-pe8.1_02|global|_ThreadID=13;|com.stivant.util.SQLUtil.getColumn: select distinct ID from GEM_ROLE where instr(',calcAdmin,',concat(concat(',',PARENT),','))>0 order by ID|#]
[#|2006-06-20T20:22:23.708+0530|INFO|sun-appserver-pe8.1_02|global|_ThreadID=14;|com.stivant.gem.User.getThisObject():
cache GEM_USER of aruna:{ID = aruna, PASSWORD = test123, FIRST_NAME = aruna, LAST_NAME = aruna, EMAIL = [email protected], ROLE_ID = calcAdmin, ROLE_ID_S = , APPLICATION_ID_S = LeaseCalculator,InterestManager,calcOrganization,calcResource,currency, NOT_EMPTY = ID,ROLE_ID, TABLE = GEM_USER, PK_KEY = ID, PK_NAME = ID, DisplayFile = gem/user.jsp, obj_id = com.stivant.gem.User, NOT_EMPTY = ID,ROLE_ID, }|#]
ThanQ,
Javed

Do you really think anyone is going to read through all mess?

Similar Messages

  • 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 to restrict the changes in Relesed PO?.

    Hi all,
    How to restrict the users to make a changes in the Released PO?. User should make the changes only if it is unreleased by the respective codes.
    1. Is there any user parameters like functional authorisation?
    2. I have already suggested two solutions to the clients that
        1. To restrict the authorisation of TCodes ME22n at the user level, but it's not a suitable solution, if user want to make any changes before releasing, then system is not allow to do the changes.
        2. I have made release indicator as a 1 - not changeable if it is released, in release strategy settings. But the system is not allowing the all the users including release codes to make the changes?.
    If there is any solution, please reply immediately.
    with regards,
    Raja.

    hi,
    if u set release indicator 1, after release is taken place, for any changes, u need to revoke the release. and then change the PO.
    even u cant directly block the changes to already released PO, because, in future if at all qty or some changes is required to change, it should allow u to change!

  • How to restrict the job start conditions (only "Immediate" type) ?

    Hi,
    We allow our users to schedule and execute in background mode transactions (example IP19, IW38). We gave them for that authorizations (object S_BTCH_JOB with LIST, PROT, RELE and SHOW - objetct S_PROGRAM with BTCSUBMIT).
    We would like that users can schedule and execute their jobs only with the u201CImmediateu201D job start condition (in the Start Time screen for the type of start condition : Immediate, Date/Time, After job, After event, or At operation mode).
    Another solution: prohibit the scheduling and the execution background job in a certain time interval ...
    How can restrict the job start conditions ?
    Thank you.
    Patrice.

    Hi Jan,
    Yes, sa38 makes it possible indeed to execute in background into immediate mode a job but
    the user have to know the name of the program to be carried out ...
    The user knows only the name of these transactions trade. For example, IW38.
    In the menu of this transaction, SAP gives the possibility to execute in background :
    Program --> Execute in Background --> display of Start Time screen for the type of start condition :
    Immediate, Date/Time, After job, After event, or At operation mode).
    It is at this time there that we want that the user can only choose the "immediate" mode.
    We must thus prohibit the other choices (Date/Time, After job, After event, or At operation mode) ... and
    and we don't know how to restrict these other options in this screen "Start Time screen for the type of start condition".
    Thank you.
    By.

  • How to restrict the duplicate values in lov column of VO based Adv Table

    Hi Gurus,
    I want to restrict the duplicate values at lov which is a colunm in an Adv Table.
    If user enters duplicate values then first it should show an error msg that Duplicate values have been entered.
    After the duplicate values have been removed, then the user can save all the values in the table.
    My Adv Table is based on a VO.
    The link how to restrict the duplicate values at form level
    talks about Adv Table based on a EoVO, which doesnot work in my case.
    My Approach,
    I am iterating through RowSetIterator and committing through PROCEDURE.
    I am able to avoid duplicate entry through a function checkRespId. (given below)
    Below code is for iterating and committing.
    public void saveline(String reqid,String userid)
    System.out.println("RequestId/saveline"+reqid);
    System.out.println("UserId/saveline"+userid);
    OAViewObject vo = (OAViewObject)getRespLineVO1();
    RespLineVORowImpl row = null;
    int fetchedRowCount = vo.getFetchedRowCount();
    RowSetIterator deleteIter = vo.createRowSetIterator("deleteIter");
    if (fetchedRowCount > 0)
    deleteIter.setRangeStart(0);
    deleteIter.setRangeSize(fetchedRowCount);
    for (int i = 0; i < fetchedRowCount; i++)
    System.out.println("Inside the for LOOP");
    row = (RespLineVORowImpl)deleteIter.getRowAtRangeIndex(i);
    String respoidid = row.getAttribute("ResponsibilityId")+"";
    String respname = row.getAttribute("ResponsibilityName")+"";
    String stdate = row.getAttribute("StartDate")+"";
    String enddate = row.getAttribute("EndDate")+"";
    String linestatus ="A";
    if(userid!=null)
    if(!(respoidid.equals("null")) && respoidid!=null)
    String checkingrespid=null;
    checkingrespid = checkRespId(userid,respoidid);+contains no if not duplicate and yes if its duplicate+
    System.out.println("checkingrespid for Resp with ID :"+respoidid+"exists or not "+checkingrespid);
    if(checkingrespid.equals("No"))
         String message, result = null;
    Connection txn = getOADBTransaction().getJdbcConnection();
    try
    calling PROC ...
    catch(Exception e)
    message = "Error in Inserting into line" + e;
    throw new OAException(message, OAException.ERROR);
    else
    throw new OAException("You have entered duplicate no. of values", OAException.ERROR);
    else
    System.out.println("respoidid is null");
    break;
    deleteIter.closeRowSetIterator();
    public String checkRespId(String userid,String respoidid)
    String createRow="No";
    OAViewObject vo = (OAViewObject)findViewObject("CheckRespVO1");
    if (vo != null)
    vo.setWhereClauseParams(null);
    vo.setWhereClauseParam(0, userid);
    vo.setWhereClauseParam(1, respoidid);
    vo.executeQuery();
    System.out.println("ROW COUNT IS "+vo.getRowCount());
    if(vo.getRowCount()>0)
    createRow="Yes";
    else
    createRow="No";
    return createRow;
    Problem:
    I remove the duplicate entries and click on save and get this error.
    Unable to perform transaction on the record. \nCause: The record contains stale data. The record has been modified by another user.
    \nAction: Cancel the transaction and re-query the record to get the new data.
    Thanks,
    Sombit

    Hi Anil,
    I am trying out your code but stuck in inserting the rows
    using your code in URL: http://oracleanil.blogspot.com/2010/09/oaf-passing-table-type-object-to-oracle.html
    I am always getting the same exception i.e COde blast in when I run.
    My modified code is:
    String[] as = null;
    Number[] vNumber = null;
    Number[] vNumberrespid = null;
    Number reqidnumber = null;
    reqidnumber = new Number(Integer.parseInt(reqid));
    Connection txn = getOADBTransaction().getJdbcConnection();
    String mCreateSearchRequestStatement = null;
    OAViewObject vo = (OAViewObject)findViewObject("RespLineVO1");
    int j = vo.getFetchedRowCount();
    try
    System.out.println("abouce try");
    vo.reset();
    if (vo.getFetchedRowCount() > 0)
    System.out.println(String.valueOf("Fetched row count ").concat(String.valueOf(vo.getFetchedRowCount())));
    int i = 0;
    as = new String[j];
    vNumber = new Number[j];
    vNumberrespid = new Number[j];
    while (vo.hasNext())
    vo.next();
    System.out.println(String.valueOf("Inisde the do while loop").concat(String.valueOf(i)));
    vNumber[i] = (reqidnumber);
    vNumberrespid = ((Number)vo.getCurrentRow().getAttribute("ResponsibilityId"));
    as[i] = String.valueOf(vo.getCurrentRow().getAttribute("ResponsibilityName")).concat(String.valueOf(""));
    System.out.println("Request ID "+reqidnumber[i]);//getting null even there is some value selected
    System.out.println("ResponsibilityId "+vNumberrespid[i]);//getting null even there is some value selected
    System.out.println("Resp Name "+as[i] );//getting null even there is some value selected
    i++;
    CallableStatement cs = txn.prepareCall("{call XX_PassTableType.XX_PassTableType_prc(:1, :2,:3)}");
    ARRAY array = new ARRAY(new ArrayDescriptor("APPS.JTF_NUMBER_TABLE", txn), txn, vNumber);
    ARRAY arraynew = new ARRAY(new ArrayDescriptor("APPS.JTF_NUMBER_TABLE", txn), txn, vNumberrespid);
    ARRAY array1 = new ARRAY(new ArrayDescriptor("APPS.JTF_VARCHAR2_TABLE_100", txn), txn, as);
    cs.setArray(1, array);
    cs.setArray(2, arraynew);
    cs.setArray(3, array1);
    cs.registerOutParameter(3, 2003, "JTF_VARCHAR2_TABLE_100");
    cs.execute();
    ARRAY error = null;
    error = (ARRAY)cs.getArray(2);
    if ((error != null) && (error.length() > 0))
    System.out.println(String.valueOf("Error is ").concat(String.valueOf(error.getArray())));
    String[] retError = new String[j];
    retError = (String[])error.getArray();
    System.out.println(String.valueOf("Error in saving data").concat(String.valueOf(retError[0])));
    cs.close();
    catch (Exception exception)
    throw new OAException("code blast", OAException.ERROR);
    Thanks,
    Sombit

  • How to restrict the user in MIRO for not modifying  price

    Hi All 
    My requirement is How to restrict the users in MIRO screen for not modifying Material Prices  of only the for specific  ROH types .
    For example :
    Valuation class             RM description
      3021                             RM - A
      3022                             RM - B
      3024                             RM - C
    when ever we procure  the above Raw materials A,B and C and
    the Quantity of each Raw material @ 10 units  and value @ 1 INR  for each unit
    RM - A procured qty 10 @1 total price is INR  10
    RM - B procured qty 10 @1 total  price is INR 10
    RM - C procured qty 10 @1 total  price is INR 10
    total price of PO is INR 30
    when we received invoice material prices are  assume it INR 1 is excess for each material.Now the invoice price for each RM has become INR 11.
    in MIRO we want restrict the user to change the price from INR 10 to 11.
    suggest the best possible ways to restrict in MIRO screen
    Thanks & Regards
    Mala

    Dear:   
                      Take help of ABABPER fo implement exit using INVOICE_UPDATE or MRMH0003 Logistics Invoice Verification: Revaluation/RAP exit. If this does not help then seek help of MM functional who will help you to find exit for the required task.
    rEGARDS

  • How to restrict the delivery quantity not more than target quantity?

    Dear Gurus,
    How to restrict the delivery quantity not more than target quantity in a scheduling agreement? I think there are 2 methods.
    1. I found that setting 0 in Overdelivery Tolerance Limit in Info Record is not effective. Why?
    2. I want to set E for the message but can't find the place. The message is generated when entering and saving quantity as delivery quantity that is larger than target quantity. How can I set E to a message (067, as I remember)
    Any other effective method? Please advice. Thanks.
    Regards,
    David

    Dear all,
    It is not OK after checking everywhere you mentioned. I tested in 2 clients. In the development enviroment client, it works whatever E or W. In test enviroment, it does not work (meassge is W).
    I think there must be somewhere besides of those you menetioned.
    I notes that SAP help for the overdelivery tollerance setting of scheduling agreement: 
    Overdelivery Tolerance Limit
    Percentage (based on the order quantity) up to which an overdelivery of this item will be accepted.
    Dependencies
    If you have set the indicator in the Partial delivery/Item field to 'D' (partial delivery allowed), this takes priority. It makes no sense to define a tolerance limit for overdelivery in such case.
    Where can I see: 'the indicator in the Partial delivery/Item field to 'D' (partial delivery allowed)'? I want to check it.
    Pls help! Thanks.
    Regards,
    David

  • How to restrict the quantity & rate of MIRO with MIGO and PO

    Hi friends,
    Can any body tell me how to restrict the quantity & rate of MIRO with MIGO and PO.
    e.g. if we have done MIGO for quantity 10 and the rate maintained in the PO is Rs.100.Then at the time of MIRO system should not allow to change the quantity and rate.
    How we can do this?
    Regards  
    Purnesh Sharma

    Hi,
    You are misunderstanding the use of MIRO.
    If you change the details in MIRO you are NOT changing anything. You are just entering the price and quantity from the Invoice.
    If this price and or qty is different from the GR aqty and PO price then the system will block the invoice for payment (and it can issue messages toinform the buyer if configured correctly).
    The whole design of MIRO is based on the principle that you enter EXACTLY what the vendor has put on the invoice. By preventing the users from changing anything you will get NO mismatched invoices, but you will not be paying the vendor the amount specified on their invoice. This will surely cause problems.
    If you do want to ensure that ONLY the GR qty and the PO price are used and cannot be changed then why not consider using ERS (Eveluated Receipt Settlement. this is basically self billing.
    Effectively you will be paying the vendor based on what you have received in MIGO multiplied by the price from the PO. (which is what you would be doing if you stop any changes in MIRO)
    Steve B

  • How to restrict the upload file size in me21n/me22n/me23n?

    Hi Guru's,
    I have a requirement to restrict the user from attaching a local file more than 20MB in Purchase Order.
    In standard SAP system, the user can attach a file of any size in PO. How to restrict the size of the file?
    I have no clue how to achieve this? Any kind of help would be great...
    Thanks in Advance...
    Regards,
    Satyam

    Hi Guru's,
    The file size is now restricted in function GUI_UPLOAD. But this function module is used at many places. I want to restrict it only for Tcode: ME22n and ME23n.
    I thought of restricting it by sy-tcode field but sy-tcode value  is not passed to this function module in the run time.
    Could anyone help me on this how to restrict it for the above mentioned tcodes??
    Regards,
    Satyam

  • 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 display of report variants

    Hello All,
    I want t know how to restrict the display of report variants.
    I mean, when a user saves a variant for his/her purpuse on some report program, only he/she can refer the variant while other users cannot.
    I know that by setting the attribute of the variant ("Protect Variant ", "Only Display in Catalog"), this would be possible, but I want to know another way, without this setting.
    Thank you for your help in advance.
    Regards,

    Hi,
    Can you just try this
    DATA:it_varid TYPE TABLE OF varid.
    DATA:wa_varid TYPE varid.
    INITIALIZATION.
      SELECT * FROM varid INTO TABLE it_varid
          WHERE report = sy-repid
          and ename = sy-uname.
      IF sy-subrc = 0.
        LOOP AT it_varid INTO wa_varid .
          CALL FUNCTION 'RS_SUPPORT_SELECTIONS'
            EXPORTING
              report               = sy-repid
              variant              = wa_varid-variant
            EXCEPTIONS
              variant_not_existent = 1
              variant_obsolete     = 2
              OTHERS               = 3.
          IF sy-subrc <> 0.
            MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
          ENDIF.
        ENDLOOP.
      ENDIF.

  • How to restrict the user to enter only numeric values in a input field

    How to restrict the user to enter only numeric values in a input field.
    For example,
    i have an input field in that i would like to enter
    only numeric values. no special characters,alphabets .
    reply ASAP

    Hi Venuthurupalli,
    As valery has said once you select the value to be of type integer,once you perform an action it will be validated and error message that non numeric characters are there will be shown. If you want to set additional constraints like max value, min value etc you can use simple types for it.
    On the project structure on left hand side under local dictionary ->datatypes->simple types create a simple type of type integer
    The attribute which you are binding to value property ;make its type as simple type which you made
    Hope this helps you
    Regards
    Rohit

  • 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 the Copying/printing of the file from document

    Hi..
    Case:
    1. I have a document number it has three files in it.I want to locked the files from priniting and copying but not from opening/displaying.
    2. I am using content server for storing the DMS documents.How to restrict the number of attachments that can be uploaed in one document number?
    3.How to restrict the maximum size that can be uploaded against one document number?
    Sandip

    Hi Sandip,
    1. I have a document number it has three files in it.I want to locked the files from priniting and copying but not from opening/displaying.
    In DC30 transaction,in Workstation application for network,disable the print option.Will ensure users will not be able to print the originals.
    2. I am using content server for storing the DMS documents.How to restrict the number of attachments that can be uploaed in one document number?
    See if your ABAPer can use the BADI  'DOCUMENT_MAIN01' with method 'BEFORE_SAVE' to handle this check.
    3.How to restrict the maximum size that can be uploaded against one document number?
    Believe you are using kPro as a storage option.If this is the case,then there is no setting available to limit the file size for upload.See if your Basis guy can set an upper limit for file size in IIS setting for your content server.
    If you are using SAP DB as a storage option(not recommended though),then use the field File Size in DC10 transaction,Define Document Types to effect a file size limit.
    P.S. Would appreciate incase you could close the threads which have been answered satisfactorily.
    Regards,
    Pradeepkumar Haragoldavar

  • How to restrict the no of rows to be displayes in ALV in webdynpro

    Hi All,
    Can any one suggest how to restrict the no of records to be displayed in the portal in the ALV through webdynpro ABAP.
    Thanks & Regards,
    Sreelatha Gullapalli.

    HI,
    If you want to change the Source (Design time) then you can do that via the alv configuration.
    Something like this in the component SALV_WD_COLUMNS_UI
    lr_available_model->if_salv_wd_table_settings~set_visible_row_count( lc_row_count ).

Maybe you are looking for

  • How to display summary details at then end of a alv grid?

    Hi. i have a ALV grid with 4 columns. also i need to print summary details at the end of the grid.. eg.. Total material cost  15.111 total labor cost        5.4444 total material burden 267.88 toal labor burden    253.66 How do i prinbt these details

  • Type of error in the log file while using using call transaction mode u2018Eu2019

    Hi Gurus, Please Answer for this qusetion urgently what type of error exactly  you will be seeing in the log file while using call transaction mode u2018Eu2019? Thanks/ Radha.

  • What does Payment terms means in SD

    Hello SD Experts I am implementing a project that requires a report on payment terms of an order. This is a BW project but however, it is an SD report. I need to know what field represents payment terms in SD tables - header or item table? Which fiel

  • Where is My Current Wallpaper Located?

    I, recently, updated my 4S to iOS 7.  I'd like to experiment with the different wallpapers to see which one looks best.  The one I, currently, have and had set before the upgrade was the iOS 5 default wallpaper (water droplets).  I notice that this w

  • No sound in Gnome [SOLVED]

    Need help with sound. I setup Gnome and when I want check sound it says: audiotestsrc wave=sine freq=512 ! audioconvert ! audioresample ! gconfaudiosink: Internal GStreamer error: state change failed. Please file a bug at http://bugzilla.gnome.org/en