Optional parameter workaround  -  dates problem

Hi
I use  optional parameter workaround  and it's fine.
but how I should use it with dates parameter or numbers ?
SAP note 1500777. This describes a workaround :
((not HasValue({?itemcode@select itemcode from OITM })
or isNULL({?itemcode@select itemcode from OITM })
or {?itemcode@select itemcode from OITM } = '')
OR {OITM.ItemCode} = {?itemcode@select itemcode from OITM })
Regards
Idan

Hi,
Optional parameter is not supported.
What I did was, I have 2 date parameter. pmDateFrom and pmDateTo.
In Crystal report record selection, OINV.DocDate in pmDateFrom to pmDateTo.
When running within SAP B1 8.8, if I want to include every dates, I put in a date in pmDateFrom (eg: 1/1/00) and do not enter anthing for pmDateTo.
That seems to work.

Similar Messages

  • Java Exception:The relationship ID is not an optional parameter

    Hi Experts,
    We are in SRM-MDM Catalog 3.0.
    When we click a item's short description in catalog search result list to open the item detail, the new screen opened with a internal server error. And the error summary is "java.lang.NullPointerException: The relationship ID is not an optional parameter." I have validated the XML mapping, I can not find any fields which were used for the "relationship ID".
    The SAP notefound in a forum is for SRM MDM Catalog 3.0 SP02 but we are using SRM MDM Catalog 3.0 SP09.Can anyone
    please advise.
    Below is error
    500 Internal Server Error
    SAP NetWeaver Application Server 7.00/Java AS 7.00
    Failed to process request. Please contact your system administrator.
    Hide
    Error Summary
    While processing the current request, an exception occured which could not be handled by the application or the framework.
    If the information contained on this page doesn't help you to find and correct the cause of the problem, please contact your system administrator. To facilitate analysis of the problem, keep a copy of this error page. Hint: Most browsers allow to select all content, copy it and then paste it into an empty document (e.g. email or simple text file).
    Root Cause
    The initial exception that caused the request to fail, was:
    java.lang.NullPointerException: The relationship ID is not an optional parameter. at com.sap.mdm.data.commands.RetrieveRelationshipsCommand.execute(RetrieveRelationshipsCommand.java:91)
    at com.sap.mdm.extension.data.commands.RetrieveRelationshipsExCommand.execute(RetrieveRelationshipsExCommand.java:43)
    at com.sap.srm.mdm.Model.getRelationships(Model.java:3510)
    at com.sap.srm.mdm.Model.updateRecordRelationships(Model.java:3683)
    at com.sap.mdm.srmcat.uiprod.ItemDetails.displayFixedItemDetails(ItemDetails.java:6047)
    ... 34 more
    Regards
    Sunil

    Hi Sunil,
    when we upgrade the MDM system we also need to upgrade the java components .
    Only the Internal Catalogs use the name searches / masks which are stored in the MDM system .
    Please re check the Java Component upgrade . May be a few of the componenets are not upgraded properly .
    Let me know your finidings .
    Regards,
    Vignesh

  • System.MissingMethodException after adding an optional parameter

    I am getting error of System.MissingMethodException after I have an optional parameter in one component and the other component which call it was not build as it call it with old number of parameters.
    Only component in which parameter is added was build an deployed as patch. The calling component is old as there is no change in it.
    When the calling component run it gives error :
    Exception Information
    Exception Type: System.MissingMethodException Message: Method not found: 'LabelURLs IPSD.BnB.Transaction.Postage.GetLabelURLs(System.String)'. Data: System.Collections.ListDictionaryInternal TargetSite: Void GenerateScanForm(Int32, Int32) HelpLink: NULL Source:
    BnBDispenseQueueProcess
    As far as i know it should not raise an error as new parameter is optional. One more thing calling component(EXE) run as windows service.
    we found an very wired workaround to make it run. By Removing the changed component once and run calling component which will say DLL not found. The place the same DLL again and calling component works fine:).
    I think i am missing some internals of .net.
    Let me know if more info needed.

    Hi, 
    Type with only optional parameter constructor and no parameter less, will throw this exception when trying to create through Activator.CreateInstance
    This issue is addressed here,
    http://connect.microsoft.com/VisualStudio/feedback/details/521722/system-activator-createinstance-throws-system-missingmethodexception-with-constructor-containing-an-optional-parameter  
    Is your component only have optional parameter constructor? 
    If this post answers your question, please click "Mark As Answer". If this post is helpful please click
    "Mark as Helpful".

  • Help needed with missing data problem in CRVS2010

    We recently upgraded the reporting engine in our product to use Crystal Reports for Visual Studio 2010 (previously engine was CR9). Our quote report, which has numerous subreports and lots of conditional formatting, started losing data when a quote took more than a single page to be printed. We knew the SQL results included the data, but the report was not printing those lines at all or sometimes printing a partial line. In addition, the running total on the report would exclude the lines that were being missed on the next page. In one example submitted by a customer, 3 lines were skipped between pages.
    I think I have identified two potential issues that document the possibility of data not being included in the report.
    The first potential issue is an issue with the "suppress blank section" option being checked. This issue is supposedly fixed with ADAPT01483793, being released someday with service pack 2 for CRVS2010.
    The second potential issue is using shared variables. This issue is supposedly fixed with ADAPT01484308, also targeted for SP2.
    Our quote report does not explicitly use shared variables with any of the subreports, but it does have several subreports, each in its own section that has the "supress blank section" option checked. We have other reports that use this feature, as well, and they are not exhibiting the problem.
    One different thing about the quote report is that it has a section with multiple suppression options selected. The section has a conditional suppression formula, which controls whether the section is included at all within the report. The section also has the suppress blank section option selected. There are multiple fields within the report that are each conditionally suppressed. In theory, the section's suppress formula could evaluate to true, yet all of the fields within the section are suppressed (due to null values), and then the "suppress blank section" option would kick in.
    The missing data only seems to happen when the section is not being suppressed, and at least one of the fields is being included in the report. If I clear the "suppress blank section" check box, and change the section formula to also include the rules applied to the fields in the section, the missing data problem seems to be resolved.
    Is this related to ADAPT01483793? Will it be fixed in service pack 2?
    If more details are needed, I would be happy to provide a sample report with stored data.

    Hi Don,
    Have a look at the Record Selection formula in CR Designer ( stand alone ) and when exported to RPT format opening that report in the Designer also. 
    There's been a few issues with => logic in the record selection formula. It could be you are running into this problem. Look for NOT inserted into your selection formula.
    Oh and SP2 is coming out shortly so it may resolve the issue. But if you want you could purchase a support, or if you have a support contract then create a case in SMP and get a rep to work with you to debug the issue.
    If you have not try the Trial Version of CR 2011, put it on a VM-ware image or Test PC so you don't corrupt anything for production and have a look at and test it in that designer also. If you purchase a case and it is a bug then you'll get a credit back for the case.
    Don
    Edited by: Don Williams on Oct 26, 2011 7:40 AM

  • Missing Parameter Values CR2008 Optional Parameter

    Hi,
    I am getting "Missing Parameter Values" error
    "CrystalDecisions.CrystalReports.Engine.ParameterFieldCurrentValueException: Fehlende Parameterwerte. ---> System.Runtime.InteropServices.COMException (0x8004100E)"
    if I try to export a Report with an optional Parameter without setting the parametervalue.
    The Report works fine with ReportViewer.
    If I uncomment the "Parameterpart" and set a parametervalue it works fine, but it should works without a parametervalue too, its optional.
    I have tried many for a long time and read many Websites but it does not work !
    I use WinXP SP2 CR2008 with C# .NET 2.0 VS2005
    CrystalDecisions.CrystalReports.Engine.dll version 12.0.2000.683 Date: 2008-03-01
    CrystalDecisions.Shared.dll version 12.0.2000.683 Date: 2008-03-01
    Sorry my English is very Bad !
    Thanks a lot!
    ExportFormatType ExportType = ExportFormatType.PortableDocFormat;
                ReportDocument RD = new ReportDocument();
                RD.Load("C:\\ParaTest01.rpt");
                string strServer = "<ServerName>";
                string strDB = "<DBName>";
                string strUser = "<UserID>";
                string strPW = "<PW>";
                RD.SetDatabaseLogon(strUser, strPW, strServer, strDB);
                //ParameterFieldDefinitions crParameterFieldDefinitions = RD.DataDefinition.ParameterFields;
                //ParameterFieldDefinition crParameter1 = crParameterFieldDefinitions[0];
                //ParameterValues crParameter1Values = crParameter1.CurrentValues;
                //ParameterDiscreteValue crDiscrete1Value = new ParameterDiscreteValue();
                //crDiscrete1Value.Value = "GER";
                //crParameter1Values.Add(crDiscrete1Value);
                //crParameter1.ApplyCurrentValues(crParameter1Values);
                RD.ExportToDisk(ExportType, "C:\\Test2.pdf");
    RecordSelectionFormula in Report:
    (not HasValue({?Land}) OR {tab.location_code} = {?Land}) and
    {tab.sup} = "XXX" and
    {tab.Accounting_Period} = "200801"

    You need to be careful when using optional parameters. If you are using the optional parameter in a record selection formula you'll need to check and make sure it has a value before you use it. There is a function call HasValue() that you can use to do this.
    If you have an optional parameter in the record selection formula and you don't pass a value you'll need to make sure your selection formula can be completed with out it.
    This is an excerpt from our help file.
    Crystal Reports supports optional parameters. An optional parameter is a prompted value that does not have to be supplied by the user.
    Report designers should provide some guidance to the end user that a parameter is optional by adding this information to the prompt text.
    Optional parameters are treated by Crystal Reports as optional anywhere within the report that they are used. You cannot set one instance of the parameter to optional and another to mandatory.
    Note: After you set a parameter to optional, if you use the Select Expert, the system will automatically add the selection formula for you using the HasValue() function.
    The Formula Workshop Editor does not automatically add the formula. Only the Select Expert automatically adds the formula for you.
    If you change the parameter from optional to mandatory, the HasValue() function is not automatically removed from your formula.
    Handling a parameter with no value
    When the report engine evaluates any formula which references an optional parameter that does not have a value, it generates a runtime error. All formulas that reference an optional parameter should first use the HasValue() function to check if that parameter has a value before evaluating it. This includes record selection formulas and saved data formulas.
    Note: The system will not automatically drop a statement from the SQL WHERE clause. It is the report designeru2019s responsibility to decide which statement to leave out based on HasValue() testing.

  • Optional Parameter in ODSI

    Hi,
    I have to create a Optional Parameter in ODSI function as given following :
    xquery version "1.0" encoding "UTF-8";
    (::pragma xds <x:xds targetType="urn:AddressInfo" xmlns:x="urn:annotations.ld.bea.com" xmlns:urn="http://www.wcbsask.com/employeerCoverage/AddressInfo"><creationDate>2010-10-15T15:19:40</creationDate><userDefinedView/></x:xds> ::)
    declare namespace wbt= "ld:Physical/CBC";
    import schema namespace ns1="http://www.abc.com/employeerCoverage/AddressInfo" at "ld:Logical/AddressInfo/schemas/AddressInfo.xsd";
    declare namespace tns="ld:Logical/AddressInfo/SampleOptional";
    (::pragma function <f:function kind="read" visibility="public" isPrimary="true" xmlns:f="urn:annotations.ld.bea.com"/>::)
    declare function tns:getSampleOptional($formNum as xs:string,$optinalInput as xs:integer?) as element(ns1:AddressInfo)?{
    for $cbc in wbt:CBC()
    where $formNum eq $cbc/FORM_NUM
    return
    <ns1:AddressInfo>
    if(exists($optinalInput))then
    <ns1:regNum>{fn:data($CBC/FORM_NUM)}</ns1:regNum>
    else(
    <ns1:cusNumber>{fn:data($optinalInput)}</ns1:cusNumber>
    </ns1:AddressInfo>
    when i am passing the form number as some value and OptionalInput as null(since the parameter is optional). I am getting error as
    com.bea.dsp.das.exception.DASException: weblogic.xml.query.exceptions.XQueryDynamicException: {err}XP0021: "": can not cast to {http://www.w3.org/2001/XMLSchema}integer: error: decimal: Invalid decimal value: expected at least one digit
         at com.bea.dsp.das.ejb.EJBClient.invokeOperation(EJBClient.java:160)
         at com.bea.dsp.das.DataAccessServiceImpl.invokeOperation(DataAccessServiceImpl.java:171)
         at com.bea.dsp.das.DataAccessServiceImpl.invoke(DataAccessServiceImpl.java:122)
         at com.bea.dsp.ide.xquery.views.test.QueryExecutor.invokeFunctionOrProcedure(QueryExecutor.java:113)
         at com.bea.dsp.ide.xquery.views.test.XQueryTestViewContent.getFunctionExecutionResult(XQueryTestView.java:1041)
         at com.bea.dsp.ide.xquery.views.test.XQueryTestViewContent.executeFunction(XQueryTestView.java:1176)
         at com.bea.dsp.ide.xquery.views.test.XQueryTestViewContent.widgetSelectedImpl(XQueryTestView.java:1866)
         at com.bea.dsp.ide.xquery.views.test.XQueryTestViewContent.access$300(XQueryTestView.java:174)
         at com.bea.dsp.ide.xquery.views.test.XQueryTestViewContent$3.run(XQueryTestView.java:1594)
         at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
         at com.bea.dsp.ide.xquery.views.test.XQueryTestViewContent.widgetSelectedBusy(XQueryTestView.java:1597)
         at com.bea.dsp.ide.xquery.views.test.XQueryTestViewContent.widgetSelected(XQueryTestView.java:1560)
         at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:227)
         at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
         at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
         at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3687)
         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3298)
         at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
         at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
         at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
         at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
         at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
         at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
         at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
         at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
         at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
         at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
         at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
         at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
         at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
         at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
         at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
         at org.eclipse.equinox.launcher.Main.eclipse_main(Main.java:1148)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.m7.installer.util.NitroxMain$1.run(NitroxMain.java:33)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
    Kindly help in the issue.
    Regards,
    Tara

    "when i am passing ... and OptionalInput as null"
    What does that mean exactly? From the exception, it looks like you are just leaving the text box blank. For 'null' you have to check the 'null' check-box beside it.

  • How to set no_value to Optional parameter in XI 3.0 by OpenDoc URL linking

    I found in "BusinessObjects XI 3.0 Viewing reports and documents using URLs Howto.doc"
    "You can remove an optional parameter from the prompt by setting it to no_value in the OpenDocument query string."
    I tested: response.sendRedirect("/OpenDocument/opendoc/openDocument.jsp?sIDType=CUID&iDocID=AaVxpKuKNBxKnHUJCqwuRi0&lsSCountry=""no_value""&token=" + logonToken);
    But it will filter no data, because no country call "no_value". I still need to delete the value, and click Apply, to get all data.
    I wonder how to achieve optional parameter via opendocument linking, to get a report with "full data set".
    Any one can help?
    Thanks in advance!
    Jennie

    Hi Jennie,
    I'm wondering if "1203675 - Cannot specify an empty string for an optional string parameter through the refresh prompts page which displays "no value" unlike the parameter panel" is related to this.
    Instead of using no value or empty string, how about if you use ALL value for the parameter to bring full data? Check "1218621 - Option "All" in list of values for a dynamic prompt in XI"
    Hitomi

  • Optional Parameter - Oracle Package Throws an Error

    Hi there,
    I have an Oracle Package & it has a stored procedure with optional parameter. The calling code is in ColdFusion.
    When I run my webpage the Oracle throws below error.
    " [Macromedia][Oracle JDBC Driver][Oracle]ORA-06550: line 1, column 7: PLS-00306: wrong number or types of arguments in call to 'GET_CONTRACT_BY_DYN_SQL' ORA-06550: line 1, column 7: PL/SQL: Statement ignored "
    Calling Code (ColdFusion)
    <cfstoredproc procedure="CONTRACTS_PKG.GET_CONTRACT_BY_DYN_SQL" datasource="#REQUEST.dsn#">
         <cfprocparam cfsqltype="CF_SQL_INTEGER" type="in" value="1" variable="P_CONTRACTID">     
         <cfprocresult name="qDataDynSQL" resultset="1">
    </cfstoredproc>
    <br>Dynamic SQL Query:
    <cfdump var="#qDataDynSQL#" label="Dynamic SQL Query">
    Oracle Package
    create or replace
    PACKAGE CONTRACTS_PKG AS
    TYPE T_CURSOR IS REF CURSOR;
    PROCEDURE GET_CONTRACT_BY_DYN_SQL(P_CONTRACTID IN NUMBER, P_COLS IN VARCHAR2 DEFAULT '*', IO_CURSOR IN OUT T_CURSOR);
    END CONTRACTS_PKG;
    create or replace
    PACKAGE BODY CONTRACTS_PKG AS
    -- Get Contract Using Dynamic SQL
    PROCEDURE GET_CONTRACT_BY_DYN_SQL(P_CONTRACTID IN NUMBER, P_COLS IN VARCHAR2 DEFAULT '*', IO_CURSOR IN OUT T_CURSOR)
    IS
    V_CURSOR T_CURSOR;
    V_SQL VARCHAR2(200);
    BEGIN
    IF p_contractid > 0 THEN
    V_SQL := 'SELECT '|| P_COLS || ' FROM CONTRACTS WHERE contract_id = ' || P_CONTRACTID ;
    ELSE
    V_SQL := 'SELECT '|| P_COLS || ' FROM CONTRACTS';
    END IF;
    OPEN V_CURSOR FOR V_SQL;
    IO_CURSOR := V_CURSOR;
    END GET_CONTRACT_BY_DYN_SQL;
    END CONTRACTS_PKG;
    Does anyone knows why it throws an error? As you can see in the package header & body the parameter P_COLS has the default value as '*'.
    Looking forward to hear from someone.
    Thanks,
    Hitesh Patel

    931198 wrote:
    I have an Oracle Package & it has a stored procedure with optional parameter. The calling code is in ColdFusion.
    When I run my webpage the Oracle throws below error.Never mind the error - your approach is most definitely a candidate for Oracle WTF.
    Nothing sane about this approach. Especially the decision not to use bind variables and slowing down cursor processing significantly by burning a lot more CPU cycles on hard parsing and fragmenting the SQL Shared Pool in the process.
    Why not used MS Access instead? It is far more suited as a mickey mouse database for a goofy application?
    Why am I badmouthing your approach to Oracle? Because that is exactly the primary cause, the #1 reason, for poor Oracle performance and run-time problems dealing with Shared Pool fragmentation. It is something that many Oracle experts blog about, talk about, write about. It is addressed in numerous books, Oracle documentation, and even Oracle Support Notes.
    And despite the amount of information available on how to get the basics rights in using Oracle... this approach you are pursuing still refuses to die. So it deserves to be beaten with a lead pipe when it rears its ugly head here in this forum..

  • Passing select option parameter to a procedure

    Hello, i need to know pass a select option parameter to a procedure. I tried the following
    For eg if i have a select option called so_belnr & i call the procedure using the following
    PERFORM VALIDATE_DOCUMENT TABLES SO_BELNR USING GJAHR BUKRS  , i still cannot use the
    select option paramter in the called procedure.
    Pls help.

    Hi,
    in topinclude...
    data: lr_belnr type RNG_BELNR.
    at start-of-sel.....
    move so to range..
    refresh: lr_belnr.
    lr_belnr[] = so_belnr[].
    PERFORM VALIDATE_DOCUMENT TABLES lr_belnr USING GJAHR BUKRS .
    in form:
    ...   tables lr_belnr like structure of RNG_BELNR.
    reason(my definietion): perfom doesn´t know if the select-options is availible.....
    bestreg
    Robert

  • A Full DTP is converted into delta DTP and facing some data problem

    Recently Full DTP(DSO to DSO) is converted into delta DTP , we are facing some data problem in first request.Some data in D2 are not updated properly after just converted in full to delta. Please let me know if you have any idea.
    Example :
    DSO : D1
    DSO : D2
    Previously FULL DTP D1->D2
    Now Delta DTP D1->D2

    Hi,
    First time run of delta DTP will extract all the records from the source...
    As u have already run the Full load and followed by delta,i guess u can use direct change log option...
    rgds,

  • OPTIONAL PARAMETER WITH NO VALUE SELECTED

    I have an optional parameter and I want to place the selected value in the Page Header.  Since the selected value is a number, I want to give it a name.  The problem I am having is when I don't select a value, my naming forumula doesn't work.  I tried the HasValue function, but I don't think I'm using it properly.
    // This did not work
    IF {?SUPPLIER}= 10001 THEN "NESTLE PRODUCTS ONLY" ELSE
    IF {?SUPPLIER}= 10005 THEN "UNILEVER PRODUCTS ONLY" ELSE
    "ALL PRODUCTS"
    // This did not work
    If (not hasvalue){?SUPPLIER} then "ALL PRODUCTS" ELSE
    IF {?SUPPLIER}= 10001 THEN "NESTLE PRODUCTS ONLY" ELSE
    IF {?SUPPLIER}= 10005 THEN "UNILEVER PRODUCTS ONLY" ELSE
    "NESTLE AND UNILEVER PRODUCTS ONLY"
    Got any suggestions?

    Hi,
    Well if you select multiple values in a parameter and drag the parameter or the formula containing the parameter, then it would always display the first selected value.
    Here's a dirty way:
    If NOT(HasValue({?SUPPLIER})) then "ALL PRODUCTS" ELSE IF
    ubound({?SUPPLIER}) = 1 then
            IF {?SUPPLIER}= 10001 THEN "NESTLE PRODUCTS ONLY" ELSE
            IF {?SUPPLIER}= 10005 THEN "UNILEVER PRODUCTS ONLY" ELSE
            "NESTLE AND UNILEVER PRODUCTS ONLY"
    ELSE IF
    ubound({?SUPPLIER}) = 2 then
    "NESTLE AND UNILEVER PRODUCTS ONLY"
    Let me know how this goes!
    -Abhilash

  • Optional parameter in QLD

    I am designing qld with the following query-
    SELECT T0.Father, T0.Code, T3.Dscription, T1.CardCode, T1.CardName, T1.DocNum, T3.DocEntry,
    T1.DocDueDate, T3.DocDate,  T0.Quantity AS 'BOM Qty',T2.Quantity AS 'PO Qty', T3.Quantity AS
    'Receipt Qty',t0.Quantity-t3.Quantity as Balance FROM ITT1 T0 , OPOR T1 INNER JOIN POR1 T2
    ON T1.DocEntry = T2.DocEntry, PDN1 T3 WHERE t2.ItemCode=t0.code and  t2.DocEntry
    =t3.BaseEntry AND t2.LineNum = t3.BaseLine
    and t3.InvntSttus = 'O' and  T0.Father like '%[%0]'  and  T1.DocNum = '[% 1]'  and 
    T1.CardName like '%[%2]' and T1.DocDueDate between convert(datetime,'[%3]',112) and
    convert(datetime,'[%4]',112)
    order by t1.DocNum, t3.DocEntry
    I want to make DocNum as optional parameter.But since its data type is numeric I can not use
    T1.DocNum='%[%1]'
    In this case how can I make this numeric field optional.
    Note-The square bracket is replaced by underscore in the above query.For eg,
    '%[%1]'='% Opening square bracket % 1 Closing square bracket '

    Dilip,
    Are you saying that the user entering the DocNum is optional and if they leave the field blank they should still get the result. based on the other selection parameters
    Since you are using DocNum = it will not be possible to have it optional but if you specify it as a range.  example DocNum Between '[%0\]' AND '[%2\]' then we have a chance.
    This is what I have for you to try
    SELECT T0.FATHER, T0.CODE, T3.DSCRIPTION, T1.CARDCODE, T1.CARDNAME, T1.DOCNUM, T3.DOCENTRY, T1.DOCDUEDATE, T3.DOCDATE,
    T0.QUANTITY AS 'BOM QTY',T2.QUANTITY AS 'PO QTY', T3.QUANTITY AS 'RECEIPT QTY', T0.QUANTITY-T3.QUANTITY AS BALANCE
    FROM OPOR T1 INNER JOIN POR1 T2 ON T1.DOCENTRY = T2.DOCENTRY INNER JOIN ITT1 T0 ON T0.CODE = T2.ITEMCODE INNER JOIN
    PDN1 T3 ON T3.BASEENTRY = T2.DOCENTRY AND T3.BASELINE = T2.LINENUM
    WHERE T3.INVNTSTTUS = 'O' AND T0.FATHER LIKE '%[%0\]' AND T1.DOCNUM BETWEEN (CASE WHEN '[%1\]' = '' THEN 0 END) AND  (CASE WHEN '[%2\]' = '' THEN 100 END)
    AND T1.CARDNAME LIKE '%[%3\]' AND T1.DOCDUEDATE BETWEEN CONVERT(DATETIME,'[%4\]',112) AND CONVERT(DATETIME,'[%5\]',112)
    ORDER BY T1.DOCNUM, T3.DOCENTRY
    Note: Change the 0 and 100 with the DocNum range of your purchase order documents
    <FONT Color="RED" Size = 3> Quick tip to avoid the $ and % and [\] getting changed by the interface is to use a " \  " (Backslash) 
    </FONT>
    Example:
    FOR $\[$38.1.0]  use $<FONT Color="RED" Size = 2>backslash</FONT>\[$38.1.0]
    FOR '[%0\]'  use '[%0<FONT Color="RED" Size = 2>backslash</FONT>\]'
    Suda

  • Select-option parameter passed to function module

    hi,
    I have passed the select-option parameter as a table to my function module,
    suppose i have passed it as date(it contains field date-high and date-low)
    In my function module while i am looping the table and selecting the data according to date_low,it is going to select only the data according to date_low.
    since the table contains only one row.
    loop at date.
    select the data according to date_low.
    date_low = date_low +1.
    modify date_low.
    endloop.
    how can i select all the data from date_low and date_high?

    Hi,
    there is issue  design of ur FM .
    You have to put 2 table parametrs or 2 import paremeters in the FM ,after that with in the Function module fill the internal table of type ranges (say itab).
    After filling the ranges internal table, this can be used in ur select stament just as select option ( select ...where podat in itab)
    revrt back if any issues.
    regards,
    Naveen

  • I have a strange 3g data problem.

    I have a strange 3g data problem.  At home I have zero 3G connectivity even though all bars are showing and says "3G" and wifi is "Off" ... unless I am on the phone and then magically the 3G data connection works perfectly!!  Does anyone have any idea what is happening?  Also when I bring my phone to my dad's or my friends house the problem disappears!! Is this a hardware or a AT&T network problem? os is 4.3.3
    Also called ATT and they said there was no problem with the network and that it was a hardware issue.  Also restored the phone several times but the problem did not go away.

    OK, no trouble shooting. The first thing I'd attempt is restarting in Safe Mode. If you still don't have luck try doing both a SMC and PRAM reset, it wouldn't hurt to do the SMC reset a couple of times. If still no luck let us know.
    SMC RESET
    Shut down the computer.
    Unplug the computer's power cord and all peripherals.
    Press and hold the power button for 5 seconds.
    Release the power button.
    Attach the computers power cable.
    Press the power button to turn on the computer.
    PRAM RESET
    Shut down the computer.
    Locate the following keys on the keyboard: Command, Option, P, and R. You will need to hold these keys down simultaneously in step 4.
    Turn on the computer.
    Press and hold the Command-Option-P-R keys. You must press this key combination before the gray screen appears.
    Hold the keys down until the computer restarts and you hear the startup sound for the second time.
    Release the keys.

  • 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

Maybe you are looking for

  • Blue messages problem

    Me and my grandparents have an iphone and we can't get our blue bubble back. We tried turning our iMessages off and then we tried turning our iphone off and nothing worked. We still have the green bubble. How do we get our blue bubbles back??

  • Install issue Solaris 10 9/10 x86

    I have been trying to install solaris 10 on a PC(x86) at house. The disk boots into the install/configure or System Identication. I go though all the steps and at the end just as the PC is to reboot I get the following error. ERROR: The disc you inse

  • Suggestion/opinion in scenario mapping  required-PLEASE

    Hi, I have a typical retail scenario and I seek expert suggestion opinion on this. In a scenario where materials are purchased from different vendors and received. Later they are sold to customer/s through direct selling or mass market  and also sold

  • Help for optional way to work around Flash on my page?

    Hi all: I apologies for my English because is not my first language but here is my story: I created a Website for the company that I work in Dreamweaver and everything it working great but on my first page I created a introduction animation on flash

  • Show PTO BOM item price on pick slip report

    We're an EBS 11.5.10.2 install, and I've created a Kit (PTO Item)-style BOM and am able to successfully order/pick/pack/ship my kit. I've also set the profile option to explode the BOM on order Entry (rather than on Book) so I can see the components.