Logical statements in Substitutions

How to write logic in the substitution rules like if ... else
Thanks

Hi,
thanks for the reply. What user exit I should use. In prerequisites , I see 10 descriptions in the user exit tab. Could you tell me what user exit I can use and how to access the pop up window to select the user exit?
Thanks In Advance

Similar Messages

  • Problem with logical statements

    Hi all!
    we have a problem with BI Answers filter.
    Our customer have a complex filter like ((EXPR1 AND EXPR2) OR (EXPR3 AND EXPR4) ...)
    BI Server rewrite this expression on physycal layer as ((EXPR1 OR EXPR3) AND (EXPR1 OR EXPR4) AND (EXPR2 OR EXPR3) AND (EXPR2 OR EXPR4) ..)
    Because original filter is big and complex, in the 'BI style' it's size is greater then 500 kBytes, and physical query (Oracle database) execution time is about 2 hours, while with WHERE expression written in initial style the query executed in few seconds in SQL+.
    How can we suppress BI Server from transformation of logical OR statements?
    thanks

    hi,,
    the star schema is correct, ----> ok
    the columns selected did not affect execution time --> ok , try to build it step by step(one column at time)
    the query from BI log in other SQL client executed by the same time --> you mean 2 hours??as Bi?
    the problem is that in normal style query script size is few kBytes and WHERE statement consists of about 50 logical parts }
    and after BI transformation query script size is 0,5 MBytes and WHERE statement consists of about 3000 logical parts } ---> try to ckeck your logical
    statements again.it is not possible that.ckeck the groups that exist in filter section///are these the one you need??
    Last, i mentioned have you tried the direct sql query in the answers section??what about the time there???
    +
    There is a tab when you make the report-------Criteria results Prompts and !!!Advanced!!
    Check Advanced , the sql issued..
    i hope i helped
    http://greekoraclebi.blogspot.com/
    ///////////////////////////////////////

  • Is this possible? to have Logic statements?

    I have 1 Question
    1. Person selects a response and  video " A" States that it is the wrong Answer
    2. Person selects a response and  video " B" States that it is the wrong Answer
    3.  Person selects a response and  video " C" States that it is the Correct Answer.
    And then when the video is finished. It goes on to the next Question.
    Is this possible?
    Message was edited by: hcri

    hcri wrote:
    it would have to be within InDesign to the delivery platform for  iPad
    That statement does not make sense.
    These scripts run inside InDesign only. They move native InDesign objects around, and can import and export files. You can do some pretty neat things with scripts. I bet there is someone who can do your little video-game with a script.
    However, you are still working inside InDesign -- and since InDesign does not run on an iPad, the process stops here and now.

  • Logic statement based on a dropdown field choice to go to PayPal or not.

    I have a drop down field called 'method of payment ' with 3 choices: PayPal, check, no pay.
    I split the page (to page 1 and page 2) directly below the drop down field and use this logic:  Go to (page 2) unless (method of payment) is (PayPal) (submit form)
    Regardless of choice, it sends me to PayPal as long as I select a purchase field (that is also one of the fields in the PayPal setup page).
    All purchase fields in the form are user selected amounts.
    At the Adobe collect payment option page, the 'price' variable is 'user input'.
    For selecting check and no purchase, it goes to page 2 and then to PayPal.
    For selecting PayPal, it goes directly to PayPal.
    What I want is for when it to goes to page 2 and then just submit without going to PayPal.  This is where the problem lies.
    I have another form where the use of the form gives a single fixed price purchase.
    At the Adobe collect payment option page, the 'price' variable is 'fixed'.
    All logic options work fine and are set up exactly like the above described one for the problem form.
    What might the solution be?
    I appreciate any help and insight.
    John H

    Hi John,
    The following document describes how to mix different forms of payment.
    http://forums.adobe.com/docs/DOC-4271
    I'm surprised you didn't have to use the technique described in that document with your other form. The other form has a single "fixed" payment item associated with the Submit button?
    Thanks,
    Brian

  • MaxL statement for substitution variables

    Hi,I'm trying get a script together that changes all my substitution variables, and I'm able to do this using:alter database application.database set variable string;but how do I set the substitution variables for (all apps) and (all dbs)?Any help appreciated.ThanksSunil

    I don't think MaxL is going to do this for you, although you could always use a positional parameter to set the value.
    I'm not a big fan of passing the system date to an Essbase process as it so often varies from the data date.
    Usually, I create an external scripting process (in my case, in the past, usually VBScript, I would probably tilt towards perl now) that read the file, found the year and month, and then called the MaxL with parameter lne variables to set the Substitution Variables. This is not fancy code -- the error checking is the majority of the work.
    Regards,
    Cameron Lackpour

  • Maxl statement for substitution variable..

    Friends,
    Do we have a maxl command that will return substitution variables at the server level along with their values.
    This would help us do a quick check of the system at all environments using VLOOKUP before the cycle starts..
    The manual check seems boring :(
    Thanks,
    RN.

    Sir, I love the way u write your blogs :)
    this blog was just awsome with the conversation with JJ explaining with such details..^^^Thank you for your kind words. It really makes my day when I hear that people get real value out of my blog. But to be honest, I am but a conduit for Jason's knowledge. :)
    Regards,
    Cameron Lackpour
    P.S. You should check out his death-to-Load-Rules post. Very cool stuff.

  • Substitution Exit for AR01

    Hey All,
          I have a requirement in which I want to run the AR01 report for asset balances based on customer number ( Custom Z Field saved in the ANLU table ). The current selection criteria does not have the customer number. Can this be done be not creating a custom report and by using some exits or substitution rules. Say for example Can I create a substitution exit to copy the customer field to the Asset super number field (which is currently in the selection criteria) . The substitution Field to Field doesnt help as the table ANLU is not avalaible for substitution. What options do i have in this case.
    Any suggestion is highly appreciated.
    Thanks,
    Aparna.

    hi aparna,
    Validation Rules  and Substitution User exits
    Syntax:
    =Uzzzz (zzzz = up to 4 characters - this is true for Document Level validations - call point 3 - *Header Level & Line Item Level - call points 1 & 2 - allow up to 30 charaters.)
    /NORFB->Bus.transactions->Base parameters->Validation
    /NORFB->Bus.transactions->Base parameters->Substitution
    Example
    =ULTE "FI_DOCU 001 "Parked SA,FY,SI=>long text CORRESP. "
    =U&VALID_WBS_IN_ZUONR "FI_ITEM 011 Spon.Res: Check WBS valid in ZUONR"
    changed in 4.5B (* Form UFIA -- formerly U&VALID_WBS_IN_ZUONR)
    User exits are form routines that the user programs. There are two types of user-exits:
    1. Validation exits are used in the prerequisites and checks. They have either the value 'T' for true or 'F' for false. They are interpreted as a part of the logical statement, like a constant or field comparison. For this type of user exit, you must fill a parameter with the results of your check ('T' for true; 'F' for false).
    Example
    FORM Uzzzz USING B_RESULT. "'T' or 'F'
    from program ZGGBR000 (ZGGBRI03)
    2. Substitution exits are used to change one or more fields. However, you can only change those fields that are permitted in the Boolean class for the substitution. You can display these fields by selecting the following menu options in substitution maintenance: <Extras -> Fields for substitutions>
    Example
    FORM Uzzzz USING COST_CENTER.
    from program ZGGBS000 (ZGGBSI02)
    Substitution Fields can be found from this window
    /NORFB->Bus.transactions->Base parameters->Substitution->Call Pnt 2->Substitution step 3->Extras->Substitution flds
    The name of the form pool (e.g., ZGGBR000 & ZGGBS000) that contains your user exit must be stored in table T80D.
    Note
    1. Data declaration
    Tables and field stings cannot be declared in form routines, so that the contents can be used along with the calling transaction.
    2. Parameter definition
    It is important that you make declare the code generation program for your user exit; how many and what type of parameters you are using for the user exit. You do this by entering your newly defined user exits in the form routine GET_EXIT_TITLES.
    found in program ZGGBR000 (ZGGBRTIT)
    found in program ZGGBS000 (ZGGBSTIT)
    One exception is the parameter for the results of a validation exit. You must not declare this, it is automatically generated be the system. What types of parameters are available and how you use them is described in the online documentation. When creating your user exits, you can use the example form pools delivered by SAP (RGGBR000 for validations; RGBBS000 for substitutions) as a reference. We recommend that you copy the example form pools delivered by SAP when creating your own user exits. In these example form pools, entries already exist in the form routine GET_EXIT_TITLES for the examples delivered. The GET_EXIT_TITLES must absolutely exist in your form pool. 
    You can find additional information on the creation of user exits in the online documentation on validations and substitutions.
    SAP exits
    SAP exits are form rountines programmed by SAP. The name of the form pool is SAPFGBEB.
    Syntax:
    =Szzzz (zzzz = up to four characters)
    FORM Szzzz using B_result. "'T' or 'F'
    Example
    =S01 "SAP exit S01"
    Display description of T80D configuration
    Return ->
    Change Validation: FI_ITEM (Message view)
    thanks
    karthik
    <REMOVED BY MODERATOR>
    Edited by: Alvaro Tejada Galindo on Apr 15, 2008 3:05 PM

  • If statement in Custom Calculation Script

    I have 16 fields and if even one of them ="1" I have to list it in another field.  I do not want to count or sum.  If one of those fields has a 1 in it I just want the other field to display Y and if none have a 1 I want that field to display N.
    Please help.
    Thank you in advance~mjc

    You need to write a compound logical statement to evaluate all of the values and that statement needs to evaluate to true or false.
    Do you know how to write JavaScript?
    Do you know how to enter JavaScript calculations into a form field?
    For custom calculation of the text field I could write something like:
    // define an array of the field names to check
    var aNames = new Array("Text1", "Text2", "Text3", "Text4",
    "Text5", "Text6", "Text7", "Text8",
    "Text9", "Text10", "Text11", "Text12",
    "Text13", "Text14", "Text15", "Text16");
    // define a logical variable that is true if any field has a value of 1 - default is false or no field has a value of 1
    var bMatch = false;
    // value for text field
    var TextValue = 0;
    // logical value of field being equal to 1 test
    var FieldIs1 = false;
    // loop through all the fields and test the fields value
    for(i = 0; i < aNames.length; i++) {
    // logically OR the result of field i value equal to true with bMatch
    // get the value of field
    TextValue = this.getField( aNames[i] ).value;
    // test the value of the field
    FieldIs1 = Number(TextValue) == 1
    // logically OR the 2 values
    bMatch = FieldIs1 | bMatch;
    } // end field processing
    // set the field value
    if(bMatch == true) {
    event.value = "Y";
    } else {
    event.value = "N";
    You will need to change the field names to match your fields. You can add more field name or remove field names as needed and the script will adjust for the number of field names.

  • IF statement in RB2.0

    I am trying to use an IF logic statement in a report but as an expression, I have been searching the net to help me find an answer as everything I have tried is sending an error when I run   The report feeds from multiple tables and has various
    filters set of which I am extremely proud to say I figured out however I just can't figure out the right expression for this
    Fields are non-numeric
    Fields = Table3.Process & Table3.Processtwo
    equation = IF Process is Blank/Null then return Processtwo
    IF Process is Not Blank/Null the return Process/Processtwo
    Any help is greatly appreciated

    Hi,
    If I understand you correctly, you want to use IF logic statement that if Table3.Process is Blank/Null then return ProcessTwo, else return Process/ ProcessTwo. According to your description, there may be two scenerios.
    .  IF “/”represents devide operation, please refer to the following expression:
    =IIf(isNothing(Fields!Process.Value) or Fields!Process.Value="", Fields!ProcessTwo.Value,CInt(IIf(Fields!Process.Value="" or IsNothing(Fields!Process.Value),0,Fields!Process.Value))/CInt(Fields!ProcessTwo.Value))
    .  IF “/” is just a symbol of string connection , please refer to the following expression:
    =IIf(Fields!Process.Value ="" or IsNothing(Fields!Process.Value),Fields!ProcessTwo.Value,Fields!Process.Value + "/"  + Fields!ProcessTwo.Value)
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu

  • How can I use my NI 9401 to send a 5V signal to a solid state relay?

    To start off, I am a complete novice to LabVIEW and I am working on my senior capstone project. Please, bear with me and I will try my best to help you help me.
    I am wanting to use my NI 9401 to send a voltage to a solid state relay so that I can control the temperature of a heating element. Ideally what I want to do is:
    1. LabVIEW sends voltage to relay.  
    2. Relay turns on.
    3. Heating element reaches desired temperature.
    4. LabVIEW does some sort of pulse to maintain that temperature.
    Right now I have one wire set inside of DIO 4 (or pin 20?) because I have read that 4:7 are for outputs. I also have another wire in the first COM slot (pin 1?).  I believe that these two wires will be placed in the "input signal" spots on the diagram below. 

    Your description is not very clear for me. However, usually output lines of control boards do not have a 5V signal as required by a solid state relay. The output usually is "TTL compatible" which means that it may be anywhere between 2.8V and 5.0V in high state. 
    Usually solid state relays are connected to an "open collector output". Most digital outputs can be used in this mode, too. You have to wire the (+) terminal of the relay to a 5VDC source (many boards have a 5VDC output - with limited current capacity, when using an external 5VDC source the GND terminal of the latter must be connected to GND or COM of the board). The (-) output goes to the digital output of the board. When wiring this way, logic states are inverted with respect to the relay operation. The relay will be ON when the digital output is in LOW state and will be OFF when the output is in HIGH state. 
    Check the current limit of your output line in "sink mode" and compare it with the current requirement of the relay input. Most solid state relays require 10 to 20 milli-amps at the input which is well inside the current limit of most digital outputs (usually 24 milli-amps, sometimes 48 milli-amps). 

  • Differences in FI & PCA Substitution

    All,
    I am primarily an SD consultant working on a small solution related to Goods Receipts and Profit Center Accounting.
    After searching all the available forums with all sorts of keywords, no similiar issue could be found; hence posting this question hoping someone might propose a solution.
    According to a posting requirement for goods receipt, we have activated an FI substitution to override accounts configured in OBYC. This works as expected but our main objective is to have the same account determination in PCA documents too. But the G/Ls determined in PCA doc are different because no corresponding substitution has been activated other than in FI. I tried a similar substitution in CO (OKC9) but the collection of fields is different from those of OBBH. Therefore looks like the logic of FI substitution cannot be replicated here.
    With most of my experience in SD, I don't understand why account determination during goods receipt in FI should be different from that of PCA. And what needs to be done to determine the same G/L substitution in PCA as that in FI.
    Can someone suggest how the G/L accounts can be kept same in both FI & PCA docs? All of your expert inputs are highly appreciated.
    Thanks & Regards,
    KC

    Reverted the G/L substitution in FI & instead opted to change the account keys dynamically during PO processing, using a pricing routine (condition value formula).

  • PS - Substitution not working in WBS create

    Hi,
    I have this requirement. I want the last level of WBS to be automatically ticked as account assigned. I created a substituion with a user exit with a prerequisite as PRPS-STUFE >=1
    I used the following logic in the substitution exit
    Check in PRHI for every WBS element (POSNR) if 1st subordinate (PRHI-DOWN) is blank.
    If it is blank then for that WBS element Account assignment element BLEKZ = "X"
    The substitution works perfectly alright in the change mode but it does not work in the creation mode of the Project or WBS elements.
    Any solution to this problem is highly appreciated.
    Best Regards,
    Manoj Bhoota

    Hi Mango,
    Substitution in WBS-element is called in function module G_VSR_SUBSTITUTION_CALL, you may set break point in the FM and the user-exit to check the import and export data during the project creation to see if the substitution do have called and the user-exit do export correct data.
    Regards,
    Rachel

  • Is my statement correct???

    Im having a problem with regards to data object. I have a queuer program that sends data to program1. the program1 has a listener class that parse the data from queuer and assign it to a designated variables using StringTokenizer. (Theres no problem with listener class.)
    Another class is saveBatch class that save and send the data back to the queuer. In some part of savebatch class, the data that supposed to be in variable A is lost. Since I'ts not my program and im trying to fix the bug but the coding is very very confusing(especially the variable names)
    What i wanna do right now is to have a condition that will catch the variable A when it is null. But if the variable A != null it will just go on thru the usual stuff. I need an opinion if my logic statement is correct. since i did not use the if then else statement. Correction and critics would be much appreciated.
    public boolean saveBatch(int state){
    this.state = state;
    boolean allow = false;
    allow = allowSave(); //it validates all requirement needed b4 saving.
    if (allow){
    try{ 
    if (transo == null)
    throw new EmptyStackException();
    } catch(Exception e){
    e.printStackTrace();
    sm = new SendEmail(); // this will send the exception to my email.
    sm.preSend(...........); // i did not complete this. coz its 100%workn.
    return false;
    int intSave;
    String msgSave = ""; // strings that hold and to be send to queuer
    if (state == 0 || state == 2){
    ...... this is the usual stuff.
    }

    Additional info:
    In some part of savebatch class, the data that supposed to be in variable A is lost. It happens not very frequent that why its hard to catch.

  • Validate my script logic: reference erro LOOKUP is not defined

    Dear all,
    i want write one script logic. It use LOOKUP using FOR/NEXT.
    But when i check stament in my script logic: messesage erro: reference erro LOOKUP is not defined.Can you help me?
    My script logic
    *XDIM_MEMBERSET ACCOUNT=BS221
    *XDIM_ADDMEMBERSET CATEGORY = Actual
    *XDIM_ADDMEMBERSET ENTITY = CSO
    *SELECT(%TIME%,"[ID]",TIME,"[ID]>=2006.01 AND [ID]<=2006.02")
    *XDIM_MEMBERSET TIME = %TIME%
    *LOOKUP Rates
    *DIM  CATEGORY ="Actual"
    *DIM R_ACCOUNT ="AVG"
    *DIM R_ENTITY ="Global"
    *DIM INPUTCURRENCY="USD"
    *DIM MEASURES ="PERIODIC"
    *FOR %T% = %TIME%
    *DIM RATE_%T%: TIME =%T%  
    *NEXT
    *ENDLOOKUP
    *WHEN ACCOUNT
    *IS "BS221"
    *FOR %T1% = %TIME%
    *REC(EXPRESSION=LOOKUP(RATE_%T1%),TIME=%T%)
    *NEXT
    *ENDWHEN
    *COMMIT
    Thanks,
    Hungth

    Dear Vadim,
    I want test LOOKUP statement using FOR/NEX, then get value per member for member in LOOKUP.
    in excel add-in of Rates Model:
    Actual - Actual
    Average Rate
    Global Entity
    2006.01 - Jan 2006
    31
    2006.02 - Feb 2006
    30
    2006.03 - Mar 2006
    30
    2006.Q1 - Q1 2006
    30
    I want run my script logic above to get value from Rates Model ( 2006.01: 31, 2006.02 : 30, 2006.03: 30 ) to current model , to calculate in crurrent model.
    BS221 - Long Term Debt
    2006.01 - Jan 2006
    2006.02 - Feb 2006
    2006.03 - Mar 2006
    Actual - Actual
    31
    30
    30
    How i can write my script logic? My script logic statements is correct??
    Thanks,
    hungth

  • "Merge into" statement doesn't work

    Hi Reader,
    It seems that in some of our installed machines merge into statement doesn't;t work. We've already experienced this issue on databases installed within virtual machines, but also found on other configurations sporadically.
    Using statement match a single/multiple records (according required logic)
    statement:
    MERGE INTO RNCATEGORIES CV
    USING dual ON
    ( CV.DESIGNCENTERID = in_DESIGNCENTERID
    AND CV.CADPACKAGENAME = in_CADPACKAGENAME
    WHEN MATCHED THEN
    UPDATE SET
    PKGCATEGORYID = in_PKGCATEGORYID,
         UserPackageType = in_UserPackageType
    WHEN NOT MATCHED THEN
    INSERT VALUES ( in_DESIGNCENTERID,
    in_CADPACKAGENAME, in_PKGCATEGORYID,in_UserPackageType );
    Table script:
    CREATE TABLE RNCATEGORIES
    DESIGNCENTERID RAW(16) NOT NULL,
    CADPACKAGENAME NVARCHAR2(64) NOT NULL,
    PKGCATEGORYID RAW(16),
    USERPACKAGETYPE NVARCHAR2(64)
    PK_RNCATEGORIES PRIMARY KEY (DESIGNCENTERID, CADPACKAGENAME)
    Thanks in advance,
    Amir

    After creating the table, your merge statement gives me
    SQL> MERGE INTO RNCATEGORIES CV
      2  USING dual ON
      3  ( CV.DESIGNCENTERID = in_DESIGNCENTERID
      4  AND CV.CADPACKAGENAME = in_CADPACKAGENAME
      5  )
      6  WHEN MATCHED THEN
      7  UPDATE SET
      8  PKGCATEGORYID = in_PKGCATEGORYID,
      9  UserPackageType = in_UserPackageType
    10  WHEN NOT MATCHED THEN
    11  INSERT VALUES ( in_DESIGNCENTERID,
    12  in_CADPACKAGENAME, in_PKGCATEGORYID,in_UserPackageType );
    AND CV.CADPACKAGENAME = in_CADPACKAGENAME
    ERROR at line 4:
    ORA-00904: "IN_CADPACKAGENAME": invalid identifierwhich is about what I expected. The USING clause requires a select statement, not just a table name. It looks to me like this merge statement is in some kind of stored procedure, and that the in_XXX are variables passed to that procedure. If this is correct, then your merge needs to be more like:
    MERGE INTO rncategories cv
    USING (SELECT in_designcenterid dcid, in_cadpackagename cpn,
                  in_pkgcategoryid pcid, in_userpackagetype upt
           FROM dual)
    ON (cv.designcenterid = dcid and
        cv.cadpackagename = cpn)
    WHEN MATCHED THEN
       UPDATE SET
       pkgcategoryid = pcid
       userpackagetype = upt
    WHEN NOT MATCHED THEN
       INSERT VALUES (dcid, cpn, pcid, upt);John

Maybe you are looking for

  • Mail: How to check an account ONLY from specific Network Location?

    I use multiple macs, and use my .mac account to synchronize mail accounts, rules, smart mailboxes, signatures, etc. However, I'd actually like to specifically NOT check certain accounts on some machines. Even though the account settings are synced, I

  • PC00_m40_PFY

    HI, when i am executing PC00_m40_PFY standard report in production server i am getting the below mention Dump..It is not showing selection-screnn also. It directly goes to dump. But it is working in Development server. pls kindly help on this issue.

  • Why the system stopped

    Does anyone knows why the system became unavailable.  Dev_disp trace is appended. Did u201CBIDANDSAu201D run something?: trc file: "dev_disp", trc level: 1, release: "700" sysno      00 sid        VHR systemid   562 (PC with Windows NT) relno      70

  • I want to save many of my documents in my Documents file to the iCloud. How do I do it? I used to be able to save them to the idisk.

    iDisk, iCloud, MobileMe?  I just want to save important documents currently in my MacBook Pro in "DOCUMENTS" (pdf, etc. from any source) to the "cloud" as a backup source and to access from my iPhone. Now that iCloud is loaded, I cant find the docume

  • Fix deleted project from imovie

    i accidentally deleted a project from imovie, however the thumbnail still shows on my hard drive. how can i restore the file? it even shows screenshot preview of project and lists file size but i am unable to open the file in imovie or quicktime. hel