Syntax for Parameters in XMLP Enterprise

Hi,
I am learning to use XMLP to report on my database. No Oracle Applications related.
I want to create a query and parameters, and put those parameters in the where clause of the query.
The parameters should look like ID_WAREHOUSE_P, ID_PRODUCT_P
The query should look like
SELECT ID_WAREHOUSE, ID_PRODUCT, QUANTITY, DATE_RECEIVED, ETC FROM RECEITPS WHERE ID_WAREHOUSE = ID_WAREHOUSE_P AND ID_PRODUCT = ID_PRODUCT_P
I have tried these
WHERE ID_WAREHOUSE = $ID_WAREHOUSE_P
WHERE ID_WAREHOUSE = '$ID_WAREHOUSE_P'
WHERE ID_WAREHOUSE = "$ID_WAREHOUSE_P"
WHERE ID_WAREHOUSE = :ID_WAREHOUSE_P
WHERE ID_WAREHOUSE = ':ID_WAREHOUSE_P'
I have also set a field like this in the RTF template:
<?param@begin:id_warehouse_p;01?>
And nothing seems to work. I just get errors.
ID_WAREHOUSE AND ID_PRODUCT are VARCHAR2(2)
Any clue will be appreciated.
Francisco

You need to specify the parameters aswell in XML Publisher then you can use the :parameter_name where parameter_name is the name of your parameter.
look at this blog for the display of the parameter in your report:http://technology.amis.nl/blog/?p=1597
Marcos

Similar Messages

  • Syntax for division in xmlp

    Hi i want to divide a sum with a static amount. i am using the following syntax but its not working fine. sum works fine but division is not working.
    <?sum(EXPR50_50) div 2500?>
    can any body help me on that?

    Thanks for reply.
    I tried both method but i am getting following error:
    ConfFile: C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\config\xdoconfig.xml
    Font Dir: C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts
    Run XDO Start
    Template: C:\Users\Rabia\Desktop\transcript_MPHIL_20dec2012.rtf
    RTFProcessor setLocale: en-us
    FOProcessor setData: C:\Users\Rabia\AppData\Local\Oracle\BIPublisher\TemplateBuilderforWord\data_from_xsd.xml
    FOProcessor setLocale: en-us
    can you tell me the possible reason of getting error?

  • Syntax for defining a variable  with size in changing parameters

    hi,
    syntax for defining a variable  with size in changing parameters in the form statement.

    Hi prasad,
    1. one option is to type it as an data element.
    eg.
    form abc changing myvar type char10.
    endform.
    where char10 is a data element with length 10 characters.
    regards,
    amit m.

  • Syntax for Evaluate function in OBIEE

    Hi
    I have browsed through the docs but couldn't find syntax for Evaluate function. Could someone pass me the full syntax and if possible a helpful example against essbase.
    Thanks

    Hi
    definitely
    syntax:- EVAULATE('your db function(%1,%2)', parameter list)
    here %1 and %2 are the no.of parameters (columns or may constant values) to be passed for the db-function
    if you have 3 parameters then you need to use %3 also.. means the columns to be passed.
    following exapmples are for ORACLE db,
    ex1: EVALUATE('upper(%1)', 'kishore kumar') gives the result as -> KISHORE KUMAR
    ex2: EVALUATE('upper(%1)', 'Markets.Region') here Markets.Region is column.
    you also can call the user-defined functions through evaulate
    EVALUATE('functioname(%1,%2), column1, column2)
    the above function has 2 parameters to be inputted
    Thanks & Regards
    Kishore Guggilla
    Edited by: Kishore Guggilla on Jan 16, 2009 11:00 PM

  • Code to write syntax for JOB submit ( Please answer ASAP)

    Hi,
    I need sytax to submit a job
    Right now I am using this code to send 4 parameters.
    I need to send these 4 in a structure.
    submit Ztestjob USER sy-uname
    via job p_jobnm
    number p_jobcount
    with afko-rsnum eq afko-rsnum
    with aufnr_d eq aufnr_d
    with sernr_d eq sernr_d
    with p_lmnga eq p_lmnga
    AND RETURN.
    So I have to pass a structure of values into the BGprogram through a submit and do a couple of loops in the BGPROGRAM.
    I need the syntax for submit .
    I also need to know how to catch the structure with values in the BGPROGRAM.
    Anyone please answer ASAP
    Message was edited by:
            ramana peddu
    Message was edited by:
            ramana peddu

    Hi,
    <u>SUBMIT</u>
    Calls an executable program of type 1.
    Syntax
    SUBMIT <rep> [AND RETURN] [VIA SELECTION-SCREEN]
                              [USING SELECTION-SET <var>]
                              [WITH <sel> <criterion>]
                              [WITH FREE SELECTIONS <freesel>]
                              [WITH SELECTION-TABLE <rspar>]
                              [LINE-SIZE <width>]
                              [LINE-COUNT <length>].
    Calls the program <rep>. If you omit the AND RETURN addition, the current program is terminated. Otherwise, the data from the current program is retained, and processing returns to the calling program when <rep> has finished running. The other additions control the selection screen and set attributes of the default list in the called program.
    Regards,
    Bhaskar

  • Submit syntax for dynamic selections for T-code FAGLL03

    Hi Experts,
    My z report contains following fields in selction screen.
    1 . G/ L account
    2. Comapny code
    3. posting date
    4. Profit Center
    5. layout
    In my z report i used following syntax for passing selection screen values to standard program and getting data.
    This is for T-code FAGLL03
    SUBMIT FAGL_ACCOUNT_ITEMS_GL
    WITH SD_SAKNR IN S_SAKNR
    WITH SD_BUKRS IN S_BUKRS
    WITH %%DYN001-LOW (Profit Center)
    EXPORTING LIST TO MEMORY
    AND RETURN.
    The above syntax is not working for dynamic selection field ( Profit Center), entire Profit center data is fetching from standard program. I want to fetch profit center data based on my z report selection values .
    Expect for profit center field , submit syntax is working.
    kindly provide submit syntax for my above requirement .
    Any suggestions from experts....
    Edited by: PLP REDDY on Nov 25, 2009 8:59 AM

    Indeed it won't work. Instead of passing parameters one by one use
    [SUIBMIT... WITH SELECTION-TABLE rspar|http://help.sap.com/abapdocu_70/en/ABAPSUBMIT_SELSCREEN_PARAMETERS.htm#!ABAP_ADDITION_3@3@]
    Here you add one line per parameter (field KIND = 'P' ) and multiple lines per select options (field KIND = 'S' ). For the latter you need also provide SIGN and OPTIONS, i.e SIGN = 'I' , OPTIONS = 'EQ'
    The lin I gave you will explain it more.
    Regards
    Marcin

  • ORA-12012: error on auto execute of job 754461 ORA-29279: SMTP permanent error: ORA-29279: SMTP permanent error: 501 Syntax error, parameters in command "RCPT TO:" unrecognized or missing ORA-06512: at "SYS.UTL_SMTP", line 20 ORA-06512: at "SYS.UTL_SMTP",

    Hi ,
    I am getting below error frequently in alert log of database.
    ORA-12012: error on auto execute of job 754461
    ORA-29279: SMTP permanent error: ORA-29279: SMTP permanent error: 501 Syntax error, parameters in command "RCPT TO:" unrecognized or missing
    ORA-06512: at "SYS.UTL_SMTP", line 20
    ORA-06512: at "SYS.UTL_SMTP", line 98
    ORA-06512: at "SYS.UTL_SMTP", line 240
    ORA-06512: at "APPS.EIS_UTIL_PKG", line 94
    ORA-06512: at "APPS.HKD_PO_ADDON_PKG", line 110
    ORA-06512: at line 1

    You have a job running in the database. Its job ID is 754461
    It looks as if that job runs APPS.HKD_PO_ADDON_PKG
    That job is attempting to send mail using UTL_SMTP and apparently passing some strange value to SMTP server for the RCPT TO: parameter.

  • SmartForms Syntax for defining Font Type?

    What is the syntax for a defining a parameter in a window different than its default?
    My example is I have C1 that is the character type default for parameters in a window, but I want to change parameter &GS_RESBD-lGORT to use C3 character type in the window instead.
    Or, what if I have a hard-coded value like "Name" and its not a system parameter, how can I change this char type too?
       Thank-You.
    Edited by: TMM on Jan 6, 2009 4:37 AM

    HI,
    For changing the character format for a variable ,
    select it and then press button RESET and then again select the variable and then assign the character format.
    By this way you can change the character formats.
    Regards,
    Venkatesh

  • Syntax for Commmand Object

    I am trying to use the Command Object create a recordset
    where a variable is passed that contains the values of in IN
    statement:
    Param5 rsOffices__varType is the variable that passes the
    value of the IN
    If I set rsOffices__varType = 'po', 'sb' : I do not get en
    error, but I also do not return any records
    If I set rsOffices__varType = po', 'sb : No error, No records
    If I set rsOffices__varType = "'po', 'sb'" : No error, No
    records
    If I set rsOffices__varType = ""po"", ""sb"" : No error, No
    records
    Same is true of several other combinations of single and
    double quotes: No error, No records
    What is the correct syntax for a the parameter that is used
    in the "IN" statement?
    Dim rsOffices
    Dim rsOffices_cmd
    Dim rsOffices_numRows
    Set rsOffices_cmd = Server.CreateObject ("ADODB.Command")
    rsOffices_cmd.ActiveConnection = MM_connClusterDB_STRING
    rsOffices_cmd.CommandText = "SELECT OfficeID, ShortOffice,
    MasterType, TypeCode, ZipTag FROM tbl_Offices WHERE ShortOffice
    like ? and MasterType = ? and ZipTag between ? and ? and
    TypeCode in ( ? ) "
    rsOffices_cmd.Prepared = true
    rsOffices_cmd.Parameters.Append
    rsOffices_cmd.CreateParameter("param1", 200, 1, 50,
    rsOffices__varOff) ' adVarChar
    rsOffices_cmd.Parameters.Append
    rsOffices_cmd.CreateParameter("param2", 200, 1, 10,
    rsOffices__varMaster) ' adVarChar
    rsOffices_cmd.Parameters.Append
    rsOffices_cmd.CreateParameter("param3", 3, 1, 4,
    rsOffices__varZip1) ' adInteger
    rsOffices_cmd.Parameters.Append
    rsOffices_cmd.CreateParameter("param4", 3, 1, 4,
    rsOffices__varZip2) ' adInteger
    rsOffices_cmd.Parameters.Append
    rsOffices_cmd.CreateParameter("param5", 200, 1, 50,
    rsOffices__varType) ' adVarChar
    Set rsOffices = rsOffices_cmd.Execute

    What is the correct systax for defining an object
    using an array;
    i.e.,
    To create an array of 3 Books objects from:
    private Book book1;
    private Book book2;
    private Book book3;
    to an array, what would the syntax look like?
    Book[] library= { book1, book2, book3 };
    //or, (valid but less idiomatic)
    Book library[]= { book1, book2, book3 );
    //or, quite silly
    Book[] library= new Book[3];
    library[0]= book1;
    library[1]= book2;
    library[2]= book3;kind regards

  • Need dcb syntax for labview

    Hello, I am trying to program an external i/o device and one of the function calls I need to make is to the kernel32.dll function SetCommState. One of the parameters for SetCommState is DCB. Unfortunately, kernel32.dll was designed for use with non-graphical programming languages, which leaves me in a bit of a pickle. I need to know the syntax for inputting the parameter DCB into labview. For example, normally, DCB's parameters are set individually (i.e dcbBaudrate, dcbByteSize, etc.) and these parameters are read into the system. However, I have not been able to find a way to set these parameters individually and I don't know the syntax for inputting them all together. Could someone please help. Also, I cannot set these parameters in visa, because the device I have I cannot seem to get to work with visa.
    Thanks for any help you can give.
    JOe P

    This is the third thread you start with the same subject, see e.g. http://forums.ni.com/ni/board/message?board.id=170&message.id=185253#M185253.
    In the other threads, people did suggest you to use VISA. This is also my suggestion.
    You still lack to explain why you don't want to use VISA, as you apparently are trying to rewrite the VB code and not to use it directly.
    Maybe you have valid reasons for not to want to do so, but please explain.
    Paolo
    Paolo
    LV 7.0, 7.1, 8.0.1, 2011

  • What is the exact syntax for calling remote function module.

    Hi to all
    1.....what is the exact syntax for calling remote function module.?
    Thanks and regards,
    k.swaminath reddy

    hi
    good
    Lets do simple example where you will first create a RFC in one server (say A) and create normal program in othere server (say B). Finally you will call the RFC in A from B.
    Do the following steps for creating RFC in server A.
    1. log on to server A
    2. go to se37
    3. Edit -> function groups-> create function group and give the function group name (say ZGRP).
    4. create a FM ( say Z_TEST_RFC) in se37 providing the function group which is created just now.
    5. go to attribute tab -> choose remote-enabled module from processing type.
    so that your FM will become RFC.
    6. provide the import parameter in import tab.
    we will provide only two import parameters.
    - parameter name : P_NUM1, typing: TYPE, associated type : I & check the pass value (all the parameters of RFC must pass by value).
    - parameter name : P_NUM2, typing: TYPE, associated type : I & check the pass value
    7. provide the export parameter in export tab.
    parameter name : P_SUM, typing: TYPE, associated type : I & check the pass value
    8. write the given simple code in source code tab.
    FUNCTION Z_TEST_RFC.
    P_TOT = P_NUM1 + P_NUM2.
    ENDFUNCTION.
    Do the following steps for creating ABAP program which will call the RFC in server B.
    1. se38 - > creat a program.
    2. write the given simple code.
    data tot type i.
    call function 'Z_TEST_RFC' destination 'XXXXXX'
    exporting
    p_num1 = 10
    p_num2 = 15
    importing
    p_tot = tot.
    write tot.
    please note that XXXXXX is RFC connection which is avialable in sm59 transaction in server A.
    -go to sm59 - > abap connection (list of RFC connection configurations are avialable). choose server B connection and replace it of XXXXXX in the code.
    finally you can execute the normal abap program that will call the RFC and display the result.
    reward point if helpful.
    thanks
    mrutyun^

  • What is the setVariable syntax for AS3

    Hi,
    I am having issues with setting a variable in AS3 SWF playing inside a Dir12
    spriteObjRef.setVariable(variableName, newValue)
    In the context of ActionScript 3, this method is only supported on a Flash object, not on a
    spriteObjectRef.
    What would the Flash Object syntax be??
    Thanks,
    Jim

    Jusclark-Oracle wrote:
    What is the correct syntax for referencing a page item (P23_ID, for example) in a PL/SQL page process, after submit?
    See "About Referencing Session State" in the documentation.
    Within an anonymous block in an APEX page process, use the standard bind variable syntax:
    :P23_ID
    In general, use bind variable syntax when referencing session state values in SQL or DML:
    select
        ename
    into
        :p23_name
    from
        emp
    where
        empno = to_number(:p23_id);
    and obviously when assigning values to the item:
    :P23_ID := foo.nextval;
    PL/SQL function references v('p23_id') and nv('p23_id') [for number values] must be used to access values in stored program units called from APEX, although it's usually better to pass the values as parameters: foo(:p23_id).

  • Report should prompt me for parameters, please help.

    Hi All,
    I am using Crystal version 10, So is there any way I can get the behaviour of my parameters as dynamic parameter? I have this requirement because when I am deploying the Report on BO server, and try to open the report from InfoView, it is not prompting me for parameters, rather it is giving me the copy which we had scheduled earlier. To get the fresh data with different parameters, we again need to schedule the report.
    What I want is simple, Whenever user clicks on the report link in infoview, I should be promted for the parameters my report is using.
    Please help..
    Thanks
    -Azhar

    Hi
    It would prompt whenever it's refreshed.
    You can refer to Business View manager guide from [here|http://help.sap.com/businessobject/product_guides/boexir2/en/xir2_bv_admin_en.pdf ] for detailed information.
    Hope this helps!!
    Regards
    Sourashree

  • Report does not prompt for parameters when SeparatePages=False

    Hi all. We are using CR2008 Basic w/SP1 along with VS2008. Within our application, reports pull up fine and prompt for parameters using the CrystalReportViewer against the web service. SeparatePages is set to True. We want to change SeparatePages to False, but when I do that any report that should prompt for parameters is not.
    The reports were created in CR 8.5. We have upgraded them to CR2008 (open, refresh, save) which has greatly increased performance. With some further testing, I've discovered that if I take a report that doesn't currently have any parameters and add one via VS2008 report designer, it WILL prompt for the parameter when I run it in our application with SeparatePages=False.
    So I'm leaning that the problem has to do with the reports originally being created in 8.5. I've tried modifying an existing report with parameters, deleting parameters and re-adding, but I still can't get these to prompt for parameters with SeparatePages=False.
    Again, these same reports prompt for parms and work fine as long as SeparatePages=True.  I'm hoping someone might be able to shed some light on this. There are over 400 reports so re-creating them from scratch under CR2008 will be a painful option
    If I need to provide any additional information just let me know. Thank you!
    Sheila

    We are still working to resolve this issue. Testing has shown that for reports that don't return a lot of data, the prompt for parameters will display. But for larger reports, we just see the hour glass and the parameter prompt never displays. It's almost like the reports are trying to return the full dataset without any paramters being passed BEFORE it will prompt for parameters. This would explain why smaller reports will prompt and larger reports never will (?). Not sure that is what is happening.  Again, with SeparatePages=True we are immediately given the parameter prompt. With SeparatePages=False we run into the issue of no prompts.
    Here's the code behind if it help:
    ReportDocument report = new ReportDocument();
    try
        String rptFileName = @"App_Data\Reports\" + Request.QueryString.GetValues(0).GetValue(0).ToString();
        log.writeLog("Loading Report: " + rptFileName);
        String rptFile = Server.MapPath(rptFileName);
        report.Load(rptFile);
        report.Refresh();
        ConnectionInfo crConnectionInfo = new ConnectionInfo();
        log.writeDebugLog("ServerName : " + rProperties.ODBCSource);
        crConnectionInfo.ServerName = rProperties.ODBCSource;
        log.writeDebugLog("DatabaseName : " + rProperties.ODBCSource);
        crConnectionInfo.DatabaseName = rProperties.ODBCSource;
        log.writeDebugLog("UserID : " + rProperties.ODBCUser);
        crConnectionInfo.UserID = rProperties.ODBCUser;
        log.writeDebugLog("Password : " + rProperties.ODBCPassword);
        crConnectionInfo.Password = rProperties.ODBCPassword;
        foreach (CrystalDecisions.CrystalReports.Engine.Table table in report.Database.Tables)
            TableLogOnInfo crTableLogOnInfo = new TableLogOnInfo();
            crTableLogOnInfo.ConnectionInfo = crConnectionInfo;
            table.ApplyLogOnInfo(crTableLogOnInfo);
    catch (Exception err)
        log.writeLog("Error Loading Report: " + err.ToString());
        this.lblError.Text = err.ToString();
        this.ErrorTable.Visible = true;
        this.ReportTable.Visible = false;
        return;
    CrystalReportViewer1.HasCrystalLogo = false;
    CrystalReportViewer1.ReportSource = report; // _serverFileReport;

  • Syntax for using a variable in an equation.

    Hi all,
    Simple question here.  What is tha appropriate syntax for using a variable in a calculation equation.  Specifically, I am taking an established curve fitting equation from my channels and trying to calculate it over a lineargenerated data set to extend the curve  beyond the original data sample.  Here is the small portion of script I have that will not work.  Thanks for any help.
    dim a,b,c
    a = Data.Root.ChannelGroups(5).Channels("air consumption formula").Properties("ResultApprAnsatzCoef1").Value
    b = Data.Root.ChannelGroups(5).Channels("air consumption formula").Properties("ResultApprAnsatzCoef2").Value
    c = Data.Root.ChannelGroups(5).Channels("air consumption formula").Properties("ResultApprAnsatzCoef3").Value
    Call Calculate("Ch(""[5]/Air Consumption LG"")= ""a"" + Ch(""[5]/LinearGenerated"")*""b""+""c""*ch(""[5]/LinearGenerated"")^2")

    Hi Gloorious,
    I am using diadem script.  In my example above, for the equation, if I substitue a,b,and c with numerical values, the script runs just fine and the formula executes as desired.  Is there a way to place the variables there instead as I have tried to do (I was hoping it was just a syntax issue) or do I have to approach it a completely different way?
    This script will execute just fine:
    Call Calculate("Ch(""[5]/Air Consumption LG"")= 4 + Ch(""[5]/LinearGenerated"")*5+6*ch(""[5]/LinearGenerated"")^2")
    but this will not:
    dim a,b,c
    a = Data.Root.ChannelGroups(5).Channels("air consumption formula").Properties("ResultApprAnsatzCoef1").Value
    b = Data.Root.ChannelGroups(5).Channels("air consumption formula").Properties("ResultApprAnsatzCoef2").Value
    c = Data.Root.ChannelGroups(5).Channels("air consumption formula").Properties("ResultApprAnsatzCoef3").Value
    Call Calculate("Ch(""[5]/Air Consumption LG"")= ""a"" + Ch(""[5]/LinearGenerated"")*""b""+""c""*ch(""[5]/LinearGenerated"")^2")

Maybe you are looking for

  • T430 NVidia GPU not listed in device manager

    Hello -- I have a problem regarding the NVidia NVS 5400M inside the Thinkpad T430. I use Windows 8. I'm not exactly sure how it happened, but the NVidia card no longer shows up in Device Manager and the NVidia driver (both the standard driver from th

  • Migrating from Windows Live Photo Gallery to iPhoto

    I'm interested in moving to a Mac, and bringing with me my photo collection, which has been organised (keyworded) using Windows Live Photo Gallery. Has anybody had any experience with this? All the keywords assigned using WLPG are stored in the photo

  • Camera Photos are now showing.

    Hi, I recently purchase my BB9720, I could able to take photos from my camera, But unable to view it in blackberry device. It is affecting my regular work. Is there any setting to solve my issue??? Any help would be greatly appreciated, With kind Reg

  • Is JDBC 10g Release 2 fully compatible to Oracle 9i DB

    Hi all! Is the 10g Release 2 (10.2.0.1.0) JDBC Drivers fully compatible with Oracle 9i DB or could there happen some problems? I need the 10g driver, because I had some problems with Clob Rows and Hibernate "text" datatype. With the 9i driver it does

  • CC app indicates Muse has downloaded but it is nowhere on my hard drive.

    All other CC apps have downloaded and are working fine. Can't seem to download again as the CC app thinks I already have Muse. Could this somehow be related to the trial version I demoed a few months back ago and the fact that it self-purged from my