APD with date variable in filter object

Have an APD with a filter object. The filter uses a range for 0CALDAY. the range includes a variable (customer_exit) whic calculates the date of previous fiscal period-end date. Works perfectly in Bex.
However, when running the APD, the date format comes out as YYYY/MM/DD, and 0CALDAY is expecting MM/DD/YYYY.
How can I get the internal format of the date correct? I get no errors in the APD, however the date format causes incorrect results, as if no date was entered.
Any suggestions?
PS. actually, the internal date format used by the APD for my variable ZCE_PREVPER_END is:
ZCE_PREVPER_END  = '20101001'
Needs to be 10/01/2010....
Edited by: JoeC on Oct 27, 2010 11:39 PM

Hi Jordan,
I would suggest several options.
First, you have the option within Webi to display only the date and not the time (right click on the object on the report, or go to field properties, and change the format of the display).
If you are using this value in comparisons in the report, you must make sure the format matches. Try changing the format within the variable to be the same as what you are comparing it to. If that is still not working, let me know. It may still just be a syntax or data type/format error.
Thanks

Similar Messages

  • On order Stock and stock in transit with date variable

    Hi experts.
    İt may be an easy question.
    We need to see  on order stock (menge,can be seen T code MMBE) and stock in transit(T CODE MB5T) with date variable.
    Any T code or table...?
    I mean that  for exp: on order stock and sttock in transit  on 02/02/2012..
    Thanks in advance..

    Hi,
    as per my knowledge you have to develop report using following table
    how many Po closed for material
    how many MIGO happens and how many remain etc
    table EKPO
    EKKE
    EKBE
    MSEG
    MKPF
    [Report|http://wiki.sdn.sap.com/wiki/display/ERPLO/SAPStandardReports]
    [tables req to get date wise stock report;
    Regards
    Kailas Ugale

  • Problem with Date Variable in Web I

    Hi everybody,
    In the BW I have a query with a Date Variable (0date) and when i execute the WebI report the variable
    shows date and time, like "04/22/2010 00:00:00". Is it possible i remove the
    time from the variable ?
    I need to do this cause i use this date to make some calculation into the WebI report, and with the time the formulas don´t work fine, it shows "#ERRO". I've already tried to insulate the date in other variable using some functions, but it does´t work nevertheless.
    Any idea ?
    Thanks.

    Hi Jordan,
    I would suggest several options.
    First, you have the option within Webi to display only the date and not the time (right click on the object on the report, or go to field properties, and change the format of the display).
    If you are using this value in comparisons in the report, you must make sure the format matches. Try changing the format within the variable to be the same as what you are comparing it to. If that is still not working, let me know. It may still just be a syntax or data type/format error.
    Thanks

  • ADF BC connection to SQL Server with parameterized variable for View Object

    Hi everyone
    I'm developing a BPM Application using Oracle BPM 11.1.1.5.0 and JDeveloper 11.1.1.5.0
    Following the thread from the link below, since this is a new topic, I decided to open a new thread.
    Re: ADF method call to fetch data from DB before the initiator page loads
    what I'm trying to do is to get a record from a database and show it to the user on the initiator UI using ADF BC and not the Database Adapter.
    I have been able to work with ADF BC and View Objects to get all the rows and show them to the user in a table.
    However, when I try to run the same query in the parameterized form to just return a single row, I hit a wall.
    In short, My problem is like this:
    I have an Application Module which has an entity object and a view object.
    My database is SQL Server 2008.
    when I try to create a new read only view object to return a single row I face the problem.
    The query I have in the query section of my View Object is like this:
    select *
    from dbo.Employee
    where EmployeeCode= 99which works fine.
    However when I define a bind variable, input_code for example, and change the query to the following it won't validate.
    select *
    from dbo.Employee
    where EmployeeCode= :input_codeIt just keeps saying
    >
    incorrect syntax near ":"
    >
    I don't know if this has to do with my DB not being Oracle or I'm doing something wrong.
    Can someone help me with this problem please?
    thanks in advance

    Hi
    This all seems complicated to me so I think my simplest way would be to use the java code in the aformentioned thread by Sudipto:
    public String getUserLogin() throws WorkflowException,
    BPMIdentityException,
    BPMUnsupportedAttributeException {
    String userId = "";
    IWorkflowServiceClient wfSvcClient;
    ITaskQueryService queryService;
    IWorkflowContext wfContext;
    // Get username of User Login
    String contextStr = ADFWorklistBeanUtil.getWorklistContextId();
    wfSvcClient = WorkflowService.getWorkflowServiceClient();
    queryService = wfSvcClient.getTaskQueryService();
    wfContext = queryService.getWorkflowContext(contextStr);
    userId = wfContext.getUser();
    return userId;
    } I don't know where and how I should put the code to be called when the view object loads though.
    I have created a class in the java class section of my view object which has two methods related to the bind variable input_empCode:
    getinput_empcode and setinput_empcode , as expected.
    however any code i try to put in those two would not be called at all!
    for example:
        public Integer getinput_empCode() {
            //return (Integer)getNamedWhereClauseParam("input_empCode");
            return 1444;
        }and
        public void setinput_empCode(Integer value) {
            //setNamedWhereClauseParam("input_empCode", value);
            setNamedWhereClauseParam("input_empCode", 666);
        }It just keeps filled with the values in the bind variable section.
    I don't know what I'm doing wrong here.
    would you show me the way?
    Thanks again

  • Error with Date Variable

    I am trying to create a process to import to import data using a date variable but when I use the date to get the data from SQL server I am getting a error.
    I have tried setting the variable as both a string and date - Select
    CONVERT(varchar(10), DATEADD(day, -1, GETDATE()), 101) and map it to the Variable. The date variable is working. It’s correct in the Watch and I am able to use the variable to get data from an Open Link database (row_date = ?)
    in the OLE DB Source query. I get a "Invalid character value for cast specification"
    error when doing the same thing to get data from an SQL Server OLE DB Source
    where the date field is DateTime (row_date = ?). I have tried making the variable as a date and string but get the same error regardless. To make it work, I have to duplicate the date
    calculation in the query - HAVING (row_date = CONVERT(varchar(10), DATEADD(day, -1, GETDATE()), 101) ) which works fine.
    HAVING (row_date = ?) gives the error with the Parameter mapped to the variable.
    Any suggestions as to how to make this work correctly?

    May I suggest to use style 111 instead of 101?
    From experience, yyyy/mm/dd date format will work most of the time for date conversion and
    It's due to different date format from mm/dd/yyyy to the system date format that SQL Server is using.
    Hope this helps.
    ~ J.

  • Problems with Data tab's Filter field

    First of all, this is so bad I'm wondering if it must be something specific to my installation, since I don't see any other posts about it.
    If I start typing into the Data tab's Filter field anything that's been typed there before, I get a drop-down of choices. However, the letter I've just typed is selected, and from then on anything I type replaces the previously typed character. In other words, there's no way to get more than one character to appear in the Filter field (at least not without choosing one of the suggested previously-entered items).
    Here's some version info:
    Mac OS X 10.5.2
    Java(TM) Platform     1.5.0_13
    Oracle IDE     1.5.0.53.38
    Any ideas? Thanks!

    Yes, it's very frustrating. It might be related to another focus annoyance I've noticed: When I type into the Filter field, then switch to another app (say to copy the value I need), then switch back, the existing contents of the Filter field are selected. So if I paste without paying attention, I've just overwritten what I had typed. I don't think it used to do this, and I'd be curious how it behaves for you.
    Thanks!
    -- Mark

  • Problem with Date Variable (Resolved)

    Hi,
    I am using a varibale of type date to populate a constant date value to my target column. My source is excel and target is Oracle.
    When i execute, it shows the following error - 'Unexpected token: 00 in statement'
    I also tried to give an sql qurey for the variable as 'select sysdate from dual'. It's of no use.
    Can anyone help me out in this?
    Thanks in Advance,
    Ram Mohan T
    I used the target execution instead of Staging Area. It worked fine.
    Edited by: T. Ram Mohan on Aug 30, 2008 9:37 AM

    Hi Jordan,
    I would suggest several options.
    First, you have the option within Webi to display only the date and not the time (right click on the object on the report, or go to field properties, and change the format of the display).
    If you are using this value in comparisons in the report, you must make sure the format matches. Try changing the format within the variable to be the same as what you are comparing it to. If that is still not working, let me know. It may still just be a syntax or data type/format error.
    Thanks

  • Template with data variables will not insert ampersand

    Dear clever people
    I have an illustrator template (saved as .ai) which contains some text boxes and some images. I have tagged these as text and linked file dynamics, so that I can create a series of files with slightly different text and pictures when I load a variable library from an xml file.
    My problem - some of my text routinely includes ampersands and whenever I try and load a variable libaray containing "&" I get an error message saying "The filter cannot complete because of an unkown error."
    Is there some way I can explain to Illustrator what an ampersand is, and that refusing to insert it into my template is not the sort of helpful behaviour expected of a computer application?
    I'm using illustrator 10.0.3 with windows xp.
    Thank you in advance for any replies!

    Not sure, but sounds like a coding problem. The usual way to avid these is to "escape" characters by preceding them with a backslash in the source database/ document. \& might therefore work. Another way is to enclose it in quotes "&". Dunno, I came here for help myself, but these are generic programming tips that may work.
    Mylenium

  • Trouble with date variables

    I have an Oracle Source database and a SQL Server Target database. I need to do the following:
    1. Get Max Date from target SQL Server table and assign to a variable
    2. Get Max Date from source Oracle table and assign to a variable
    3. Create a filter on Oracle source table that includes the statement "Prod_Date >= #Target_Max_Date - #Source_Max_Date"
    Variables are Global and are of type "date". My test using one or both variables returne the error: "ORA-00911: invalid character". I know if I write a sub-query to test this in TOAD it works (ie: where Prod_Date <= (select max(Prod_Date)...."
    Prod_Date is obviously type "Date".
    Suggestions anyone?

    Where in operator do I check the format of the date?
    Also, I have tried using the following formatting:
    Prod_Date >= Prod_Date - ('#FDC_WELL_PROD_EST_Max_Date' - '#Well_Prod_Daily_Max_Date') - 45
    Result: ORA-01722: invalid number
    A date is a number, so any ideas why the variable is being considered a number?
    and
    Prod_Date >= Prod_Date - (TO_DATE('#FDC_WELL_PROD_EST_Max_Date','DDMMYYYY') - TO_DATE('#Well_Prod_Daily_Max_Date','DDMMYYYY')) - 45
    Result: ORA=-01858: a non-numeric character was found where a numeric was expected.
    In this scenario, it would seem we are trying to convert a date to a date?
    Appreciate your responses.
    Edited by: Becker on Jul 24, 2009 7:13 AM

  • Issue with Date used to Filter a Report

    I have the following source for a report. The source was working correctly before and I am trying to add a date filter to it.
    q VARCHAR2(32767); -- query
    w VARCHAR2(4000) ; -- where clause
    w2 VARCHAR2(4000) ; -- where clause for salesrep
    w3 VARCHAR2(4000) ; -- where clause for agent
    w4 VARCHAR2(4000) ; -- where clause for date range
    we VARCHAR2(1) := 'N'; -- identifies if where clause exists
    BEGIN
    q := 'SELECT "TBLCALL"."CALLID", "TBLSALESREP"."LNAME" || '', '' || "TBLSALESREP"."FNAME" as "SalesRep", "TBLAGENT"."LNAME" || '', '' || "TBLAGENT"."FNAME" as "Agent", "TBLAGENT"."AGENTID", "COMPLETEDATE", htmldb_util.get_since("CREATEDATE") as "Age", "CREATEDATE",
    "TBLDIRECTOR"."DIRECTORNAME",
    decode("CREQUESTID",NULL,''None'',"CREQUESTID") as "# REQUESTS", "REQUESTSTATUS", "ESCALATIONNAME" '
    ||
    ' FROM "#OWNER#"."TBLAGENT", "#OWNER#"."TBLSALESREP", "#OWNER#"."TBLDIRECTOR", "#OWNER#"."TBLCALL", "#OWNER#"."VW_CALLREQUESTS", "#OWNER#"."VW_CALLSTATUS", "#OWNER#"."VW_CALLESCALATION" '
    ||
    ' WHERE "TBLAGENT"."AGENTID" = "TBLCALL"."AGENTID"
    and "TBLSALESREP"."DIRECTORID"="TBLDIRECTOR"."DIRECTORID"
    and "TBLCALL"."CALLID"="VW_CALLREQUESTS"."CALLID"(+)
    and "TBLCALL"."CALLID"="VW_CALLSTATUS"."CALLID"(+)
    and "TBLCALL"."CALLID"="VW_CALLESCALATION"."CALLID"(+)
    and "TBLSALESREP"."SALESREPID"="TBLCALL"."SALESREPID" ';
    IF :P1_COMPLETED = '0'
    THEN
    w := ' COMPLETEDATE is null';
    we := 'Y';
    END IF;
    IF :P1_COMPLETED = '1'
    THEN
    w := ' COMPLETEDATE is not null ';
    we := 'Y';
    END IF;
    IF :P1_SELECT_SALESREP != '-1' THEN
    w2 := ' AND TBLCALL.SALESREPID= :P1_SELECT_SALESREP ';
    ELSE
    w2 := '';
    END IF;
    IF :P1_SELECT_AGENT != '-1' THEN
    w3 := ' AND TBLAGENT.AGENTID= :P1_SELECT_AGENT ';
    ELSE
    w3 := '';
    END IF;
    IF :P1_STARTDATE is not null AND :P1_ENDDATE is not null THEN
    w4:= ' AND TBLCALL.CREATEDATE between ' || to_date(NVL(:P1_STARTDATE,'01/01/1900'), 'MM/DD/YYYY') || ' AND ' || to_date(NVL(:P1_ENDDATE,'12/31/9999'),'MM/DD/YYYY');
    ELSE
    w4 := '';
    end if;
    IF we = 'Y' THEN
    q := q || ' AND ' || w || w2 || w3 || w4 ;
    ELSE
    q := q || w2 || w3 || w4;
    END IF;
    RETURN q;
    END;
    Each time I try to run the page... the report gives me the following error:
    failed to parse SQL query:
    ORA-00904: "OCT": invalid identifier
    It looks like a date format issue, but I have tried several things to resolve it and it still does not work... What can I do?

    I think you have a problem with format masks.
    Check the format masks that are used in P1_STARTDATE and P2_STARTDATE

  • Query with date variable selection

    Greetings,
    I am having problems with a SQL Query and wondering if someone could help me out.  I have the following query and want to specify a WHERE clause and have the user select the date range they want to work with.  If I specify a date the query runs fine.  If I enter in the [%0] I get an error message saying: "incorrect syntax near '<'.
    Any help would be appreciated.
    select
    'W' as prefix,
    empid as [Employee Number] ,
    U_PayrollCat as [Payroll Category Code],
    '' as [Cost Center Code],
    ContractID as     [Job Center Code],
    Segment_0 + isnull( ActSep + Segment_1, '') + isnull(ActSep  + Segment_2, '') 
                          + isnull(ActSep + Segment_3, '') + isnull(ActSep + Segment_4, '') 
                          + isnull( ActSep  + Segment_5, '') + isnull(ActSep + Segment_6, '')
                          + isnull(ActSep + Segment_7, '') + isnull(ActSep  + Segment_8, '')
                          + isnull( ActSep + Segment_9, '') as [GL Account Code],
    quantity as Units,
    U_NBS_ITEMCOST/quantity as Rate,
    U_NBS_ITEMCOST as Amount,
    oclg.notes as Comments,
    oclg.recontact as [WorkDate],
    '' as[Department code]
    from
    oclg inner join
    dln1 on dln1.docentry =oclg.docentry inner join 
    odln on odln.docentry = dln1.docentry inner join
    ohem on ohem.userid = oclg.attenduser
    inner join oitm on oitm.itemcode = dln1.itemcode
    inner join oscl on oscl.callid = odln.U_NBS_S1Link
    inner join OACT on  OACT.AcctCode = dln1.cogsAcct
    inner join oadm on 1=1
    WHERE
    oclg.recontact >= [%0] AND oclg.recontact <= [%1]

    Gordon,
    That worked with a few modifications.  Removed comma on line before FROM clause and my UDF for Payroll Category is on my OITM table.  Complete Query looked like this:
    SELECT 'W' as prefix, t3.empid as 'Employee Number',
    t4.U_PayCat as 'Payroll Category Code',
    t5.ContractID as 'Job Center Code',
    t6.Segment_0 + isnull( ActSep + t6.Segment_1, '') + isnull(ActSep + t6.Segment_2, '')
    + isnull(ActSep + t6.Segment_3, '') + isnull(ActSep + t6.Segment_4, '')
    + isnull( ActSep + t6.Segment_5, '') + isnull(ActSep + t6.Segment_6, '')
    + isnull(ActSep + t6.Segment_7, '') + isnull(ActSep + t6.Segment_8, '')
    + isnull( ActSep + t6.Segment_9, '') as 'GL Account Code',
    t1.quantity as Units,
    t1.U_NBS_ITEMCOST/t1.quantity as Rate,
    t1.U_NBS_ITEMCOST as Amount,
    t0.notes as Comments,
    t0.recontact as WorkDate
    from dbo.oclg t0
    inner join dbo.dln1 t1 on t1.docentry =t0.docentry
    inner join dbo.odln t2 on t2.docentry = t1.docentry
    inner join dbo.ohem t3 on t3.userid = t0.attenduser
    inner join dbo.oitm t4 on t4.itemcode = t1.itemcode
    inner join dbo.oscl t5 on t5.callid = t2.U_NBS_S1Link
    inner join dbo.OACT t6 on T6.AcctCode = t1.cogsAcct
    inner join dbo.oadm t7 on 1=1
    WHERE t0.recontact >= '[%0]' AND t0.recontact <= '[%1]'
    Thanks for the help,
    Aaron

  • URGENT!!!! (working with data transfer workbench:updating objects)

    I have tranfered the BP code and name along with phone and other header details. Now i want to im port the address. I have tried the following steps:-
    1. used the address template filled up all colums- address name , block, city, code
    2.when i am using the DTW I am selecting the main bp template in the "query Params" and in the BPAdress i nput the address csv
    3. update existing objects
    4. Select-"Add all items in the schema if cant find corresponding item"
       but then at last no file is being imported.
    Errors- " Cant find the object in B1 Application"
               "Object not defined"

    Line number should be left blank.  They will not be used for importing addresses
    For addresses import you will need both the BP template and Addresses template
    In the BP template which you used to import BPCOde, Name, Phone etc...  Just keep the RecordKey and BP Code for the BP's whose address needs to be imported.
    Now in the addresses template match the recordkey to the BP template (the recordkey is what is used to match the Header and the Addresses template)
    Header Sample
    RecordKey............BPCode
    Line Sample
    RecordKey............AddresType.........rest of the fields

  • MDX Filter with date range

    Hi,
    my requirement is to create a calculated member to calculate Total unique customers who has sales > 0 within the date range.
    Below mdx works normally with single date
    DistinctCount(FILTER([Customer_Sales].[Outlet ID].[Outlet ID].members,
    ([Measures].[distribution],
    [Date].[CalendarWeek].CurrentMember
    )=1))
    I'm looking for something like below with date range,
    DistinctCount(FILTER([Customer_Sales].[Outlet ID].[Outlet ID].members,
    ([Measures].[distribution],
    WTD([Date].[CalendarWeek].CurrentMember
    ))=1))
    Above MDX fails with the error: String of numeric expression expected, Tuple set expression was used.
    Appreciate your immediate response.
    Thanks in advance

    Hi Chandima,
    Thanks for the response.
    I tried your code, it works but the results are not correct.  As per manual calculations, there are 28 unique customers who has positive sales on Week to date (2014-11-03), but result shows only 19.
    For the first day of week (2014-11-01), there are 9 unique customers, which is correct. But for the following days it is not giving correct result.
    Further, performance of this approach is very poor
    Thanks,

  • Object variable or with block variable not set- while trying to submit data

    Hi Gurus,
    Could you share me the solution to resolve the issue?
    I am getting an error "object variable or with block variable not set" while trying to submit data through an Input schedule.
    I am working on SAP BPC 7.5 NW and using MS Excel 2007.
    I can log in to BPC Admin and excel with my user id and password.
    I checked my security profile and i have the submit data task in my task profile. My all other Input Schedules are working very well. Only one of the IS is causing this problem. The same input Schedule when saved as Dynamic Template it works well and data is sent successfully.
    Regards,
    KumarMG

    Hi Kumar,
    This might be incase you have some special character like & in the input schedule template. you need to remove the special character in that case.
    Hope this resolves your issue.
    Rgds,
    Poonam

  • Sending data : Object variable or With block variable not set

    Hi experts,
    I try to send some in finance in Apshell data with EVDRE, an I get the error "Object variable or With block variable not set" !!!
    I can process/save/reassign index/full optimize my application ans its OK.
    Have you got any idea ?
    thank you,
    mathias

    Hi mathias,
    We faced similar issue and processing all the dimensions used in the application solved it then.
    Now we get the same error while processing Time dimension and i am yet to find a solution.
    Hope some experts may help us.
    Kranthi

Maybe you are looking for

  • Problem with attributes in custom component

    Hi All, I am creating a simple jsf PanelGrid custom component....in that component I am adding two new attributes.... when I use that tag in my jsf application it is rendering fine in the client side....but the parent class that is PanelGrid componen

  • Using templates inside a project

    Hello, I have a LV Project and I have a folder inside my project named Templates. Inside the Templates folder there are a few template VIs I made with names "Template_Name.vi" specific to that project. Now and then I need to copy a few templates file

  • My ipod automatically turns on by itself, can anyone help

    My ipod automatically turns itself on and when on and in sleep mode it automatically wakes up every few seconds. also I cannont connect to the app store or anything. Can anyone help??

  • How do you fit Two hours of footage in a 4.7 gb dvd?

    I have a 2hour and 10 minutes movie that i have edited in my FCP, I want to put it in one DVD. I have tried to build a dvd in DVD pro but the dvd is only capable of putting 4.7 gb. Is there any way this can be done. After i import the movie which i c

  • Query running very slow with db file sequential read waits which all indexes would be recommended

    My query is doing lot of db file sequential reads I want to create few indexes and extended stats please help me with your suggestions. Can anybody suggest I am unable to paste my query here -don't know why it's not getting pasted--is it not permitte