Problem in new query creation

Hi Experts,
In a report there are two InfoObjects posting date and Expiry Date. User will enter the posting date at the run time. Now user wants to see the sales values for the conditions as below:-
0<=|(Expiry Date-Billing Date)/30|<6
6<|(Expiry Date-Billing Date)/30|<=12
12<|(Expiry Date-Billing Date)/30|<=18
18<|(Expiry Date-Billing Date)/30|<=24
24<|(Expiry Date-Billing Date)/30|<=36
36<|(Expiry Date-Billing Date)/30|<=48
48<|(Expiry Date-Billing Date)/30|<=60
Now question is when restricting the Expiry Date how to use value of Billing date. For example, say user gives Billing date=x. Now how to give restriction on Expiry date as x <(Expiry date)< x + 30*6.
Any input will be highly appreciated.
Thanks in advance.
Regards,
Prakash

1st thing you need do is convert the Expiry Date, Billing Date into Key figures for that fallow below approach..
http://www.sd-solutions.com/SAP-HCM-BW-Replacement-Path-Variables.html
then create a formula for Expiry Date-Billing Date  , then you can include this formula in your conditions

Similar Messages

  • Problem in new database creation with the help of online  backup

    Dear dba's
    i am using oracle 11gR2 database in windows server 2003. database is running in ARCHIVE LOG mode.
    i have taken an online backup of all datafile,controlfile and spfile.Then i crated folders in all the locations as required for new database.
    then i registerd the service of new database named as 'newdb' by
    oradim -NEW -SID newdb
    then i created a password file manually in 'oracle_home\database' location.
    i created a new contolfile named as controlfile_01.ctl. the content of controlfile as follows
    STARTUP NOMOUNT
    CREATE CONTROLFILE SET DATABASE "NEWDB" NORESETLOGS ARCHIVELOG
    MAXLOGFILES 16
    MAXLOGMEMBERS 3
    MAXDATAFILES 100
    MAXINSTANCES 8
    MAXLOGHISTORY 292
    LOGFILE
    GROUP 1 (
    'D:\APP\ADMINISTRATOR\ORADATA\NEWDB\ONLINELOG\O1_MF_1_7FK0XG7B_.LOG',
    'D:\APP\ADMINISTRATOR\FLASH_RECOVERY_AREA\NEWDB\ONLINELOG\O1_MF_1_7FK0XHWB_.LOG'
    ) SIZE 50M,
    GROUP 2 (
    'D:\APP\ADMINISTRATOR\ORADATA\NEWDB\ONLINELOG\O1_MF_2_7FK0XKB8_.LOG',
    'D:\APP\ADMINISTRATOR\FLASH_RECOVERY_AREA\NEWDB\ONLINELOG\O1_MF_2_7FK0XM0Z_.LOG'
    ) SIZE 50M,
    GROUP 3 (
    'D:\APP\ADMINISTRATOR\ORADATA\NEWDB\ONLINELOG\O1_MF_3_7FK0XNOZ_.LOG',
    'D:\APP\ADMINISTRATOR\FLASH_RECOVERY_AREA\NEWDB\ONLINELOG\O1_MF_3_7FK0XOWB_.LOG'
    ) SIZE 50M
    DATAFILE
    'D:\APP\ADMINISTRATOR\ORADATA\NEWDB\DATAFILE\O1_MF_SYSTEM_7FK0SKN0_.DBF',
    'D:\APP\ADMINISTRATOR\ORADATA\NEWDB\DATAFILE\O1_MF_SYSAUX_7FK0SKPG_.DBF',
    'D:\APP\ADMINISTRATOR\ORADATA\NEWDB\DATAFILE\O1_MF_UNDOTBS1_7FK0SKTC_.DBF',
    'D:\APP\ADMINISTRATOR\ORADATA\NEWDB\DATAFILE\O1_MF_USERS_7FK0SKWB_.DBF',
    'D:\APP\ADMINISTRATOR\ORADATA\NEWDB\DATAFILE\O1_MF_EXAMPLE_7FK0Z5LK_.DBF',
    'D:\APP\ADMINISTRATOR\ORADATA\NEWDB\MARSH.DBF',
    'D:\APP\ADMINISTRATOR\ORADATA\NEWDB\JOMARSH.DBF'
    CHARACTER SET AL32UTF8
    the control file path was registered in pfile also.
    then i brought the database to nomount stage.
    the problem is when i try to mount database it shows following error. anyone can help me to over come from this issue????????
    SQL> startup pfile='D:\app\Administrator\product\11.1.0\db_1\database\INITnewdb.ora' nomount;
    ORACLE instance started.
    Total System Global Area 535662592 bytes
    Fixed Size 1334380 bytes
    Variable Size 301990804 bytes
    Database Buffers 226492416 bytes
    Redo Buffers 5844992 bytes
    SQL> ALTER DATABASE MOUNT;
    ALTER DATABASE MOUNT
    ERROR at line 1:
    ORA-00205: error in identifying control file, check alert log for more info
    the alert massage is:
    ORA-00210: cannot open the specified control file
    ORA-00202: control file: 'D:\APP\ADMINISTRATOR\ORADATA\NEWDB\CONTROLFILE\CONTROLFILE_01.CTL'
    ORA-27048: skgfifi: file header information is invalid
    OSD-04001: invalid logical block size (OS 1413563730)
    Fri Dec 09 13:11:59 2011
    Checker run found 1 new persistent data failures
    ORA-205 signalled during: ALTER DATABASE MOUNT...
    Thanks & Regards,
    John Marshal.A

    Hi;
    Error: ORA 205
    Text: error in identifying control file <name>
    Cause: The system could not find a control file of the specified name and
    size.
    Action: Either
    Check that the proper control filename is referenced in the
    CONTROL_FILES initialization parameter in the initialization parameter
    file and try again.
    When using mirrored control files, that is, more than one control file
    is referenced in the initialization parameter file, remove the control
    filename listed in the message from the initialization parameter file
    and restart the instance.
    If the message does not recur, remove the problem control file from
    the initialization parameter file and create another copy of the
    control file with a new filename in the initialization parameter file.
    Regard
    Helios

  • Problem with new user creation in Oracle 10g

    I have created a new user and assigned it the required privileges as shown below:
    GRANTEE GRANTED_ROLE ADM DEF
    SACHIN1 CONNECT NO YES
    SACHIN1 RESOURCE NO YES
    SACHIN1 SELECT_CATALOG_ROLE NO YES
    I am able to connect to database using this user username/password but when I am trying to fire any query like one below or to access any dictionary views it shows me the error message:
    SQL> select * from dept;
    select * from dept
    ERROR at line 1:
    ORA-00942: table or view does not exist
    What is that i am missing which is not set right for this user....Let me know

    user8531525 wrote:
    DEPT table exists as I am able to access when I login using default name SCOTT.
    If its not in my schema how can i include that so that i have access to it.You can use dynamic SQL to generate a script that should work:
    SELECT 'grant select on '||OWNER||'.'||TABLE_NAME||' to SACHIN1;' as script
    FROM dba_tables
    WHERE owner='SCOTT';
    This example generates the following:
    grant select on SCOTT.DEPT to SACHIN1;
    grant select on SCOTT.EMP to SACHIN1;
    grant select on SCOTT.BONUS to SACHIN1;
    grant select on SCOTT.SALGRADE to SACHIN1;
    Eg:
    SQL> conn sys/oracle as sysdba;
    Connected.
    SQL> grant select on scott.a to rajesh;
    Grant succeeded.
    SQL> conn rajesh/rajesh;
    Connected.
    SQL> select * from scott.a;
    ID
    123
    123
    123
    am able to connect to database using this user username/password but when I am trying to fire any query like one below or to access any dictionary views it shows me the error message:try
    SQL> select name from v$database;
    NAME
    REV1
    SQL> select file_name from dba_data_files;
    FILE_NAME
    /u01/app/oracle/oradata/rev1/users01.dbf
    /u01/app/oracle/oradata/rev1/sysaux01.dbf
    /u01/app/oracle/oradata/rev1/undotbs01.dbf
    /u01/app/oracle/oradata/rev1/system01.dbf
    Edited by: rajeysh on Sep 23, 2010 1:39 AM

  • Reg: Query Problem for New Posting Period

    Hi Xperts,
    While I try to Map the A/P Invoices with their respective Outgoing Payment,
    I used the following Query and it's Query Printlayout
    SELECT T0.DocNum [Payment#], T0.DocDate [Payment Date],
    T0.CardCode, T0.CardName, T1.InvoiceId, T2.DocNum [AP Inv#],
    T2.NumatCard [Bill No.], T2.DocDate [Bill Date], T1.selfInv,
    T1.SumApplied, T1.WtAppld, T0.NoDocsum 
    FROM  [dbo].[OVPM] T0  INNER  JOIN
    [dbo].[VPM2] T1  ON  T1.[DocNum] = T0.DocNum
    INNER  JOIN [dbo].[OPCH] T2  ON  T2.[DocEntry] = T1.DocEntry
    WHERE T0.Cardname='[%0]' and T0.DocDate='[%1]' and
    T0.DocNum='[%2]'
    I got the above query from our Expert Mr.Sambath only.
    Now what is the problem is the query is retrieving the payment details of old Posting Period only and not the current posting period.
    In detail, I used 'Primary' Series for FY08-09, Period indicator 'Default'
    Now I'm using 'Primary1' Series for FY09-10, Period indicator '0910'
    Thanx in adv.
    Regards,
    Bala

    Hi Bala,
    Looking at your query, it is not query issue ,it is your data issue.
    Please check if you have data in  VPM2  table  which is bank transfer payment method
    Thank you
    Bishal
    Edited by: Bishal Adhikari on Apr 9, 2009 8:48 AM

  • SQL Server 2012 Management Studio Displays Error With "New Query" and Intellisense Works Intermittenly

    I was upgrade to SQL Server 2012 and Visual Studio 2010 was upgraded with SP1 the same day.  This is x64 machine. 
    Microsoft SQL Server Management Studio      11.0.2100.60
    Microsoft .NET Framework      4.0.30319.261
    Operating System      6.1.7601
    Problem 1) With SQL Server Management Studio, selecting "New Query" a warning box is displayed: "The 'Microsoft.Practices.EnterpriseLibrary.Configuration.Design.VisualStudioIntegration2010Package, Microsoft.Practices.EnterpriseLibrary.Configuration.Design.VisualStudioIntegration2010,
    Version=1.0.0.0, Culture=netutral, PublicKeyToken=null' package did not load correctly.    The problem mayhave been cuased by a configuration change or by the installation of another extension.  You can get more information by running the
    application together with the /log parameter on the command line, and then examining the file ...\AppDate\Roaming\Microsoft\AppEnv\10.0\ActivityLog.xml'.  Continue to show this error message?
    Problem 2) In a Query Initellisense works intermittently but most of the time it will not display anything.  I have tried Edit|Intellisense|Refresh Cach size and also seperately, Edit | Intellisense | List Members but neither has helped.  Also
    tried different selections for Tools|options| T-SQL | Intellisense| Maximum Script Size; no luck either. 

    Hi WallyJim,
    For your first problem, possible workaround:
    In Programs and Features (or Add/Remove Programs), right click the Microsoft Enterprise Library 5.0 Optional Update 1 program and select change. Remove the VisualStudio2010 integration.
    Then, install the EnterpriseLibrary Configuration extension from Microsoft via the Extension Manager in VS2010. This will allow you to launch the configuration editor from VS2010, but will not be installed for SSMS.
    For more information, please refer to
    https://connect.microsoft.com/SQLServer/feedback/details/620532/error-message-on-new-query-window-opening.
    For your second problem, the following conditions might affect the behavior of IntelliSense:
    There is a code error above the cursor.
    The insertion point is inside a code comment.
    The insertion point is inside a string literal.
    The automatic options are turned off.
    For more information, refer to Troubleshooting IntelliSense (SQL Server Management Studio):
    http://msdn.microsoft.com/en-us/library/ms173434.aspx.
    Thanks,
    Maggie
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. This can be beneficial to other community members reading the thread.

  • Issue in creating a new query

    Hi Experts,
    I am facing following problem in creating a new query.
    User entered the billing date at run time in the query
    he wants to see the sales figures Expiry date wise where expiry date will be equal to billing date+15.
    For example if user gives Billing date as 01.09.2010 then he wants to see the sales figure for Expiry date= 16.09.2010
    how is it possible on query level?
    Please suggest.
    Thanks in advance.
    Regards,
    Prakash

    Hello Prakash,
    First create date variable (include day,month,year)
    Restrict the above date variable to the sales figure to get 01.09.2010
    again restrict the date vairable to the sales figure (with set variable offset+1) to get secound day sales figure i.e 02.09.2010.
    COntinute for 15 off set to get 19.09.2010 sales figure.
    Hope you understand it.
    Please let me know if you need any help.
    Thanks.
    With regards,
    Anand Kumar

  • Can't create a new query with an error msg

    We used to create a query called, eg, Q, then we copied it to Q_1 and deleted Q, but somehow when we try to rename the copied query Q_1 back to Q by creating a new query called Q, get error msg saying that 'Query name Q exists already'.  When we try to find the query from BEX analysor, can't find it, and also the query is not an entry of the table RSZCOMPDIR.  Somehow the query Q still exists somewhere in the system.
    Anyone's idea is greatly appreciated on how to resolve the problem!

    hi Kevin,
    with RSZDELETE, the query visible ?
    check thread
    Deleting "Ghost" queries
    Deleting queries using RSZDELETE
    try program ANALYZE_RSZ_TABLES ? (OSS Note 792779)
    hope this helps.

  • Problem in xml query

    Hi
    I am working on BLS and having problem in xml query.I want to perform some calculation over xml columns.Than total of this as a new column.I can do this part in logic editor itself but can i do these both task by XSLT.
    Can be made our own XSLT for this ?
    I am feeling kind of fear to xslt. Can anybody help me in this.
    Thanks a lot in advance
    thomas

    Ram,
    In xMII there is a list of predefined xslt transforms that do something similar to what you are explaining.  The 3 that I think may be what you are looking for are
    they are under Calculation Transformations and Subtotal Transformation take a look at these and tell me if they are doing what you want to accomplish.  In the xMII help file do a search on Inline Transforms or navigate to Advanced Topics -> Inline Transforms -> Predefined Inline Transforms.  In this section there are examples of how to use these transforms and apply them in the query templates.  If this is not what you are looking for can you explain in a little more detail along with a simple example of how you want this transform to work.  Also why do you want to use xslt if you can already accomplish this in BLS?
    Regards,
    Erik

  • Alerts for item master change and new item creation

    hai experts
                       my manager has to get an alert when any update has been done in item master or when a new item master is created .

    Hi.........
    Check this query for alert.........
    Quaery for New Item Creation:
    SELECT T0.[ItemCode], T0.[ItemName], T0.[CreateDate] FROM OITM T0
    Where DateDiff(DD,T0.[CreateDate],GetDate())<2
    Query For Updation of Item:
    SELECT T0.[ItemCode], T0.[ItemName], T0.[UpdateDate] FROM OITM T0
    Where DateDiff(DD,T0.[UpdateDate],GetDate())<2
    Above two alerts will be coming for two days........
    Regards,
    Rahul

  • Problem Change SAP Query in Crystal Reports

    Hi,
    i have a problem with changing a SAP Query in an Crystal Reports.
    I build a Report with a Query(1) and Design the Report complet everything works fine.
    I make a new Query(2) and if i make a new Crystal Report with this new Query everything works fine.
    Now my problem is i would like to use the design of the first report. Therefore i open the first report and save it under a new name. Delete all Database fields and delete the database connection.
    Now i gave in the new database connection to the new query(2) and in the Database fields i see a lot of Fields but not the right ones. Its completly wrong. Is there anybody how know this problem?????

    Hi i solved my problem by myself.
    I have to set Query as external available and have to use the MDX Query.
    Its strange because if i build a new report the query dont have to be set as external available.

  • Transport Required when Creating New Query

    I am attempting to create a new query on an InfoProvider which has several existing queries written on it.  After I have created the query in development when I attempt to save the query I receive an error saying the "query could not be saved due to a problem in transport.  BEx transport request '' is not available or suitable".
    It appears that the system is looking for a BEx transport to be assigned via RSA1 but since this is a new report I believe I should be able to save the report to TMP and assign a transport at a later time.
    Am I correct in my assumption and, if so, any thoughts why I'm receiving this error?

    Hi Jonathan,
    Unfortunately, you do need a transport request if you are using already transported objects in yur new query definition. Even if you assign a request in RSA1 > transport connection, you will need to log out and logback into BEx before you can save your query. As an option and to save part of your development effort, you can remove these objects from your definition and save it. Then log out, assign a request and log back into BEx and then add the other objects to your query.
    About the points: There seems to be something wrong with it for the past couple of days and I assume SDN is working to fix it. May be you can check back later and see if it is available...

  • Use String Variable in New Object Creation

    Thanks to those who review and respond. I am new to Java, so please be patient with my terminoloy mistakes and fumblings. I am reading in a file and I want to create a new object based on specific field (car for example). As you will notice I grab field 8 here label sIID.
    String sIID = dts.group(8);
    BTW this regex grouping works fine. The problem is seen when I try to use the sIID variable in my new object creation process.
    DateParse sIID = new DateParse();
    My IDE is reporting "Variable sIID is already defined in the scope"
    Is this possible? The assumption is that the sIID will have different value during the processing of the file. For example, car could mean truck, sedan, etc with operators like color, number of doors, mileage, top speed, etc.

    Thanks for the reply. I have include similar and much shorter code for the sake of brevity.
    My problems are centered around the x variable/object below. Ideally this would translate to three objects PersonA, PersonB, etc that I could reference later in the code as PersonA.newname if I wanted to. Hopefully this makes sense.
    public class TestingObjects {
      public static void main(String[] argv) {
           String [] names;
           names = new String[3];
           names[0] = "PersonA";
           names[1] = "PersonB";
           names[2] = "PersonC";
           for (String x:names) {
             PN x = new PN();  // <- Problem
             x.name = x;
             x.SayName();
            System.out.println(x.newname);
    public class PN {
           String name;
           String newname;
      public String SayName() {
           newname = "Name = " + name;
           System.out.println(name);
          return newname;
    }

  • Input query creation not possible

    Hi experts,
    I need to create an input query with at least one input ready caracteristic. I created the write access cube, and the aggregation level with RSPLAN, but when i create a new query based on this infoprovider i always have the planning tab 'Start query in change mode' in gray.
    Is there any extra parameters needed in order to create the input query ?
    could it be a server customizing problem ?
    regards
    Raed

    Hi Marcel,
    Thanks for ur repost; i will try to test it and see if it could help.
    Actually what i need is simply to have a text cell where the user could insert his comments. This cell is technically 'free', it is only a part of the cube and have no real object-relations (a basic char infoobject).
    Use Example, Cube shows ratios A and B for a product; the field 'comment' is what i need and it will be used in input by the user to say if the result is ok for him :
    product ratioA  ratioB comment
    aaa        100     120     not ok
    bbb         50       50      ok
    What u propose might work but it's not in direct input like we can do with KF.
    I'll try it and be back to give results
    Regards
    Raed

  • How to stop new record creation when mouse click

    Hi,
    I am working with Oracle Forms 6i.
    I have a multi record block. I have provided a 'New' button that the user should click when a new record creation is required. This is because there is some other function that needs to be performed when the new record is created. Specifically, on clicking the new button, the program populates the field with values read from another table. This works fine.
    However, I realized, that if the user clicks on the mutli-record block just below the last record, a new record gets created. This action does not cause the logic behind the 'New' button to execute and the record is created in a manner that is not acceptable.
    First question is why does the new record get created only by clicking with the mouse with the pointer below the last record? Is there a way to stop this from happening?
    Thanks in advance for your help.
    Shailesh

    Hi Andreas,
    Probably I was not able to explaing my problem.
    I have a button that creates a new record when clicked. The button's trigger has the CREATE_RECORD statement.
    When a new record is created, I need to copy values from the record above it. I have therefore used DUPLICATE_RECORD in my block's WHEN-NEW-RECORD-INSTANCE trigger.
    I cannot use DUPLICATE-RECORD in WHEN-CREATE-RECORD trigger.
    So, I am not clear about what you are suggesting.
    My problem is that a new record gets created when click with my mouse pointer below the last record in the multi-record block. Why does that happen and how to prevent it?
    Thanks
    Shailesh

  • SSMS 2012 crashes when opening new query on instance with Failover Clustering installed (not 2012 R2)

    Hi,
    I'm trying to start a new query in SSMS, but every time I click the "New Query" button on the tool bar or open a new query window by Object Explorer -> right-click -> Script as -> New Query Editor Window, SSMS hangs with (Not Responding)
    and has to be restarted.
    I'm running SSMS 2012 (v11.0.3381.0) on Server 2012 6.2.9200. I'm connecting to the primary node of an AlwaysOn Availability Group, and SSMS is located on the primary node itself.
    I'm aware of KB2908806, which describes the same symptoms, but this only applies to Windows 6.3.x. Is there an equivalent fix for 6.2.x, or another workaround?
    EDIT: To confirm behaviour: "New Query" works intermittantly, Script as ... to -> New Query Editor Window always crashes.

    Hello,
    there are many reasons your SSMS process would "hang", including bad server performance or internal SSMS processes being suspended due to locking.
    When you open a new query window, what your SSMS application does internally is to open a new connection to your instance. You could be experiencing problems in your instance that are causing the logon process to take too long.
    How does the bad performance issue generally happen? Is it only happening by connecting to the instance in SSMS? Does the same problem happen when you attempt to connect through an application, or by any other clients?
    What happens if you try to connect to the instance through a remote computer?
    Check your server's resource monitor for resource usage. Do you see any counters which could indicate performance problems?
    Please post the results of @@Version for your server.
    Can you open Activity Monitor in SSMS? How many sessions are listed? Does it also take a long time when you first log into the instance in SSMS, before opening a new query tab? Is the SSMS hanging for all databases when opening a new query window, or just
    for the ones included in the availability group? Have you tried to connect to your instance by using a DAC connection?
    DAC: http://technet.microsoft.com/en-us/library/ms178068%28v=sql.105%29.aspx
    Do you have any server logon triggers? Are there any traces running other than the default trace? What are your server specifications? How many logical cores does it have? Is it being used in a production environment? Is there any CPU or I/O affinity set
    for the instance? Whats your min/max memory settings? Run DBCC MEMORYSTATUS and post the results here.
    Are there any error messages in the SQL Server errorlog? Is your server dedicated to the SQL Server Instance?
    Run this query and post the results:
    SELECT * FROM SYS.dm_os_process_memory

Maybe you are looking for

  • HT4356 How do I connected HP Photosmart C6380 all-in-one wireless printer to my iPad

    When I put in the key it says that it cannot connect But my iPad is connected to my wireless Internet as well as my computer and my phone

  • Creating Apple loops within the arrange window

    I have tried this before and had the same result again and again. I have a stereo recording of a drum kit at 120 bpm which I have chopped to a 2 bar cycle and want to turn it into an apple loop. to fit it into the song I am working on which is at 100

  • How to Clear Application Data on Macbook Pro?

    When I checked how much storage space I have on my mac, it shows that I have 99.3 GB of Applications. I checked the few applications I have in my Applications folder, and I'm positive it doesn't add up to 99 GB. How do i clear up this excess data?

  • FAQ: How do I create buttons in Flash Pro?

    There are many different kinds of buttons that can be made in Flash Pro and different ways of creating them. Start here: Flash Pro Help > Creating buttons. This article describes the options and provides links to approved videos and tutorials. Be awa

  • Using sequence as source, but only one audio track avail

    So I have created a "raw" sequence containing multiple source clips. The source clips have 4 channels of audio and 1 channel of video. When I create my sequence, I see all of my channels....great. However, when I load the "raw" sequence into the sour