To Validate a condition in program

Hi,
I have to put a condition in custom program that ~
For a plant in the selection screen field which is does not lie in the table for T001K for company code u20181000u2019 and in the table T001W for the Node Type entered on the selection screen field there  should be a error message that  'For company code 1000 only Chilled DSD plants with a node type of DSD should be enteredu201D.
How to validate this condition in my Program by code.
Please suggest.
Thanks

Hi
In Initialization,
1.Get data from table T001K and T001W into 2 different internal tables based on Company code and sort them by key values.
Now in Selection-screen Validations: You can read these 2 internal tables and accordingly issue the error message.
Regards
Raj

Similar Messages

  • How to use upload condition record program RV14BTCI

    Hi
    how to use upload condition record program RV14BTCI.
    kathir.

    Hi,
    To run this program we have to maintain Upload file in Application Directory,
    We have to maintain 3 levels of records in that file.. my feel you upload through BDC or LSMW.
    For your information,
    The batch input program RV14BTCI reads the parameters is necessary
    Giving sequential file and creates (depending on the data
    In the file seq) one or more batch input sessions.
    The data are seq file in the following structure expected:
    - The session a session intent (Table KOBTCI, Record 0)
    All other records until the next session, the intent
    Last session assigned to read
    - The head condition Sentence (Table KOBTCI, record 1)
    All other records until the next condition,
    Last read head appropriate rate
    This includes the corresponding condition
    Condition table
    - The key sentence of a Main (Table KOBTCI, record 2)
    It must be directly on the head set to follow
    It contains the key condition of the table
    + Detail fields
    - The season record has a subordinate clause (Table KOBTCI, record 3)
    The teams relate to the key sentence in the main
    Best Regards,
    KSK

  • Error when attempting to validate Join Condition

    In a mapping, I include a joiner and establish the join condiiton. When clicking on the Validate button, I recieve the following error: "An error occurred during expression validation. Bad expression return type."
    At first, we thought this was a problem when creating a new mapping. However, we went back to existing mappings that previously validated successfully and each join is returning this OWB error now. This happens for each user with OWB installed. The mapping itself will validate successfully in the end but the join itself will not validate during development.
    We are currently using OWB Client 10.2.0.4.36 and OWB Repository 10.2.0.4.0. Did the latest patch cause this issue? Any way to resolve this issue?
    Thanks,
    Jennifer

    ... it's a bug, not a feature:
    09/17/08 03:26 pm
    Version & machine info: ========================
    OWB Client/OS: OWB 10.2.0.4.36/Windows
    OWB Design Repository Version: 10.2.0.4
    Runtime Repository Server Platform/Version: Windows XP/10.2.0.4.36
    Oracle Database/OS : 10.2.0.3/Windows XP
    SOURCE & TARGET on the same machine or different machine ? yes
    SOURCE database version/OS: 10.2.0.3
    TARGET database version/OS: 10.2.0.3 .
    Problem Description ======================== .
    Filter and Join Mapping Expressions always fail the Validation Check with the  following dialogue: "An error occured during expression validation. Bad expression return type". It does not matter what the expression is. . This is a new bug in 10.2.0.4. The same exppressions validate successfully in  10.2.0.3 . The code generates and deploys successfully after this message. . . . Reproducible Case (For All bugs) ================================= . 1)START OWB Design and connect  2)Import the uploaded OWB 10.2.0.4 MDL file: expression_validate_bug.mdl  3)OPEN the Project TESTCASE 4)OPEN The Oracle Module EXPRESSION_VALIDATE_BUG 5)OPEN the mapping EXPRESSION_VALIDATE_ERROR 8)Highlight the Filter 9)Open the Filter Condition Doialogue Box. 10)Select the validate button. 11)Observe error.
    BugNo: 7417869 vom 17.09.08Regards,
    Detlef

  • Should I use a MAC address to validate users for my program?

    I'm writing a graphical console program and I was planning on using a few methods for security. One being to block a user from logging in again if they don't type the correct username and password within three tries until the root user authenticates it again. I was planning on blocking the IP address but someone suggested blocking the MAC address since no 2 have the same ID and it's burned in, not to mention alot of people have dynamic addresses. However, I was reading that MAC addresses are mainly used in ethernet cards. I thought any device that has network capabilities has to have a MAC address? Is it good to use a MAC address for blocking someone from logging in again or what?

    Its very easy to change your MAC address. If you have a wireless router (which you can buy for like 20 dollars) then you can tell it what MAC address to use. So I agree, don't use a MAC address to block users from your program. Also are you sending the username/password over the network in clear text? If so, these can be intercepted. So doing that may be a bad idea; it depends on how much security you want for your application.

  • How to Validate this Condition

    Table Structure
    1-Master_table
    ct_no number(4)
    rent_no number(4)
    rcv_dt date2-Rcv_table
    rcv_no varchar2(5)
    rcv_dt date,
    ct_no number(4),
    rent_no number(4),Sample Data of master_table
        CT_NO   RENT_NO RCV_DT
         2717         1 11-MAY-07
         2717         2 25-MAY-07
         2717         3 07-JUL-07
         2717         4
         2717         5
         2717         6
         2717         7
         2717         8
         2717         9
         2717        10
         2717        11
         2717        12
         2717        13
         2717        14
         2717        15
         2717        16
         2717        17
         2717        18
         2717        19
         2717        20
         2717        21I build a tabular form based on RCV_Table contain 10 Rows,in which user select ct_no and Rent_no from master_table from LOV (seperate LOV for Ct_no and Rent_no).
    LOV of CT_no
    select distinct ct_no from master_table
    LOV of Rent_no
    select rent_no from master_table where ct_no=:ct_noI want to validate..if user select 2717 in Ct_no and 4 in rent_no at first record,if user enter another record for that ct_no 2717 ,rent_no field should check the enter value should be 5.
    In rent_no LOV i successfully handle that the record already been selected are not showing in LOV,but if User enter the rent_no manually without using LOV then my validation fails.
    Tell me how to restrict the user to not to enter invalid value of that field

    One IDEA!!!!!!!
    you create a summary item rent_max with
    summary function : max
    summary block : detail bl
    summary item :rent_no col of detail
    So every time you have the max. rent no entered...When you enter in the next record,
    if rent_no != rent_max+1, then throw error...
    But One doubt ....
    If ur LOV works fine ...Why dont you use Validate from list for rent no set as YES ???
    Edited by: Dora on Dec 10, 2009 5:42 PM

  • If condition exit program

    i want the user to input two dates, start and end date, in the format (MM/DD/YYYY) how can i add validation so that
    if end date < start date then exit program
    here's a sample
    set verify off
    accept start prompt 'Enter start time'
    accept end prompt 'Enter end time'
    if '&end' < '&start' then
    exit program;
    update table set start_date = '&start', end_date = '&end';
    exit;
    /

    In case of emailing, there is no need to post in forums.
    Coming to your case, I see three possibilites. First As stevencallen suggested, you could easily handle in the update statement itself in the case you presented.
    As you said, you want to know how to exit the program as such, you have two options.
    One, as Chen Shapira suggested, via exception handling, which is another good option of handling user defined exceptions.
    Another, use RETURN keyword and handle your case as well as various other scenarios in which it is applied.
    Any more doubts, please post your requirements completely, so that there is least chance to assume for us and to suggest appriopriately.

  • Conditional call to a subscreen in module pool program.

    Hi,
    Could anybody please let me know how i will be able to call a subscreen conditionally in a module pool program?
    Example: I have to call a subscreen XXXX if a FLAG = X. How will I achieve this?
    I tried to write the below code in PAI
    if flag = 'X'.
    call subscreen XXXX.
    endif.
    This produced an error.
    Regards,
    Smithesh

    Hi
    In TOP Include
    data repid type sy-repid,
            dynnr type sy-dynnr.
    In PBO of main screen
    module status_100. " First Call This Module to provide the SubScreen Number to below Code
    call subscreen sub including repid dynnr. " This serves the purpose of calling subscreen based on condition
    in Program.
    module status_100.
    repid = sy-repid.
    if your_condition = 'X'. " This also can be implemented in any PAI logi as its purpose is just to pass a value to DYNNR
    dynnr = '200'. " The SUB Screen  Number you want to pass
    else.
    dynnr = '300'. " Dummy Sub Screen Screen or any other (Make Sure these are of SUB SCREEN type )
    endif.
    endmodule
    Cheerz
    Ram

  • Logical  database and program selection filter

    Hi experts ,
    In my program i have to select pernr through logical database selection and payroll area through manual coding .
    Could you tell me how to give the filter condition in program.I am  using PNPCE Logical database .
    Thank you.
    Devika.

    I guess you mean to modify the screen layout during AT SELECTION-SCREEN OUTPUT via
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        screen-active = 0.
        MODIFY SCREEN.
      ENDLOOP.
    This does hides all screen elements but the screen is still displayed.

  • AJAX Report Refresh  a_report- Condition for display not being validated

    Hi ,
    I have a report which has the following condition for dispaly:
    Exists(SQL query returs atleast one row) - SELECT * from temp1The query for the report is : select * from temp1 Now I have a button on the page and on click of the button I call the below Javascript :
    function f_insert_Temp_table(pTrans){
          var l_Return = null;
          var get = new htmldb_Get(null,$x('pFlowId').value,
                  'APPLICATION_PROCESS=temp_table_insert',206);       // ODP to insert into temp1
          get.add('TRANS_ID_ITEM',pTrans);
          gReturn = get.get('');
         //alert(gReturn);
         //$x_Show('6342610690289435');
         $a_report('6342610690289435','1','15','15');
    }Everything executes fine and the report refreshes the rows but the condition used for display doesn't get checked when I call $a_report() ...
    I can see the ODP execute successfully and row gets inserted into temp1 which means report condition is satisfied .
    If I remove the condition for the report, I can see the report getting refreshed and showing new rows through the $a_Report() call.
    Is there something that needs to be added to the script or $a_report call to validate the condition too ?Is there a way I can validate the region condition too ?
    Appreciate any suggestions/pointers here. I really do not want to refresh the whole page.
    Thanks,
    Dippy
    Edited by: Dippy on Feb 5, 2010 11:05 AM

    Hi Flavio,
    Thanks for your support.I figured where I was going completely wrong.
    Its just that when the page loads for the first time the temp table is empty and hence the report is not being displayed which simply
    means that the report id Im passing into the a_report function is not rendered on the page. Hence no matter what the temp table contains the report id is absent from the page.
    I fixed it as follows :
    Remove the condition for the report.
    Added and item and computed(P_Compute) its value using select count(*) from temp.
    Added an onload JS function which does a $x_Show('Report_Region') if P_Compute > 0 or $x_Hide('Report_Region') if P_Compute <0 .
    Now in my JS function which has an AJAX call to an ODP does an $x_Show('Report_Region').
    Flavioc : the query for my report is simple
    select * from tempIt finally dawned upon me that I'm trying to catch hold of an ID that's not rendered.
    So one issue is solved now the other part would be figuring out how to make $a_report work with pagination etc .

  • Maintain Excise defaults for pricing condition in TAXINN procedure

    Hi all,
    I post this message as I'm customizing CIN part for creation and calculation of excise invoice. I have read lot of post but i'm a bit confused about right procedure to adopt. I try to explain:
    I'm doing a stardard sales flow (sales order -> delivery -> commercial invoice -> excise invoice) and the only method I have found to flow excise values in excise invoice is to insert pricing conditions in India -> Basic settings -> Determination of excise duty -> Maintain excise defaults for TAXINN procedure.
    In this table I have insert pricing conditions I use in my SD pricing schemas (in this case I use a copy of JINFAC). I have insert pricing conditions corresponding to BED % and BED total, and also CESS % and total and S&HCESS % and total.
    If I remove pricing condition from this table, corresponing value in excise invoice, when I create it, become 0.
    My dubt is if is correct to populate with table to flow excise values in excise invoice. I ask it as I have read differents approach and differents customizing settings applied in similar situations. In particular, I have found documentation in which, for TAXINN procedure, is recommended to leave blank "excise defaults" (with exception of CVD condition). What is the right method to use?
    There is one right procedure or, as it seems reading posts, someone have to do his "proper CIN customizing" based on results that have to obtain?
    Thanks in advance for any contribute that can help to clarify this situation.
    Regards
    Gianpaolo

    Hi all,
    I think to have found solution to my dubt.
    If I use "condition based Excise determination" I have to insert records with pricing schema (if is a copy of standard J* schema, like ZINFAC that is a copy of JINFAC) and excise pricing conditions in the transaction below:
    India -> Basic settings -> Determination of excise duty -> Condition-based Excise determination -> Classify condition type
    To determine value in excise invoice seems that program check before table in transaction described before. If in this table don't find records for pricing schema-excise pricing condition the program check also table in transaction below:
    India -> Basic settings -> Determination of excise duty -> Maintain excise defaults
    If during this second check find excise pricing conditions insert, can determine equally the values of excise in excise invoice.
    This is the result of my checks. I hope this could be useful for other people with similar problem.

  • Complex condition in process flow transition

    From a mapping i have three outgoing transitions:
    1: "KM_UTIL_PKG"."GETTESTMODE"() = 0
    2: "KM_UTIL_PKG"."GETTESTMODE"() = 1
    3: unconditional
    the process flow validates ok, deploys ok but when it is executed the error message is :
    ORA-06550: line 1, column 1085: PLS-00201: identifier 'KM_UTIL_PKG.GETTESTMODE' must be declared ORA-06550: line 1, column 1058: PL/SQL: Statement ignored.
    Although the function is there.
    What am i doing wrong ?. Has anyone an example of the expected syntax in the transition condition editor > complex condition window ?
    Ron

    Try giving just = 0 and = 1 without the function call, as the function call is already appended in the where clause.
    For example I was able to make it work by just giving IS NULL and IS NOT NULL.
    Also there is VALIDATE button within the window where we give the complex condition. Try to validate the condition there itself.
    Best,
    Manohar

  • LSMW Pricing Condition changes

    Hi,
    I need to create a LSMW to change pricing condiitons in condition type PR00 for access sequence table 006 (Price List Type/Currency/Material). I did the following:
    1. Defined Object attributes Standard/Batch Direct Input 0070 (Condition record) Program Name RV14BTCI and Program type B (Batch). Method is 000.
    2. Where do I define that the new records have to go into this table 006? Will it be in the source structures? Source fields? Can anyone explain me step by step how this will work? And what will be the subsequent steps? The documentation I have on LSMW isn't much help unfortunately and is very generic. I need specific solution/steps to this pricing condition table. Any guidance on it?
    Thanks a lot.

    Hi Kevin
    Pl. check this link on LSMW pricing :
    <a href="http://sap-img.com/sap-data-migration.htm">LSMW</a>
    <a href="http://sap-img.com/sd001.htm">to upload pricing conditions</a>
    Pl reward if it helps.
    Thanks & Regards
    Sadhu Kishore

  • To run a program in batch mode

    I have to creaet a program to run in batch mode to update anln1 and anln2.
    selection screen : company and cost center.
    I have to read z table
    update anln1 and anln2 ( from table anla )
    Can anybody help me how to write a program in batch mode and update....

    Hi,
    Write the entries logic with the condidtion like below.
    after selecting the required data,
    if sy-batch = 'X'.
    Now update the required table.
    endif.
    Even you can put the select statement also after if condition.
    now go to SM36 and define the Job with Program name or any other name.
    Under Job condition select the execution mode/time of your program.
    As you have mentioned the sy-batch condition , your program will work only for Back ground mode.
    Hope it helps you.
    Kind Regards,
    Ravi Sankar.Z

  • Trans ME31K:Defaulting item condition validity to contract validity date

    Hello Experts,
    I have a request from my client which is as follows :
    On transaction ME31K (Create Contract), at header I can enter a start date and an end date for the validity of my contract.
    Program name : SAPMM06E
    FIELD-NAMES : EKKO-KDATB & EKKO-KDATE
    The users want the same date range to appear at item level for the conditions :
    Select a new created Item > Conditions.
    Program name :SAPMV13A
    FIELD NAMES : RV13A-DATAB & RV13A-DATBI
    Because, the transaction is changing the program name, it is very difficult for us to replicate the dates at the item's condition level.
    Can you please suggest any idea to implement this solution ?
    Thanks & Regards,
    Mahesh
    Edited by: Maheshsingh Sharma Jhoomuck on Oct 5, 2009 4:52 PM
    Edited by: Maheshsingh Sharma Jhoomuck on Oct 5, 2009 4:53 PM

    Hi raghavendra sai !
    Thanks for the answer.
    But actually, my client wants  'from date' of the items conditions to be defaulted to the date that he indicated on the contract's validity date at header (from date - EKKO-KDATB).
    A contract can be created with a validity interval that starts from a past date.

  • Program : FI_DOCUMNT_WRI

    Hi
                 I use the program : FI_DOCUMNT_WRI to read the database before archeiving but there are some error message.
    " Withholding tax life (455 days) not reached"
                 I would like to know the meaning or condition for program that make an error.
    Thank you for your help
    Wiboon

    Hi Wiboon....
    As Iam not worked with that report previously, I will suggest you one this.
    First you find the Message class name and ID name for that message.
    And now goto program...
    Try to search that message in program or in its includes..
    Put a break point there and debug...
    You can trace that error with this easily... also you can gain some additional knowledge on that area...
    Thanks,
    Naveen.I

Maybe you are looking for

  • FR: Opt/Alt+Shift selects entire word

    Opt+the arrow keys move from word to word like in pretty much every application, but when you add the Shift key you lose that functionality and end up going through each character. This is a super useful thing to select a few words quickly, and it's

  • Turning on 'write xmp files' in LR 5.4 changed the modified date on my old raw and jpg files. Can i stop this?

    On the advice of an article saying XMP sidecar files are a safer alternative to relying only on the catalog, I recently (June 16, 2014) turned on write XMP files. Now all my JPG and raw files have the same modified date of June 16, 2014, making it im

  • What on earth is a compilation and how do I make use of one?

    The online help in iTunes doesn't really explain what a compilation is. How do I go about using one? Thanks.

  • Techniques for channel outs?

    I've been away from MainStage for a while and am not refining some hardware and configurations.  I would like to send MainStage channels out individual interface outputs to feed a separate console, with MS handling reverts, settings and controller su

  • Certificate Request - Oracle Wallet

    Hi, I need a help from yours, please try to help me to solve a problem. I have a token certified for my company and i need to use this certified to comunicate to a Brazilian Federal, but i didin't have an idea how to this, and after read i saw that e