Variable Doubt

Hi...
I have Two Variables in my query
0I_CMNTH - Cal Month/Year (Interval, Mandatory) for  KEYFIG1
0PCALMON - Cal Year/Month (Single Value, Mandatory)for KEYFIG2
Then TO value from the first variable, should be automatically filled in 2nd Variable.
Is there a way? Can this be done by replacement path or Customer Exit variables?
Thanks,
Sai.

Hi Gova,
Thanks for ur quick reply.
Beken - I do not need the second variable to be ready for input.
I created a Customer Exit Variable which is not ready for input.
I went into the program ZXRSRU01. The source code looks like this.
DATA: t_data  TYPE zprof_account OCCURS 0 WITH HEADER LINE.
DATA: e_range TYPE rrrangesid.
DATA: e_old   TYPE rrrangeexit.
DATA: w_date  TYPE scal-date.
DATA: w_week  TYPE scal-week.
CASE i_vnam.
  WHEN 'ZPOP_LOW'.
    LOOP AT i_t_var_range INTO e_old WHERE vnam EQ 'ZPPER_MI'.
      CLEAR e_range.
      e_range-sign       = 'I'.
      e_range-opt        = 'EQ'.
      e_range-low        = e_old-low.
      e_range-high       = space.
      APPEND e_range TO e_t_range.
    ENDLOOP.
  WHEN 'ZPOP_UP'.
    LOOP AT i_t_var_range INTO e_old WHERE vnam EQ 'ZPPER_MI'.
      CLEAR e_range.
      e_range-sign       = 'I'.
      e_range-opt        = 'EQ'.
      e_range-low        = e_old-high.
      e_range-high       = space.
      APPEND e_range TO e_t_range.
    ENDLOOP.
  WHEN 'ZCALQUA'.
    LOOP AT i_t_var_range INTO e_old WHERE vnam EQ '0P_FPER'.
      CLEAR e_range.
      e_range-sign       = 'I'.
      e_range-opt        = 'EQ'.
      e_range-low0(4)   = e_old-low0(4).
      IF     e_old-low+4(3) BETWEEN '001' AND '003'.
        e_range-low+4(1)   = '1'.
      ELSEIF e_old-low+4(3) BETWEEN '004' AND '006'.
        e_range-low+4(1)   = '2'.
      ELSEIF e_old-low+4(3) BETWEEN '007' AND '009'.
        e_range-low+4(1)   = '3'.
      ELSEIF e_old-low+4(3) BETWEEN '010' AND '012'.
        e_range-low+4(1)   = '4'.
      ENDIF.
      e_range-high       = space.
      APPEND e_range TO e_t_range.
    ENDLOOP.
  WHEN 'ZCALFISC'.
    LOOP AT i_t_var_range INTO e_old WHERE vnam EQ '0P_FPER'.
      CLEAR e_range.
      e_range-sign       = 'I'.
      e_range-opt        = 'EQ'.
      e_range-low0(4)   = e_old-low0(4).
      e_range-high       = space.
      APPEND e_range TO e_t_range.
    ENDLOOP.
  WHEN 'ZREVENUE'.
    CLEAR t_data.
    REFRESH t_data.
    SELECT *
           FROM zprof_account
           INTO CORRESPONDING FIELDS OF TABLE t_data
                WHERE revenue EQ 'X'.
    LOOP AT t_data.
      CLEAR e_range.
      e_range-sign       = t_data-sign.
      e_range-opt        = t_data-opt.
      e_range-low        = t_data-low_account.
      e_range-high       = t_data-high_account.
      APPEND e_range TO e_t_range.
    ENDLOOP.
    REFRESH t_data.
  WHEN 'ZCOST'.
    CLEAR t_data.
    REFRESH t_data.
    SELECT *
           FROM zprof_account
           INTO CORRESPONDING FIELDS OF TABLE t_data
                WHERE cost EQ 'X'.
    LOOP AT t_data.
      CLEAR e_range.
      e_range-sign       = t_data-sign.
      e_range-opt        = t_data-opt.
      e_range-low        = t_data-low_account.
      e_range-high       = t_data-high_account.
      APPEND e_range TO e_t_range.
    ENDLOOP.
    REFRESH t_data.
  WHEN 'ZCALCWK'.
    LOOP AT i_t_var_range INTO e_old WHERE vnam EQ '0DAT'.
      w_date = e_old-low.
      CALL FUNCTION 'DATE_GET_WEEK'
        EXPORTING
          date = w_date
        IMPORTING
          week = w_week.
      w_week = w_week - 1.
      CLEAR e_range.
      e_range-sign       = 'I'.
      e_range-opt        = 'EQ'.
      e_range-low        = w_week.
      e_range-high       = space.
      APPEND e_range TO e_t_range.
    ENDLOOP.
  WHEN 'ZFYCYR'.
    LOOP AT i_t_var_range INTO e_old WHERE vnam EQ '0P_FPER'.
      CLEAR e_range.
      e_range-sign       = 'I'.
      e_range-opt        = 'BT'.
      e_range-low        = e_old-low.
      e_range-low+4(3)   = '001'.
      e_range-high       = e_old-low.
      APPEND e_range TO e_t_range.
    ENDLOOP.
ENDCASE.
Here I do not find I_STEP anywhere. Where should I do it? I am in BW 3.5.
Much awaited to hear from u.
Thanks,
Sai.

Similar Messages

  • Static method and variables doubts

    i have a doubt
    i have the following method
    private static void checkActionType(String action) {
    if (action.startsWith(" a")) {
    ++totalAddedActions;
    } else if (action.startsWith(" c")) {
    ++totalChangedFolders;
    } else if (action.startsWith(" p")) {
    ++totalPersonalizedActions;
    } else if (action.startsWith(" r")) {
    ++totalRemovedActions;
    } else if (action.startsWith(" v")) {
    ++totalViewedActions;
    } else if (action.startsWith(" u")) {
    ++totalUpdateActions;
    to use it, i need to declare my int variables static, because im calling this method from another static method that is called by main method.
    but this can cause me problems ?
    if i have two instances of this class running, my statics int will show the right value?
    there is a better approach?

    Here is my class, i want some advices to know if i am doing right, because everything is a little new for me.
    My class, read a log file and based upon a regular expression, it can retrieve a general statistic or a personal statistic.
    package br.com.organox.aggregator;
    import java.io.BufferedReader;
    import java.io.FileReader;
    import java.io.IOException;
    import java.util.Vector;
    import org.apache.oro.text.regex.*;
    public class LogFileReader {
    private static Pattern regexpPattern;
    private static PatternMatcher patternMatcher;
    private static PatternCompiler patternCompiler;
    private static PatternMatcherInput patternInput;
    private static MatchResult matchResult;
    private static final String patternString = "^[^\']+User\\s+\'([^\']+)\'[^\']+session\\s+\'([^\']+)\'\\s+(\\S+)";
    // Integers used to store number of user, sessions and specific actions
    private static int totalUsers;
    private static int totalSessions;
    private static int totalAddedActions;
    private static int totalChangedFolders;
    private static int totalPersonalizedActions;
    private static int totalRemovedActions;
    private static int totalUpdateActions;
    private static int totalViewedActions;
    public static void main(String[] args) {
    if (args.length == 0) {
    System.out.println("No file name was specified");
    printClassUsage();
    } else if (args.length == 1) {
    printGeneralData(args[0]);
    } else if (args.length == 2) {
    System.out.println("You must set file name, data value and data type in order to " +
    "this class run properly");
    printClassUsage();
    } else {
    printSelectedData(args[0],args[1],args[2]);
    public static void printGeneralData(String fileName) {
    String data = "";
    //Users and the Session Vector are used to avoid count repeated values.
    Vector usersVector = new Vector();
    Vector sessionVector = new Vector();
    patternCompiler = new Perl5Compiler();
    patternMatcher = new Perl5Matcher();
    try {
    regexpPattern = patternCompiler.compile(patternString);
    } catch (MalformedPatternException mpe) {
    System.out.println("Error Compiling Pattern");
    System.out.println(mpe.getMessage());
    try {
    FileReader fileRead = new FileReader(fileName);
    BufferedReader buffRead = new BufferedReader(fileRead);
    while ((data = buffRead.readLine())!= null) {
    patternInput = new PatternMatcherInput(data);
    while(patternMatcher.contains(patternInput,regexpPattern)) {
    matchResult = patternMatcher.getMatch();
    // Avoid to insert repeated data in user and session Vectors
    if (usersVector.lastIndexOf(matchResult.group(1)) == -1) {
    usersVector.add(matchResult.group(1));
    if (sessionVector.lastIndexOf(matchResult.group(2)) == -1) {
    sessionVector.add(matchResult.group(2));
    increaseActionType(matchResult.group(3));
    for (int i=0;i<usersVector.size();i++) {
    totalUsers++;
    for (int i=0;i<sessionVector.size();i++) {
    totalSessions++;
    fileRead.close();
    buffRead.close();
    } catch (IOException ioe) {
    System.out.println("An I/O error occurred while getting log file data");
    ioe.printStackTrace();
    System.out.println("Users logged : " + totalUsers);
    System.out.println("Sessions opened : " + totalSessions);
    System.out.println("Added contents : " + totalAddedActions);
    System.out.println("Changed folders : " + totalChangedFolders);
    System.out.println("Personalized contents : " + totalPersonalizedActions);
    System.out.println("Removed contents : " + totalRemovedActions);
    System.out.println("Viewed Contents : " + totalViewedActions);
    System.out.println("Updated contents : " + totalUpdateActions);
    public static void printSelectedData(String fileName,String value,String valueType) {
    String data = "";
    String user = "";
    //Flag used to print the right result on screen
    String printFlag = "";
    Vector sessionVector = new Vector();
    Vector userVector = new Vector();
    Vector actionVector = new Vector();
    patternCompiler = new Perl5Compiler();
    patternMatcher = new Perl5Matcher();
    try {
    regexpPattern = patternCompiler.compile(patternString);
    } catch (MalformedPatternException mpe) {
    System.out.println("Error Compiling Pattern");
    System.out.println(mpe.getMessage());
    try {
    FileReader fileRead = new FileReader(fileName);
    BufferedReader buffRead = new BufferedReader(fileRead);
    while ((data = buffRead.readLine())!= null) {
    patternInput = new PatternMatcherInput(data);
    while(patternMatcher.contains(patternInput,regexpPattern)) {
    matchResult = patternMatcher.getMatch();
    if (valueType.equalsIgnoreCase("-user")) {
    printFlag = "userPrint";
    if ((matchResult.group(1).equalsIgnoreCase(value))) {
    userVector.add(matchResult.group(1));
    // avoid insert a repeated value inside session vector.
    if (sessionVector.lastIndexOf(matchResult.group(2)) == -1) {
    sessionVector.add(matchResult.group(2));
    increaseActionType(matchResult.group(3));
    if (userVector.size() == 0) {
    printFlag = "userPrintError";
    } else if (valueType.equalsIgnoreCase("-session")) {
    printFlag = "sessionPrint";
    if ((matchResult.group(2).equalsIgnoreCase(value))) {
    user = matchResult.group(1);
    sessionVector.add(matchResult.group(2));
    increaseActionType(matchResult.group(3));
    if (sessionVector.size() == 0) {
    printFlag = "sessionPrintError";
    } else if (valueType.equalsIgnoreCase("-action")) {
    printFlag = "actionPrint";
    if ((matchResult.group(3).equalsIgnoreCase(value))) {
    if (userVector.lastIndexOf(matchResult.group(1)) == -1) {
    userVector.add(matchResult.group(1));
    actionVector.add(matchResult.group(3));
    if (actionVector.size() == 0) {
    printFlag = "actionPrintError";
    fileRead.close();
    buffRead.close();
    } catch (IOException ioe) {
    System.out.println("An I/O error occurred while getting log file data");
    ioe.printStackTrace();
    if (printFlag.equals("userPrint")) {
    for (int i=0;i<sessionVector.size();i++) {
    totalSessions++;
    System.out.println("Sessions opened by user " + value + " : " + totalSessions);
    System.out.println("Added contents by user " + value + " : " + totalAddedActions);
    System.out.println("Changed folders by user " + value + " : " + totalChangedFolders);
    System.out.println("Personalized contents by user " + value + " : " + totalPersonalizedActions);
    System.out.println("Removed contents by user " + value + " : " + totalRemovedActions);
    System.out.println("Viewed contents by user " + value + " : " + totalViewedActions);
    System.out.println("Updated contents by user " + value + " : " + totalUpdateActions);
    } else if (printFlag.equals("userPrintError")) {
    System.out.println("This user " + value + " was not found on log file");
    } else if (printFlag.equals("sessionPrint")){
    System.out.println("Session " + value + " was opened by user " + user);
    System.out.println("Added contents by session " + value + " : " + totalAddedActions);
    System.out.println("Changed folders by session " + value + " : " + totalChangedFolders);
    System.out.println("Personalized contents by session " + value + " : " + totalPersonalizedActions);
    System.out.println("Removed contents by session " + value + " : " + totalRemovedActions);
    System.out.println("Viewed Contents by session " + value + " : " + totalViewedActions);
    System.out.println("Updated contents by session " + value + " : " + totalUpdateActions);
    } else if (printFlag.equals("sessionPrintError")){
    System.out.println("This session " + value + " was not found on log file");
    } else if (printFlag.equals("actionPrint")){
    System.out.println("Action " + value + " was performed " + actionVector.size() +
    " times for " + userVector.size() + " different user(s)");
    } else if (printFlag.equals("actionPrintError")){
    System.out.println("This action " + value + " was not found on log file");
    } else {
    System.out.println("Wrong search type!");
    System.out.println("Accepted types are: ");
    System.out.println("-user -> Search for a specified user");
    System.out.println("-session -> Search for a specified session");
    System.out.println("-action -> Search for a specified action");
    private static void increaseActionType(String action) {
    if (action.startsWith("a")) {
    ++totalAddedActions;
    } else if (action.startsWith("c")) {
    ++totalChangedFolders;
    } else if (action.startsWith("p")) {
    ++totalPersonalizedActions;
    } else if (action.startsWith("r")) {
    ++totalRemovedActions;
    } else if (action.startsWith("v")) {
    ++totalViewedActions;
    } else if (action.startsWith("u")) {
    ++totalUpdateActions;
    }

  • Static variable doubt !!!

    why the following code throws an error (Illegal start of expression )
    public class samp
         public static void main(String [] a)
    static int i=10; // error is occuring at this line ....
         System.out.println(i);
    }

    In C you can have a static variable declared inside a function.
    It is static, that is, retains the value between the calls, and it is declared in the function, hence it is seen only from there. In the following example both function have their own static i variables.
    #include <stdio.h>
    static int i=0;
    int foo() {
    static int i=100;
         return i++;
    int bar() {
    static int i=200;
         return i++;
    int main() {
    int x;
    for(x=4;x<8;x++) printf("%d %d\n",x,foo());
    for(x=4;x<8;x++) printf("%d %d\n",x,bar());
    printf("%d\n",i);
    }

  • Local variable doubt

    Hello every1,
    i m new to java...i wanted to know:
    class A{
    int abc
    attach() {
    int s = 4;
    int xyz = 9 - s;
    function (xyz)
    function(int d)
    abc +=d
    }can i pass a local variable xyz as an paramter to other function in the same class ???
    Thanks

    uj_ wrote:
    It's a myth that exactly Java newbies would benefit from starting out with a rudimentary text editor typing shell commands. Nobody in their right mind would suggest that to a .NET newbie. Is Visual Studio really so much better than Eclipse or Netbeans?
    Using a good IDE will allow newbies to concentrate on the fun part of Java namely the actual programming right from the start.
    There are two extremely persistent myths plaguing Java. One is that Java is slow. The other is that Java must be taught using ancient development tools.Its not a myth, its more personal preference. I think it is good to at least start out using a text editor and command line so you are forced to spot your own mistakes and debug your code with your own eyes instead of having an IDE highlight your errors for you. This is just to start out, I think it help build your debugging ability. Now whether it take you 1 week or 1 year to move into using and IDE is up to you, but its good to at least get the experience of coding without one for a bit at the beginning and just focus on learning the language.
    Just my opinion and again it really is personal preference. We could go on and on about it I'm sure. Probably a topic for its own thread.
    Back on topic, I do see the code and illustration on page 259. flounder covered the explanation well though. Just to reiterate, when calling the go method:
    public void doStuff()
        boolean b = true;
        go(4);
    public void go(int x)
    }when go() is being called, only the value 4 is being passed, the variables remain inside the doStuff() method. the value is copied, if you will, to the variable "x" which is a local variable inside the go() method. once the go() method has been called, the variables inside of the doStuff() method are out of scope because that method is not currently on the top of the stack and is not currently running, but the value of one of the local variables was copied to the local variable "x" in the go() method as that method was put on the top of the stack. so now the variable x is in scope with the copy of the value from the doStuff() method

  • Customizing the Autoconfig

    I have been going through the Metalink Document: Customizing an AutoConfig Environment Doc ID: 270519.1
    In which cases, we need to customize the template file?
    (a) Changing the value of an existing context variable
    Doubt: We can edit this variable value in Context File. Whey we need to edit the template file????
    (b) Adding a new context variable to the context file
    Doubt: Can't we add directly to conext file using OAM????? If it is possible, why we beed custom template file???
    (c) Customizing an AutoConfig template file delivered by Oracle
    Doubt: Can you elaborate this with simple example??
    (d) Creating a customer owned AutoConfig template file
    Doubt: When can we do this? can you give me small example? cause, we never edited any template file and we did not get chance to do this
    thanks in advance, if i get any help from you guys resolving these doubts......

    Here is some info from my perspective
    (a) Changing the value of an existing context variable
    Doubt: We can edit this variable value in Context File. Whey we need to edit the template file????The supported way to change values of existing (Oracle-supplied) context file variables is thru OAM. You will need to edit some variables based on your installation and setup. This is not customization as per Oracle's definition.
    (b) Adding a new context variable to the context file
    Doubt: Can't we add directly to conext file using OAM????? If it is possible, why we beed custom template file???This certainly is a customization, and the supported way to add custom variables is as defined in the doc you mention. If you add these custom variables directly to the context file, then the next autoconfig patch will overwrite this file and you will lose your custom variables and setup.
    (c) Customizing an AutoConfig template file delivered by Oracle
    Doubt: Can you elaborate this with simple example??Adding custom variables as you have noted in (b) is a good example.
    (d) Creating a customer owned AutoConfig template file
    Doubt: When can we do this? can you give me small example? cause, we never edited any template file and we did not get chance to do thisThis is typically used for advanced installations where it may require specialized custom files for the various technology stacks. Almost all regular Apps customers will not have to create a completely custom autoconfig template file.
    HTH
    Srini

  • Doubt about  a null value assigned to a String variable

    Hi,
    I have a doubt about a behavior when assigning a null value to a string variable and then seeing the output, the code is the next one:
    public static void main(String[] args) {
            String total = null;
            System.out.println(total);
            total = total+"one";
            System.out.println(total);
    }the doubt comes when i see the output, the output i get is this:
    null
    nulloneA variable with null value means it does not contains a reference to an object in memory, so the question is why the null is printed when i concatenate the total variable which has a null value with the string "one".
    Is the null value converted to string ??
    Please clarify
    Regards and thanks!
    Carlos

    null is a keyword to inform compiler that the reference contain nothingNo. 'null' is not a keyword, it is a literal. Beyond that the compiler doesn't care. It has a runtime value as well.
    total contains null value means it does not have memory,No, it means it refers to nothing, as opposed to referring to an object.
    for representation purpose it contain "null"No. println(String) has special behaviour if the argument is null. This is documented and has already been described above. Your handwaving about 'for representation purpose' is meaningless. The compiler and the JVM don't know the purpose of the code.
    e.g. this keyword shows a hash value instead of memory addressNo it doesn't: it depends entirely on the actual class of the object referred to by 'this', and specifically what its toString() method does.
    similarly "total" maps null as a literal.Completely meaningless. "total" doesn't 'map' anything, it is just a literal. The behaviour you describe is a property of the string concatenation operator, not of string literals.
    I hope you can understand this.Nobody could understand it. It is compete nonsense. The correct answer has already been given. Please read the thread before you contribute.

  • Doubt in printing variables in script

    Hi Experts,
    I am having small doubt.
    1).I need to write one condition for sales org 'US11' and divisions '20' or '40'. So the below logic is correct or not.
    if vbdkr-vkorg = 'US11' and and vbdkr-vtweg = '20' or vbdkr-vtweg = '40'.
    select........
    endif.
    2). i need th print these variables in script. can i use the logic like this.
    if &vbdkr-vkorg& = 'US11' and and &vbdkr-vtweg& = '20' or &vbdkr-vtweg& = '40'.
    &zkbetr1/ zpery1&
    else.
    &zkbetr/ zpery& (This is for sales org other than US11)
    endif.
    Thanks & Regards,
    Ramana.

    Hi,
    I think your condition would be more apt if you code this way:
    IF vbdkr-vkorg EQ 'US11' AND ( vbdkr-vtweg EQ '20' OR vbdkr-vtweg EQ '40' ).
    ENDIF.
    Also, look at putting the code into a subroutine called from your driver or subroutine program and then returning the value. The "logic" for determining the value to be printed can then be performed within the subroutine rather than the SAP script.
    Cheers,
    Aditya

  • Doubt about scope of instance variable

    Hi All,
    i have a doubt about scope of instance variable.
    if i declare a instance variable in servlet , i want to know whether it can be shared(means everywhere ) or not.
    thanks in advance
    Gopal

    The servlet container will create one servlet object, and run multiple threads through its service() / doGet() / doPost() methods.
    That means that any instance variables of the servlet are shared between multiple requests, and can cause problems with threads accessing the same variable..
    To make your servlets thread-safe
    1 - have no instance variables - only use local variables in the doGet/doPost method.
    2 - use the session scope for storing variables you need over multiple calls.
    Cheers,
    evnafets

  • Doubt in Variable substitution

    Hi experts,
    Can i use variable substitution for taking a part of the input filename.
    My output filename contain only a part of the input filename.
    Regards,
    Divia

    >>With out storing the part of the input file name in a output files structure, is it not possible to achieve?
    You can use Dynamic Configuration UDF to set the file name instead of Variable substution.
    Have a look at Scenario #2 in my wiki [More with the File Adapter|https://www.sdn.sap.com/irj/scn/wiki?path=/display/xi/morewiththeFileAdapter]
    Thanks
    SaNv...

  • Small doubt on displaying variables in sap script

    HI all,
    Can anyone let me know if i am in the correct way or not.
    i'm modifying one existing script. to display some data in the script i am doing like this :
    get the data into itab.
    loop at itab into wa.
    call FM write_form
       element = 'TEXT'.
    endloop.
    in the layout i am using this elements and variables
    /E TEXT
    S1 <D1>&WA-FIELD1&</> <D1>&WA_FIELD2&</>
    but the work in not having any data in the layout whereas before call write_form its having data.
    can anyone suggest me who to deal with this.
    thanks

    You can check if your SAPScript is able to talk with the driver program.
    In SE71
    Open in Change Mode
    Form > Check > Text
    Select the Include Res checkbox .. Press Enter
    Enter your Program in the Next popup by "Append Print Program"
    Now, press Copy.
    It will show you the errors.
    In your proram WA must a in TOP include or Globally declared.
    Regards,
    Naimesh Patel

  • Doubt in Decode and Using Temporary variable

    I was facing the following issue,
    For example,
    The column_name if A should be stored with the value B or, with itself for which I included a statement as following,
    Case [1]
    SELECT ....DECODE(column_name,'A','B',column_name) alias_name
         FROM table_name
              WHERE condition;
    But,
    when i used a temporary variable as following i could not get the expected change,
    Case [2]
    SELECT ...column_name
         FROM table_name
              WHERE condition;
    temp VARCHAR(10);
    BEGIN
    IF column_name='A' THEN
         temp:='B';
    ELSE
         temp:=column_name;
    END IF;
    END;
    I was able to get the right output in Case[1],but failed to get in [2]. Please help and Thanks in advance.

    Without seeing your code, whatever I can say might be just an assumption. I can give an example to show that it will work.
    SET SERVEROUTPUT ON
    DECLARE
      var      VARCHAR2(10);
      col_name VARCHAR2(30);
      TEMP     VARCHAR2(20);
    BEGIN
      SELECT column_name
      INTO col_name
      FROM user_tab_columns
      WHERE table_name = 'EMP'
      AND rownum       =1;
      IF (col_name     ='EMPNO') THEN
        temp          := 'X';
      ELSE
        temp := col_name;
      END IF;
      var := 'abc '||temp;
      dbms_output.put_line(var);
    END;
    OUTPUT :
    abc X
    PL/SQL procedure successfully completed.

  • Doubt on Text Variable in report

    Hi All,
    Currently i am working on Bex Reporting. I have created the text variable of type replacement Path and reference charactistic is 0FISPER.
    I have made all the settings in report level.
    While running the report, the description is displaying as " # " instead of Fiscal year values. Can you Please help on this issue.
    Thanks & Regards,
    Jelina.

    Hello Jelina,
    The value "#" appears only if there are no values corresponding to the specified variable.
    Please cross check if a legitimate value is available in the host variable/infoobject which the replacement path points to.
    Regards,
    Bharath

  • Doubt in creating a variable in Crystal Report 2008 SP3

    Hi,
    I am new to Crystal Reports, I need to create a variable with the below logic.
    No of Subscriptions Pending: COUNT(SUBSCRIPTION_ID) WHERE FCT_SUBSCRIPTION_ACTION.SUBSCRIPTION_ACTION_STATUS IN
    (SELECT SUBSCRIPTION_ACTION_STATUS_CODE FROM LKM_SUBSCRIPTION_ACTION_STATUS WHERE
    FINAL_STATUS_FLAG = 'T')
    My data source is an universe where I have SUBSCRIPTION_ID, SUBSCRIPTION_ACTION_STATUS, SUBSCRIPTION_ACTION_STATUS_CODE & FINAL_STATUS_FLAG objects.
    I have pulled all the required objects from the universe into the Crystal Query.
    As we don't have the option to use Where condition in CR (As per my knowledge), I want to know how to write the above logic using "If" or some other function.
    Thanks in Advance,
    Mitch.

    Hi Jamie,
    Thanks for your reply & sorry for the late reply, I was away for Christmas.
    I tried your formula but it is not working properly.
    If I use  "IF FINAL_STATUS_FLAG = 'T' THEN SUBSCRIPTION_ID" then it is giving all the subscriptions count instead of pending ones.
    We need count the Subscription_ID's based on the Flag Status & the Action_Status & Action_Status_Code as per the formula.
    No of Pending Subscriptions: COUNT(SUBSCRIPTION_ID) WHERE FCT_SUBSCRIPTION_ACTION.SUBSCRIPTION_ACTION_STATUS IN
    (SELECT SUBSCRIPTION_ACTION_STATUS_CODE FROM LKM_SUBSCRIPTION_ACTION_STATUS WHERE
    FINAL_STATUS_FLAG = 'T')
    But your method is not taking Status Codes into consideration (correct me, if I am wrong)
    While checking against the Database I found the following results
    1) SELECT DISTINCT SUBSCRIPTION_ACTION_STATUS_CODE FROM LOOKUP.LKM_ORDER_ACTION_STATUS
         Result: AM, BA, CA, DC, DE, DO, FI, FU, IN, NE, NO, OH, RE, TC
    2) SELECT DISTINCT SUBSCRIPTION_ACTION_STATUS FROM FACT.FCT_ORDER_ACTION
          Result: DC, TC, AM, IN, DE, NE, CO, DO, NO, BA, CA
    Values in SUBSCRIPTION_ACTION_STATUS & SUBSCRIPTION_ACTION_STATUS_CODE differ. &
    3) SELECT ORDER_ACTION_STATUS_CODE FROM LOOKUP.LKM_ORDER_ACTION_STATUS WHERE
    FINAL_STATUS_FLAG = 'T'
          Result: CA, DC, DO
    4) SELECT ORDER_ACTION_STATUS_CODE FROM LOOKUP.LKM_ORDER_ACTION_STATUS WHERE
    FINAL_STATUS_FLAG = 'F'
          Result: AM, BA, DE, FI, FU, IN, NE, NO, OH, RE, TC
    Any other way of doing this.
    Thanks,
    Mitch.

  • Variable new_value doubts ( Rookie Needs Help Pls)

    i am using
    column global_name new_value gname
    after i do the usual select stuff to bring the value into gname
    what i don't understand is,
    1) is the gname here
    same as declaring
    variable game varchar2
    2) if it is, why cant i print gname;

    no, it is not same
    it is like defining gname. So you can "prompt &gname" but not "print gname".
    if you are referring to the buggy asktom script to set the sqlprompt, do not miss my note : def gname="SQL> " to attribute a value to gname, which will be overwritten is the database is open.
    regards
    Laurent

  • Doubt in variables

    hello experts
    I got one problem.
    I have report on customer sales according to various regions in a country.
    the query is like
    region,sales,....
    and he have defined numbers for all sales regions...like 1 for kashmir,2 for delhi...
    and I guess client have variable defined on region....so when he chooses 1 for region he gets kashmir region sales data,2 for delhi sales data....etc.....but he is fed up with remembering numbers of sales regions....so he want to see names of sales regions like delhi,kashmir when he is choosing in variable input....so it becomes easy for him....how can I help him?
    thanks for your help
    NR
    Edited by: new rider on Dec 4, 2008 2:05 PM

    Once he executes the query in analyzer.
    He will get variable popup right. Go to region and press F4 (Select from list option).
    Hope this helps.
    Edited by: Praveen G on Dec 4, 2008 8:22 AM

Maybe you are looking for

  • Installing CC Desktop 1.8.0.447 corrupts db and app associations

    I attended Max 2014 this week and was excited to return to update the Creative Cloud Desktop application and install all of the app updates. The first way I attempted to do this has created hours of frustration and futile tech support calls. I starte

  • Upgrade to 6.1 - sql SP stops working

    Hi I'm currently using weblogic 6.1, MS SQL Server 7.0, and the weblogic sql server driver. First off this problem does not occur on other application servers or on Weblogic 6.0sp2! (Apologies if the formating is messed up) I have the following store

  • CS3: Bridge does not show dng-files

    First it started to refuses to show NEF files, and now, it will not show dng files - or at least some of my dng files. What the H.... is wrong with this crap?

  • Illustrator CS6 and CC repeatedly crashing since I installed Mavericks (no plugins installed)

    Hello, I have read several messages on these boards from people having Illustrator CS6 crashing at boot since they installed Mavericks. In most cases, having installed specific plug-ins seemed to be the issue and removing them solved it. In some case

  • How to delete repeated values in smartforms

    Hi im using smartform..... im getting the correct value, but whenever there is a blank value , then it is taking previous value instead of blank data... how to come out of this problem? Regards Smitha