IF - THEN Condition

Hi Experts,
i have small doubt on if then condition. I have kept condition for quantity field but output is not coming correctly. If unit price is greater than zero then i have to make the quantity field blank. in other words, if amount > 0 then quantity = ' '.
How to achieve it ? can anyone guide me ? below is the code. I have kept this code in uom field using conditional region.
<?if:number(Amount)>0?> <?uom=0?> <?end if?>
Edited by: newbiebip on Aug 9, 2011 1:57 AM

You can have it like
<?xdofx:if Amount>0 then ' ' else Quantity end if?>
I assume that quantity should be displayed BLANK.

Similar Messages

  • I am trying to produce a formula that would allow an IF / THEN condition.

    I am trying to produce a formula that would allow an IF / THEN condition.
    I would like to be able to say that the selected cell would equal a specific cell if another cell had specific text entered in it..... i.e.
    In a sheet that contains cell from A1 to A3....
    That in cell A1 a dollar amount is entered, say $10.00
    That in A2 the text HELP is entered
    I would like to be able to have
    A3=A1 IF A2 contains HELP
    and it would be even better, if it contained anything else a $0.00 would be entered in the A3 cell
    Thanks in advance, Darrell

    Hi Darrell,
    Welcome to apple Discussions and the numbers '09 forum.
    A good place to start would be to download and read the first chapter of the Numbers '09 User Guide, which would give you a general overview of using a spreadsheet.
    For your particular question, a look at the IF function (page 150 of the iWork Functions and Formulas User Guide) seems in order.
    Both guides can be downloaded using the appropriate item in the Help menu in Numbers.
    The syntax of IF is this:
    =IF(if-expression,if-true,if-false)
    In a sheet that contains cell from A1 to A3....
    In Numbers, Sheets contain tables, charts, text boxes and other objects. Cells are contained in Tables.
    That in cell A1 a dollar amount is entered, say $10.00
    The entry would be 10, 10.0 or 10.00. The cell would be formatted for Currency.
    That in A2 the text HELP is entered
    I would like to be able to have
    A3=A1 IF A2 contains HELP
    and it would be even better, if it contained anything else a $0.00 would be entered in the A3 cell
    You want the formula to determine the value in cell A3, so the formula goes in that cell.
    Your condition (expression) is that A2 contains the text "HELP". As an expression, that's A2="HELP"
    If the expression is TRUE, you want the value returned to A3 to be the value in A1: A1
    If the expression is FALSE, you want the value returned to A3 to be 0 (with the cell formatted to show the value as currency).
    Substituting those into the template for the IF function, you get:
    =IF(if-expression,if-true,if-false)
    =IF(A2="HELP",A1,0)
    Regards,
    Barry

  • Choose Your New Car - IF Then, Conditions, Weighted Totals

    Here is my problem:
    A person really wants a new car. I have 4 cars that are very similar to one another, and the person really likes all four based on appearance only.  I figure that if I ask enough distinguishing yes and no questions, I can narrow it down to one car out of the four that would be best suited for the person and I can be certain they would be happy with it because of the information they provided. 
    So I want to weight each yes/no question (0-4) and create a condition or if-then (forgive me for my numbers illiteracy) so that if they answer yes to question #1 for example, then that weighted number (we will say 3 for this example) which happens to be associated with a honda civic (one of the four cars) will go into a cell that keeps a running total for the honda civic. At the end of the questions, based on the way the person answered, the highest total number would suggest one of the four cars would be best suited for him.
    So, I am looking for a way to create a formula to satisfy what I am hoping to do. Can anyone help?  Below is what I thought it might look like.  Thanks!

    Hi e,
    Interesting! I assume the weightings are your knowledge and opinion, not the customer's wish-list. If so, instead of entering y (4) for Honda Civic airbags, you could just enter 4 (I assume that it gets a 4 because it has side air bags, and you consider those air bags to be reliable). I assume the Chevy Malibu has no side air bags, and so gets 0. Then you have just numbers that are easier to deal with.
    How about this for the Features Table (I renamed this table Features in the left sidebar and added a label in cell A1):
    Features
    side air bags
    spoiler
    kid friendly
    TRUE
    FALSE
    TRUE
    Honda Civic
    4
    0
    0
    Chevy Malibu
    0
    1
    0
    Hyundai Elantra
    0
    0
    2
    Kia Forte Koup
    3
    0
    0
    There are check boxes in Row 2 under each feature (they show here as TRUE/FALSE). Tick means yes, it is important to the customer. No tick means no, it is not important to the customer.
    You can insert check boxes with Inspector > Cells, click on Cell Format to choose tick boxes.
    Add another table and rename it Outcome. The Outcome Table uses IF so that a feature only counts IF a checkbox is ticked. enter this in cell B3:
    =IF(Features :: B$2 = TRUE,Features :: side air bags Honda Civic,0)
    Select and copy down then across to fill to cell D6. Please note that these formulas will only work if you name the Table "Features" otherwise you must use cell references.
    Outcome
    side air bags
    spoiler
    kid friendly
    Total
    Honda Civic
    4
    0
    0
    4
    Chevy Malibu
    0
    0
    0
    0
    Hyundai Elantra
    0
    0
    2
    2
    Kia Forte Koup
    3
    0
    0
    3
    The Total column uses  =SUM(B3:D3)
    Copy down to D6.
    I hope this helps.
    Ian.

  • Multi Mapping: Error in If Then condition

    Hello Guru's,
    My requirement is to populate multiple target objects based on the source field called location. For testing I have tried If Location = india then source objects will be mapped to MT_Tfile1 other wise it should be mapped to MT_Tfile2(while mapping i am concatenating Fname and Lanme to Name to MT_Tfile2) . See the below mapping screen for more details.
    I am getting error when i try to do test with some input values.
    Not able to figure out what could be the error. Can you pls suggest/help what is the issue here?
    Thanks
    Arun

    Hi Bertoni,
    I did the mapping for MT-Tfile2 as well. Pls see the below screens hot.
    But with this straight mapping, MT_Tfile2 is not populated for the data entered which is not equal to India. It got worked when changed the context of the filed location to messages, see the below screen.
    Can you pls explain the logic behind it? i tried to check with display queue but not able to figure out how it worked.
    Thanks
    Arun

  • Problem with condition IF THEN in Message MApping

    Hi,
    We are not getting correct ouput when we use condition IF THEN without else in message Mapping .We are sending data from File to XI to R/3.
    We are using file adapter and IDOC adapter to create customer in R/3.
    In message Mapping we are creating Segment E1KNB1M and E1KNBKM based on condition.
    IF THEN Condition used in mapping is as below
    find the length of Compnaycode with LENGTH function.Pass that value as one of the parameter to function GREATER.Pass second parameter to function GREATER a constant (0).Pass the result to If without else function.If this is true pass Item to IF THEN function and Map the result to E1KNB1M.
    Our mapping is not giving desired output in below scenario:
    Source  XML
    <?xml version="1.0" encoding="utf-8" ?>
    <ns:CustomerMaster_Request_MT xmlns:ns="http://mazdausa.com/sapr3/fi/masterdata/customermaster">
    <Idoc>
    <Header>
      <ID>H</ID>
      <ACCTGRP>M002</ACCTGRP>
      <CUSTNO>R51563</CUSTNO>
      <NAME1>WAYNE MAZDA</NAME1>
        </Header>
    <Item>
      <ID>L</ID>
      <COMPCODE>US10</COMPCODE>
      <BANKKEY>0000326</BANKKEY>
      <BANKCNTRY>US</BANKCNTRY>
      <BANKACCT>05893</BANKACCT>
      </Item>
      </Idoc>
    - <Idoc>
    - <Header>
      <ID>H</ID>
      <ACCTGRP>M002</ACCTGRP>
      <CUSTNO>51563</CUSTNO>
      <NAME1>WAYNE MAZDA</NAME1>
      </Header>
      </Idoc>
    - <Idoc>
    - <Header>
      <ID>H</ID>
      <ACCTGRP>M002</ACCTGRP>
      <CUSTNO>V51563</CUSTNO>
      <NAME1>WAYNE MAZDA</NAME1>
        </Header>
    - <Item>
      <ID>L</ID>
      <COMPCODE>US10</COMPCODE>
      <BANKKEY>000326</BANKKEY>
      <BANKCNTRY>US</BANKCNTRY>
      <BANKACCT>0305893</BANKACCT>
      </Item>
      </Idoc>
      </ns:CustomerMaster_Request_MT>
    Here 3 Idoc are created under ZDEBMAS06.
    First IDOC contain segment E1KNB1M and E1KNBKM as desired because first idoc in Source XML contains Item data.
    Second IDOC contain segment E1KNA1M only as desired because second Idoc in Source XML does not contains item data.
    Third IDOC does not contain Segment E1KNBKM and E1KNB1M which is not a desired output. It should contain these segments as third idoc in source XML have item data.
    But we are getting right output in case we also have Item data under second IDOC in source XML.
    Please let me know where I am doing wrong.
    Thanks.
    Rekha.

    Hi Rekha,
    I am getting the same problem while checking display Queue in message mapping??
    <i><b>Source code has syntax error: java.lang.NoClassDefFoundError: com/sun/tools/javac/Main Exception in thread "main"</b></i>
    Any ideas to solve this problem...
    Thanks,
    Sekhar

  • IF Condition in a PL/SQL Script give a report error.

    Hello, I’m German and I hope you can unterstand my Question.
    First, I work with the HTML DB Version 1.6.0.0.0.87 and the Oracle Version 9.2.0.6.
    I create a SQL Report, where a PL/SQL Script return the SQL Statement for the Report. This is my source-code, I have short it...:
    Declare
    sql_str varchar(2000);
    sql_str_select varchar(1000) :=' select dim_sparte …... ';
    sql_str_from varchar(1000) := ' from faktentabelle,dim_sparte ';
    sql_str_where varchar(1000):= ' where … and faktentabelle.zeit_id = :POPUP_ZEIT ';
    sql_str_groupby varchar(1000):= ' group by dim_sparte.name, faktentabelle.zeit_id ';
    Begin
    If ( (V('POPUP_NETZGEBIET') is not NULL) and (V('POPUP_NETZGEBIET') <>
    'Alle Netzgebiete')) THEN
    sql_str_select := sql_str_select || ' ,dim_organisationseinheit.netzgebiet_name ';
    sql_str_from := sql_str_from || ' , dim_organisationseinheit ';
    sql_str_where := sql_str_where || ' and faktentabelle ... and
    dim_organisationseinheit.netzgebiet_name = :POPUP_NETZGEBIET';
    sql_str_groupby := sql_str_groupby || ' , dim_orga .... ';
    End IF;
    sql_str:= sql_str_select || sql_str_from || sql_str_where || sql_str_groupby;
    htp.print(sql_str);
    Return sql_str;
    End;
    This Script include a IF-THEN condition. The Condition is true and the sql-String-Variables are updatet.
    I can get the string with htp.print() and the Statement is OK.
    The report get a Error “report error: ORA-1403: no data found”. If I copy the printet sql String in a new Report Region with SQL String, the Report is OK. When I write IF(true) instead of IF( Condition) the Report is OK, too.
    I try ist with Varibalen V(‘name‘) and with :name. It’s always the same problem. I can’t use IF-THEN-Else Conditions in a Script.
    Please help me and say me what is the problem???
    Thanks,
    Simona

    Hi Simona,
    In the sql region below the region source see that you have " Use Generic Column Names (parse query at runtime only)" check and not " Use Query-Specific Column Names and Validate Query".
    This error you usually get when you have a mismatch in your report heading.
    Vivek
    [email protected]

  • Wierd Behaviour of IF then ELSE standard function

    Hi All,
    I am facing a very wierd behaviour of the IF then ELSE function in a mapping.
    Condition to be checked:   if GDS_id = 1, then (condition 1 -  RFC lookup ) ElSE (condition 2 - JDBC Lookup followed by an RFC  lookup).
    Issue:  The input payload is 0-unbounded with a possibility of a different GDS_id values.
    Case 1 :
    As shown below, in case the input payload has 3 repitions of the RECORD, with the Fit set having GDS_ID = 01, the mapping runs perfectly fine . All the If then Else branches are getting executed.
    Case 2:
    Where as iF the first GDS_ID != 01 (not 01) , thenthe target value is not getting populated properly .
    I have tried all the possibilities and combinations but i am unable to resolve this. Please help.
    Attached the screen shot of the message mapping, and sample test results of both the use cases.
    For instance, below is a sample payload:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:mt_EMERGO_common xmlns:ns0="http://sabreEMERGO_common.com">
    <Record>
          <booking_date>08012013</booking_date>
          <iata_code>2325540</iata_code>
          <gds_id>01</gds_id>
          <pos_code>RD3A</pos_code>
          <gds_code>01</gds_code>
          <net_booking>11</net_booking>
       </Record>
    <Record>
          <booking_date>08012013</booking_date>
          <iata_code>2325540</iata_code>
         <gds_id>02</gds_id>
          <pos_code>54S8 </pos_code>
          <gds_code>02</gds_code>
          <net_booking>11</net_booking>
    </Record>
      </ns0:mt_EMERGO_common>

    Hi All,
    I have changed the message mapping like below. Even though i am not getting my target filed as value. As per my requirement if GDS_ID=01  then perform the RFC lookup and pass the value to target fields KUNNR and else GDS_ID=02 then perform the JDBC LOOKUP and JDBC LOOKUP output to RFClookup .RFC LOOKUP output pass to my target field KUNNR.
    Result of my mapping is 1st record only populated KURNNR in Target side and 2nd record not showing as KUNNR filed in target side .But I have taken look on display queue in If then else out showing 2 values but it is not passing to target filed.
    Please provide any suggestion to resolve this issue.
    Please find the mapping logic:
    Please find the test screen:
    Please find the test Data:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:mt_EMERGO_common xmlns:ns0="http://sabreEMERGO_common.com">
       <Record>
          <booking_date>08012013</booking_date>
          <iata_code>2325540</iata_code>
         <gds_id>02</gds_id>
          <pos_code>54S8 </pos_code>
          <gds_code>AA</gds_code>
          <net_booking>11</net_booking>
       </Record>
       <Record>
          <booking_date>08012013</booking_date>
          <iata_code>2325540</iata_code>
          <gds_id>01</gds_id>
          <pos_code>RD3A</pos_code>
          <gds_code>AA</gds_code>
          <net_booking>11</net_booking>
       </Record>
    </ns0:mt_EMERGO_common>
    Regards,
    Ramesh

  • How to evaluate the dynamic condition string in PL/SQL ?

    Hello, I am solving the issue of checking and validating the event table.
    For Example, the event table namely "Contract_validated" contains some atts about a contract as follow:
    CONTRACT_VALIDATED (SEQ_ID, CO_ID, VALID_T, CHANGE_KEY, ATT1, ATT1_FROM, ATT2, ATT2_FROM, REASON, CHANGE_KEY_ORIG, ATT1_ORIG, ATT2_ORIG)
    In this table, the pairs (ATT1 and ATT1_FROM), (ATT2 and ATT2_FROM) must be compared to check whether the values are changed or not in the update event (change_key = U). If some records have change_key = U but the values does not change, I need to protocol and correct such records.
    The table name and attributes list could be dynamic, and will be provided as parameters. Therefore, I use Dynamic PL/SQL to generate the code to test the conditions between the values between the pairs columns for detecting the invalid event. However, I am stucking in testing the condition phrases because I can not evaluate the condition string in the SELECT statement. I can not use IF because parts of this condition string take the value from a record and collection type. Anyone has the idea how to evaluate the condition in such case, please give me instructions or recommendations (it could be other alternatives to solve the problems)
    Here is the code which generated from my Dynamic PL/SQL string, however, Oracle raise exception error at the EXECUTE IMMEDIATE v_sql command
    SELECT 'x' FROM DUAL WHERE (NVL(v_rec.ATT1, NULL) <> NVL(v_rec.ATT1_FROM , NULL) OR (NVL(v_rec.ATT2, NULL) <> NVL(v_rec.ATT2_FROM , NULL))
    E-0008: Unkown Exception raised in Loop. ORACLE:ORA-00904: "V_REC"."ATT2_FROM": invalid identifier
    vo_traced_list has type Table of VARCHAR2(2000), storing the atts list of table (CONTRACT_VALIDATED), it has value already from other procedure invocation.
    Here is the dynmic PL/SQL code generated dynamically depends on the table name, and attr list:
    DECLARE v_rec CONTRACT_VALIDATED%ROWTYPE;
    TYPE cv_type IS REF CURSOR;
    v_rec_cv CV_TYPE;
    v_cond VARCHAR2(4000);
    cond BOOLEAN := FALSE;
    v_exec VARCHAR2(1000);
    v_default VARCHAR2(10):= 'NULL';
    tk_val CONTRACT_VALIDATED.VALID_T%TYPE;
    pk_val CONTRACT_VALIDATED.CO_ID%TYPE;
    v_cnt NUMBER;
    BEGIN
    OPEN v_rec_cv FOR SELECT /*+ parallel(x,4) */ x.* FROM CONTRACT_VALIDATED x WHERE CHANGE_KEY = 'U' ORDER BY VALID_T;
    FETCH v_rec_cv INTO v_rec;
    IF v_rec_cv%NOTFOUND THEN
    Add_Log('Event_Validating',v_user,v_event_validated,'INFO','I-0001: No-Procession needed');
    ELSE
    BEGIN
    LOOP
    pk_val := v_rec.co_id;
    tk_val := v_rec.valid_t;
    v_cnt := vo_traced_atts_list.COUNT;
    v_cond := '(NVL(v_rec.'|| vo_traced_atts_list(1)||', ' || v_default || ') <> NVL(v_rec.' || vo_traced_atts_list(1)||'_FROM'
    ||' , ' || v_default || '))';
    cond := (BOOLEAN) v_cond;
    FOR v_i IN 2..v_cnt LOOP
    BEGIN
    v_cond := v_cond ||CHR(13)||CHR(10)||'OR (NVL(v_rec.'||vo_traced_atts_list(v_i)||', ' || v_default || ') <> NVL(v_rec.'||vo_traced_atts_list(v_i)||'_FROM'
    ||' , ' || v_default || '))';
    END;
    END LOOP;
    v_exec := 'SELECT ''x'' FROM DUAL WHERE '||v_cond;
    Add_Log('Event_Validating',v_user,v_event_validated,'INFO',v_exec);
    EXECUTE IMMEDIATE v_exec;
    /* Exception raised from here
    E-0008: Unkown Exception raised in Loop. ORACLE:ORA-00904: "V_REC"."ATT2_FROM": invalid identifier
    It seems that Oracle does not understand the dynamic reference v_rec.ATT2_FROM, v_rec.ATT2,... to test the condtion
    IF SQL%ROWCOUNT = 0     THEN -- condition is false ==> traced attributes does not changed
    -- update the REASON = 4 - not interested event
    v_exec := 'UPDATE CONTRACT_VALIDATED SET REASON = 4 WHERE CO_ID = '||pk_val||' AND VALID_T = '||tk_val;
    EXECUTE IMMEDIATE v_exec;
    END IF;
    FETCH v_rec_cv INTO v_rec;
    EXIT WHEN v_rec_cv%NOTFOUND;
    END LOOP;
    EXCEPTION
    WHEN OTHERS THEN
    Add_Log('SCD_VALIDATION',v_user,v_event_validated,'ERROR','E-0008: Unkown Exception raised in Loop. ORACLE:'||SQLERRM);
    RAISE ge_raise_error;
    END;
    END IF;
    CLOSE v_rec_cv;
    EXCEPTION
    WHEN OTHERS THEN
    Add_Log('SCD_VALIDATION',v_user,v_event_validated,'ERROR','E-0008: Unkown Exception raised in Loop. ORACLE:'||SQLERRM);
    RAISE ge_raise_error;
    END;

    Dear Andrew,
    Thank you so much for your suggestions, however, I think it will be better to let me explain more about the situation.
    I am working at Data Warehousing and Analysis part. The event tables are provided by other applications such as Customer OTLP system, Sales Management, etc. We therefore just have the results stored in the event tables (which could be wrong or inconsistency) and no way to force them to be valid by constraints. Before further processing the events , their records should be checked and overridden if possible, and that is the point I am trying to solve now.
    The Event table names, their attributes list, data types, primary key, timestamp columns etc are dynamic and are provided via parameters. I would like to write a procedure which can check the invalid events (not only update, but also insert, delete), protocol them, and override them if possible before processing further. Because the table name, attribute lists, data type, etc are not known in advanced, to my best knowledge, the only choice is generating dynamic PL/SQL code although it could suck the performance. The code you have seen in my first question is the output from the follwoing procedure, where the i_att_list provides the atts list has been parsed from other procedure invocation, i_pk is the primary key, i_tk is the time key, i_table_name is the table name (which is Event_Validation in previous example). The stucking point I have met now is that I do not know how to test the condition to detect the different between column pairs (ATT1 and ATT1_FROM, ...). Using Select from dual is just a dummy select for testing the where condition which must be formed as a string by that way.
    Thank you very much for your answer and looking forward to seeing your further recommendations or suggestions.
    Regards,
    Tho.
    CREATE OR REPLACE PROCEDURE Update_Validation
    ( i_att_list enum_string, -- list of attributes
    i_pk IN VARCHAR2, -- primary key column
    i_tk IN VARCHAR2, -- time key column
    i_table_name IN VARCHAR2 -- table_name - the columns format be checked
    ) AUTHID Current_User IS
    TYPE LoopCurType           IS REF CURSOR;
    ln_parallel NUMBER := 4;
    ge_raise_error EXCEPTION;
    v_user VARCHAR2(100);
    v_sql VARCHAR2(4000);
    v_string VARCHAR2(4000);
    v_crlf VARCHAR2(2) := CHR(13)||CHR(10);
    BEGIN
    SELECT sys_context('USERENV','current_schema') INTO v_user FROM DUAL;
    v_sql:= 'SELECT /*+ parallel(x,'||ln_parallel||') */ x.* FROM ' ||i_table_name|| ' x '||
              'WHERE CHANGE_KEY = ''U'''||
    ' order by '||i_tk;
    v_string := 'DECLARE v_rec '||i_table_name||'%ROWTYPE;' ||v_crlf||
              ' TYPE cv_type IS REF CURSOR; ' ||v_crlf||
    ' v_rec_cv CV_TYPE; ' ||v_crlf||
              ' v_cond VARCHAR2(4000); ' ||v_crlf||
         ' v_exec VARCHAR2(100);' ||v_crlf||
              ' v_default VARCHAR2(10):= ''~~''; ' ||v_crlf||
    ' tk_val '||i_table_name||'.'||i_tk||'.%TYPE;'||v_crlf||
    ' pk_val '||i_table_name||'.'||i_pk||'.%TYPE;'||v_crlf||
              ' v_cnt NUMBER;' ||v_crlf||
              'BEGIN ' ||v_crlf||
                        'OPEN v_rec_cv FOR ' ||v_sql ||';' ||v_crlf||
                        'FETCH v_rec_cv INTO v_rec;' ||v_crlf||
                             ' IF v_rec_cv%NOTFOUND THEN ' ||v_crlf||
                                  'Add_Log(''Event_Validating'',v_user,i_table_name,''INFO'',''I-0001: No-Procession needed'');'||v_crlf||
                             ' ELSE ' ||v_crlf||
                                  ' BEGIN '||v_crlf||
                                  ' LOOP '||v_crlf||
                                  'pk_val := v_rec.'||i_pk||';'||v_crlf||
    'tk_val := v_rec.'||i_tk||';'||v_crlf||
    'v_cnt := i_att_list.COUNT;' ||v_crlf||
                                            'v_cond := ''NVL(v_rec.''|| i_att_list(1)||'', '' || v_default || '') <> NVL(v_rec.'' || i_att_list(1)||''_FROM'''||v_crlf||
                             '||'' , '' || v_default || '')'';'||v_crlf||
                                            'FOR v_i IN 2..v_cnt LOOP'||v_crlf||
                                                 'BEGIN'||v_crlf||
                                                 'v_cond := v_cond ||CHR(13)||CHR(10)||''OR NVL(v_rec.''||i_att_list(v_i)||''), <> NVL(v_rec.''||i_att_list(v_i)||''_FROM'''||v_crlf||
                                                 '||'' , '' || v_default || '')'';'||v_crlf||
                                                 'END;'||v_crlf||
                                            'END LOOP;'||v_crlf||
                                            'v_exec := ''SELECT ''x'' FROM DUAL WHERE ''||v_cond;'||v_crlf||
                                            'EXECUTE IMMEDIATE v_exec;'||v_crlf||
                                            'IF SQL%ROWCOUNT = 0     THEN -- condition is false ==> traced attributes does not changed'||v_crlf||
                                            '-- update the REASON = 4 - not interested event'||v_crlf||
                                            'UPDATE '||i_table_name||' SET REASON = 4 WHERE '||i_pk||' = '||v_tk||' AND '||i_tk||' = '||tk_val||';'||v_crlf||
                                            'END IF;'||v_crlf||
                                       'FETCH v_rec_cv INTO v_rec;' ||v_crlf||
                                       'EXIT WHEN v_rec_cv%NOTFOUND;'||v_crlf||
                        ' END LOOP;'||v_crlf||
                                  'EXCEPTION' ||v_crlf||
                             'WHEN OTHERS THEN'||v_crlf||
                        'Add_Log(''SCD_VALIDATION'',v_user,i_table_name,''ERROR'',''E-0008: Unkown Exception raised in Loop. ORACLE:''||SQLERRM);'||v_crlf||
                        'RAISE ge_raise_error;'||v_crlf||
                                  'END;'||v_crlf||
                                  'END IF;'|| v_crlf||
                        'Close v_rec_cv;'||v_crlf||
                        'EXCEPTION' ||v_crlf||
                   'WHEN OTHERS THEN'||v_crlf||
              'Add_Log(''SCD_VALIDATION'',v_user,i_table_name,''ERROR'',''E-0008: Unkown Exception raised in Loop. ORACLE:''||SQLERRM);'||v_crlf||
              'RAISE ge_raise_error;'||v_crlf||
                   'END;';               
         Add_Log('SCD_UPDATE_VALIDATION',v_user,i_table_name,'INFO','I-0006: Update Validation : '||v_string);     
         EXECUTE IMMEDIATE v_string;
    EXCEPTION
    WHEN OTHERS THEN
    Add_Log('SCD_VALIDATION',v_user,i_table_name,'ERROR','E-0008: Unkown Exception raised in Loop. ORACLE:'||SQLERRM);
    END Update_Validation;

  • Customer Exit Variable and Condition in a Query (Sequence of Execution)

    Hi,
      For a query i defined a Customer exit variable and a condition....
    Which will first execute...wether it is a  Variable and then Condition or vise versa
    Is there any way we can control sequence of execution
    My requirment is first to execute the condition and the variable how can i control this
    Thanks

    Hi
    In your customer exit you will be having a field by name I_STEP which will help you to handle the time of execution of the variable.
    Assign points if helpful
    Prathish

  • Change for Unit of measure in condition master

    Hi, gurus..
    I want to know this is SAP error or not..
    I created condition for material H20.
    H20     70500 usd  per 1 SET
    and edited the unit of measure in addtion of material master record.
    1 EA - 1EA
    1 SET - 6 EA
    then I create SO in VA01 with line item
    H20   1EA   ...
    but condition record showed me a wrong value..
    H20    11774  usd  per 1EA...
    70500 / 6  = 11750  usd..Why  11774...??
    So, I changed the condition for more test..
    H20  11750 usd per 1EA...
    After input line item in VA01.
    H20  1 Set...
    then condition was 70500 usd per 1 SET ..Right result..
    I tried it on other system ( Best Practices 1606) once more  but result was same.
    This is SAP ERROR ??? or not..
    Plz..give me your ideas..

    Dear Kim,
    this error will come due to conversion factor at sales order level .kindly check in the item level how the conversion factor will take the system and also try to change the Quantity and check once again. this will come rare case , if you want to check the conversion error ,debug at the sales order level . for your reference I am attachment the conversion factor path .
    Regards,

  • PO Conditions not flowing in MIRO

    Hi,
    This is a case of Import Purchasing where Invoice Verification (for Custom/CVD) is done before goods receipt.
    It is observed that in the screen MIRO the condition values (for duties of Custom/CVD) are not flowing from PO although values are maintained in PO. Amount and quantity need to be entered manually in MIRO in this case.
    Is this a standard behaviour of SAP that if IV is done before GR then condition value doesn't flow from PO and need to be entered manually in MIRO? And is there any way out / work around in order to get the condition values flown from PO to MIRO if IV is done before GR?
    Can any one assist in getting this query resolved?
    Thanks in advance

    yes, this is the standard behaviour. In import procurement we need to enter manually the value of conditions.
        No, there is no any customization through which we can get the flow of value automatically.
    But, u can drag the value and qty of conditions---
               when u will do IV against the layout of PLANNED DELIVERY COST, there u will find the right side two columns Recieved QTy and Value. from that columns, u can drag the value and qty.
    thanks

  • Condition record not floe in po

    hi
    i copy key combination plant/material group to plant/material group/vendor combination.
    b'caz i use 16% for some vendor and 3% for other in fv11.
    but system is not pick condition record from plant/ma.group/vendor combination
    sugest
    sunil

    Hi
    You need to add the new condition table in the access sequence of the condition type for getting it trigerred.
    & Delete all the Condition records which were maintained earlier with old combinations if any.
    If the Check indictaor Exclusive is flagged then condition records of that Combination only will be picked up
    Award points if useful
    Thanks & Regards
    Kishore

  • Condition Type NAVS not determined for Goods PO

    Hi all,
    I am working on SRM 5.0 and R/3 4.6C.The problem im facing is for the tax condition determination for PO for Goods type which replicated from SRM to PO .
    In case of Service PO,the conditions are determined correctly and can be seen in the PO print out.However In case of a goods PO,if i goto conditions tab in ME23N for the PO,the conditions (NAVs) are not determined as well as they cant be seen in PO print .
    The  config on R/3 side is Correct as in case of manual PO(PO created directly in R/3),the conditions are determined correctly.
    Now when i debuuged the BAPi "BAPi_PO_CREATe1",i observed the following:
    If i chnage the field PO_PRICE in the table POITEM to "1",then conditions are determined corretcly for the PO.However by dfault,the value for this field comes to "2".
    This field is nothing but indicator of the price i.e. 1 for Gross and 2 for Net.
    Can anybody explain  me the link between this price and condition types determined in PO.
    Thanks.

    Check out SAP Note 580225 - Purchasing BAPIs: Conditions and pricing
    Hope it helps

  • New Condition Table not working in Sales order

    Dear All,
    I am facing problem in pricing procedure. I have created new condition table(LIFNR & ROUTE), included Vendor(Fwd Agent) and Route in condition table with sales area. I have added that condition table in access sequence and assigned access sequence to condition type. Then Condition type added into pricing procedure and assigned pricing procedure to document type.
    In sales order I've added route and fwd agent but while checking in analysis system does not determine route and fwd agent.
    Thanks and Regards,
    Kaushal

    hi,
    i have a query to ask why you need LIFNR in condition table creation.
    where in sales order it will trigger automatically.
    please check the config settings for route determiantion automatically.
    so that if route comes automatically into the sales order then from where you will trigger LIFNR.
    please clarify.
    regards,
    balajia.

  • How to Maintain the Pricing Condition Records in CRM

    Hi
    I am new to the CRM
    How to maintain the pricing condition records in crm for the particular condition type?
    as we do in SD(VK11)
    Thanks

    Hi Binu,
    First of all, you could maintain pricing conditions in the following places:
    1. In General Condition Maintenance (GCM)
    2. At the product maintenance level
    3. At the 'Price agreement' tab of Contracts
    4. As manual conditions during order processing at item level
    Now, if you want to maintain conditions using GCM, you first have to maintain a condition maintenance group in the customizing where in you can assign condition table and condition type for different counter values. I am assuming that you have done this activity successfully.
    When you run the transaction '/SAPCND/GCM', for application 'CRM', your condition maintenance group name and context 'GCM', you will be initially taken to a screen where in you'll have an item area which would be blank and then condition fields would be displayed in a tree on the left.
    Here, select the field 'Condition type' and click on icon 'Select records'. You would get a dialog prompting you to enter condition type. Here you can specifiy the condition type for which you want to maintain/view condition records.
    If no condition records are available, item area would be left blank. Here, you can choose a condition type using the standard F4 help. Depending on condition types that are assigned to condition maintenance group, different condition types would be displayed in the F4-help using which you can maintain condition records.
    Hope this helps.
    Regards,
    Pavithra
    **PS: Please reward points if this helps.

Maybe you are looking for

  • Difference between local amount and document amount in the same currency

    Dear All, Why different between local amount and document amount with the same currency in some FI document line items? Both currency is 'TWD' and update currecy(BSEG-PSWSL) is 'USD'. What is the purpose of update currency(BSEG-PSWSL) and update amou

  • My marketplace has lost it's Layout! How can I fix the problem?

    Hi! Somehow on 4th March 2015 I experienced a mixture of two problems already known in the forum: a) https://support.mozilla.org/de/questions/1039948 b) https://support.mozilla.org/en-US/questions/1027288 First I was not able to get into FF Marketpla

  • Adobe wont print after update 9

    Can't print after updating to Adobe reader 9. Using a B&W multi "old girl" Lanier 5235 and I tried uninstalling Adobe and reinstalling without help. I can print a PDF file via Preview and I csan print word files via word etc. etc using the diff. case

  • Clear canvas and not form

    Hi, I am having 2 canvas both content canvas in one form. There are lov dropdowns to get the values and when queried we get result set in plsql table type. Both the canvas are identical and value from result set of one canvas get populate on the othe

  • Problem with 8.0, apparently I don't have it?

    I installed iTunes 8 last night, I just tried to download iphone update 2.1, but it said if I wanted to download it, I needed to download iTunes 8. What can I do to fix this?