Disable validation when changing showdetailitem in showonetab

Hello,
i have a creation page for a table and since the table contains lots of columns i use showdetailitems to limit the size of the displayed page.
But every time i change of showdetailitem, the validation of the fields is executed and i always get error messages saying that some fields are mandatory and must be set.
so my question is, how can i disable validation when changing the selected showdetailitem (and still have it when committing) ?
thanks
-regards.

Hello Peter,
A little correction to Chris' suggestion, it should be:
<af:inputText value="#{bindings.<your field name>.inputValue}"
                    label="#{bindings.<your field name>.hints.label}"
                    required="#{!bindings.<your iterator name>Iterator.findMode && bindings.<your field name>.hints.mandatory}">
...etc...The only difference is the removal of the ? : operator since it isn't required and represents both an additional parsing and processing effort. Go micro-optimization!
~ Simon

Similar Messages

  • Maintenance view event for validation when changing data

    Hi All,
    I have a maintenance view on a table that should validate some fields during user input.
    I am using event 05 'Creating a new entry' to validate fields when user creates new entry in the table. That works fine.
    I would like to have the same validations happening when the user changes fields of records already existing in the database. I tried to use event 01 'Before saving the data in the database' but the problem with this is that user can change many fields of many records before clicking 'Save'. I would like to have the error raised for incorrect entry already after the change.
    So far I could not find an event to do this but only by changing the code itself. The problem with that is whenever the code is regenerated the custom part is lost.
    Is there an event I can use that would help me achieve this?
    Thanks in advance.

    Hi Abhishek,
    I tried event 21, I`m playing around with that since that`s the only one triggered when I press Enter.
    The problem with this is that
    - the check runs when you press enter, so you can still change many fields of many records (one step maintenance) before the validation runs
    - you can`t raise an error message, because only the key fields will be input ready, the non-key fields will be readonly
    The way I currently handle is I undo the changes in 21 (get previous field values from TOTAL) and raise an information message i/o an error informing user to check the entry.
    What I`m looking for is an event that will raise a message and set focus on the incorrect field (if there`s one such).

  • How to disable ATP when changing pricing date

    When header pricing date in a sales order is changed, system triggers ATP. How can this be disabled?
    Edited by: Jennifer Lua on Feb 22, 2010 10:10 AM

    in material master Sales:general/plant data Availability check field enter no check and at the same time in VOV8 flag the availability check field.

  • Deactivating region (taskflow) when changing showDetailItem in panelTabbed

    Jdev 11.1.1.4
    I have a JSF page with a af:panelTabbed wiith two af:showDetailItem
    In every af:showDetailItem I have a region mapping to the same task flow in both regions (in order to reuse).
    The taskflow has to main steps: First one method call initializing some view objects and variables. the second a view displaying a JSF.
    Every time the af:showDetailItem is changed (by clicking on the tab) I need the taskflow to be restarted and begin a new fresh copy of it.
    To achieve this I have defined both af:showDetailItem like this
    <af:showDetailItem text="#{viewcontrollerBundle['ALU.CERTIFICADOS']}" id="sdi1"
    stretchChildren="first" immediate="true"
    binding="#{backingBeanScope.pertanasSolCertCompBB.sdi1}"
    *disclosureListener="#{backingBeanScope.pertanasSolCertCompBB.sdi1_disclosureListener}"*
    partialTriggers="r1">
    and
    <af:showDetailItem text="#{viewcontrollerBundle['ALU.COMPULSAS']}" id="sdi2"
    immediate="true"
    binding="#{backingBeanScope.pertanasSolCertCompBB.sdi2}"
    *disclosureListener="#{backingBeanScope.pertanasSolCertCompBB.sdi2_disclosureListener}"*
    stretchChildren="first" partialTriggers="r2">
    The sdi1_disclosureListener is defined:
    public void sdi1_disclosureListener(DisclosureEvent disclosureEvent) {
    activacionRegion activeRegionBean = (activacionRegion)resolveELExpression("#{activacionRegion}");
    if (disclosureEvent.isExpanded()) {
    activeRegionBean.setRegionCertificadosActivation(true);
    AdfFacesContext.getCurrentInstance().addPartialTarget(r1);
    AdfFacesContext.getCurrentInstance().addPartialTarget(r2);
    else activeRegionBean.setRegionCertificadosActivation(false);
    the sdi2_disclosureListener is defined more or less the same but opposite:
    public void sdi2_disclosureListener(DisclosureEvent disclosureEvent) {
    activacionRegion activeRegionBean = (activacionRegion)resolveELExpression("#{activacionRegion}");
    if (disclosureEvent.isExpanded()) {
    activeRegionBean.setRegionCompulsasActivation(true);
    AdfFacesContext.getCurrentInstance().addPartialTarget(r2);
    AdfFacesContext.getCurrentInstance().addPartialTarget(r1);
    else activeRegionBean.setRegionCompulsasActivation(false);
    The activeRegionBean.setRegionCompulsasActivation(false); and activeRegionBean.setRegionCertificadosActivation(false); is a bean controlling the binding of the regions in the page:
    <taskFlow id="AlumnosSolCertificados1"
    taskFlowId="/WEB-INF/Aumnos/AlumnosSolCertificados.xml#AlumnosSolCertificados"
    activation="conditional"
    xmlns="http://xmlns.oracle.com/adf/controller/binding"
    active="#{activacionRegion.regionCertificadosActivation}">
    <parameters>
    <parameter id="TipoPantalla"
    xmlns="http://xmlns.oracle.com/adfm/uimodel"
    value="CERTIFICADOS"/>
    </parameters>
    </taskFlow>
    and
    <taskFlow id="AlumnosSolCertificados2"
    taskFlowId="/WEB-INF/Aumnos/AlumnosSolCertificados.xml#AlumnosSolCertificados"
    activation="conditional"
    xmlns="http://xmlns.oracle.com/adf/controller/binding"
    active="#{activacionRegion.regionCompulsasActivation}">
    <parameters>
    <parameter id="TipoPantalla"
    xmlns="http://xmlns.oracle.com/adfm/uimodel"
    value="COMPULSAS"/>
    </parameters>
    </taskFlow>
    All this works ok when I click on B showdetailitem after intially having shown A. The task flow first terminates and then initiates a new taskflow.
    But when I reactivate showdetailitem A clicking on it, the taskflow is first activated and then deactivated loosing all its initialization.
    The problem is that ADF first executes always the conditional activation of the first showdetailitem and the the conditional activation of the second showdetailitem what is ok in one sense but not on the other because it closes the taskflow after having been opened.
    Do I have any way to avoid this and control that the taskflow is always first deactivated and then activated ?

    Jdev 11.1.1.4
    I have a JSF page with a af:panelTabbed wiith two af:showDetailItem
    In every af:showDetailItem I have a region mapping to the same task flow in both regions (in order to reuse).
    The taskflow has to main steps: First one method call initializing some view objects and variables. the second a view displaying a JSF.
    Every time the af:showDetailItem is changed (by clicking on the tab) I need the taskflow to be restarted and begin a new fresh copy of it.
    To achieve this I have defined both af:showDetailItem like this
    <af:showDetailItem text="#{viewcontrollerBundle['ALU.CERTIFICADOS']}" id="sdi1"
    stretchChildren="first" immediate="true"
    binding="#{backingBeanScope.pertanasSolCertCompBB.sdi1}"
    *disclosureListener="#{backingBeanScope.pertanasSolCertCompBB.sdi1_disclosureListener}"*
    partialTriggers="r1">
    and
    <af:showDetailItem text="#{viewcontrollerBundle['ALU.COMPULSAS']}" id="sdi2"
    immediate="true"
    binding="#{backingBeanScope.pertanasSolCertCompBB.sdi2}"
    *disclosureListener="#{backingBeanScope.pertanasSolCertCompBB.sdi2_disclosureListener}"*
    stretchChildren="first" partialTriggers="r2">
    The sdi1_disclosureListener is defined:
    public void sdi1_disclosureListener(DisclosureEvent disclosureEvent) {
    activacionRegion activeRegionBean = (activacionRegion)resolveELExpression("#{activacionRegion}");
    if (disclosureEvent.isExpanded()) {
    activeRegionBean.setRegionCertificadosActivation(true);
    AdfFacesContext.getCurrentInstance().addPartialTarget(r1);
    AdfFacesContext.getCurrentInstance().addPartialTarget(r2);
    else activeRegionBean.setRegionCertificadosActivation(false);
    the sdi2_disclosureListener is defined more or less the same but opposite:
    public void sdi2_disclosureListener(DisclosureEvent disclosureEvent) {
    activacionRegion activeRegionBean = (activacionRegion)resolveELExpression("#{activacionRegion}");
    if (disclosureEvent.isExpanded()) {
    activeRegionBean.setRegionCompulsasActivation(true);
    AdfFacesContext.getCurrentInstance().addPartialTarget(r2);
    AdfFacesContext.getCurrentInstance().addPartialTarget(r1);
    else activeRegionBean.setRegionCompulsasActivation(false);
    The activeRegionBean.setRegionCompulsasActivation(false); and activeRegionBean.setRegionCertificadosActivation(false); is a bean controlling the binding of the regions in the page:
    <taskFlow id="AlumnosSolCertificados1"
    taskFlowId="/WEB-INF/Aumnos/AlumnosSolCertificados.xml#AlumnosSolCertificados"
    activation="conditional"
    xmlns="http://xmlns.oracle.com/adf/controller/binding"
    active="#{activacionRegion.regionCertificadosActivation}">
    <parameters>
    <parameter id="TipoPantalla"
    xmlns="http://xmlns.oracle.com/adfm/uimodel"
    value="CERTIFICADOS"/>
    </parameters>
    </taskFlow>
    and
    <taskFlow id="AlumnosSolCertificados2"
    taskFlowId="/WEB-INF/Aumnos/AlumnosSolCertificados.xml#AlumnosSolCertificados"
    activation="conditional"
    xmlns="http://xmlns.oracle.com/adf/controller/binding"
    active="#{activacionRegion.regionCompulsasActivation}">
    <parameters>
    <parameter id="TipoPantalla"
    xmlns="http://xmlns.oracle.com/adfm/uimodel"
    value="COMPULSAS"/>
    </parameters>
    </taskFlow>
    All this works ok when I click on B showdetailitem after intially having shown A. The task flow first terminates and then initiates a new taskflow.
    But when I reactivate showdetailitem A clicking on it, the taskflow is first activated and then deactivated loosing all its initialization.
    The problem is that ADF first executes always the conditional activation of the first showdetailitem and the the conditional activation of the second showdetailitem what is ok in one sense but not on the other because it closes the taskflow after having been opened.
    Do I have any way to avoid this and control that the taskflow is always first deactivated and then activated ?

  • How can I disable the change of color when changing background in ios7?

    how can I disable the change of color when changing background in ios7?

    For txt messages you can change the option of whether previews are shown (Settings >> Messages >> Show Preview Toggle). Switching this "Off" will still show a notification of a missed txt message, but it will not show text from the message itself.
    Unfortunately, similar functionality does not currently exist for phone calls; however, the new iOS release (scheduled for September, I think rumor has it) will revamp the way notifications are handled, and there maybe an elegant solution for you then.

  • Windows 7 and XP Disable wireless when connected to hot wired

    Hello there,
    We are facing IP address shortage due to redundant network connections from laptops because every laptop uses two IP address when connected to wireless network and hard wire. Does Windows 7 and XP natively has the options to disable wireless when a laptop
    is connected to hard wired? I know the wireless can easily disabled by manual process but problem is user don't have the knowledge or don't bother to do that. So if there is a way to use GPO to configure this would be ideal -- no 3rd party solution please.
    Any suggestion is most welcomed.
    Thanks,
    TL

    There are no Fail proof ways for Win 7 or 8 to make sure that AT ALL times Wire is used over WIFI. The metric setting is ignored by MS. I know cause my metric for the wired is 10 and for the WiFi is 9999, but at all times the WiFi is used instead of the
    Wired. This is by design as Microsoft being as inept as always did not properly design their operating system. This is a DESIGN DEFECT, which Microsoft will not admit to, despite the fact that it could be caused by no other method EXCEPT incompetent design,
    ignored during quality assurance testing etc. The reason there are a million people looking for a fix for this design flaw is that there is NO fix available. MS will not fix it as they got your money and could care less. Being that they are among the most
    evil and greedy companies currently in business is why it will never be fixed. I dare them to prove me wrong and fix the obvious design defect. I double dare all who read this to log in to the MS tech net and demand that they fix this DESIGN DEFECT.
    Any developer qualified to design an OS should have no problem permanently fixing this and Microsoft has NO EXCUSE for not doing so with an update!!!!!! All they have to do in the code logic is ask the system if the device getting an IP etc is using a "radio"
    then it asks all the other devices that are getting or have gotten an IP if it was gotten via a radio, If during any of these quires the answer is I DID NOT get my IP from a radio connection then that IP path gets priority and all the others, IE WiFi gets
    disabled. Then if there is a change in the network, loss of connectivity for example, the process is repeated and when everything say's it got its IP from a radio then the WiFi takes over. So in a nut shell every connection is looked at to see if it is from
    a radio based device or a hardwired based device, NOT using metrics since that apparently can not be counted on, the prof is in the 500+ PCs I just setup, ALL OF WHICH GIVE A SIGNIFICANTLY LOWER METRIC TO THE WIRED, but still choose the WIFi. The order of
    the connection establishment should not matter since the test is performed on every connection and as soon as one is found that is not radio based, it is left on and all others are turned off. Common sense really. This is NOT ROCKET science! Just good common
    sense programing.
    So I challenge everyone who reads this comment to add a demand for MS to fix the DESIGN DEFECT once and for all.
    That's all I have to say. If there is a script as some of the suggestions here mention that can do it, if there is a single 3rd party product out there that can do it, then there is NO EXCUSE for MS not to provide a PERMANENT OFFICIAL MICROSOFT CERTIFIED
    FREE fix for this DEFECT. And yes it can only be classified as a DESIGN DEFECT as common sense say's you would AT NO time under normal operations EVER want the MUCH slower WiFi, 100 mbps  compared to 1000 mbps for wired to be in charge. EVER! Even if
    the wired nic is only 100 mbps, some cheep junk laptops have the indecency to come with a 100 mbps nic instead of a Gigabit, the Wired is still better 99.99999% of the time.
    And one last thing this IS THE ONLY REAL ACCEPTABLE ANSWER to the original question, and all the others just like it who EXPECT, with GOOD REASON, that COMMON SENSE, would be in charge NOT ignorance and defective designs, and that AT ALL TIME WIRED RULES
    OVER WIFI.
    Hope this helps, it is time to insist that MS do their job AND FIX THE DESIGN DEFECT!!!!!!!!!
    Ralph
    PS Not all systems have switches on the outside for disabling the WiFi. My HPs don't and trying to train all the users on how to MANUALLY disable it and when to do so etc is like trying heard flock of sparrows, it's not happening, NOR SHOULD IT NEED TO!

  • Issue in OWB mapping - when changing source and target database

    Hi,
    I need help for resolution of the issue I am facing when moving mapping from development environment to QA.
    Here is situation,
    We develop ETL using one source, one staging and one target database.
    In development we use one control_center for Source to staging and another control center staging to target.
    All works fine in development.
    Now I have created new runtime repository and imported all OWB projects (with full dependencies, exact replica of development). Now I need to change source and staging and target as different database.
    I have created new database location connections and defined/attached DB connectors with stage and target location.
    Now issues are
    1.     Two Staging mapping are not able to bound with source table (giving different error
    a.     One mapping show error for source synonym translation no longer valid when deploying this mapping , but validation comes without any issue)
    b.     Other mapping show error for source table/object not bound to repository
    2.     All the target mapping show validation successful, but when deploying says “table or view does not exist”. But tables are exists on source stage and target. (also permission are set correctly for target user to read from staging tables).
    Not sure how to proceed from here.
    I have recreated new repository and re-imported all project/mappings and defined all connection but still same issue.
    Thanks in advance,
    Vipin

    1. Two Staging mapping are not able to bound with source table (giving different error
    a. One mapping show error for source synonym translation no longer valid when deploying this mapping , but validation comes without any issue)
    b. Other mapping show error for source table/object not bound to repository
    The above error were resolved when re-synchronized the table (for few I have to reimport the table) and mapping.
    2. All the target mapping show validation successful, but when deploying says “table or view does not exist”. But tables are exists on source stage and target. (also permission are set correctly for target user to read from staging tables).
    The above error still pending. My target mapping are not able to deployed/compiled.
    For the above I have defined one Staging location to one target target location and target location have connector to staging (not sure if I have to define connector name same as staging location, as I have created DB connector with different name but reference database is same as staging location).
    Mapping are assoicated with desired data locatoin and meta data.
    control center is also have that data location.
    Mapping are configured for the desired location.

  • How to avoid JMS validation when starting weblogic server

    Hi All,
    When starting up WebLogic server, it will validate JMS destinations one by one for deployed applications.
    If I don't connect the VPN, then these JMS destinations are not reachable, and WebLogic Server will spend a lot of time to try connecting to these JMS destinations.
    Thus it will take a lot of time to startup the WebLogic Server.
    How can I disable JMS validation when starting weblogic server?
    Thanks and Regards!

    Hi Daniel,
    By blank do you mean that the screen is black? Is it gray? Is it blue? The word "blank" is vague when trying to determine and isolate startup issues.

  • ALE BOM. Updates ALL! items with validity date & change no.

    Hi All,
    We are having problems where ALE-BOM sent with change in validity date (with change no) to a particular item. What happens is that ALE-BOM will instead update ALL! items with the same validity date and change number.
    Next,when we process ALE again for the same BOM with a different validity date(with change no), then only that
    particular item is updated with validity date and change no.
    Would anyone know what could be the problem that when changes are sent for the first time all items are updated?
    [Version: SAP 4.6C/ SAPKH46C48]
    Regards,
    Neeth

    Dear:
                   The error itself telling you the correction. You profit center which is assigned to your cost center has a validity date less than the one you are now assigning.You can check in KE52 against the profit center assigned to your cost center master data. However the best thing is to go to KS01 and create this cost center with desired validity date.
    This will resolve your issue.
    Regards

  • ORA-55714: savepoint savepoint disabled with interleaved changes across..

    We have a PL/SQL program that is called by OAF page and has savepoint logic used in it.
    We are getting the below error when we call the OAF page.
    ***Error***
    ***ORA-01086: savepoint 'START_ATP' never established in this session or is invalid ORA-06512: at "APPS.XXMRPAVAIL", line 1061 ORA-55714: savepoint 'START_CALL_ATP' disabled with interleaved changes across Oracle RAC instances***
    Below is the sample logic which we have written.
    SAVEPOINT start_call_atp ;
    MRP_ATP_PUB.Call_ATP_no_commit
    (l_session_id,
    l_atp_rec,
    x_atp_rec ,
    x_atp_supply_demand ,
    x_atp_period,
    x_atp_details,
    x_return_status,
    x_msg_data,
    x_msg_count
    ROLLBACK TO start_call_atp ;
    Let me know for any additional information. Thanks in advance for your help.

    Please find the complete code below.
    PROCEDURE Call_ATP (p_sequence_id IN NUMBER
    ,p_requested_ship_date IN DATE
    ,p_mfg_source_code_list IN VARCHAR2
    ,p_plan_name IN VARCHAR2
    ,p_requested_quantity IN NUMBER DEFAULT 100000000
    ,p_debug_flag IN VARCHAR2 DEFAULT 'N'
    ,p_week_no IN NUMBER DEFAULT 0
    ,p_prodFamily_clause IN VARCHAR2
    ,p_typetabatp IN typetabatp_g          
    IS
    -- If profile MSC: ATP Debug = Debug and Database Trace, it will only provide the Debug session file
    -- So if tracing is desired, then Remove the -- from the 'ALTER SESSION ...' line below.
    -- ALSO remove -- from 'ALTER SESSION ...' statement at the end of this file that turns trace off.
    -- If you fail to turn off the trace then the resulting trace file cannot be analyzed properly
    -- ALTER SESSION SET EVENTS = '10046 TRACE NAME CONTEXT FOREVER, LEVEL 12' ;
    lv_program_name VARCHAR2(150) := gv_package_name || '.Call_ATP' ;
    lv_message VARCHAR2(4000) ;
    lv_resource_org_id NUMBER;
    lv_resource_org_code VARCHAR(100);
    l_atp_rec MRP_ATP_PUB.ATP_Rec_Typ;
    p_atp_rec MRP_ATP_PUB.ATP_Rec_Typ;
    x_atp_rec MRP_ATP_PUB.ATP_Rec_Typ;
    x_atp_supply_demand MRP_ATP_PUB.ATP_Supply_Demand_Typ;
    x_atp_period MRP_ATP_PUB.ATP_Period_Typ;
    x_atp_details MRP_ATP_PUB.ATP_Details_Typ;
    x_return_status VARCHAR2(2000);
    x_msg_data VARCHAR2(500);
    x_msg_count NUMBER;
    l_session_id NUMBER;
    l_error_message VARCHAR2(250);
    x_error_message VARCHAR2(80);
    v_file_dir VARCHAR2 (80);
    i NUMBER := 0;
    ln_quantity NUMBER := p_requested_quantity;
    ld_request_ship_date DATE := p_requested_ship_date;
    ln_instance_id NUMBER;
    TYPE TypCurRef IS REF CURSOR ;
    CurRef TypCurRef ;
    lv_Cur VARCHAR2(32767) ;
    atp_details_tab TypRecATPDetails;
    atp_details_rec MRP_ATP_PUB.ATP_Rec_Typ;
    lv_rep_item VARCHAR2(40);
    lv_rep_item_id NUMBER;
    lv_user_id NUMBER;
    TYPE TypRecCur IS RECORD
    (inventory_item_id NUMBER
    ,ItemNo VARCHAR2(30)
    ,source_whse_code VARCHAR2(30)
    ,source_organization_id NUMBER
    ,family VARCHAR2(150)
    ,demand_class VARCHAR2(30)
    ,family_order_by NUMBER
    RecCur TypRecCur ;
    ln_plan_id NUMBER ;
    k NUMBER ;
    s NUMBER := 0 ;
    lv_prodFamily_clause VARCHAR2(32767);
    BEGIN
    SAVEPOINT start_ATP ;
    lv_user_id := fnd_profile.value('USER_ID');
    SELECT plan_id
    INTO
    ln_plan_id
    FROM msc_plans@APS_DBLINK
    WHERE compile_designator = p_plan_name ;
    SELECT MAX(instance_id)
    INTO
    ln_instance_id
    FROM apps.mrp_ap_apps_instances_all
    WHERE NVL(a2m_dblink, 'APS_DBLINK') = 'APS_DBLINK';
    MSC_ATP_GLOBAL.Extend_ATP(l_atp_rec, x_return_status, 1);
    FOR x IN p_typetabatp.first .. p_typetabatp.last
    LOOP
    lv_rep_item := NULL;
    lv_rep_item_id := NULL;
    BEGIN
    SELECT rep.rep_item,msib.inventory_item_id
    INTO lv_rep_item, lv_rep_item_id
    FROM xxmrp_ctp_rep_items rep,
    mtl_system_items_b msib,
         org_organization_definitions ood
    WHERE rep.plant_code = p_typetabatp(x).source_whse_code
    AND rep.prod_family = p_typetabatp(x).Family
         AND msib.segment1 = rep.rep_item
         AND msib.organization_id = ood.organization_id
         AND ood.organization_code = rep.plant_code;
    EXCEPTION
    WHEN OTHERS THEN
    lv_rep_item := NULL;
    lv_rep_item_id := NULL;
    END;
    SELECT OE_ORDER_SCH_UTIL.Get_Session_Id
    INTO l_session_id
    FROM dual;
    IF p_debug_flag <> 'N' THEN
    order_sch_wb.mr_debug := 'Y' ;
    order_sch_wb.file_or_terminal := 1 ;
    order_sch_wb.debug_session_id := l_session_id;
    FND_PROFILE.put('MSC_ATP_DEBUG', 'C');
    SELECT xxau_util.getDefaultDirectory
    INTO v_file_dir
    FROM dual ;
    order_sch_wb.file_dir := v_file_dir ;
    END IF;
    i := 1;
    s := s + 1 ;
    l_atp_rec.identifier(i) := -TO_NUMBER(TO_CHAR(p_sequence_id) || TO_CHAR(p_week_no) || TO_CHAR(s)) ;
    l_atp_rec.Inventory_Item_Id(i) := nvl(lv_rep_item_id,p_typetabatp(x).Inventory_Item_Id) ;
    l_atp_rec.vendor_name(i) := p_typetabatp(x).Family ;
    l_atp_rec.Inventory_Item_Name(i) := NVL(lv_rep_item,p_typetabatp(x).ItemNo);
    l_atp_rec.Quantity_Ordered(i) := ln_quantity;
    l_atp_rec.Quantity_UOM(i) := 'Ea';
    l_atp_rec.Requested_Ship_Date(i) := p_requested_ship_date;
    l_atp_rec.Action(i) := 100; --ATP inquiry
    l_atp_rec.Source_Organization_Id(i) := p_typetabatp(x).source_organization_id ;
    l_atp_rec.OE_Flag(i) := 'N';
    l_atp_rec.Insert_Flag(i) := 0;
    l_atp_rec.Customer_Id(i) := null;
    l_atp_rec.Customer_Site_Id(i) := null;
    l_atp_rec.Calling_Module(i) := null;
    l_atp_rec.Row_Id(i) := null;
    l_atp_rec.Source_Organization_Code(i) := null;
    l_atp_rec.Organization_Id(i) := null;
    --l_atp_rec.demand_class(i)              := RecCur.demand_class;
    l_atp_rec.demand_class(i) := p_typetabatp(x).demand_class;
    l_error_message := null;
    SAVEPOINT start_call_atp ;
    MRP_ATP_PUB.Call_ATP_no_commit
    (l_session_id,
    l_atp_rec,
    x_atp_rec ,
    x_atp_supply_demand ,
    x_atp_period,
    x_atp_details,
    x_return_status,
    x_msg_data,
    x_msg_count
    ROLLBACK TO start_call_atp ;
    IF (x_return_status = 'S') THEN
    IF x_atp_rec.Inventory_item_id.count > 0 THEN
    --============ Show capacity even if there is no supply/demand =======================================
    FOR j IN 1..x_atp_rec.Inventory_item_id.count
    LOOP
    lv_resource_org_id := xxmrpavail.get_resource_org_id (x_atp_rec.Source_Organization_Id(j));
    --lv_resource_org_code := xxmrpavail.get_resource_org_id (x_atp_rec.Source_Organization_Id(j));
    IF SQL%ROWCOUNT = 0 THEN
    IF atp_details_rec.Source_Organization_Id.count > 0 THEN
    NULL;
    ELSE
    MSC_ATP_GLOBAL.Extend_ATP(atp_details_rec, x_return_status, 1);
    END IF;
    atp_details_rec.Source_Organization_Id(atp_details_rec.Source_Organization_Id.count) := x_atp_rec.Source_Organization_Id(j) ;
    atp_details_rec.vendor_name(atp_details_rec.vendor_name.count) := x_atp_rec.vendor_name(j) ;
    atp_details_rec.Requested_Date_Quantity(atp_details_rec.Requested_Date_Quantity.count) := x_atp_rec.Requested_Date_Quantity(j) ;
    atp_details_rec.Error_Code(atp_details_rec.Error_Code.count) := x_atp_rec.Error_Code(j) ;
    atp_details_rec.Inventory_Item_Name(atp_details_rec.Inventory_Item_Name.count) := x_atp_rec.Inventory_Item_Name(j) ;
    END IF;
    END LOOP;
    IF atp_details_rec.Inventory_Item_Name.count > 0 THEN
    --custom logic
    END IF;
    END IF;
    ELSE
    RAISE e_ErrATP ;
    END IF; -- after calling api
    l_error_message := '';
    l_session_id := '' ;
    x_return_status := '' ;
    x_msg_data := '' ;
    x_msg_count := '' ;
    END LOOP; -- main loop
    EXCEPTION
    WHEN e_ErrATP THEN
    --IF CurRef%ISOPEN THEN CLOSE CurRef ; END IF;
    IF x_atp_rec.Error_Code.count > 0 AND (x_atp_rec.Error_Code(1) <> 0) THEN
    SELECT meaning
    INTO x_error_message
    FROM mfg_lookups
    WHERE lookup_type = 'MTL_DEMAND_INTERFACE_ERRORS'
    AND lookup_code = x_atp_rec.Error_Code(1);
    lv_message := lv_message || x_error_message ;
    END IF;
    xxau_util.log(lv_program_name, 'SQLERROR', lv_message, xxau_util.c_TraceLevelException) ;
    raise_application_error(c_ErrATP,'ERROR: ' || lv_program_name || ': ' || lv_message) ;
    WHEN OTHERS THEN
    --IF CurRef%ISOPEN THEN CLOSE CurRef ; END IF;
    ROLLBACK TO start_ATP;
    lv_message := lv_message || substr(SQLERRM,1,4000) ;
    xxau_util.log(lv_program_name, 'SQLERROR', lv_message, xxau_util.c_TraceLevelException) ;
    raise_application_error(c_ErrGeneric,'ERROR: ' || lv_program_name || ': ' || lv_message) ;
    END Call_ATP;

  • To Restrict fields when change posted SC

    Hello,
    Is there any way to restrict fields when change posted SC ? currently if SC already approved by 3 manager and waiting for the last manager for approval then the requestor change any fields in the SC, the approval flow will be reset from the beginning.
    Is there any way to restrict some fields so whatever changes on these field will not reset existing approval ?
    Fyi, we're using SRM 4.0
    Thank's & Regards,
    Sastra

    Hi,
    To disable changing the SC by the requester durng any level of approval,you can set the value for the parameter "BBP_WFL_SECURITY" in SU01(under personalization tab) for the requester  user.
    Also based on the value of this paramtere you can also define whether the workflow for approval  should be restarted in case of any chnage in the SC.
    See the foll link for more details:
    http://help.sap.com/saphelp_srm50/helpdata/en/f7/a6a3415e34b05fe10000000a1550b0/frameset.htm
    BR,
    Disha.
    Do reward points for useful answers.

  • How do I customize my "view" permanently? When changed, the view is reset the next page.

    How can I change the "view" permanently? When changed, it is reset the next page.
    == This happened ==
    Every time Firefox opened
    == Today

    Make sure that you not run Firefox in [[Private Browsing]] mode.
    In Private Browsing mode some menu items are disabled (grayed) and some features like visited links and others are disabled and not working.
    You are in Private Browsing mode if you see "Tools > Stop Private Browsing".
    See [[Private Browsing]] and http://kb.mozillazine.org/Issues_related_to_Private_Browsing
    You enter Private Browsing mode if you select: Tools > Options > Privacy > History: Firefox will: "Never Remember History"
    To see all History settings, choose: Tools > Options > Privacy, choose the setting '''Firefox will: Use custom settings for history'''
    UnCheck: [[ ] "Automatically start Firefox in a private browsing session"
    If you need to increase (or decrease) the font size on websites then look at:
    Default FullZoom Level - https://addons.mozilla.org/firefox/addon/6965
    NoSquint - https://addons.mozilla.org/firefox/addon/2592
    See also http://kb.mozillazine.org/Zoom_text_of_web_pages

  • Disable button when user clicks

    Hi.,
    I am using jdev 11.1.5
    I need to disable button when user clicks the record which contain the value 'No'
    My scenario
    Id          Value
    1            Yes
    2            No
    3            YesThe button should get enabled for the first record which contain value 'Yes'
    In the above table the button should get enabled for
    Id        Value
    1          Yes          //while user clicks the record button must enabledfor 2 and 3 the button must be disabled
    could any one pls help me

    Hi,
    First get the selected value in bean and set it to String attribute,in your value change listener.
            public void customVLC(ValueChangeEvent valueChangeEvent) {
              //write code to get selected value
              this.selectedValue = "No";//Depend on your selected value on above
              AdfFacesContext.getCurrentInstance().addPartialTarget(getCbButton());//Bind button to bean and get UI here to refresh
       private String selectedValue;
        public void setSelectedValue(String selectedValue) {
            this.selectedValue = selectedValue;
        public String getSelectedValue() {
            return selectedValue;
        }in page put as
    disabled="#{YourBean.selectedValue eq 'No' ? true : false}"Here selectedValue keep the state for disable and enable the button
    I hope above information enough to resolve the issue..

  • Disable cursor when tab-switching

    Hi all,
    Is there a possibility to disable cursor selection when changing apps with tab-switching, while the command key is pressed? When using a tablet it's extremely annoying since you have to lift the pen away every time. I'd like the list of app icons to ignore any movement of the cursor above it.
    Thanks.

    You can remove the checkmark on "Open Tabs" in the location bar settings.
    *Tools > Options > Privacy > Location Bar: When using the location bar, suggest:<br />[] Open tabs
    *https://support.mozilla.org/kb/Options+window+-+Privacy+panel
    Note that you can hold down the Alt or Shift key while an entry in the drop down list is highlighted to disable "Switch to tab" and see the URL of all entries instead.
    * Alt + Enter opens the highlighted URL in a new tab.
    * Shift + Enter opens the highlighted URL in the current tab.
    * Cursor Right copies the highlighted URL to the location bar in case you want to edit it.

  • Why Synonym becomes INVALID when changes are made on the related object ?

    Hi all,
    WHY SYNONYMS becomes invalid when changes are made on related OBJECTS ?
    Is there any specific reasons for this.?
    Is there any method or procedures to make the synonym VALID as soon as the we perform any alteration on the related object.
    Thanks
    Himabala

    Synonym will be validated when it is accessed, no need to take an action.

Maybe you are looking for