Abnormal behavior for non-optional parameter

Hello Gurus,
        I have a datasource as follows:
         {CALL "HIROC_PRC_FA016_WPR_DM_DTL"({?Date From}, {?Date To},{?Sub No})},  for all three parameter, they are all static, and "optional prompt" are "false" ( it can't be set up),  but when I run the report,  if I did not input value for parameter {?Date From} and {?Date To}, report will not run.  but if I did not input value for parameter {?Sub No}, report runned with error message "Failed to retreve data from the database. Details: 42000:[Oracle][ODBC]Syntax error or access violation."

if you have the parameters set OPTIONAL to false, then it requires a value,
you can make the sub no optional and then you can use
if nothasvalue(?subno} and
field>=date1 and field <=date2 then true

Similar Messages

  • How to use offset for select-option parameter ?

    Hi experts
    could anybody please let me know how to use offset for select-option parameter. i can able to use offset for table fields, variabiles and all , but don't know how to use for parameters.
    following is my code
    SELECT-OPTIONS: s_prctr  FOR vbsegs-prctr OBLIGATORY.
    here "prctr"  length is 10.
    i'm using two tables  1. vbsegd-bupla
                                    2. vbsegs-prctr
    here prctr+6(4) = bupla.
    "Bupla" length is 4
    SELECT belnr gjahr bukrs bupla sgtxt buzei FROM vbsegd INTO CORRESPONDING FIELDS OF TABLE it_vbsegd FOR ALL ENTRIES IN it_vbkpf
                                                                 WHERE belnr = it_vbkpf-belnr
                                                                   AND gjahr = it_vbkpf-gjahr
                                                                   AND bukrs = it_vbkpf-bukrs
                                                                   AND bupla IN s_prctr.  
    the above statement is not working as prctr and bupla lenths are different. here i want to use offset.
    SELECT belnr gjahr bukrs prctr sgtxt buzei FROM vbsegs INTO CORRESPONDING FIELDS OF TABLE it_vbsegs FOR ALL ENTRIES IN it_vbkpf
                                                                WHERE belnr = it_vbkpf-belnr
                                                                  AND gjahr = it_vbkpf-gjahr
                                                                  AND bukrs = it_vbkpf-bukrs
                                                                  AND prctr IN s_prctr.
    this is working as prctr and s_prctr lengths are equal.
    could anybody please help me out in this.
    Thanks in advance.
    regards
    satish

    Below code will work for you.
    SELECT-OPTIONS: s_prctr  FOR vbsegs-prctr OBLIGATORY.
    RANGES: s_bupla FOR vbsegd-bupla.
    s_bupla[] = s_prctr[].
    DELETE ADJACENT DUPLICATES FROM s_bupla.
    SELECT belnr gjahr bukrs bupla sgtxt buzei FROM vbsegd INTO CORRESPONDING FIELDS OF TABLE it_vbsegd FOR ALL ENTRIES IN it_vbkpf
                                                                  WHERE belnr = it_vbkpf-belnr
                                                                    AND gjahr = it_vbkpf-gjahr
                                                                    AND bukrs = it_vbkpf-bukrs
                                                                    AND bupla IN s_bupla.

  • Value has to be entered for an optional parameter for WS

    Hi,
    I have created a webservice from a PL/SQL package using the below tutorial.
    http://st-curriculum.oracle.com/obe/jdev/obe1013jdev/10131/wsfromplsqlpackage/devwsfrom%20plsql.htm
    I wrote my package to get the user status from fnd_user table. The package/procedure cannot get simpler than this. There are 2 input parameters (optional) and 1 output parameter. I am able to call this pkg-proc from SQL Plus and everything works fine. I can pass either of the 2 input parameters and the procedure returns the correct information depending upon what is passed. However when I exposed this as a web service, and if I do not pass the user id parameter, I get "Caught exception while handling request: deserialization error: java.lang.NumberFormatException: For input string: """ error. I tried nillable="true" and minOccurs="0" for user id but still it seems the web service is forcing me to enter the value for user id parameter. The other way works i.e. if user name is left blank.
    If I change the data type for the 1st parameter (p_user_id) to varchar2, then the WS returns proper info. Seems like nillable="true" works for string (varchar2) datatype but not for integer or number.
    Any help will be truly appreciated. Thanks.
    CREATE OR REPLACE package xxcc_ws is
      procedure Get_User_Status (
         p_user_id                      IN  INTEGER  DEFAULT 0
        ,p_user_name                    IN  VARCHAR2 DEFAULT NULL
        ,p_ret_msg                      OUT VARCHAR2
    END xxcc_ws;
    CREATE OR REPLACE package body xxcc_ws is
      procedure Get_User_Status (
         p_user_id                      IN  INTEGER  DEFAULT 0
        ,p_user_name                    IN  VARCHAR2 DEFAULT NULL
        ,p_ret_msg                      OUT VARCHAR2
      ) is
        lr_fu_rec       apps.fnd_user%ROWTYPE;
      begin
        select *
        into   lr_fu_rec
        from   apps.fnd_user
        where  user_id = nvl(p_user_id, user_id)
        and    user_name = nvl(p_user_name, user_name);
        -- warn if the person is end dated
        if lr_fu_rec.end_date is not null then
          p_ret_msg       := 'WARNING:Person is end dated as of '||to_char(lr_fu_rec.end_date,'mm/dd/yyyy');
        else
          p_ret_msg       := 'SUCCESS:'||lr_fu_rec.employee_id||':'||lr_fu_rec.email_address;
        end if;
        return;
      exception
        when others then
          p_ret_msg      := 'ERROR:'||sqlerrm;
          return;
      end Get_User_Status;
    END xxcc_ws;
    /Edited by: user13163442 on Nov 8, 2010 8:29 AM

    Hi
    I have tried pl/sql package via SOA gateway and it worked.

  • [SSRS] Abnormal behavior for parameter usage in checking case within query of dataset

    Details :
    Following error is displayed when I preview a report (SUR_EXPLORER-NG.rdl) in Microsoft Visual Studio:
    “An error occurred during local report processing.
    An error has occurred during local report processing.
    Cannot set the command text for dataset 'GET_FDA_CONFIG_ID'.
    Error during processing of the CommandText expression of dataset 'GET_FDA_CONFIG_ID'.”
    Following is the query set in dataset 'GET_FDA_CONFIG_ID':
    =IIF(
    Parameters!IN_Dimension.Value = -1,
           "SELECT -1 AS FDA_CONFIG_ID FROM DUAL WHERE :H_IN_InstanceId = :H_IN_InstanceId",
           "SELECT RA_SUMM_RECON_MEASURE.FDA_CONFIG_ID AS FDA_CONFIG_ID FROM RA_SUMM_RECON_MEASURE, RA_SUMM_RECON_HISTORY WHERE RA_SUMM_RECON_MEASURE.RECON_ID
    = RA_SUMM_RECON_HISTORY.RECON_ID AND RA_SUMM_RECON_HISTORY.SUMM_RECON_INSTANCE_ID = :H_IN_InstanceId"
    As a trial, I change the report parameter used in the checking condition as follows (SUR_EXPLORER-OK.rdl):
    =IIF(
    Parameters!H_IN_InstanceId.Value = -1,
           "SELECT -1 AS FDA_CONFIG_ID FROM DUAL WHERE :H_IN_InstanceId = :H_IN_InstanceId",
           "SELECT RA_SUMM_RECON_MEASURE.FDA_CONFIG_ID AS FDA_CONFIG_ID FROM RA_SUMM_RECON_MEASURE, RA_SUMM_RECON_HISTORY WHERE RA_SUMM_RECON_MEASURE.RECON_ID
    = RA_SUMM_RECON_HISTORY.RECON_ID AND RA_SUMM_RECON_HISTORY.SUMM_RECON_INSTANCE_ID = :H_IN_InstanceId"
    Then the mentioned error message is not shown (of course I can’t get desired report generated as the logic is incorrect).
    Besides, I try with other report parameters but the mentioned error message is not shown.

    Hi chrisd921,
    According to your description, you want to do a dynamic query based on parameter select in your report dataset. Right?
    In Reporting Services, if we use query to retrieve data when creating dataset, this query will only be processed one time during report processing. So we can't make it change to another query after we change the parameter selection. And we can't combine
    the data from two query together in a dataset, because in a dataset, if multiple result sets are retrieved through a single query, only the first result set is processed, and all other result sets are ignored. For your requirement, it can't be achieved currently.
    In this scenario, we suggest you add one more column, and put in "-1" in detail row. Then control the visibility to show either "-1" or report data.
    Reference:
    Report Embedded Datasets and Shared Datasets (Report Builder and SSRS)
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • Abnormal behavior for java plugin 1.3.0 and 1.3.1

    Hi,
    I've developed a java applet which renders svg images. I am working in a constrained environment where both java plugin 1.3.0_02 and java plugin 1.3.1_02 are installed.
    the code for the embedded applet in html,
    <object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
    WIDTH =" 600" HEIGHT =" 700">
    <param NAME = CODE VALUE ="MyViewerApplet.class" >
    <param NAME = ARCHIVE VALUE ="required.jar" >
    <param NAME="type" VALUE="application/x-java-applet;version=1.3">
    <param NAME="IMAGES" VALUE="http://localhost:8889/images/">
    <param NAME="HOMESVG" VALUE="http://localhost:8889/mysvg.svg">
    <COMMENT>
    <embed type="application/x-java-applet;version=1.3"
    java_CODE ="MyViewerApplet.class"
    java_ARCHIVE ="required.jar"
    WIDTH =" 600"
    HEIGHT =" 700"
    pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"
    IMAGES="http://localhost:8889/images/">
    HOMESVG="http://localhost:8889/mysvg.svg">
    <noembed></noembed></embed>
    </COMMENT>
    </object>
    One note about the applet, the applet's loads RenderingCanvas.class from required.jar.
    Now when i open Internet Explorer , it loads the 1.3.0 plugin and when i open Netscape Navigator it loads the 1.3.1 plugin !!!.
    Well thats not the biggest problem. The applet works correctly in Netscape Navigator. However, the java plugin 1.3.0 in internet explorer complains -> NoClassDefFoundError org.xxx.yyy.RenderingCanvas (Note: it doesn't say ClassNotFoundException).
    Another thing, why does the plugin call the applet's INIT and START methods before the jar archive has even been loaded(thats what the output shows). Wouldnt the plugin always complain that the file was not found since the jar archive has not been loaded.
    Although my description does seem a bit vague, does anyone have an idea why this could be ?
    Thanks in advance.
    A.

    One note about the applet, the applet's loads
    RenderingCanvas.class from required.jar.
    Now when i open Internet Explorer , it loads the 1.3.0
    plugin and when i open Netscape Navigator it loads the
    1.3.1 plugin !!!.What Sun calls "dynamic versioning" allows you to specify a major version number as required -- any minor version will match. For example, "any 1.3 or higher", "any 1.4 or higher". This is described in Sun's plugin developer's guide.
    Well thats not the biggest problem. The applet works
    correctly in Netscape Navigator. However, the java
    plugin 1.3.0 in internet explorer complains ->
    NoClassDefFoundError org.xxx.yyy.RenderingCanvas
    (Note: it doesn't say ClassNotFoundException).I don't know.
    Another thing, why does the plugin call the applet's
    INIT and START methods before the jar archive has even
    been loaded(thats what the output shows). Wouldnt the
    plugin always complain that the file was not found
    since the jar archive has not been loaded.Are you saying that MyViewerApplet.class is available directly from the server, and the remaining classes that it depends on are in required.jar? If so, this is normal. Java (or at least common Java implementations) load classes as needed. This means that MyViewerApplet should run fine until it encounters a class which is in required.jar, at which time it will have to wait for the loading to complete. If you want it all to load before anything starts, put MyViewerApplet.class in the jar as well.

  • SSRS report with tabular model – Create a dropdown report parameter with "None" option as the top value.

    Hello Everyone,
    I would like to create SSRS single select dropdown list parameter (it is using MDX query in dataset) with "None" option at the top. Note: this parameter is dependent parameter and getting filtered based on the selection of another parameter.
    How can I add hard-coded "None" text at the top of the parameter values? Can Union function help me to add this hard-coded value? The purpose is, when user selects None from the dropdown ignore the condition of the parameter from MDX query else
    use the selected value in query condition.
    Thanks, Ankit Shah
    Inkey Solutions, India.
    Microsoft Certified Business Management Solutions Professionals
    http://www.inkeysolutions.com/MicrosoftDynamicsCRM.html

    Hi Ankit,
    In your scenario, you can achieve your requirement in report level other than in query. Add a Filter like:
    Expression: =IIF(Parameters!Name.Value="None",1,Fields!Name.Value)
    Operator:=
    Value: =IIF(Parameters!Name.Value="None",1,Parameters!Name.Value)
    In this case, report will ignore this parameter, and show all the records on the report when selecting “None” value. I have tested it on my local environment, the screenshots below are for you reference.
    Reference:
    Add a Filter to a Dataset (Report Builder and SSRS)
    Regards,
    Charlie Liao
    TechNet Community Support

  • HT2534 When I try to set up an Apple ID, it's asking for a credit card, and there is no "None" option, like this page suggests. How can I bypass this? This iPad is for a younger child who has no credit card, and will not need to make any purchases.

    When I try to set up an Apple ID, it's asking for a credit card, and there is no "None" option, like this page suggests. How can I bypass this? This iPad is for a younger child who has no credit card, and will not need to make any purchases.

    You can create an iTune and App Store account without credit card details
    1. Sign out of current Apple ID if you are sign-in to one (important)
    2. Go to App Store and select a free app
    3. Tap INSTALL APP
    4. Create New Apple ID
    5. Confirm Your Country
    6. Agree with Terms and Conditions
    7. Fill in your Apple ID and Password (you must create a new Apple ID; don't use your old Apple ID)
    8. Create and answer your secret question
    9. Select NONE for Payment Method
    10. Fill in Billing Address
    11. Submit application for new Apple ID
    12. Wait for verification email
    13. When email arrive, verify your account
    14. Start downloading your free apps

  • HT2534 Why is there not an option for none because i dont have a credit card and there is no none button

    Why is there not an option for none because i dont have a credit card and there is no none button

    Create a new ID by following the steps in this article exactly as written: http://support.apple.com/kb/ht2534.  Pay attention to step 3; you must first download and install any free app then create the ID.

  • F4 help for select options based on parameter value

    hi all,
    I need a help to create an F4 help for select options for object id based on parameter value of object type, I mean once an object type is given the f4 help should contain object id's only of that type for each option.
    Regard's,
    Girija
    Moderator Message : Duplicate post locked. Continue with [f4 help for select options based on parameter value |f4 help for select options based on parameter value;.
    Edited by: Vinod Kumar on May 17, 2011 1:36 PM

    hi all,
    I need a help to create an F4 help for select options for object id based on parameter value of object type, I mean once an object type is given the f4 help should contain object id's only of that type for each option.
    Regard's,
    Girija
    Moderator Message : Duplicate post locked. Continue with [f4 help for select options based on parameter value |f4 help for select options based on parameter value;.
    Edited by: Vinod Kumar on May 17, 2011 1:36 PM

  • HT2534 Why isn't there a 'none' option for my payment information?

    I have a debit card on my iTunes account and I added it a while ago. Now it is saying that my security code isn't valid so I just want to get my debit card off of my iTunes account COMPLETELY. My problem is that I can't find the 'none' option for payment method information. HELP ME PLEAASE!! "/

    For the security code issue, try here >  iTunes Store: My credit card's security code or zip code does not match my bank's records
    The None option is available from the iTunes Edit Payment Information window.
    With iTunes open, from the menu bar top of your screen click Store > Sign In
    Now go back to the menu bar click Store > View My Account. Enter your password click View Account.
    Now click Edit to the right of Payment Type.
    Be aware, the None option is not available in all countries.

  • HT2534 No None option for credit card

    There is no none option, like I'm downloading a free app and it says it says tap to review for sign in and then I go threw the pages and when it comes to credit cards, it says MasterCard, Amex and visa, there is no none option

    Then you did not follow the instructions carefully.

  • HT2534 my itunes don't display none option for billing address

    please help how can i make id on ipod without none option

    Why can’t I select None when I edit my payment information?
    Sounds like you did not try thee instructions:
    Create a NEW account/ID for her using these instructions. Make sure you follow the instructions. Many do not and if you do not you will not get the None option. You must use an email address that you have not used with Apple before. Make sure you specify a birthdate that results in being at least 13 years old
      Creating an iTunes Store, App Store, iBookstore, and Mac App Store account without a credit card
    More details of how:
      http://ipadhelp.com/ipad-help-tips-tricks/how-to-get-free-apps-from-the-app-stor e-without-a-credit-card/

  • How do I get bill for app's when choosing "NONE" option...?

    When I chose the NONE option to pay for an app, how do I get bill for it... Or when and how do I actually pay for it...

    You can only download free app if you set payment method as None.

  • Hi,earlier i was able to download free games on my ipad2,but now every timr i am trying it is asking for billing information?and even after selecting "NONE" option i am not able to download free games on my ipad?please help me if u have solution.thanx

    Hi ,Earlier i was able to download free games on my ipad2,but now everytime i am trying it is asking for billing information?
    even after selecting "none" option  i am not able to download free games on my ipad ?
    please help me if u have solution for this

    khalid08 wrote:
    Hi ,Earlier i was able to download free games on my ipad2,but now everytime i am trying it is asking for billing information?
    Earlier when - today? Some time in the past? When did this start?

  • Java.sql.Statement.setFetchSize(int) option for non-scrollable result sets

    Hello!
    Our tests indicate that fetch size option mentioned makes visible difference in performance for non-scrollable result sets also. In the same time, it seems there is no way to set this option for such result sets at TopLink level, and default fetch size is always used instead.
    Can somebody propose a solution for this, I mean a way to specify custom fetch size (for results without any scrolling)?
    Thanks,
    Sergey

    To set the JDBC fetch size for a query, use the following APIs:
    int desiredFetchSize = 500;
    ReadAllQuery query = new ReadAllQuery(YourClass.class);
    CallQueryMechanism queryMechanism =
    (CallQueryMechanism) query.getQueryMechanism();
    DatabaseCall call = queryMechanism.getCall();
    call.setResultSetFetchSize(desiredFetchSize);
    If you wish to set the fetch size for all queries, consider using named queries for all queries (see the TopLink documentation for more information on named queries), and then configure them on startup.
    Information taking from Metalink Note:237093.1

Maybe you are looking for

  • Problem: An error occured during the uploading process.

    Hello!  I've searched around but I am having difficulty finding a solution to this problem. I am trying to upload videos through Adobe Premiere Elements 9 to YouTube, using the preset options in the share tab.  This worked previously without issue, b

  • Firefox often crashes when closing tabs

    I've noticed that, when I have multiple tabs open in the same window, FireFox has a tendency to crash when I close one of the tabs. This seems to be more likely when the next tab is still loading. This doesn't seem to happen with closing separate FF

  • Using ?import:file? command in a linux Enterprise server

    Hello. I'm with a problem with a template. I never had a client that use linux as OS in enterprise server. I work with embedded bi publisher in JDEDWARDS and usually i use this command to call dinamic footers and never had a problem. For example <?im

  • Handheld Applicatio​n Loader Wizard has encountere​d a problem and needs to close

    I encountered the problem while using BlackBerry Desktop Software Version 6.1.0.35 with my Torch 9800. After I clicked the "Applications" button on the Desktop Software window, I got the pop-up window bearing the subject message. Additional info from

  • Got confirmation of my iTunes gift cards shipping (for iPhone refund)

    Just got the e-mail: Hello Christopher, We wanted to let you know that your order has shipped. If you ordered multiple items, you may receive separate shipments with no additional shipping charges. All shipments except those delivered by the U.S. Pos