DBMS_SCHEDULER.CREATE_PROGRAM with Optional input parameters

I have a procedure that has a number of "optional" parameters.
procedure get_files(
file_name_in in varchar2 default 'dummy_file',
layout_in in number default 1,
client_in in number default null,
data_supplier_in in number default 99999
This procedure can be called with any combination of the input parameters.
I can set up program(s) using the DBMS_SCHEDULER.CREATE_PROGRAM procedure using a program_type => 'PLSQL_BLOCK' like this:
begin
sys.dbms_scheduler.create_program(
program_name => 'GET_MY_FILES',
program_action => '
declare
begin
get_files( layout_in => 11111, client_in => 2222 );
end ;',
program_type => 'PLSQL_BLOCK',
number_of_arguments => 0);
end;
My question is: Can I set up programs(s) using the DBMS_SCHEDULER.CREATE_PROGRAM procedure using a program_type => 'STORED_PROCEDURE' when I have "optional" parameters?
It appears that ALL of the program input parameters must be defined and there is no way to indicate that a parameters is "optional".

Yes you can do it.
You can defined default values for program parameters, but this values are "constants". So if your default value of parameter is defined by function call you have a problem, because you have to specify this parametr every time.
procedure my_proc(p_date IN DATE := SYSDATE) AS
...There is my example, it using DBADMIN schema create this schema or replace it.
create or replace procedure dbadmin.sleep(p_interval in number)
as
begin
  dbms_lock.sleep(p_interval);
end;
--program definition
begin
    dbms_scheduler.create_program(program_name => 'dbadmin.prg_test1',
                                  program_type => 'STORED_PROCEDURE',
                                  program_action => 'dbadmin.sleep',
                                  number_of_arguments => 1);
    dbms_scheduler.define_program_argument(program_name => 'dbadmin.prg_test1',argument_position => 1,argument_type => 'NUMBER',default_value => 60);
    dbms_scheduler.enable(name => 'dbadmin.prg_test1');                                 
end;
--check that program was created
select * from dba_scheduler_programs
where owner='DBADMIN';
select * from dba_scheduler_program_args
where owner='DBADMIN';
BEGIN
    dbms_scheduler.create_job(job_name        => 'dbadmin.job_program1',
                              program_name    => 'dbadmin.prg_test1',
                              start_date      => to_timestamp_tz('1.1.2010 12:00 Europe/Prague', 'dd.mm.yyyy hh24:mi tzr'),
                              repeat_interval => 'FREQ=minutely; INTERVAL=2;BYSECOND=0',
                              auto_drop       => FALSE);
    dbms_scheduler.enable(name => 'dbadmin.job_program1');
END;
--job run checks
SELECT *
FROM   dba_scheduler_jobs j
WHERE  j.JOB_NAME = 'JOB_PROGRAM1';
SELECT *
FROM   dba_scheduler_job_log jl
WHERE  jl.JOB_NAME = 'JOB_PROGRAM1';
SELECT *
FROM   dba_scheduler_job_run_details jr
WHERE  jr.JOB_NAME = 'JOB_PROGRAM1';   
--now set job parametr
BEGIN
    dbms_scheduler.set_job_argument_value(job_name => 'dbadmin.job_program1', argument_position => 1, argument_value => 30);
END;
--clean up
BEGIN
    dbms_scheduler.drop_job(job_name => 'dbadmin.job_program1', force => TRUE);
    dbms_scheduler.drop_program(program_name => 'dbadmin.prg_test1');
    dbms_scheduler.purge_log;
END;
/

Similar Messages

  • Hierarchy on HANA Calculation View with Optional Input Parameters Fails

    Hi,
    Has anyone succeeded in building a hierarchy on top of a calculation view with optional input parameters, where an input parameter is not filled?
    The original requirement came from the wish to create a parent child hierarchy on a calculation view that was copied into the customer space from a HANA Live Financial Statement query view, but I have found the following when creating a simple level hierarchy on a calculation view that consumes one table. The Calculation View has one Input Parameter where the 'mandatory' box is unchecked.
    Calculation view reads ECC table FAGLFLEXT
    Simple level based hierarchy on fields PRCTR, RACCT and SEGMENT
    Input parameter is used as a filter for PRCTR with logic ("EMPTY" = '$$P_PROFITCTR$$' or "PRCTR" = '$$P_PROFITCTR$$')
    When I run the view I see the following behaviour in HANA Studio and Analysis for Excel
    Before building the hierarchy I could run the view with or without the Input Parameter
    After building the hierarchy I can run the view with the Input Parameter filled, but it fails when the Input Parameter is not filled.
    Error message is "error: search table error:  [2426] missing placeholder; missing value for mandatory parameter P_PROFITCTR"
    P_PROFITCTR is not a mandatory parameter, but the selection for the hierarchy view thinks it should be. I don't find any notes around this issue, so I don't think it's version related, however the version I have used for this test is 1.00.70.
    It's a shame we can't currently build the hierarchy as the parent child relationship is provided in HANA Live view NewGLFinancialStatementQuery.
    Thanks,
    Ken

    Hi Ken,
    We have been facing similar issue. We have even tried to set default value and as optional parameter. View still fails to create hierarchy (we are not using HANA live). As mentioned on page 97 of HANA modelling guide input parameter is mandatory from engine point of view. Hierarchy is generated as column view during the initial activation of calculation view and therefore expect a value by caller.
    This seems to be a product error. Some one from HANA development team should explain this issue in detail. I would expect someone like Thomas Jung reply to us.
    At the moment, we cant use input parameter for date prompt which gives us calendar popup feature for date selection. Hierarchies just don't work with input parameter. We are missing something.
    Regards
    Angad

  • Crystal Report with standard Input-Parameters in InfoView

    Hi there,
    i've created a crystal report which has non-optional input parameters, e.g, Date from ... Date to ...
    I've managed to fill this parameter with standard parameters if the user does not choose a value. e.g. date is today - 14 days.
    If i start the report in crystal and do not enter a input-parameter, it gets it input parameer automatically, see:
    (if not hasvalue({?PARA_TA_von}) then ({PW_BO_HU_TA.LTAP-WDATU}>=CurrentDate-14) else ({PW_BO_HU_TA.LTAP-WDATU}>={?PARA_TA_von}))
    It works perfectly in crystal. But if i start the Report in Webintelligence Infoview, it doesn't work and i get the message to enter the input-parameters....
    Any idea ?
    Thanks,
    Sebastian

    Hi Ingo,
    I have tried the sample reports and other crystal reports created with data sources other than SAP which all work fine. The problem happens on all clients and the server when running reports with SAP data source.
    I did find an error in the Tomcat logs.
    [/SAP].[jsp] Thread [http-8080-Processor24];  Servlet.service() for servlet jsp threw exception
    java.lang.NoClassDefFoundError: com/crystaldecisions/Utilities/LengthLimitedDataInputStream
    I did manage to run one report which had 4 records but the other reports which vary from 432 - 2500 records return the error found in the tomcat logs.
    I will be installing BOE XI 3.1 on my desktop to see if the still issue occurs in this release.
    Thanks and Regards,
    Paul.

  • Dynamically select data with 20 input parameters

    Hi Experts,
    Now i have created a subscreen with more than 20 fields on it. these fields are defined by parameters, not select options. user can input any fileds for these input parameters.
    So now i should write codes to select data from database according the user input. Is there any easy way for me to write it? I heard about dynamically SQLs, but i don't know how to use it.
    Thanks a lot!

    you forgot to mention why you needed dynamic SQL : I guess that when user lets a field blank, you must not perform selection on it.
    The easiest is ( FIELD1 = P_FIELD1 OR FIELD1 = space ) AND ( FIELD2 = P_FIELD2 OR FIELD2 = space ) AND etc. Even if it seems repetitive, I advise you to keep the SQL static instead of dynamic, because in this latter case, I think the code will be a little bit less clear.
    Of course, if you argue that there are other requirements, then maybe it's worth re-evaluating the solution.
    If you need more information, just look at ABAP examples in your system (SE38, Environment, Examples, ABAP examples -> ... -> Dynamic conditions)

  • Calling report from a form with user input parameters

    Hello,
    I am new to Oracle reports. I have an application coded in 6i. I am currently running the application in Oracle Forms Builder 9i. There are also few reports which are called from the forms. Since the application was developed in 6i, the report was called using Run_Product. The forms pass a set of user parameters to the report using the parameter list pl_id. The syntax used was Run_Product(REPORTS, 'D:\Report\sales.rdf', SYNCHRONOUS, RUNTIME,FILESYSTEM, pl_id, NULL);
    I learnt that the Run_product doesnt work in 9i and we need to use run_report_object. I have changed the code to use run_report_object and using web.show_document () i am able to run the report from the form. There are 2 parameters that need to be passed from forms to reports. The parameters are from_date and to_date which the user will be prompted to enter on running the form. In the report, the initial values for these parametes are defined. So, the report runs fine for the initial value always. But when i try to change the user inputs for the form_date and to_date, the report output doesnt seem to take the new values, instead the old report with the initial values(defined in the report) runs again.
    Can someone give me the code to pass the user defined parameters to the report from the forms? I have defined a report object in the forms node as REPTEST and defined a parameter list pl_id and added form_date and to_date to pl_id and used the following coding:
    vrepid := FIND_REPORT_OBJECT ('REPTEST');
    vrep := RUN_REPORT_OBJECT (vrepid,pl_id);
    But this doesnt work.
    Also, Should the parameters defined in the forms and reports have the same name?

    Thanks for the quick response Denis.
    I had referred to the document link before and tried using the RUN_REPORT_OBJECT_PROC procedure and ENCODE functions as given in the doc and added the following SET_REPORT_OBJECT_PROPERTY in the RUN_REPORT_OBJECT_PROC :
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_OTHER,' FROM_DATE='||:BLK_INPUT.FROM_DATE||' TO_DATE='||:BLK_INPUT.TO_DATE||' paramform=no');
    But this also dint work. Please help me understand what difference does setting paramform=no OR paramform=yes make?
    In the report, i have defined the user parameters as FROM_DATE and TO_DATE respectively so that they match the form datablock BLK_INPUT items FROM_DATE and TO_DATE.
    My WHEN_BUTTON_PRESSED trigger is as below:
    DECLARE
    report_id report_object;
    vrep VARCHAR2 (100);
    v_show_document VARCHAR2 (2000) := '/reports/rwservlet?';
    v_connect VARCHAR2 (30) := '&userid=scott/tiger@oracle';
    v_report_server VARCHAR2 (30) := 'repserver90';
    BEGIN
    report_id:= find_report_object('REPTEST');
    -- Call the generic PL/SQL procedure to run the Reports
    RUN_REPORT_OBJECT_PROC( report_id,'repserver90','PDF',CACHE,'D:\Report\sales.rdf','paramform=no','/reports/rwservlet');
    END;
    ... and the SET_REPORT_OBJECT_PROPERTY code in the RUN_REPORT_OBJECT_PROC procedure is as:
    PROCEDURE RUN_REPORT_OBJECT_PROC(
    report_id REPORT_OBJECT,
    report_server_name VARCHAR2,
    report_format VARCHAR2,
    report_destype_name NUMBER,
    report_file_name VARCHAR2,
    report_otherparam VARCHAR2,
    reports_servlet VARCHAR2) IS
    report_message VARCHAR2(100) :='';
    rep_status VARCHAR2(100) :='';
    vjob_id VARCHAR2(4000) :='';
    hidden_action VARCHAR2(2000) :='';
    v_report_other VARCHAR2(4000) :='';
    i number (5);
    c char;
    c_old char;
    c_new char;
    BEGIN
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_COMM_MODE,SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_FILENAME,report_file_name);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_SERVER,report_server_name);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESTYPE,report_destype_name);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESFORMAT,report_format);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_OTHER,' FROM_DATE='||:BLK_INPUT.FROM_DATE||' TO_DATE='||:BLK_INPUT.TO_DATE||' paramform=no');
    hidden_action := hidden_action ||'&report='||GET_REPORT_OBJECT_PROPERTY(report_id,REPORT_FILENAME);
    hidden_action := hidden_action||'&destype='||GET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESTYPE);
    hidden_action := hidden_action||'&desformat='||GET_REPORT_OBJECT_PROPERTY (report_id,REPORT_DESFORMAT);
    hidden_action := hidden_action ||'&userid='||get_application_property(username)||'/'||get_application_property(password)||'@'||get_application_property(connect_string);
    c_old :='@';
    FOR i IN 1..LENGTH(report_otherparam) LOOP
    c_new:= substr(report_otherparam,i,1);
    IF (c_new =' ') THEN
    c:='&';
    ELSE
    c:= c_new;
    END IF;
    -- eliminate multiple blanks
    IF (c_old =' ' and c_new = ' ') THEN
    null;
    ELSE
    v_report_other := v_report_other||c;
    END IF;
    c_old := c_new;
    END LOOP;
    hidden_action := hidden_action ||'&'|| v_report_other;
    hidden_action := reports_servlet||'?_hidden_server='||report_server_name|| encode(hidden_action);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_OTHER,'pfaction='||hidden_action||' '||report_otherparam);
    -- run Reports
    report_message := run_report_object(report_id);
    rep_status := report_object_status(report_message);
    IF rep_status='FINISHED' THEN
    vjob_id :=substr(report_message,length(report_server_name)+2,length(report_message));
    message('job id is'||vjob_id);pause;
    WEB.SHOW_DOCUMENT(reports_servlet||'/getjobid'||vjob_id||'?server='||report_server_name,' _blank');
    ELSE
    --handle errors
    null;
    END IF;
    In the code - " hidden_action := hidden_action ||'&'|| v_report_other; " in the RUN_REPORT_OBJECT_PROC procedure above, how do i make sure that the v_report_other variable reflects the user input parameters FROM_DATE and TO_DATE ??? v_report_other is initialised as v_report_other VARCHAR2(4000) :=''; in the procedure. Will ensuring that the v_report_other contains the user input parameters FROM_DATE and TO_DATE ensure that my report will run fine for the input parameters?
    Thanks in advance.
    Edited by: user10713842 on Apr 7, 2009 6:05 AM

  • Oracle optional input parameters

    Hi,
    I have a SP named sp_actualizar_parametr that has 3 input parameters, all of Number type, and one of them is optional.
    How can I do so that my class reflects that situation, how can I passa a null to the optional field?
    now I have:
    public static String setActualizarParametrizacao( int refreshAutoLaG, int refreshAutoNoG, int nUltimasAvariasG){
            CallableStatement pstmt=null;
            try{
                PoolDB poolDB = PoolDB.getPoolDB();
                conn = poolDB.getConnection();
                pstmt = conn.prepareCall("{call pck_w_cfg_templates_parametr.sp_actualizar_parametr(?,?,?,?,?)}");
                pstmt.registerOutParameter(1, OracleTypes.NUMBER);
                pstmt.registerOutParameter(2, OracleTypes.VARCHAR);
                pstmt.setInt(3, refreshAutoLaG);
                pstmt.setInt(4, refreshAutoNoG);
                pstmt.setInt(5, nUltimasAvariasG);
                pstmt.execute();
    ...thanks, V

    Hi,
    I have a SP named sp_actualizar_parametr that has 3 input parameters, all of Number type, and one of them is optional.
    How can I do so that my class reflects that situation, how can I passa a null to the optional field?
    now I have:
    public static String setActualizarParametrizacao( int refreshAutoLaG, int refreshAutoNoG, int nUltimasAvariasG){
            CallableStatement pstmt=null;
            try{
                PoolDB poolDB = PoolDB.getPoolDB();
                conn = poolDB.getConnection();
                pstmt = conn.prepareCall("{call pck_w_cfg_templates_parametr.sp_actualizar_parametr(?,?,?,?,?)}");
                pstmt.registerOutParameter(1, OracleTypes.NUMBER);
                pstmt.registerOutParameter(2, OracleTypes.VARCHAR);
                pstmt.setInt(3, refreshAutoLaG);
                pstmt.setInt(4, refreshAutoNoG);
                pstmt.setInt(5, nUltimasAvariasG);
                pstmt.execute();
    ...thanks, V

  • Fit functions with optionally fixed parameters?

    How can I fit functions ranging from a basic linear fit to any
    user-defined function to a set of x-y data with the option of keeping
    single fit parameters fixed (e.g. a known slope in a linear fit)? One
    possibility would be creating an according formula for the
    Levenberg-Marquard-algorithm each time a parameter is set to be fixed
    but that seems to be a bit inconvenient. Is there a simple approach to
    this problem, I guess I'm not the first to try it? Thanks a lot,
    Daniel

    dtroendle wrote:
    How can I fit functions ranging from a basic linear fit to any user-defined function to a set of x-y data with the option of keeping single fit parameters fixed (e.g. a known slope in a linear fit)? Is there a simple approach to this problem, I guess I'm not the first to try it?
    Daniel,
    I have modified the Lev-Mar routines long ago to allow the runtime selection of which paramters should be fixed and which should be held constant. It is not very difficult to implement. I use it to fit EPR spectra where the model can have up to ~30 parameters, but typically only less than 10 are fit while the rest are kept constant.
    Basically, I added a boolean array as input to Lev-Mar which has the same number of elements as the number of paramters of the model function. For each element, a TRUE means that the corresponding parameter should be fit while a FALSE means that the corresponding parameter should be held fixed at the value of the initial estimate.
    You just need to seperate out the reduced problem for the fitting part, but carry all parameters along for the model calculation.
    It works great!
    I am currently traveling in Japan and don't have access to my VIs. Please contact me next week by private e-mail (You can find my e-mail address on the FP of some of my examples posted here, e.g. HERE.
    LabVIEW Champion . Do more with less code and in less time .

  • Error while creating a BO Universe (using IDT) on top of SAP HANA Calculation View with Input Parameters

    Hi All..
          We are trying to create a Universe (using IDT-Version4.0) on top of the HANA Calculation view. The Calculation view has 4 input parameters, So
    in Universe side we have created the respective prompts. For the creation of derived table we have used the following code
    SELECT *
    FROM "_SYS_BIC"."<schema_name>.<CV_Calculation_View_test>"
    'PLACEHOLDER'=('$$IP_A$$','@Prompt(A)'),
    'PLACEHOLDER'=('$$IP_B$$','@Prompt(B)'),
    'PLACEHOLDER'=('$$IP_C$$','@Prompt(C)'),
    'PLACEHOLDER'=('$$IP_D$$','@Prompt(D)')
    While validating the above code we are getting an error.
    I have attached the snapshot of that error for your reference. Please find the attachment and help me in resolving it.
    Thanks in advance.

    Hello George,
    I don't have any personalization set on the info space. Also I am using mapped Account in BI to connect to HANA. The confusing part is that it is able to validate the infospace with the input parameters and index it. However query does not return any results. I even tried running the same query which explorer sends to HANA in the SQL editor and there too the same results,the query does not return anything. The model does return data when I do a data preview and if accessed from other tools like AAO.
    Also when I use SSO connection to HANA, indexing of the infospace fails. Where can I see the error log?
    Thanks,

  • Error when using Analytic view with Input Parameters

    Hi,
    I am trying to create an info space based on my Analytic view which has input parameters. The infospace is validated and indexed without any issue. However when I ran the view, I get an error (50011) as it is unable to fetch any results. I tried using an infospace based on Calculation view with input parameters and the explorer view works without any issue.
    Has anyone faced similar issues?
    We are using HANA SP 6 rev 67 and BI 4.0 SP 4.
    Also is there a way to enable input prompts for the users when they refresh the BO Explorer view? If not currently available is there any work around ?
    Thanks

    Hello George,
    I don't have any personalization set on the info space. Also I am using mapped Account in BI to connect to HANA. The confusing part is that it is able to validate the infospace with the input parameters and index it. However query does not return any results. I even tried running the same query which explorer sends to HANA in the SQL editor and there too the same results,the query does not return anything. The model does return data when I do a data preview and if accessed from other tools like AAO.
    Also when I use SSO connection to HANA, indexing of the infospace fails. Where can I see the error log?
    Thanks,

  • Execute javascript with input parameters of a taskflow

    Using JDev 11g PS4
    I have a taskflow that uses some javascript. When the taskflow has been loaded, I need to execute a javascript function that uses 2 input parameters of my taskflow.
    I don't really know how I can execute the javascript with my input parameters.
    As a test, I have added a commandButton in my taskflow that will do the job:
    <af:commandButton id="btnRefresh" text="Open">
                <af:clientAttribute name="long" value="#{pageFlowScope.pLong}"/>
                <af:clientAttribute name="lat" value="#{pageFlowScope.pLat}"/>
                <af:clientListener method="doNavigate" type="click"/>
            </af:commandButton>How do I do the same when the taskflow loads instead of needing to push the button.

    Please find attached sample based on your use-case:
    http://adfsampleapplications.googlecode.com/svn/trunk/JavascriptOnLoadSample.rar
    It invokes a javascript function on pagefragment load by passing the input parameters from the taskflow.
    Thanks,
    Navaneeth

  • Bug? Optional Crystal Parameters in InfoView if R3 is connected!

    Hi There,
    in another [thread|Re: Optional Crystal Parameters aren't optional in InfoView; we tested a lot with optional crystal parameters in InfoView. I created two similar reports, one is connected to oracle, the other is connected to SAP R3 Infosets and Tables. If i create an optional input-parameter with a standard-value for the report it works fine (and optional). I've also created a "if (hasvalue) then else condition" when the user deletes the standard value and does not enter a value then. Everything works perfect as long as a oracle database is connected.
    If i try to do the same connected to a R3 Table or a R3 Infoset, the parameter is not optional, the standard value is missing and due to this, i cannot test the  "if (hasvalue) then else condition" because i cannot run the report without a parameter.
    All this happens only in InfoView. If you run it directly in crystal, everything works fine...
    I think i've found a Bug.
    Colleagues told me that there should be similar problems when you try to connect a BW Query...
    Thanks
    Sebastian

    Is there anybody out there who can also test this issue ?
    Thanks
    Sebastian
    p.s. Please also check this Thread: [Re: Optional Crystal Parameters aren't optional in InfoView|Re: Optional Crystal Parameters aren't optional in InfoView]
    Edited by: smenzl on May 27, 2010 4:53 PM

  • FM: PROCESS_HU_INBOUND_DLVRY - wrong length of input parameters

    Hello,
    I am trying to pack materials into Handling Units in inbound delivery. Therefore i am using the Function Module PROCESS_HU_INBOUND_DLVRY, but it doesnu2019t work like it should.
    After some further investigation and debugging of the function module i came to the conclusion that the Import parameters, stated bellow are of wrong file type / length:
    u2022     I_SAVE_STEP     TYPE     C
    u2022     I_PACKING_ACTIVITY     TYPE     C
    u2022     I_PACK_TYPE     TYPE     C
    Please see the picture bellow:
    [pic1|https://photos-1.dropbox.com/i/o/rxYQUhHzQaBUWNTUAmo8WMQHWXCD8oOeBSg4TOqFHBc/204699/1317888000/9aef875/01.png]
    Some further technical info:
    u2022     When the function module is called the input parameters are compared to the constants, declared in the Include: RLMOBDDL, please see pictures bellow
    [pic2|https://photos-2.dropbox.com/i/o/LIKxPZdNN8jSf18uM8SkNN5BAjomb0MG8mNOID3xeCE/204699/1317888000/c94cd10/02.png]
    u2022     The FM is called with the input parameters:
    o     I_SAVE_STEP = ITEM
    o     I_PACKING _ACTIVITY = PACK
    o     I_PACK_TYPE = MAT
    u2022     Input parameters are of the type C u2013 the default length is only ONE. Because of that the input parameters are trimmed down to length 1, so the FM actually works with wrong values:
    o      I_SAVE_STEP = I
    o     I_PACKING _ACTIVITY = P
    o     I_PACK_TYPE = M
    u2022     The wrong values are then compared to the constants which are length 2, 3 and 4, as shown in the picture bellow.
    [pic3|https://photos-3.dropbox.com/i/o/-LMF6MJiG_rFhZ4p9bxldorpUo-aVX_HjRU2RnMxsro/204699/1317888000/e5c2f1b/03.png]
    So the FM PROCESS_HU_INBOUND_DLVRY does actually nothing, because the comparing of the input parameters with CONSTANTS fails.
    Thanks in advance.
    Kind regards,
    M

    Hi Marko,
    call the fm in test mode (F8) and you will see, that these parameters are not of type C(1) but C without limited length. You can call it with varaiable parameter length for these parameters.
    Regards,
    Klaus

  • Odata and Input Parameters

    Hello Experts,
    I have an Odata Service with multiple Input Parameters. I am creating a Dialog to allow user to enter values for Input Parameters and then show my Odata Model in a Table.
    I have two questions:
    1.) I will create a dialog that will contain Textboxes for entering Input parameters. Now I want to know how to pass these Text field values to my Odata Input Parameters.
    2.) I want my Dialog to be loaded first - As soon as I launch my index.html file - I want the dialog to appear and after entering Input Parameters, I want to load my Odata Model in table. How to achieve it?
    Regards,
    Rohit

    Hi Maksim,
    Thanks for your reply
    For now I am not using dialog but am using a panel to get input parameters and then another panel to show the table.
    I have created the panels as follows:
    The code is:
    sap.ui.jsview("testid.testr", {
           getControllerName : function() {
                  return "testid.testr";
           createContent : function(oController) {
    var updatePanel = new sap.ui.commons.Panel("updPanel").setText('Enter Input Parameters');
    var layoutNew = new sap.ui.commons.layout.MatrixLayout({width:"auto"});
                 var oVal1 = new sap.ui.commons.TextField("cArea",{tooltip: "Controlling Area", width: "200px", editable:true});
                 var oVal2 = new sap.ui.commons.TextField("sDate",{tooltip: "Start Date", width: "200px", editable:true});
                 var oVal3 = new sap.ui.commons.TextField("eDate",{tooltip: "End Date", width: "200px", editable:true});                
                 var oExcButton = new sap.ui.commons.Button({
                     text : "Submit"});
                 layoutNew.createRow(new sap.ui.commons.Label({text: "Controlling Area: "}), oVal1 ); 
                        layoutNew.createRow(new sap.ui.commons.Label({text: "Start Date: "}), oVal2 );
                        layoutNew.createRow(new sap.ui.commons.Label({text: "End Date: "}), oVal3 ); 
                        layoutNew.createRow(new sap.ui.commons.Label(),oExcButton);
                 updatePanel.addContent(layoutNew);
                 var tPanel = new sap.ui.commons.Panel("tbPanel").setText('Table');
                 var oModel = new sap.ui.model.odata.ODataModel("/Test/View/Services/testcv.xsodata/",false);
                         var oTable = new sap.ui.table.Table("TestTab",{tableId: "tableID",
                               visibleRowCount: 7,
                               firstVisibleRow: 3,
                               selectionMode: sap.ui.table.SelectionMode.Single,
                               navigationMode: sap.ui.table.NavigationMode.Paginator,
                               fixedColumnCount: 2
                         oControl = new sap.ui.commons.TextField({editable:false}).bindProperty("value","SAPClient");
                          oTable.addColumn(new sap.ui.table.Column({label:new sap.ui.commons.Label({text:"SAP Client"}),
                                template: oControl, sortProperty: "SAPClient", filterProperty: "SAPClient", width: "125px" }));
                          oControl = new sap.ui.commons.TextField({editable:false}).bindProperty("value","ControllingArea");
                          oTable.addColumn(new sap.ui.table.Column({label:new sap.ui.commons.Label({text:"Controlling Area"}),
                                template: oControl, sortProperty: "ControllingArea", filterProperty: "ControllingArea", width: "125px" }));
                          oTable.setModel(oModel);
                               var sort1 = new sap.ui.model.Sorter("CostCenter");
                                oTable.bindRows("/TestCalcView", sort1);
                 tPanel.addContent(oTable);
                 var oLayout = new sap.ui.commons.layout.VerticalLayout("Layout1",{
                    content: [updatePanel,tPanel]
                 //oLayout.createRow(updatePanel);
                 oLayout.setWidth('auto');
                    return oLayout;
    I want that when I click on Submit button the data is loaded in the table.
    Can you please let me know where to define the Input Parameters of Odata Service
    Can you please help me in how to get the values of textfields and how to pass them as Input parameters to Odata.
    Regards,
    Rohit

  • Fuction module input parameters

    Hi gurus
    can any one please help me out with the input parameters for the following BI function module
    /OSP/BW_REPORT_SCHEDULE
    Thanks in advance

    Hi Viki, what do you want to achieve? Best Michael

  • Web service data control with complex input parameter problem

    Hi!
    I'm making ADF web app, using JDev 11.1.1.2.0. I have to call a web service (using a data control), which has complex input parameter (array of complex objects).
    I followed steps from Susan Duncan blog: http://susanduncan.blogspot.com/2006/09/dealing-with-complex-input-params-in.html , but I ran into a problem.
    As Susan wrote, I changed submit's button action binding to an operation in a managed bean, which returns array of objects and everything works fine. I can call a WS and my table shows the result.
    The problem is, that after I change button's action binding to my manage bean, row selection in result table doesn't work anymore (I allways get NullPointerException).
    What can be done here?
    Can somebody please help?

    Hi,
    I also have similar type of problem where I need to invoke a Web service with Complex input parameters.
    I followed Susan's blog but I stuck at a point where methos getItem is created.
    Can anyone tell me how to get that method for my requirement.
    If possible can you guys share your solutions here.
    Thanks in advance.

Maybe you are looking for

  • VLC Downloads fine but doesn't open application. Please help

    Hi Can someone please help me with my downloading problem? Excuse me if I sound like a tard but I'm really keen on learning. I searched through previous posts but didn't quite find what I was looking for. I download fine. Copy into applications. Ever

  • Broadband for Mac and PC?

    I am looking for a suitable UK broadband service compatible with both my current OS 9.1 iBook (and a possible OSX conversion this year) and my partner's PC (XP Home). I don't particularly want to switch phone providers. I note BT does not yet support

  • Photoshop Product page doesn't load with IE, FF or Chrome

    So I order and pay for Photoshop CC. Get the email telling me how to Get Started. Get to the Download Center webpage, login, and - Internet Explorer takes me to a blank page https://creative.adobe.com/products - Chrome takes me to the product page. I

  • Safari 2.0.3 problems with flash, wmv, and real player

    I am having problems with safari 2.0.3 on my new macbook pro. 1. wmv and real player media will not play- and i have both of the programs. they worked perfectly on my old powerbook. 2. flash is not working on safari- i have downloaded and installed t

  • SQL Server 2000 - Valid Binary datatype and valid character datatype:

    SQL Server 2000 - Valid Binary datatype and valid character datatype: Which is not a valid binary datatype : BIT , IMAGE, TMESTAMP Which is not a valid Character datatype : VARTEXT , BLOB , TEXT