Validations based on Listing

Hi Experts,
We are developing a custom program to upload the Lower and Capacity values for the SKU's in a custom table for every store.
While uploading the data, we want to put a validation based on the Listing, so that we can put a check while updating the table.
The reason being, if a particular SKU is not listed for a Store, then we don't want that SKU be updated in the table ( for reduced table value maintenance).
We are using Listing procedure B3 by default for all SKU's in the article master.
But I am not sure, how to put a validation check here.
Could you please help me in this scenario?
Regards
Nainar

Hi Nainar,
please have a look at function module WLK1_CHECK to integrate that in your custom program. But logic can a little bit difficult as listing conditions are time-dependent (e.g. no longer valid or valid in the future). So you have to decide how to react in which case.
From your description, it is not clear how often you want to upload your data and how often listing changes occur, etc.
Hope it helps.
Regards
Tobias

Similar Messages

  • Setting validation based on condition on custom list

    Hi,
    I have a custom Image library. I have two custom columns created as part of metadata.
    One is a dropdown choice column, which contains 2 values - "Free", "Paid".
    I also have a datepicker column (date only). 
    I would like to set a validation based on below condition:
    If dropdown selected is "Paid", then date should be mandatory field.
    Can this be achieved OOB or a JSLink is required.
    How to achieve this?
    Thanks 

    Hi Vankatzeus,
    You can achieve this using Javascript. In New and edit forms of your list, add a content editor webpart with the script explained below -
    There is a PreSaveAction() function that you can use to do a custom validation. Before submitting any item, sharepoint first do the validation in PreSaveAction().
    function PreSaveAction() {
      //Step 1 - Read the choice and date fields. 
    // Step 2 - If choice is 'PAID' and 'date' field is blank { alert('Date can't be blank'); return false;} else {return true;}
    In Step 1, write a script that read values from choice and date fields. You can take the script from
    here and modify it just to read choice and date fields.
    Cheers,
    Manvir

  • Validation based on items on an page !

    Hi there
    Any pointers greatly appreciated...
    Trying to do :
    If I click on button 1, I wish to check if 4 select lists have a value (!='%'), if they do, complete process. Otherwise, stop, and get user to select something.
    Same for button 2, but different select lists.
    Problem:
    If I click on button 1 or 2, it checks ALL select lists if they are populated i.e. !='%'
    Details
    Following objects :
    Buttons (2)
    --each button has button request value
    Button1 'archive', Button2 'current'
    Select Lists (1...4)
    Select Lists (5..8)
    Each select list - has default value > '%'
    Processes (2) - PL/SQL anonymous block Conditional (after submit)
    --Each process has simple condition, based on button (When Button Pressed (Process After Submit When this Button is Pressed))
    Validation
    --Each select list has type - PL/SQL expression
    :PX_SelectListX !='%' and :PX_ButtonX ='archive' (or 'current')
    Associated Item - validation not associated with item
    Condition - Based on ButtonX
    Condition Type - (tried different combinations) - current - Value of item in expression 1 is not Null, Expression 1 --> PX_SelectListX

    That is wrong. This is why it doesn't work.
    1. Request will never be :P4_Button1 - Request is 'Go'
    2. The value of your select list is not '%'. That is a display value. Look into the select list to see what it has as a null return value. If it is empty than it will be '%null%'
    (You should use something easier to handle as a null return value. Put there 0 or something else) and include that into your validation. It will work for sure.
    I would recommend using two day developer guide to start with the basics.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Validation based on view attributes

    JDeveloper 11.1.1.x
    What is the best practice to create validations based on a view attribute from a view object that is of a level higher in the hierarchy?
    For example:
         * Use the departments and employees tables from the hr schema.
         * Create an EO for only the employees table, so not for the department table
         * Create VO's for both tables. You should create the Viewlink manually between both views.
         * In the query for the department, add a calculated field in the query.
         For example : availableSalary : 100000 - (select sum(salary) from employees where department_id = Departments.DEPARTMENT_ID) availableSalary
         * I would like to add a validation on the salary field of the employee EO, that says that the new value shouldn't be bigger then the availableSalary field
         Be aware : that when changing an existing salary, only the difference between the old and new salary should be taken into account
         (This removes the "Compare with View Object Attribute" possibility :-()
         * I also want to use some fields from the departments view in my error message on the salary field of the employees EO.
    How can we best tackle these requirements ?
    Thank you in advance.
    Filip Huysmans.

    Filip,
    I think you are trying to avoid the lesser cost of a Department Entity by an extremely expensive way to get to the comparison done. Firstly, you wire a view instance with an entity, which is strange as there is no association between the entity and the View Object. So all you would have is to access a method in the AM Impl method that looks up the VO and returns the current row's information you need. This AM method can be referenced from the entity object using groovy to perform the comparison (you see that even this is kind of awkward as it connects the entity to the AM, producing a tight coupling that makes any of your code reviewers shake heads in disbelieve). Assuming the update of the VO updates the entity (Departments EO you don't have), you could follow an association using Groovy to perform the validation (which I think sounds easier to do (though by the small cost of creating an EO)
    Btw.:
    if you have a ViewLink defined then the transient attribute can be easier calculated using Groovy
    10000 - DetailTargeName.sum('Salary');
    I would think its less expensive then running a SQL query for each department Id
    Frank

  • Validation rule using list

    i had x eo
    i make enity validator rule type : list
    rule definition from : city from
    operator: in
    List type query result :
    query:
    Select * From Bus_Trip_Benefits
          Where Btb_City_From = :pbtr_City_From And
          :pbtr_Rqst_Date Between Btb_Eff_From And Btb_Eff_To And Btb_Bu=:pbu3
    :pbtr_City_From
    :pbtr_Rqst_Dateboth are run time values. how do i check entered data should present in query result.
    can anyone come with an example/

    Hi,
    if you validate against a query, why don't you use a LOV for users to choose from this list ?
    Here's a doc that explains how to filter LOVs https://blogs.oracle.com/jdevotnharvest/entry/how_to_dynamically_filter_model If you hide the LOV query panel (which you can do declaratively) then users wont be able to override your query filter.
    Frank

  • Cluster Validation Fails on List iSCSI Host Bus Adapters

    I have an 8 Node SQL Failover Cluster.
    This cluster has been in service for quite some time now, suddenly the Cluster Validation is failing...
    When it gets to the "List iSCSI Host Bus Adapters" (which we do no use on any of these nodes) it fails with the error:
    "An error occurred while executing the test. There was an error getting information about the iSCSI controllers installed on the nodes. There was an error retrieving information about the iSCSI host bus adapters from node 'node1'. Invalid class "
    The test is not performed on any of the other nodes, it just fails.
    This is causing a problem when trying to extend SQL to some of the newer nodes that have been added.
    I have tried evicting and readding nodes, I've tried uninstalling/reinstalling failover clustering, among other things.
    I did notice that on node7, if I attempt validation, and ONLY mention node7, the test will complete on that box only.
    Again, we do not even use iSCSI, this is a Fibre Channel cluster.  It's just the attempt by the validation wizard to list the iSCSI Host Bus Adapters that do not exist, that is failing....
    Any thoughts?  I did see a similar post which mentioned having a problem listing Fibre Channel adapters that sounded like the exact same error, but there was no resolution there either...

    Hi,
    For SQL Server Cluster issues, I suggest discussing them in our SQL Server Disaster Recovery and Availability forum. They are the best resource to troubleshoot SQL Server Cluster issues.
    http://social.msdn.microsoft.com/Forums/en/sqldisasterrecovery/threads
    Tim Quan - MSFT

  • Validation based on conditions in another table

    Hi All,
    I'm trying to do a before update validation based on a condition. Basically, if the value of table1.columnA is changed to Yes only save when there are no rows in table2 columnX = Yes, otherwise online error.
    I have tried expressions, boolean, etc. and can't quite get the right combination.
    I am looking at something like select Y from dual where count of T2.CX = Yes is >1 otherwise N, and generate error only when Y is returned.
    Any help is appreciated.

    Thanks for the help. I did get it working, but in a way completely opposite than I was thinking it should work.
    FYI -
    The validation is expression 1 is contained in expression 2
    expression one is the p15_task_closed
    expression two is NO
    add a condition Exists (Sql returns a row)
    then do the select from the other table where it is true!
    I guess it says look at the conditions first, if the condition is true check the validation. If the validation is TRUE then no error, if the validation is FALSE (in this case the p15_task_closed = YES) enforce the validation error.

  • Field Validation based on SalesStage

    We have three Sales stages in the Picklist Opportunity Sales Stage, According to these Values one of below fields should be Mandatory. The values are as follows:
    If Sales Stage is
    1.     Closed/Won Then the Reason For Win(Text Field) Should be Mandatory
    2.     Closed/Loss Then the Reason For Loss(Text Field) Should be Mandatory
    3.     Closed/abandoned Then the Reason For abandoned(Text Field) Should be Mandatory.
    Could you please suggest me how to do this. Because we don’t have any field validations on Opportunity Salesstage(It’s a seede one), we can’t edit the things also. my thought’s are to place validation based on Sales stage id, i get the id from Source page and i am trying to validate on Reason for win field by using below query, but it is not working for me:
    IIf((FieldValue('<SalesStageId>')="AHIA-PS3GK" AND [<stReason_for_Win_ITAG>]IS NULL, "Invalid", [<stReason_for_Win_ITAG>])) and how to place combination of all the queries on SalesstageId field.
    Thanks
    Subbu

    Hi you can use another field for validation like Opportunity Name, but you have to mention that this approach only works if you insert a new record, not on update. To workaround this you can have another field that is mandatory and has the salesstages in it. Use a combination of default value and an update workflow for it...

  • How to Create a Validation based on a Z table

    I want to create a validation for t-code FB50 so that for any line item that contains a GL Account listed in a table, the validation would then check to see if the field Trading Partner is populated.
    My question is How do I set up the validation so that the values in the table are referenced?  I don't want to have to continually update the valid GL accounts in a set. I want the table to hold the values.  The business users have a custom t-code to update the values in the Z table.
    The Z table contains the field HKONT (GL Account).  The table contains 1 record (it could contain more) with GL Account 123456.
    My attempt was to create a set (Z_TP_ACCTS) that was based on the Z table and the corresponding field.  I then set up my validation to compare the value entered in FB50 (BSEG-HKONT) to look at the set.  My understanding is that the value would be compared to the values in the table, but my tests are failing.  I did not enter any values in the set.
    Any advice / help would be appreciated.

    Hi
    You will have to use an user exit to call up the Z Table to check for your requirement. There are lot of postings on SDN to use an user exit in FI Validations. The standard module pool provided by SAP is RGGBR000 for FI Validations. You can write a form in this.
    Additionally you also have the option of using a BTE for this. The one I can recollect are 00001011 or 00001085
    Thanks & Regards
    Sanil Bhandari

  • FlexField Validation based on Form Status

    Hi ,
    Background :
    I have a Valueset attahced to a segment in DFF, that say, stores a employee ID. My Value set picks up only active employees based on a specific condition. So that, when user enters data, he/she can choose only active ones.
    But as days pass by, the users are end dated. So when I query the Order ( to which this DFF is attached, ) that has an end-dated employee attached to it, the validation fails.
    My Question :
    Is there a way to have the Value set fire only in the Entry Mode and not fre in Query mode?
    Do we have to do this using the FORM.STATUS ( 'NEW','CHANGED') in the valueset query to acheive this? Or is there a simpler way?
    Thanks
    konnektme

    Hi Karthik,
    Instead of making the value set not to validate, you can make the value set to validate as successful. This can be achieved in any of the following ways.
    1) Make the Employee value set to display both Active/Inactive employees. If required the Status column can be displayed in the LOV. Also the list can be ordered by active employees first, then followed by inactive employees. There by user have the option to select the exployees be referring the employee status. This provides a provision to create records based on inactive employees also. If we strictly want to restirct to select only active employees. As said earlier, we can validate in Key-Commit or When validate Record.
    2) Change the value set to return active values always and inactive values only based on condition. Say the condition is (:system.record_status <> 'QUERY' and active_flag = 'y'). In this case only active records will be retreived in the record status is not query, where as if the record status is query, inactive records will also be retreived.
    If you have any solid condition to restrict the records, you can use those instead of record status/form status.
    I would prefer to use Option 1. Which will provide a solid result all the time. Where as option 2 might cause some issues if it is based on record/form status.
    Thanks
    K.Nataraja Suthan,

  • Populating fields based on list box values

    I have created an application based off of a table and so the 1st page is the actual report and the 2nd page is the data entry form. I have changed the form elements (like text box to select list) etc.
    I need to have (2) text box fields populated based on the value from the 2nd select list box. I created a pl/sql page process that will check the value of the select list and assign values to the text boxes. This is triggered when a POPULATE button is pressed.
    When I select a truck number in the select list - nothing happens and the original select list values get reset back to original. There is another button used in order to insert the data so that's why I figured I needed to add another button to trigger the population of the text boxes from a table. Here is my pl/sql page process used to populate:
    BEGIN
    SELECT dr1_name, dr2_name
    INTO
    :P2_DRIVER_1, :P2_DRIVER_2
    FROM
    active_drivers a
    WHERE
    :P2_DRIVER_CODE = a.code;
    END;
    It is set to fire on submit - before computations and validations.
    Regards,
    Jeff

    Not sure if this is the best way but it works for me……
    Make P2_DRIVER_CODE be a form element of Select List with Submit
    Create 2 items, P2_DRVR1 and P2_DRVR2, of form element Hidden
    Edit the P2_DRIVER_1 item. In the source region enter :P2_DRVR1 in Post Calculation Computation.
    Edit the P2_DRIVER_2 item. In the source region enter :P2_DRVR2 in Post Calculation Computation.
    Create a page rendering computation for item: P2_DRVR1.
    Type: SQL Query
    Computation Point: Before Header
    Computation: SELECT dr1_name FROM active_drivers a WHERE a.code = :P2_DRIVER_CODE
    Create a page rendering computation for item: P2_DRVR2.
    Type: SQL Query
    Computation Point: Before Header
    Computation: SELECT dr2_name FROM active_drivers a WHERE a.code = :P2_DRIVER_CODE
    When an item is selected in P2_DRIVER_CODE the page will submit/refresh, causing the computations to be fired. P2_DRIVER_1 and P2_DRIVER_2 will be populated by the return of the queries in the computations respectively.
    P2_DRIVER_1 and P2_DRIVER_2 are still editable by the user (unless you define them as read only) but if you have another select list with submit on the form, if used, the page will refresh and the computation will run again overwriting what the user has entered.
    Suppose I want the user to be able to change the defaults and keep from losing them (changed back to default) in case another item submits/refreshes the page.
    Create a hidden item P2_DRIVER_CODE_CHANGE with the source of: Static Text. For the Default Value enter &P2_DRIVER_CODE. (include the period after &P2_DRIVER_CODE)
    Edit the P2_DRVR1 and P2_DRVR2 computations and in the Conditional Computations region set:
    Condition Type: Text in Expression 1 != Expression 2 (include &ITEM substitutions)
    Expression1: &P2_DRIVER_CODE.
    Expression2: &P2_DRIVER_CODE_CHANGE.
    Hope this works for you,
    Jeff

  • LOV not validating from the list when tabbed out

    Hi,
    I have an item attached to an LOV generated dynamically based on another LOV. When I change the value in the parent LOV, and just click on the child item(which still has old value) and tab out, it does not validate from the list which has new values. The old value in the field is actually wrong one. However, it shows new values when I click on list of values for the child item.
    I am also setting the property VALIDATE_FROM_LIST to PROPERTY_TRUE. The code to set_lov_property to the dynamic query is generic and is used by both key-listval and when-new-item-instance triggers. Except in key-listval I added list_values.
    I am using forms 6i version.
    Can any one tell me where I am doing wrong?
    Thanks,

    Neeraja,
    Its because the item is not validating again, as there is no change in its contents. So you have to tell oracle to validate that item. For that in the WHEN_VALIDATE_ITEM trigger of the parent item, write,
    SET_ITEM_PROPERTY('<block_name>.<child_item_name>', ITEM_IS_VALID, PROPERTY_FALSE);So when you tab out from the child item, the oracle will validate that item even if there is no change in the data.
    Regards,
    Manu.
    If my response or the response of another was helpful or Correct, please mark it accordingly

  • Display webpart based on list content

    Hello,
    Is is possible to either display a custom home page or a different web part based on if content exists in a list or not?
    I have a list configured for data entry.  From that data, I use SQL reporting services to generate and display graphs and pretty stuff.
    Is is possible, for when a user logs into sharepoint (2013), if they have not entered any data yet, then display the data entry form, or if they have already entered data, display the reporting services dashboards?
    Andrew Huddleston | Hillsong Church | Sydney

    You can use javascript client object model to first check if the current logged in user has the data entered in the list on page load and onsuccess method of your javascript async call you can check if you have retrieved any count for the user in the list.
    If data exists then using jquery either show your reporting webpart or hide it and instead show your data entry form. Below are some pointers
    http://sharepoint.stackexchange.com/questions/73032/get-current-user-in-client-object-model-with-javascript
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/c437ecc4-c757-483f-8175-f92860d184be/hideshow-webpart-data-on-buttonclick-using-jquery?forum=sharepointgeneralprevious
    http://msdn.microsoft.com/en-us/library/office/jj163201%28v=office.15%29.aspx#BasicOps_SPListItemTasks
    Geetanjali Arora | My blogs |

  • Range from columns based on list of values

    Hi,
    I have a table that has a key_code and a alt_code like this
    with values like so.. (has 2 million records in 8.1.7 Database)
    KEY_CODE ALT_CODE
    0001     AA
    0001          AB
    0001          AF
    0001          G4
    0001          G5
    0001          G6
    0200          BB
    0200 BC
    0200 BD
    0200 Bx
    I'm struggling with the concept of how to create a range of these values.
    There is one problem I'm running into.
    The alt code must be in a valid code list to have a break in the range
    An example would be
    VALID ALT_CODES TABLE
    B1
    B2
    ZA
    ZB
    ZC
    ZH
    ZJ
    ZK
    WHAT I'M LOOKING FOR IS THE OUTPUT TO BE
    KEY_CODE          BEGRANGE               ENDRANGE
    10               B1                    B2
    10               ZA                    ZK
    20               ZA                    ZJ
    WHAT I'VE GOT SO FAR IS
    SOMETHING THAT LOOKS LIKE
    THE PROBLEM IS THAT THE VALID ALT_CODE LIST IS NOT SEQUENTIAL AND THERE ARE GAPS.
    SO IF, FOR EXAMPLE THERE IS NO CODE ZD IT WILL BREAK A RANGE ON IT THE VALUE BETWEEN ZC AND ZH
    WHEN I DON'T WANT IT TO.
    KEY_CODE          BEGRANGE               ENDRANGE
    10               B1                    B2
    10               ZA                    ZC
    10               ZH                    ZH
    10               ZJ                    ZK
    20               ZA                    ZC
    20               ZH                    ZH
    20               ZJ                    ZJ
    I'd be most grateful for your input.

    Ditto.
    And where the hell does this row come from (not to mention the 10s and 20s being totally different key codes from the first table)?
    KEY_CODE BEGRANGE ENDRANGE
    10 B1 B2
    10 ZA ZK
    20 ZA ZJ <-- ??

  • Windows Server 2012 Cluster Validation Failing On List All Potential Cluster Disks

    I'm in the process of setting up a new cluster using Windows Server 2012 with a view to migrate from our existing 2008 R2 cluster.  I am having problems validating the storage and the wizard keeps failing on the List All Potential Cluster Disks
    test (which causes all the other storage tests to be cancelled).
    I'm getting the following error:
    Failed while verifying removal of any Persistent Reservation on physical disk 19ba99a4 at node RC-HYPERV-3.riddlesdown.local.
    When I look in validation report, disk 19ba99a4 is the management LUN (Access LUN 31 as termed by the storage software).
    Looking on my 2008 R2 cluster this doesn't appear in Disk Management.
    Any ideas how I can get rid of it or the error that it is causing?
     

    Hi,
    Thank you for your question.
    I am trying to involve someone familiar with this topic to further look at this issue. There might be some time delay. Appreciate your patience.
    Thank you for your understanding and support.
    Best Regards,
    Aiden
    TechNet Subscriber Support
    If you are
    TechNet Subscription
    user and have any feedback on our support quality, please send your feedback
    here.
    Aiden Cao
    TechNet Community Support

Maybe you are looking for

  • Double clicking on icons doesn't open up applications anymore

    My iMac recently went thru a electrical surge in my house that ultimately caused an electircal fire in the wall of my home. Anyway, I'm no longer to able to just simply double click on a desktop icon which, in turn, wold open up the appropriate appli

  • Archiving in Reciever file adapter

    Hi . can any one plz help me in <b>archiving file's in reciever file adapter</b> . thanks shakif

  • Can't download lightroom 5 on OS X 10.9.4

    Hi, I've been trying to download Lightroom 5 but can't click the download button in Chrome. Also tried Safari and Firefox but they both give an error saying can't open the specified address. It's not my software version either. Getting pretty despera

  • Create Sales Order fromXI | Urgent

    Hi All,       I'm trying to create a sales order from XI through xml file into R/3. I have created Business and Technical systems for my R/3 Backend system in SLD and created Business and technical systems for my scenarion in SLD. I have done the map

  • Problems Using JDBC

    Hi, I am trying to connect to a database using JDBC. But I get the invalid logon error. The surprising thing is that I can use the exact same username ("sys as sysdba") and the same password to login using SQLPlus. Anybody have any ideas why this mig