Error in Query input variable

Hello Experts
I have a query which has input variable 0I_FPER for Fiscal year period and takes interval as input.
when i try to select values i get following error. i have tried different inputs
"Characteristic Fiscal year/period has no master data for "003.2010" "
I tried creating new input variables and still get same ptoblem for TO value put in.
Please help.
Thanks in advance
Regards
Sudeep

Hi
I am using 0FISCPER infoobject for restriction, master data table for this is T009B.
i even tried to rebuild this using tranfer global setting s option but problem still exists.
0FISCPER object has no SID table.
Moreover this report work fine using RSRT but give error at inputs when i run it over web.
I am still facing same problem
Please help
Regards
Sudeep
Edited by: Sudeep Paranjape on Dec 27, 2010 10:50 AM

Similar Messages

  • Performance issues with query input variable selection in ODS

    Hi everyone
    We've upgraded from BW 3.0B to NW04s BI using SP12.
    There is a problem encountered with input variable selection. This happens regardless of using BEx (new or old 3.x) or using RSRT. When using the F4 search help (or "Select from list" in BEx context) to list possible values, this takes forever for large ODS (containing millions of records).
    Using ST01 and SM50 to trace the code in the same query, we see a difference here:
    <u>NW04s BI SQL command</u>
    SELECT                                                                               
    "P0000"."COMP_CODE" AS "0000000032" ,"T0000"."TXTMD" AS "0000000032_TXTMD"                             
    FROM                                                                               
    ( "/BI0/PCOMP_CODE" "P0000" ) LEFT OUTER JOIN "/BI0/TCOMP_CODE" "T0000" ON  "P0000"."COMP_CODE" = "T0000
      "."COMP_CODE"                                                                               
    WHERE                                                                               
    "P0000"."OBJVERS" = 'A' AND "P0000"."COMP_CODE" IN ( SELECT "O"."COMP_CODE" AS "KEY" FROM              
      "/BI0/APY_PP_C100" "O" )                                                                               
    ORDER BY                                                                               
    "P0000"."COMP_CODE" ASC#                                                                               
    <u>BW 3.0B SQL command:</u>
    SELECT ROWNUM < 500 ....
    In 3.0B, rownum is limited to 500 and this results in a speedy, though limited query. In the new NW04s BI, this renders the selection screen unusable as ABAP dumps for timing out will occur first due to the large data volume searched using sequential read.
    It will not be feasible to create indexes for every single query selection parameter (issues with oerformance when loading, space required etc.). Is there a reason why SAP seems have fallen back on a less effective code for this?
    I have tried to change the number of selected rows to <500 in BEx settings but one must reach a responsive screen in order to get to that setting and it is not always possible or saved for the next run.
    Anyone with similar experience or can provide help on this?

    here is a reason why the F4 help on ODS was faster in BW 3.x.
    In BW 3.x the ODS did not support the read mode "Only values in
    InfoProvider". So If I compare the different SQL statements I propose
    to change the F4 mode in the InfoProvider specific properties to
    "About master data". This is the fastest F4 mode.
    As an alternative you can define indexes on your ODS to speed up F4.
    So would need a non-unique index on InfoObject 0COMP_CODE in your ODS
    Check below for insights
    https://forums.sdn.sap.com/click.jspa?searchID=6224682&messageID=2841493
    Hope it Helps
    Chetan
    @CP..

  • Dynamic Query Input Variables / Dynamic Reporting Ouput

    Hi All,
    Overall Architecture :
    Front End : Webpshere Portal
    Middle Tier : Webpshere Application Server
    Reporting Presentation Layer : Business Objects Reports (The reports will use the BEX query as a datasource)
    Reporting DataSource = BEX Query
    I am trying to build a BEX query based on the following. I have a sales ODS that shows the following data. Based on a user's selection, the report should return the corresponding data. What would be the best way to tackle something
    like that ? Thanks all or your help !
    Example :
    SALES ODS :
    Customer -
    Sales $ - Rebate Indicator---Refund Indicator-----Equipment Indicator
       Apple -
    1000--False False--
    False
       Apple -
    10--True -  False--
    False     
       Apple -
      50--False True--
    False
       Apple -
    40--False False--
    True
    QUERY INPUTS #1 :
    Customer Site             = Apple
    Rebate Indicator       = True
    Refund Indicator       = True
    Equipment Indicator     = False
    QUERY RESULT :
    Customer -
    Sales $
       Apple -
         1060
    QUERY INPUTS #2 :
    Customer Site              = Apple
    Rebate Indicator        = False
    Refund Indicator        = True
    Equipment Indicator      = False
    QUERY RESULT :
    Customer----
    Sales $
       Apple----
    1050

    Hi Nigel ,
    Instead of creatin query on ODS u should create on Cube .
    ODS Data :
    Customer -
    Sales $ - Rebate Indicator---Refund Indicator-----Equipment Indicator
    Apple -
    1000--False False--
    False
    Apple -
    10--True - False--
    False
    Apple -
    50--False True--
    False
    Apple -
    40--False False--
    True
    Cube data :Would get aggregated depend on Customer and other similar charatoristic.

  • Query input variable issue

    Hi experts,
    We are using BEx 3.5.
    1.We defined a RKF such that restricting the 0deb_cre_lc on Fiscal Year/period and restricted Fiscal Year/Period with a mandatory variable and the condition is <= ( Less than or equal to ).
    When we execute a query a input screen will come asking to enter a Fiscal Year/Period.
    Its a mandatory field.As per our client only 16 periods are defined and the fiscal year variant is V3.
    Periods are from 001 to 016.
    User will be entering like 001.2005 or 012.2008 like that.So in the output we will be getting the balance
    i.e 0deb_cre_lc amount less than or equal to the user entered fiscal year/period.
    But when user enters 234.2008 or any other wrong value which is other than 001 to 016 the report should
    not be executed.But now it is executing.
    Is there any possibility such as if user enters any period out of the range 001 to 016 then the report
    should not be executed. or show any error message. Or Is there any possibility such that if user enters
    only the values which are in the infoprovider then only the report should be executed.
    For the above requirement, please check whether the following code matches or not. But the code is not
    working.
    Tables: /BIC/AZSM_DSO00.
    data: begin of zfisc occurs 0,
    fiscper(7),
    end of zfisc.
    Data WA_I_T_RANGE like line of I_T_VAR_RANGE.
    If i_step = 3.
    Case i_vnam.
    WHEN 'TEST_FCE'.
    SELECT FISCPER FROM /BIC/AZSM_DSO00 INTO table ZFISC where FISCPER = /BIC/AZSM_DSO00-FISCPER.
    READ TABLE I_T_VAR_RANGE INTO WA_I_T_RANGE WITH KEY VNAM = 'TEST_FCE' .
    *READ TABLE ZFISC with key fiscper = WA_I_T_RANGE-LOW.
    IF ZFISC CA WA_I_T_RANGE-LOW.
    IF sy-subrc EQ 0.
    exit.
    else.
    CALL FUNCTION 'RRMS_MESSAGE_HANDLING'
    EXPORTING
    i_class = 'CD'
    i_type = 'E'
    i_number = '121'
    i_msgv1 = 'Enter Correct value for FISCPER'
    EXCEPTIONS
    dummy = 0
    OTHERS = 0.
    RAISE no_processing.
    ENDIF.
    ENDIF.
    Endcase.
    Endif.
    Please check the code and let me know if i have done any mistakes.
    Regards,
    smitha.

    Have done the specified changes. The code is as follows. But it is not working.
    Tables: /BIC/AZSM_DSO00.
    data: begin of zfisc occurs 0,
    fiscper(7),
    end of zfisc.
    data: text(12) type c.
    text = text-001.
    Data WA_I_T_RANGE like line of I_T_VAR_RANGE.
    If i_step = 3.
    Case i_vnam.
    WHEN 'TEST_FCE'.
    *SELECT FISCPER FROM /BIC/AZSM_DSO00 INTO table ZFISC where FISCPER = /BIC/AZSM_DSO00-FISCPER.
    SELECT FISCPER FROM /BIC/AZSM_DSO00 INTO table ZFISC.
    READ TABLE I_T_VAR_RANGE INTO WA_I_T_RANGE WITH KEY VNAM = 'TEST_FCE' .
    READ TABLE ZFISC with key fiscper = WA_I_T_RANGE-LOW.
    *IF ZFISC CA WA_I_T_RANGE-LOW.   commented this
    IF sy-subrc EQ 0.
    exit.
    else.
    CALL FUNCTION 'RRMS_MESSAGE_HANDLING'
    EXPORTING
    i_class = 'CD'
    i_type = 'E'
    i_number = '121'
    i_msgv1 = text
    EXCEPTIONS
    dummy = 0
    OTHERS = 0.
    raise again.
    RAISE no_processing.
    *ENDIF.  commented this
    ENDIF.
    Endcase.
    Endif.
    The structure of table /BIC/AZSM_DSO00. It is having 96 fields. Short des is 'ODS Object ZSM_DSO : Active Records'
    Regards,
    smitha.

  • Error when initializing input variable

    While trying to create a copy rule for the " assign " activity i get the
    "exception: could not retrieve message parts"
    has anybody seen this eorro before. Please help.
    Thanks

    Check out your MessageType 'n XSD(if its there).of that variable.
    May be something is worng with messageType or schema.
    /mishit

  • Error while running a query-Input for variable 'Posting Period is invalid

    Hi All,
    NOTE: This error is only cropping up when I input 12 in the posting period variable selection. If I put in any other value from 1-11 I am not getting any errors. Any ideas why this might be happening?
    I am getting the following error when I try and run a query - "Input for variable 'Posting Period (Single entry, mandatory)' is invalid" - On further clicking on this error the message displayed is as follows -
    Diagnosis
    Variable Posting Period (Single Value Entry, Mandatory) is used as a lower limit (X) and an upper limit () in an interval selection. This limit has the value #.
    System Response
    Procedure
    Enter a different value for variable Posting Period (Single Value Entry, Mandatory). If the value of the other limit is determined by another variable, you can change its value also.
    Procedure for System Administration

    OK.
    Well, if the variable is not used in any interval selection, then I would say "something happened to it".
    I would make a copy of the query and run it to check if I get the same problem with period 12.
       -> If not, something is wrong in the original query (you can proceed as below, if changes to original are permitted).
    If so, then try removing the variable completely from the query and hardcode restriction to 12.
       -> If problem still persists, I would have to do some thinking.
    If problem is gone, then add the variable again. Check.
       -> If problem is back, then the variable "is sick". Only quick thing to do, is to build an identical variable and use that one.
    If problem also happens with the new variable, then it's time to share this experience with someone else and consider raising an OSS.
    Good luck!
    Jacob
    P.S: what fisc year variant are you using?
    Edited by: Jacob Jansen on Jan 25, 2010 8:36 PM

  • Error on a input ready query

    Hello SAP Gurus,
    Can anybody advise on the following error of an input ready query?
    u2022 Error reading the data of InfoProvider ZIPNA002 - Notification Number DBMAN 305
    u2022  Error while reading data; navigation is possible - Notification Number BRAIN 289
    u2022 System error in program CL_RSPLS_PLAN_DATA and form GETREQ_FREE-01- (see long text ) - Notification Number BRAIN 299
    The query is based on an aggregation level (integrated planning)
    The filter has a navigation attribute variable for the characteristic 0WBS_ELEMT__0PROJECT Project definition and in the line a list of 0WBS_ELEMT PEP elements should be displayed for planning.
    We are with support package SAPKW70017 SAP NetWeaver BI 7.0
    Thanks and best regards,
    Patrícia

    Hi Patrícia
    first check in transaction SNOTE that there are no inconsistent notes (no lightning icons). If not, tell your basis team to fix it.
    Then check in transaction SPAU that there are no inconsistent objects (everything must be green). If not, tell your basis team to fix it.
    Next implement all notes that are listed as "side effects" in note SAP note 1101187 .
    Finally, generate the plan query  again in transaction RSRT. b
    Regards,
    Marc
    SAP NetWeaver RIG

  • Want to See Selected Input Variables in the query output

    Hi al
    My client gives a requirment like they want to see selected variables in the query output. Like suppose if i am  entering Profit center, controlling area, version, caldayas a input on the screen. Now they want to see only Profit center and version on the query result.
    Please let me know if any one has this solution.
    Regards,
    Amit Shetye

    Hi
    Can you please give us user requirement and according to ure requirement so we given replies . If ure requirement please explain detail
    But it is not neccessary that we can put something in free char and all. Inspite of that they wanted to select the input variable as per their requirement. They dont want to restrict them in Free char.

  • PartnerLink Input Variable initialization error for xsd:any datatype

    I have a web service which use the xsd:any for the message type( segment of the wsdl given below):
    - <message name="post_ps_apg_services0Request">
    <part name="fa_form" type="**xsd:any**" />
    </message>
    <portType name="ps_services_wsPortType">
    - <operation name="post_ps_apg_services">
    <input name="post_ps_apg_services0Request" message="tns:post_ps_apg_services0Request" />
    <output name="post_ps_apg_services0Response" message="tns:post_ps_apg_services0Response" />
    </operation>
    <binding name="ps_services_wsBinding" type="tns:ps_services_wsPortType">
    <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" />
    - <operation name="post_ps_apg_services">
    <soap:operation soapAction="" style="rpc" />
    - <input name="post_ps_apg_services0Request">
    <soap:body use="literal" namespace="ps_services_ws" />
    </input>
    - <output name="post_ps_apg_services0Response">
    <soap:body use="literal" namespace="ps_services_ws" />
    </output>
    </operation>
    <service name="ps_services_ws">
    - <port name="ps_services_wsPort" binding="tns:ps_services_wsBinding">
    <soap:address location="http://spider.apollogrp.edu:4400/sst/runtime.asvc/ps_services" />
    </port>
    </service>
    I have created a Partnerlink Invoke_ps_apg_services with Input Variable 'Invoke_ps_apg_services_post_ps_apg_services_InputVariable'.
    During Compilation of the process I get the following exception:
    Error: Couldn't initialize variable.
    Error occurred while initializing BPEL variable "Invoke_ps_apg_services_post_ps_apg_services_InputVariable" at line 51, the schema processor could not find type "{http://www.w3.org/2001/XMLSchema}any" for part "fa_form", in the following schemas:
    Schema 0 ---> namespace=http://edu.apollogrp.ws.ps_services/Ips_services_ws.xsd
    location=file:/C:/BPELProjects/FAPP/FAPP_PS_Service/bpel/PostFAFormsPSSchema.xsd.__OAUX_GENXSD_.TOP.XSD
    Schema 1 ---> namespace=http://xmlns.oracle.com/pcbpel/adapter/jms/
    location=file:/C:/BPELProjects/FAPP/FAPP_PS_Service/bpel/jmsAdapterInboundHeader.wsdl.__OAUX_GENXSD_.TOP.XSD
    Schema 2 ---> namespace=null
    location=file:/C:/BPELProjects/FAPP/FAPP_PS_Service/bpel/FAPPService.wsdl.__OAUX_GENXSD_.TOP.XSD
    Please make sure that the type "{http://www.w3.org/2001/XMLSchema}any" is valid in your wsdl.
    Has anyone have seen this error ? What is the fix/workaround ?
    Thanks in advance

    The "any" type is not defined in the standard http://www.w3.org/2001/XMLSchema namespace. Try changing the type name to "anyType" and it should not give that error anymore.
    The valid types defined under that namespace are located at [http://www.w3.org/TR/xmlschema-2/#built-in-datatypes|http://www.w3.org/TR/xmlschema-2/#built-in-datatypes].

  • Query migration - Variable error

    Hi,
      I'm trying to migrate this query from 3.5 to 7.0 when I get the follwoing error.
    SAP Supplied variable 0S_CTELM(Campiagn Element). I'm using this to restrict a characteristic "Campaign". There is a hierarchy that needs to be in place.
    THis query does not throw any errors in 3.5. I'm also able to execute it in both 3.5 and 7.0 Analyzers.
    However, when I check the query in 7.0 designer, I get the following error.
    [E026(R9E)] Errors: Default Values 'Drilldown characteristic' 'Campaign' are not permitted for display hierarchy '[Hierarchy Name]'.
    Any suggestions?
    Thanks
    S Gopalan

    Maybe there was no key date set for your query in the query properties.

  • Report based on query w/ input variable

    Hi,
    How can i do a sql report on APEX with an input variable (:P1).
    In my tests i've created a sql report then added one text box to the page with name (P1).
    When i execute the report it gives me the text box, then i insert the value, press enter and it gives me the result No data found. If i activate the debug i can see, :P1=P1="xpto", so the text box is working fine, but why the report is not generated/displayed?
    Thanks In advance

    When i activate the debug mode this is what i get.
    As you can see it seems that the binding is working and it also seems that the query is done because of the message rows loop: 15 row(s), but it doesn't apear any result in the page.
    0.06: Computation point: BEFORE_BOX_BODY
    0.06: Processing point: BEFORE_BOX_BODY
    0.06: Region: Search
    Search
    0.06: Item: P606_FILENAME TEXT
    Search Filename
    0.06: Item: P606_GO BUTTON
    0.06: Region: Files &P606_TEXT.
    Files Ola
    0.06: Item: P606_TEXT HIDDEN
    0.07: show report
    0.07: determine column headings
    0.07: parse query as: ADMINSTI
    *0.08: binding: ":P606_FILENAME"="P606_FILENAME" value="FLAP_090909.251"*
    0.08: print column headings
    *0.08: rows loop: 15 row(s)*
    no data found
    0.08: Computation point: AFTER_BOX_BODY
    0.08: Processing point: AFTER_BOX_BODY

  • Anding of the Input Variables in a BEx Query

    Hello,
    I have following scenario: If the report is executed by user1, then one set of shipto's should be visible (also if that user enters a valid shipto, then only that should be visible) AND if the report is executed by user2, then any shipto's should be visible.
    If I take two input variables for Shipto, one of them I give to user for input and the other I populate in the exits (I_Step = 1) by checking the user type and populate the 2nd input variable accordindgly then the list of shipto's for that user is given.
    The PROBLEM occurs when the user also enters a Shipto, then the Output shows: List of Shipto's derived thru the exit plus the ones that user has entered, WHEREAS it should be that if the user has entered a Shipto then only that should be visible, i.e. it should be an 'AND' operation not 'OR' between two variables.
    I hope this can be achieved by some way. If you have an idea about the same, it will be of Great Help.
    Many thanks for your help.
    Best Regards,
    Sumita

    Hi Sumita,
    I think concept Valueset can be used here.
    You define your values of "shipto" for user in a table and than accordingly you can use this in BEx.
    I will see if I can find some more solutions.
    Hope this helps.
    Regards,
    Ashish

  • ERROR while querying ACM driver's information

    I am using following scheme to transmit sound over network:
    file -> input datasource -> processor -> output datasource -> RTPManager -> network
    File from which i am transmitting is temporary. I am create this file before transmit and delete it after.
    1. Application starts
    2. I am perform transmit first time - everything fine, but in std otput i see message "ERROR while querying ACM driver's information".
    3. I am perform transmit second time - everything fine, but file that i am created for transmitting stays locked by JMF for about 20 minutes.
    4. Any transmit after "ERROR while querying ACM driver's information" locks input file for about 15-20 minutes.
    Any suggestions will be appreciated.
    Thanks for advance!

    I can't download your code RAR, so can you just post the code you're using to handle the shutdown? (and please use the code tags)Thanks for anwser. There is entire test code i wrote (code with "mutex" variable is not nessesary, i wrote it just for clearer output):
    import javax.media.*;
    import javax.media.format.AudioFormat;
    import javax.media.protocol.ContentDescriptor;
    import javax.media.protocol.DataSource;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.io.File;
    import java.nio.channels.FileChannel;
    public class Test {
        public static void main(String[] args) {
            File sourceFile = new File("1.wav");
            for (int i = 0; i < 3; i++) {
                System.out.format("Try number %d\n", i);
                File tempFile;
                try {
                    tempFile = File.createTempFile("TestTemp", ".wav");
                } catch (IOException e) {
                    System.err.format("Cannot create temporary file %s \n", e);
                    return;
                if (!copyFile(sourceFile, tempFile)) {
                    return;
                DataSource ds;
                try {
                    ds = javax.media.Manager.createDataSource(new MediaLocator("file:" + tempFile.getPath()));
                } catch (Exception e) {
                    System.err.format("Cannot create datasource %s \n", e);
                    return;
                Format[] formats = new Format[1];
                formats[0] = new AudioFormat(AudioFormat.ULAW_RTP, 8000, 8, 1);
                ProcessorModel prm = new ProcessorModel(ds, formats, new ContentDescriptor(ContentDescriptor.RAW_RTP));
                Processor processor;
                try {
                    processor = Manager.createRealizedProcessor(prm);
                } catch (Exception e) {
                    System.err.format("Cannot create processor %s \n", e);
                    return;
                processor.close();
                Object mutex = new Object();
                synchronized (mutex) {
                    try {
                        mutex.wait(1000);
                    } catch (InterruptedException e) {
                        System.err.format("Thread interrupted, try number " + i + "\n");
                        return;
                if (!tempFile.delete()) {
                    System.err.format("Cannot delete temporary file, try number " + i + "\n");
                System.out.format("Try end number %d\n", i);
        public static boolean copyFile(File sourceFile, File destFile) {
            FileChannel source = null;
            FileChannel destination = null;
            try {
                source = new FileInputStream(sourceFile).getChannel();
                destination = new FileOutputStream(destFile).getChannel();
                destination.transferFrom(source, 0, source.size());
            } catch (Exception e) {
                System.err.format("Error while copying files %s \n", e);
                return false;
            finally {
                if (source != null) {
                    try {
                        source.close();
                    } catch (IOException e) {
                        System.err.format("Error while trying close source file %s \n", e);
                if (destination != null) {
                    try {
                        destination.close();
                    } catch (IOException e) {
                        System.err.format("Error while trying close destination file %s \n", e);
            return true;
    }I have figured out that if i continue to try deleting files used by processor (that already closed) while program is running, files will be deleted after ~15 minutes. I have figured out this while testing my main application. This test app also may be modified to reproduce this behaviour. If you want, i can submit a modified test code to reproduce this behaviour.
    If JMF is maintaining a file lock, then I assume you've improperly shutdown the processor / datasink...About resource deallocation. First, there is no datasink i have been created manually (may be jmf create it internally, but i dont think so). In my test application i've been created only input datasource and processor. I have tried deallocate datasource also, but this is dont have any effect. In JMF reference we can see this description of method Processor.close():
    "Releases all resources and cease all activity."
    I think this is enough to call Processor.close() to deallocate input file, is that right?

  • Use of Input Variables in SQL-Queries Sometimes Not Possible

    Only in simple SELECT-statements the use of input variables ([%0], [%1], etc.) work without problems.
    In more complex queries the use of these variables is not possible (e.g. SELECT-statements with sub-queries, sometimes when UNION is used - but I couldn't find any general rule when the problems will arise; sometimes two different queries with the same query-structure behave in different ways when these variables are used).
    In these cases the query is not executed - not even the input-window to enter values into the input variables is displayed. The query stops with some strange error-messages in the status line. These error-messages doesn't have any relation to the actual query - sometimes it refers to field-names never used in the query or refers to syntax error which do not exist.
    If the input variables are replaced by constant values there are no problems so there can't be any syntax errors - the only difference is the presence or absence of input variables.
    Example:
      provided that the queries have a certain complexity
      SELECT ...
      FROM   ... OINV Tx ...
      WHERE  ... Tx.DocDate >= [%0] ...
      does not work,
      SELECT ...
      FROM   ... OINV Tx ...
      WHERE  ... Tx.DocDate >= '1.1.2007' ...
      works!
    Does anybody have run into the same problem and now if it is a bug of SAP-BO or an error on behalf of the user? Does anybody know a way to correct the problem?
    Thanks in advance!
    Frank
    By the way: Are there any rules where exactly input variables can be used in a query?
    Only in SELECT-statements? Where there exactly?
    In statements outside of SELECT?

    Only SAP Partners Can access service.sap.com/notes, but I think it is possible to search in them from the customer portal as well.
    Here are summary of the two notes mentioned before this:
    730960:
    <i>
    The following query is an example for how to define variables in long
    queries rather than using "Fixed Declares".
    You need to use exactly the same template as follows, do not delete
    "comments" from this query.
    The only changes you need to do :
    1. In the first and in the fifth rows you need to select the table to which you would like to relate the variable e.g. in this example, the variable is related to the table VPM1 - 'Payments to Vendors - Rows'.
    2. In the fourth and in the eighth rows you need to select the field to which you would like to define the variables e.g. in this example, the variable is the field 'DueDate'.
    /SELECT FROM [dbo].[VPM1] T0/
    declare  @fromdate as datetime
    /* WHERE */
    set @fromdate = /* T0.DueDate */ '[%0]'
    /SELECT FROM [dbo].[VPM1] T1/
    declare  @tilldate as datetime
    /* WHERE */
    set @tilldate = /* T0.DueDate */ '[%1]'
    select  OVPM.docnum, VPM1.dueDate,VPM1.CheckNum, VPM1.Branch,
    VPM1.BankCode, VPM1.CheckSum, OVPM.CardName,
    case
    when OPCH.docnum is null then VPM2.docEntry
    else OPCH.docnum
    end as 'docnum'
    from OVPM INNER join VPM1 on OVPM.docnum = VPM1.docnum
    left join  VPM2 LEFT JOIN OPCH ON VPM2.DocEntry = OPCH.DocEntry
    on OVPM.docnum = VPM2.docnum
    where OVPM.Canceled = 'N' AND VPM1.DueDate >=@fromdate AND
    VPM1.DueDate <=@tilldate
    </i>
    955295:
    <i>
    Using SAP Business One Survey Variables (parameters) in a 'Set' SQL Statement can give an error in the Query Generator.
    For Example:
    Declare @Num as numeric(2)
    Set @Num = [%0]
    Select T0.DocNum
    From ORDR T0
    Where DocNum = @Num
    Other terms
    query, SQL, parameter, survey, variable, query generator, set, declare, [%0], table, error, SAP Business One
    Reason and Prerequisites
    FAQ
    Solution
    In such cases you need to put in an SQL remark statement a reference field in the DB for the Survey Variable (any field).
    For Example: (to make the above query work)
    Declare @Num as numeric(2)
    Set @Num = /* T0.DocNum */ [%0]
    Select T0.DocNum
    From ORDR T0
    Where docnum = @Num
    </i>

  • Report error with the input form using the VC BI integration wizard

    Hello All,
    I've created a report using the BI integration wizard in visual composer. I've configured the query with the 'Free Form' query template also I've defined the filters there. This is working fine and giving me the report output. When I deploy this , I could see
    a start point for the data service.
    But instead of the start point with the default values for the filters , I want to have an input form for the users to enter the field values. I added the input form in place of start point. But it's not working even though it doesn't give any error while deploying this report. It gives the following error when I run this report.
    " Data service error occurred,cannot execute OLAP queryCannot get data set: Cannot get data set".
    Could anybody help on this.
    Thanks
    Alok

    Hi Sandeep,
    I'm already draging it from the query input port. Are you referring a different way? How I could have the input variables in the query which I'm creating using the BI integration wizard.  To get this input variable I'm trying to add the input form.
    Am I doing anything wrong here ?
    Pls help.
    Thanks
    Alok

Maybe you are looking for

  • Empty init() methods

    I am currently working on and cleaning up (old) Java servlet code that I inherited from another collegue. In a lot of the servlets, I find empty init() methods like: public void init() { }As a novice to Java servlets, I have just been reading the Fir

  • Uploaded Images

    Greetings, Sorry for the noobness, but when one wishes to use an image as an item in a region (contenttype->image), it says to either browse for it, or to enter it's internal filename. Is there a way of viewing these already uploaded images in some s

  • Business partner is used

    Hi Friends, How to check whether  The given business partner number is still used in other transactions in CRM. In which table I can find these detail.  Can any one give some suggestions please. Thanks Shree

  • AT END OF not working?

    LOOP AT itab_opltext1 WHERE aufnr = itab_header-aufnr AND  txtid = 'AVOT'. New Text Starts .           ON CHANGE OF itab_opltext1-tname.             first = 'X'.           ENDON.           DATA: v_opno(4).           v_opno = itab_opltext1-opno.      

  • Update record failed with "SPOC 003: Error in spool C call: Error from TemS

    Guys I have 4.7 production system with 4 dialog instance The logon groups are configured . For 1 of the application server ,when user does any PO or GR ,update fails with above message The spool is configured to stored on file . SM21 says read /write