How do I write a specific IF statement in Adobe LiveCycle's FormCalc?

I am trying to use an IF / ELSEIF  formula in FormCalc to autopopulate a text field in a table, but I keep  getting a syntax error.  Could someone please help?
My table has 2 rows and 2 columns.  I named each cell (using Binding) in  Column 1 as Data1 and Data2 respectively.  Both cells in Column 1  contain a dropdown menu of numbers 1, 2, and 3.  I want to create a  FormCalc IF expression in Column 2 so that when the user selects a "1"  in the Data1 cell, the cell adjacent to it in Column 2 autopopulates to  "Yes".  Then if they select a "2", the adjacent cell becomes "No", and  if they select a "3", the adjacent cell is "Unknown".  Then, I want to  do the same thing for the Data2 cell and its adjacent cell in Column 2.
Here is the expression that I've tried using for the first row (it  doesn't work).  (The second row in Column 2 [next to Data2] has the same  formula, except Data1 is replaced with Data2.)
if (Data1 = 1) then
"Yes"
elseif (Data1 = 2) then
"No"
elseif (Data1 = 3) then
"Unknown"
endif
Can anyone spot where my syntax error is and how to fix it?  I'd really appreciate it!  Thanks!

Well thank you!  This actually pointed me in the right direction, however the adjacent cell is still not autopopulating depending on the number that is selected in Data1.
I renamed the cells (in binding) for simplicity:
Data1
qqq1
Data2
qqq2
I used this code (based on your code, just with minor tweaking):
if (Data1.rawValue == 1) then
qqq1.rawValue == "Yes";
elseif (Data1.rawValue == 2) then
qqq1.rawValue == "No" ;
elseif (Data1.rawValue == 3) then
qqq1.rawValue == "Unknown";
endif
Given the table above, with this code I do not receive an error like I did before with my erroneous code.  This part is good!  However, qqq1 still is not autopopulating to "Yes", "No", or "Unknown" when I select the different options in the dropdown of Data1.  I can't figure out what I am doing wrong!  I put the code into the Data1 cell, under the "exit" option and in the FormCalc language.  Do the cells need to be formatted a certain way?  Data1 and Data2 are both dropdown cells, and I have qqq1 and qqq2 as Text Fields with a Calculated-Read Only value.
Is there something else that needs to be done?  I am a beginner at LiveCycle and the FormCalc language.  So any step-by-step help you can provide to the newbie will be extremely appreciated!  Thanks!  :-)

Similar Messages

  • How to Use INR (Indian Rupee) Character in Adobe Livecycle?

    hey guys,
    just wanted to know how to use new character of indian rupee in Adobe Livecycle ES2?

    I use Foxit Reader.
    but as you said i cant see anything, neither square blocks.
    i can see ₹ sign in adobe acrobat!
    but when i open it in Adobe Livecycle ES2, it again shows square blocks.

  • Does anybody know how to get the license for Adobe LiveCycle if i dont have the installation disk?

    Hi,
    I no longer have the installation disk for Adobe LiveCycle and i need to install it onto a different PC due to upgrading hardware etc... Does anybody know how to recover the licence for the version of Adobe LiveCycle we have? Can it be found in the registry or anything?
    Thanks.

    Sorry, but Apple does not provide technical support via email, so they have no published email addresses. You will need to find a way to call them. Or make an appointment with the Genius Bar at an Apple Store, if there are any near you, and have them follow up.
    Regards.

  • How can I write a SQL statement which checks if a table exists?

    How can I write a SQL statement which tells me whether a table exists?

    execute an sql query: select * from <tablename>
    catch the exception n check whether the erroe code
    matches the one that occurs for table doesn't exist
    that's itHow is your answer any different from the one given in the first reply?
    It isn't.
    As WorkForFood says DatabaseMetaData has a bunch of methods for getting information about tables but this is more useful when you don't know the names of any of the tables.. it sounds like you do so I would concur SELECT from table is probably the quickest way to go. If it helps the Xopen error should be either S1000 or 42S01 (I think) but I would try and see if there is a specific vendor code for table not found/not exists error and check for that.

  • How to write a specific bytes of a string

    I'm using DataOutputStream object to write a specific string to a file. If I want to write that string
    to a file with preserving of 20 bytes (for example) as a header of the file. Even though the length of the string can be at any size, I just want it alwayst in 20 bytes. How could I do that. Please help! Thanks a lot.

    String s = "Less than 20";
    while(s.length() < 20) {
         s += " ";
    System.out.println(s + " " + s.length());Mark

  • If I have floating values such as 6.3, 6.7, 6.9, 7.1, 7.2 how do I write a case statement to handle that

    How do I write a case statement If I want a case for x < 1.5;   a case for 1.5 <= x <= 3.7;  case for  3.7 < x < 7.2.....etc.   My input is a floating number.
    Thank you.
    Solved!
    Go to Solution.

    smercurio_fc wrote:
    Nice method with the Threshold function. I was not aware of the limitation with -Inf. Odd.
    Actually, my code operates correctly as long as the first element is smaller than all other elements in the array. We don't need any special handling.
    Maybe NaN is not a bug if the array starts with -Inf, because the interpolated index for any number between the second element and -inf will be infinitely close to 1, thus a result of zero can never be obtained (try a first element of -1e50 and you'll always get 1 unless you go to very huge negative numbers).
    The way threshold array is defined, the behavior should be obvious, the problem is assigning a fractional index.
    It is unexpected that an input equal to the second element also results in NaN. That might be a bug. (see image).
    I probably won't post an idea, maybe a bug report after some more thinking...
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    IdeaThresholdArray.png ‏19 KB

  • HOW DO I WRITE A STRING TO FLAG WHEN A CELL HAS OR 17 CHARACTERS?

    HOW DO I WRITE A STRING TO FLAG WHEN A CELL HAS < OR > 17 CHARACTERS?

    Hi Tassytiger,
    A "string" is just a string of characters. Examples are qwerty, 123abc, 43πbono. there are several ways to write one. A more precise description of your end goal might help answer "How do I write a string."
    To the current version of your specific question:
    What I actually need to achieve is a situation where, when I enter <17 Char. or >17 Char.
    inadvertently then tab to the next cell, I get the following response in the active cell:
    The cell immediately below "17 character ID" displays an error triangle. These are shown when the formula in a cell produces an error message. they are system generated and require two things to happen: The cell must contain a formula AND something must have happened to cause that formula to produce an error.
    I don't wish to add any columns to my s/s but would like to apply the rule to the current column just as i would change the text or fill colour.
    The difficulty there is that a cell may contain entered data, OR it may contain a formula. You want to enter data (a string of characters) and you want to produce an error triangle if that string has more or fewer than 17 characters. Evaluating the length of the string requires a formula. Getting the string into the cell requires direct entry (in your scenario). The two are not compatible within the content of a single cell.
    Terry's example uses a formula in column B to measure the length of the string in column A. If the length is 17 characters, the IF statement produces the empty string ( "" ), and the cell in column B appears empty. If the string is not 17 characters long, the IF statement produces the string "Not 17 Chars!"
    His formula is easily changed to produce an error triangle in place of "Not 17 Chars!":
    B1: =IF(LEN(A1)=17, "",17/0)
    In this version, if the length of the string in A1 is not 17 (characters), the formula will attempt to divide 17 by 0, and will produce a 'division by zero' error.
    But, as with all of the other suggestions, this one will require a new column to provide space for the formula and it's result.
    Changing the text or fill colour can be done using conditional formatting. Changing content of the cell (eg. choosing between the entered string of characters and the error triangle) cannot.
    Conditional formatting rules compare the content of a the cell to be formatted with either a fixed value (written into the rule) or to the content of another cell. In my examples (and in Ian's examples) above the rules compared the content of the cell to be formattes to the number '17'. The number was generated by a formula which measured the length (in characters) of the text in the cell where the ID was entered, and reported that length as a number.
    A way to show a red triangle using conditional formatting is to use Image fill as the default fill of the cell, then use a colour fill as the conditional fill to hide the trialngle when the conditions are met. Here's the same example as used above, with this technique applied to column B:
    The same formula is used in column B as in my previous example. Type size is set to 1 point (note the black dot, visible in the green filled cell) to keep the numbers from obscuring the triangles. The triangles are shapes, inserted onto the canvas (not into the table) from the Shapes button in the tools. Their fill colour has been changed to red, a 12 point exclamation sign character ha been typed into the shape and its text colour set to white, and the triangle's size has been reduced as much as possible without triggering the overflow symbol (boxed plus sigh) to appear.
    The triangle image (and some of its white background) was made into a png image file by taking a screen shot, and the image was inserted into all of the cells in the body rows of column B as an image fill, using the Graphic inspector. The conditional format rule below was then applied to the body row cells in column B.
    Finally, you can apply conditional formatting to the cell containing the ID. This will still require another column to contain the values to which the content of the ID cell will be compared, but that column may be hidden, or may be located on a separate table.
    The method requires an second cell for each cell contining an ID, and uses a formula that makes the contents of the second cell the same as that of the ID cell IF the ID cell contents are 17 characters long.
    Here's a sample. Table 1 is column A of the same table as above. Table 2 is a single column table holding the comparison cells.
    As in the example above, the cells on table 1 were given an image fill. The conditional format rule replaces that with a white colour fill when the cell contains the same text as its partner cell in Table 2.
    This is the rule for cell A2. In A3, the cell reference is to Table 2::A3, and in A4, to Table 2::A4. The cell references in conditional format rules must be edited individually.
    Regards,
    Barry

  • How can i write a string into a specified pos of a file?

    How can i write a string into a specified pos of a file without read all file into ram and write the whole file again?
    for example:
    the content of file is:
    name=123
    state=456
    i want to modify the value of name with 789
    (write to file without read all file into ram)
    How can i do it? thank you

    take this as an idea. it actually does what i decribed above. you sure need to make some modifications so it works for your special need. If you use it and add any valuable code to it or find any bugs, please let me know.
    import java.io.*;
    import java.util.*;
    * Copyright (c) 2002 Frank Fischer <[email protected]>
    * All rights reserved. See the LICENSE for usage conditions
    * ObjectProperties.java
    * version 1.0, 2002-09-12
    * author Frank Fischer <[email protected]>
    public class ObjectProperties
         // the seperator between the param-name and the value in the prooperties file
         private static final String separator = "=";
         // the vector where we put the arrays in
         private Vector PropertiesSet;
         // the array where we put the param/value pairs in
         private String propvaluepair[][];
         // the name of the object the properties file is for
         public String ObjectPropertiesFileName;
         // the path to the object'a properties file
         public String ObjectPropertiesDir;
         // reference to the properties file
         public File PropertiesFile;
         // sign for linebreak - depends on platforms
         public static final String newline = System.getProperty("line.separator");
         public ObjectProperties(String ObjectPropertiesFileName, String ObjectPropertiesDir, ObjectPropertiesManager ObjectPropertiesManager)
         //     System.out.println("Properties Objekt wird erzeugt: "+ObjectPropertiesFileName);
              this.ObjectPropertiesFileName = ObjectPropertiesFileName;
              this.ObjectPropertiesDir = ObjectPropertiesDir;
              // reference to the properties file
              PropertiesFile = new File(ObjectPropertiesDir+ObjectPropertiesFileName);
              // vector to put the param/value pair-array in
              PropertiesSet = new Vector();
         //     System.out.println("Properties File Backup wird erzeugt: "+name);
              backup();
         //     System.out.println("Properties File wird eingelesen: "+PropertiesFile);
              try
                   //opening stream to file for read operations
                   FileInputStream FileInput = new FileInputStream(PropertiesFile);
                   DataInputStream DataInput = new DataInputStream(FileInput);
                   String line = "";
                   //reading line after line of the properties file
                   while ((line = DataInput.readLine()) != null)
                        //just making sure there are no whitespaces at the beginng or end of the line
                        line = cutSpaces(line);
                        if (line.length() > 0)
                             //$ indicates a param-name
                             if (line.startsWith("$"))
                                  // array to store a param/value pair in
                                  propvaluepair = new String[1][2];
                                  //get the param-name
                                  String parameter = line.substring(1, line.indexOf(separator)-1);
                                  //just making sure there are no whitespaces at the beginng or end of the variable
                                  parameter = cutSpaces(parameter);
                                  //get the value
                                  String value = line.substring(line.indexOf(separator)+1, line.length());
                                  //just making sure there are no whitespaces at the beginng or end of the variable
                                  value = cutSpaces(value);
                                  //put the param-name and the value into an array
                                  propvaluepair[0][0] = parameter;
                                  propvaluepair[0][1] = value;
                             //     System.out.println("["+ObjectPropertiesFileName+"] key/value gefunden:"+parameter+";"+value);
                                  //and finaly put the array into the vector
                                  PropertiesSet.addElement(propvaluepair);
              // error handlig
              catch (IOException e)
                   System.out.println("ERROR occured while reading property file for: "+ObjectPropertiesFileName);
                   System.out.println("ERROR CODE: "+e);
                   // System.out.println("in ObjectProperties");
         // function to be called to get the value of a specific paramater 'param'
         // if the specific paramater is not found '-1' is returned to indicate that case
         public String getParam(String param)
              // the return value indicating that the param we are searching for is not found
              String v = "-1";
              // looking up the whole Vector
              for (int i=0; i<PropertiesSet.size(); i++)
                   //the String i want to read the values in again
                   String s[][] = new String[1][2];
                   // trying to get out the array from the vector again
                   s = (String[][]) PropertiesSet.elementAt(i);
                   // comparing the param-name we're looking for with the param-name in the array we took out the vector at position i
                   if (s[0][0].equals(param) == true)
                        //if the param-names are the same, we look up the value and write it in the return variable
                        v = s[0][1];
                        // making sure the for loop ends
                        i = PropertiesSet.size();
              // giving the value back to the calling procedure
              return v;
         // function to be called to set the value of a specific paramater 'param'
         public void setParam(String param, String value)
              // looking up the whole Vector for the specific param if existing or not
              for (int i=0; i<PropertiesSet.size(); i++)
                   //the String i want to read the values in again
                   String s[][] = (String[][]) PropertiesSet.elementAt(i);
                   // comparing the param-name we're looking for with the param-name in the array we took out the vector at position i
                   if (s[0][0].equals(param) == true)
                        //if the param-names are the same, we remove the param/value pair so we can add the new pair later in
                        PropertiesSet.removeElementAt(i);
                        // making sure the for loop ends
                        i = PropertiesSet.size();
              // if we land here, there is no such param in the Vector, either there was none form the beginng
              // or there was one but we took it out.
              // create a string array to place the param/value pair in
              String n[][] = new String[1][2];
              // add the param/value par
              n[0][0] = param;
              n[0][1] = value;
              // add the string array to the vector
              PropertiesSet.addElement(n);
         // function to save all data in the Vector to the properties file
         // must be done because properties might be changing while runtime
         // and changes are just hold in memory while runntime
         public void store()
              backup();
              String outtofile = "# file created/modified on "+createDate("-")+" "+createTime("-")+newline+newline;
              try
                   //opening stream to file for write operations
                   FileOutputStream PropertiesFileOuput = new FileOutputStream(PropertiesFile);
                   DataOutputStream PropertiesDataOutput = new DataOutputStream(PropertiesFileOuput);
                   // looping over all param/value pairs in the vector
                   for (int i=0; i<PropertiesSet.size(); i++)
                        //the String i want to read the values in
                        String s[][] = new String[1][2];
                        // trying to get out the array from the vector again
                        s = (String[][]) PropertiesSet.elementAt(i);
                        String param = "$"+s[0][0];
                        String value = s[0][1];
                        outtofile += param+" = "+value+newline;
                   outtofile += newline+"#end of file"+newline;
                   try
                        PropertiesDataOutput.writeBytes(outtofile);
                   catch (IOException e)
                        System.out.println("ERROR while writing to Properties File: "+e);
              catch (IOException e)
                   System.out.println("ERROR occured while writing to the property file for: "+ObjectPropertiesFileName);
                   System.out.println("ERROR CODE: "+e);
         // sometimes before overwritting old value it's a good idea to backup old values
         public void backup()
              try
                   // reference to the original properties file
                   File OriginalFile = new File(ObjectPropertiesDir+ObjectPropertiesFileName);
                   File BackupFile = new File(ObjectPropertiesDir+"/backup/"+ObjectPropertiesFileName+".backup");
                   //opening stream to original file for read operations
                   FileInputStream OriginalFileInput = new FileInputStream(OriginalFile);
                   DataInputStream OriginalFileDataInput = new DataInputStream(OriginalFileInput);
                   //opening stream to backup file for write operations
                   FileOutputStream BackupFileOutput = new FileOutputStream(BackupFile);
                   DataOutputStream BackupFileDataOutput = new DataOutputStream(BackupFileOutput);
              //     String content = "";
                   String line = "";
                   // do till end of file
                   while ((line = OriginalFileDataInput.readLine()) != null)
                        BackupFileDataOutput.writeBytes(line+newline);
              // error handlig
              catch (IOException e)
                   System.out.println("ERROR occured while back up for property file: "+ObjectPropertiesFileName);
                   System.out.println("ERROR CODE: "+e);
                   System.out.println("this is a serious error - the server must be stopped");
         private String cutSpaces(String s)
              while (s.startsWith(" "))
                   s = s.substring(1, s.length());
              while (s.endsWith(" "))
                   s = s.substring(0, s.length()-1);
              return s;
         public String createDate(String seperator)
              Date datum = new Date();
              String currentdatum = new String();
              int year, month, date;
              year = datum.getYear()+1900;
              month = datum.getMonth()+1;
              date = datum.getDate();
              currentdatum = ""+year+seperator;
              if (month < 10)
                   currentdatum = currentdatum+"0"+month+seperator;
              else
                   currentdatum = currentdatum+month+seperator;
              if (date < 10)
                   currentdatum = currentdatum+"0"+date;
              else
                   currentdatum = currentdatum+date;
              return currentdatum;
         public String createTime(String seperator)
              Date time = new Date();
              String currenttime = new String();
              int hours, minutes, seconds;
              hours = time.getHours();
              minutes = time.getMinutes();
              seconds = time.getSeconds();
              if (hours < 10)
                   currenttime = currenttime+"0"+hours+seperator;
              else
                   currenttime = currenttime+hours+seperator;
              if (minutes < 10)
                   currenttime = currenttime+"0"+minutes+seperator;
              else
                   currenttime = currenttime+minutes+seperator;
              if (seconds < 10)
                   currenttime = currenttime+"0"+seconds;
              else
                   currenttime = currenttime+seconds;
              return currenttime;

  • How do we write technical specs?

    How do we write technical specs?

    Hi,
       The points to be included in technical specs are:
    Business Requirement
    From business standpoint describe:
    Objective - What the object(s) are supposed to accomplish?
    Purpose - Describe what are the purposes of these object(s)?
    Users - Describe who will use are these object(s)? And when? And where?
    Known Errors / Issues  - Describe any known errors and issues
    Provide Business Process and data flow diagram
    3.0     Detail Level Design
    3.1     Design Approach
    Provide technical design approach along with alternatives and driver that led to choosing a particular approach
    3.2     Detailed Design
    3.1.1     Technical Configuration Requirements
    What configuration is required to support this process?  Does this process require master data to be loaded?  Specify any application configuration settings, custom table entries, etc.
    3.1.2     Object List
    Give a list of the component/objects that need be created / modified.
    No.     Object Name     Object Type     Description
    1.               
    2.               
    3.               
    3.1.3     Object Relationships
    Provide pictorial representation of technical design and link it to the list of objects defined above.
    u2022     Object relationship diagram
    u2022     Data flow diagram
    u2022     Screen navigation diagram
    u2022     Use-case diagram
    4.0     Object details
    Provide detail for each object defined in 3.1.2
    4.1     Object Name 1
    4.1.1     Attributes
    4.1.2     List each tables and File Structure
    <Enter name(s) of the table(s) be used in the program>
    Object Name     
    Field     Short Text     Data Element
    / Field Type     Field Length     Additional info
    4.1.3     Function / Methods / processing logic
    <Enter name of the functional module used in the programs>
         <Indicate status keys and name of the function to be indicated for screens used in the module pool programs, if any>
    4.1.4     Interfaces / BDC mappings
    Non-EDI Interfaces / Data Mapping
    <For BDC, Run SHDB Transaction and give Session name. >
    <Embed Data Mapping Sheet here>
    <Third party tools such as IM/3>
    EDI Interfaces
         <Message type, Partner profile details>
    4.1.5     Technical configuration / Settings (Including printer settings)
    <Enter settings details >
    4.1.6     Events
    4.1.7     Screen
    Parameter / Select options (selection-screen)
    Screen Name     
    TYPE     Field     Field description     Table     Mandatory /  Non-mandatory     Match Code required  (Y / N)
    u2022     Field Validations
    u2022     Radio Groups
    u2022     Check Boxes
         Push Buttons for Drilldown reports on different levels
    Button     Field name      Drilldown from     Drilldown To
    Screen Layout (In case of Transactions)
         <Enclose the same if applicable and indicate to refer attached sheet>
    Navigation Diagram (or Screen flow)
    <Provide screen navigation diagram>
    4.1.8     Layout  and Presentation
    4.1.9     Sort Options
    4.1.10     <Enter your contents here>
    Report or file Layout (In case of Reports)
    <Enclose the same if applicable and indicate to refer attached sheet>
    < Provide additional information on expectation e.g. Download options>
    4.1.11     SAP Script Layout (In case of SAP Scripts)
              <Enclose the same if applicable and indicate to refer attached sheet>
    Logo for SAPScript in case of non-pre-printed stationary
              <Attach TIF file in Version 6.0 & above>
    Printing of SAPScript
    <Enter printer details, Attach hardcopy of pre-printed Stationary. >
    < Provide additional information on expectation e.g. Font type, size etc.>
    4.1.12     Special Requirements
    <Enter your contents here, if applicable>
    4.1.13     Authorization Check
    <Enter authorization checks to be incorporated, if required>
    4.1.14     Error Control and Handling
    What errors may occur and how they should be treated.
    Message Reference Number     Type
    [I,E,W]     Stop Program (Yes/No)     
    Message Text     Message Display [Selection screen, Popup, etc.]     Conditions Where the Message Should Occur
    999     E     Yes     { e.g. Account group excluded }     End of report     { e.g. If the group is excluded }
    4.1.15     Authorization Groups / Authorization Objects
         Please refer to the functional specification for the appropriate security levels.
    ABAP Considerations: Do any of the programs need special authorization groups, if so, explain?
    Do the users need special security profiles to execute the enhancement, if so, explain?
    {e.g. The transaction program will verify that the user has the correct authority on transaction entry. }
    4.1.16     Internationalization / Localization
    <Enter approach for language translation, currency conversion and compliance to legal requirement here>
    5.0     Test data and Conditions
    Determine how to validate the Object. (e.g. how do you make sure that the Report was run and has worked correctly?)  List any transactional data that will be used to validate the report both in a production state and for testing purposes (i.e. specific types of sales transactional data, adjustments, etc)
    <Enter test related data and testing conditions>
    <Enter Menu path for Transaction ><Enter details of Test Data / Test cases for program & users. >
    6.0     Implementation considerations
    6.1     Dependencies
    If the object has dependencies on the output of another enhancement, interface, background process, month end close, etc.
    6.2     Transitional considerations
    { e.g. If change is being implemented in phased manner, provide the impact of phased implementation on lifecycle and logic of the objects and related configuration and data elements }
    6.3     Related Documents
    { e.g. Give the reference or embed of all the documents related to the object }
    7.0     Basic assumptions (Notes) and limitations (constraints) of the system
    <Include here a description of the architectural constraints, and design assumptions from the perspective of requirements, development, testability and maintainability. >
    No.     Description     Comments / References
    1.          
    2.          
    3.          
    8.0     Open Issues
    <Enter comments/issues or Concerns that donu2019t logically fit in one of the other sections of the specification document. >
    Issue No.     Description     Comments / References
    1.          
    2.          
    3.

  • How can I Write a sine wave in an Access-fil​e?

    I measure a sine wave in LabView 6i. How can I write the datas automatically to an Acces-file, at the same time?
    In my program, I managed it with Execute SQL.vi, I change a number in a SQL statement(String) -> after this I push start and then it writes the statement in the Access-file.
    The problem is, it writes only one data per measurement in the file. How can I write all datas in the Access-file and measure the wave at the same time?
    Thanks for help!
    Attachments:
    getwave.vi ‏49 KB

    On the waveform palette, you will find a "to components" vi that you can break out the array of the waveform. You can then, using a for loop write all of the values from the waveform.
    Better yet, there are examples in the database toolkit manual on pages 3-13 to 3-15 that deal with reading arrays (and even has a waveform example).
    Good luck!

  • How can i write the below code using "For all entries"

    Hi
    How can we write the below code using "for all entries" and need to avoid joins...
    Please help
    SELECT aaufnr aobjnr aauart atxjcd a~pspel
    agstrp awerks carbpl cwerks
    INTO TABLE t_caufv
    FROM caufv AS a
    INNER JOIN afih AS b
    ON aaufnr = baufnr
    INNER JOIN crhd AS c
    ON bgewrk = cobjid
    AND c~objty = 'D'
    WHERE ( a~pspel = space
    OR a~txjcd = space
    OR NOT a~objnr IN
    ( select OBJNR from COBRB AS e
    WHERE objnr = a~objnr ) )
    AND a~werks IN s_plant
    AND a~auart IN s_wtype
    AND NOT a~objnr IN
    ( select OBJNR from JEST AS d
    WHERE objnr = a~objnr
    AND ( dstat = 'A0081'OR dstat = 'A0018' )
    AND d~inact 'X' ).
    Reward points for all helpfull answers
    Thanks
    Ammi.

    Hi,
    SELECT objnr objid aufnr
            from afih
            into table t_afih.
    SELECT objnr
            from JEST
            into table t_JEST
            where stat = 'A0045'
               OR stat = 'A0046'
               AND inact 'X'.
    SELECT objnr
            from COBRB
            into table t_cobrb.
    SELECT arbpl werks objid objty
          from crhd
          INTO table it_crhd
          FOR ALL ENTRIES IN it_afih
          WHERE objty eq 'D'
          AND gewrk = it_afih-objid.
    SELECT aufnr objnr auart txjcd pspel gstrp werks aufnr
            FROM caufv
            INTO table t_caufv
            FOR ALL ENTRIES IN it_afih
            WHERE aufnr = it_afih-aufnr
              And pspel = ' '
              AND txjcd = ' '
             ANd objnr ne it_crhd-objnr
              AND auart in s_wtype
              AND werks in s_plant.
             AND objnr ne it_jest-objnr.
    dont use NE in the select statements, it may effect performance also. Instead use if statements inside
    loops.
    loop at t_caufv.
    read table it_chrd............
      if t_caufv-objnr ne it_chrd-objnr.
      read table it_jest..........
       if   if t_caufv-objnr ne it_jest-objnr.
        (proceed further).
       endif.
      endif.
    endloop.
    hope this helps.
    Reward if useful.
    Regards,
    Anu

  • How do I install software (specifically Office for Mac) on a MacBook Air?

    How do I install software (specifically Office for Mac) on my MacBook Air?  Thanks.

    Q7: How do I activate?
    A7: To activate the product, follow these steps:
    1. Launch application and click Enter your product key.
    2. Review the Software License Agreement and click Continue.
    3. You must agree to Software License Agreement. Click Continue.
    4. Enter your product key and click Activate. The Activation Wizard automatically contacts the Microsoft licensing servers through your Internet connection. When you activate the product by using the Internet, the product key is sent to Microsoft through an encrypted transfer. If you decide to activate the product through the Internet and you are not already connected, the wizard alerts you that there is no connection. Click either Activate by Phone or Activate later.  Note Do not lose the product key. Keep the packaging, or note the number. Keep the number information in a safe location.  Your product key is a unique sequence of 25 letters and numbers divided into groups of 5.  If you purchased a box with a DVD: The product is located on the back of the Office for Mac DVD sleeve.  If you purchase through a web site: The product key is sent to you in email with the title Microsoft Office for Mac – Order Confirmation”
    5. If the activation is successful, you receive the following message:  
    Your copy of <product title> is now activated.
    If for any reason the Activation fails, click Activate by phone. Select your location and then dial the phone number on the screen. For example, for United States: 1866-825-4797 or United Kingdom: (44)-(203)-147-4930. You can telephone an Activation Center to obtain the help of a customer service representative and activate the product. Telephone activation might take longer than activation through the Internet. You should be at the computer when you call. Additionally, you should have your software product key. When you select this option, the Activation Wizard generates an Installation ID. You musy have this Installation ID to activate the product by telephone.
    Important When you telephone the Activation Center, you are prompted to read the Installation ID numbers.
    Note Activation Center numbers are not listed for all locations in this article because telephone contact numbers vary by license and also by country or region. The Activation Wizard gives you the number to telephone the Activation Center.

  • How do I save a specific backup in Time Machine?

    Before I do a major backup, I like to save the state of the computer.   Unfortunately, it looks like Time Machine consolidates backups, and erases them - perhaps before I am sure the updates were successful.  How can I save a specific backup?

    Susan-T wrote:
    Before I do a major backup, I like to save the state of the computer.   ...
    Would suggest that you make a Bootable Clone of your Drive...
    By far the easiest way to make such a Backup, is to use something like
    SuperDuper  http://www.shirt-pocket.com/
    or CCC  http://www.bombich.com/
    That way, should anything untoward happen...
    You will NOT LOSE ANYTHING.
    (Get an EHD that is at least equal to your current Drive...)

  • HT204266 how to search for a specific app eg tetris in the app store?

    Hi is there anyone that can please help me on how to search for a specific app eg tetris in the app store? Thanks

    Hi Friend,
    You just write down the name of the app or for what the app is used for (eg, write down Notes and then will appear a lot of options), then download what you wish.
    Hope it will be helpful

  • How user variable table names in select statement

    Dear all,
    I have three table gp1,gp2,g3. i want user variable table in sql query
    for example at oracle forms have a list table showing table names gp1,gp2,gp3
    at form i want user this query
    select gpno from :table where gpno=120;
    how i can specify table name Dynamicly in select query
    Thanks

    Forms_DDL is a one-way street: You can only pass DDL commands TO the database; you cannot get data back using Forms_DDL.
    Exec_SQL is the Forms package that enables dynamic sql within a form. But to retrieve data, you have to make a Exec_SQL call for every column in every row. So it is not a good thing to use, either.
    The ref cursor method should work. You could also retrieve the data into a record group using populate_group_with_query -- it also enables dynamic data retrieval.
    But if you already know you have three distinct tables and you know their names, I would keep it simple and just write three sql select statements.

Maybe you are looking for

  • Error while creating Partner Profile

    Hi. While generating the Partner profile for the distribution model The following error is coming : Outbound parameters for message type CREMAS CREMAS04 could not be created Please enter a valid value for the output mode Outbound parameters for messa

  • Disable Function Key F3 in Internet Explorer

    I would like to disable function keys F1 and F3 while playing my flash movie in internet explorer. I am using these keys within Flash to do some actions. I got the script working for Function Key F1 using the following script <script language="javasc

  • Secure Map Rendering - Javascript API

    Hello All I need to apply secure mapping functionality using Mapviewer's JavaScript based API.Is it possible using cookie ?.Can you please give an example for this? Thank you

  • How to reinstall Photoshop CC after uninstalling?

    I d/l'd and installed Photoshop CC from Creative Cloud desktop, but there were problems undating it and I had to uninstall. Now, CC desktop won't let me reinstall, stating Photohsop CC is installed and updated. Thanks

  • CC Installer will not install - spinning wheel (MAC)

    I've had an installed CC on a desktop for many months now. I have installed the Adobe CC on a laptop. However, the screen contains a endless spinning wheel. The computer is indeed connected to the Internet. And I have used my correct credentials to s