Query Billing

Hi,
i've created a SAP Query, but i've a problem to join vbrp-aupos with ekpo-ebelp. How can i join the two fields?
Thank you in advance.
Antonio

ok, stating it a bit more detailed:
VBRP-AUBEL  = Number of according related sales order.
VBRP-AUPOS = Number of according related sales order item .
Table EKPO holds Purchase order items. Even if there wouldnt be a problem in field length (SO items have char6 while PO items have char5), this join can never work from the logical view.
If you got a sales order number and an item number it makes no sense to search in table EKPO for them, since the according records are stored in table VBAP.
If you need the PO for your invoice i´d go via table VBFA.
data: lv_vbelv     type vbeln,
         lv_posnv    type pstvy.
select single vbelv posnv
from   vbfa
into    (lv_vbelv, lv_posnv)
where vbeln = vbrp-aubel
and    vbeln = vbrp-aupos
and    vbtyp_n = 'V'.
now you got the EBELN and EBELP in variables LV_VBELV and LV_POSNV.
with these you can goto table ekpo.

Similar Messages

  • Query bill of materials - web service

    Hello,
    When I query the bill of material using the web server QueryProductionBillOfMaterialIn using the FindItemGroupItemChangeStateSimpleByElements operation to retrieve the input products, I get the full list of all input products regardless of the validity date.
    Does anyone know if it is possible to query this web service so that you can filter the result based on the reference date as you do when editing a production BoM?
    Many thanks,
    Paul

    Hello,
    When I query the bill of material using the web server QueryProductionBillOfMaterialIn using the FindItemGroupItemChangeStateSimpleByElements operation to retrieve the input products, I get the full list of all input products regardless of the validity date.
    Does anyone know if it is possible to query this web service so that you can filter the result based on the reference date as you do when editing a production BoM?
    Many thanks,
    Paul

  • Query billing department re subscription debited t...

    Hi, 
    I purchased on 28 May a yearly subscription for calls to Germany. This subscription was somehow debited twice to my credit card, see below.  I most certainly only subscribed once.  Kindly refund the second charge.  Please confirm.
    May 28, 2014
    [removed for privacy]
    Germany 120 mins to landlines 12 months
    Eurocard/Mastercard
    $7.08
    Delivered
    May 28, 2014
    [removed for privacy]
    Germany 120 mins to landlines 12 months
    Eurocard/Mastercard
    Thank you.

    I've personally never had an issue accessing chat.  Had that had happened to me I would have tried at a different time of day possibly using another browser in case that was the issue.  Trying at different times for shorter periods of time would be more productive than waiting an hour especially if there was an issue with your browser or pop-ups.  Two weeks is an ample time to have tried more than once.  If the error was undoubtedly their fault then they may be able to make an exception if a request is still made within a reasonable amount of time.  You may also want to refer them to this Community post so they could see that you have been trying.  This is the Skype Community not Skype Customer Service so there is no direct line to customer service through the Community only sometimes at best,  an indirect one.   Unfortunately there is no direct e-mail support billing address, just like there is no support phone number.   I would suggest you try off/on until a support person responds.  The few clicks it takes to access Skype chat is less convoluted than some other support systems I've used, especially on the phone..

  • Recursive Query - Bills of Materials

    I have a table that list all Parts that have materials (PartMtl table).  Ex. part 1 has materials 2a, 2b, & 2c.  I tie this table to a PartCost table linked on the materials.  So I get costs for 2a, 2b, & 2c.  This works smooth.  Now when I want to go a level deeper, and get 2a's materials, 3a, & 3b.  things get a little more complicated.  Up until this point, I have simply created aliases for the PartMtl & PartCost tables. 
    The problem with this method is I need to build the report with an alias for each table for each level for as many levels as I imagine our materials listings can grow.  This design is shaky at best and does not allow for additional levels.  Is there a way to dynamically create this recursion? 
    Thank you,

    You can base the report on an SQL Command something like (MS SQL):
    declare @level int;
    declare @reccnt int;
    declare @reccnt2 int;
    set @level = 1;
    select @level as level,
      pm.parent,
      pm.component,
      pm.qty_required,
      pc.cost
    into #temp
    from PartMtl pm, PartCost pc
    where pm.parent = '{?item to explode}'
    and pm.component = pc.part_id;
    set @reccnt = 0;
    set @reccnt2 = ( select count(*) from #temp );
    /* loop until no more records inserted */
    while @reccnt <> @reccnt2
    begin
      set @level = @level + 1;
      insert into #temp
      select @level as level,
        pm.parent,
        pm.component,
        pm.qty_required,
        pc.cost
      from #temp t, PartMtl pm, PartCost pc
      where t.level = @level - 1
      and t.component = pm.parent
      and pm.component = pc.part_id
      set @reccnt = @reccnt2;
      set @reccnt2 = ( select count(*) from #temp );
    end;
    HTH,
    Carl

  • Posting date to accounting for billing document

    Dear Experts
    In SD cycle, we have created billing document in first quarter. As per our customization settings the billing document was created with Posting block.
    Now today i.e. in second quarter we want to release this billing document to accounting without opening the posting period for FI/CO. i.e. we want to release the billing document to accounting in current period. How to manage this??
    Also I have another query, Billing document created in first Quarter is having one exchange rate (e.g. EXQ1). Let say current exchange rate is EXQ2.
    Now when we release the same billing document today i.e. in second quarter, which exchange rate will be applicable to that billing document EXQ1 or EXQ2 ??
    Thanx in advance
    Kailash

    Dear Prashant
    It is Posting Date only.  You dont find this field in invoice but you can see in accounting document.  The table is BKPF - Field Name BUDAT.  Once you apply the user exit ZXVVFU01 and click on the green flag in VF02, system will propose to input a date.  Whatever date you enter here, it will be updated in the above field.  Of course, you cannot input a date here for which FI period is closed.
    Take the help of ABABer and give this logic.  He will fulfill your requirement.
    thanks
    G. Lakshmipathi

  • TTA 4.00.903 billing failure

    Hi,
    there seems to be a bug with the billing component of TTA 4.00.903 on
    Linux.
    If the piriod of the billing report is such that the report is empty, the
    command works:
    lin:/opt/tarantella/bin # ./tarantella query billing full start
    2005/02/13 --days 1
    Generating billing report from files dated
    2005.02.13-00.00.00 up to 2005.02.13-23.59.59
    for the following servers: lin.local.net
    Downloaded 0 billing files from "lin.local.net"
    Starting to process files in:
    /opt/tarantella/var/log/billing/tmp.1108744129
    Please wait...
    report,,,,,2005/02/13 00:00:00,1
    But for period with non-empty billing recording,
    the tarantella command produces a communication error:
    lin:/opt/tarantella/bin # ./tarantella query billing full start
    2005/02/14 --days 1
    Generating billing report from files dated
    2005.02.14-00.00.00 up to 2005.02.14-23.59.59
    for the following servers: lin.local.net
    Failed to download billing files from server "lin.local.net" to local
    directory: /opt/tarantella/var/log/billing/tmp.1108744470
    The error was: commproblem
    Tracing the problem, using tcpdump on the
    loopback interface shows, that from TTA port
    5427 indeed the contents of the billing file
    /opt/tarantella/var/log/billing/days/2005.02.14-00.00.00.csv
    is transfered, but then a problem seems to be
    arose...
    Many thanks in advance,
    Tankred

    Carmelo,
    in deed, I got now following in 'glue.log':
    ============================================
    2005/02/25 16:22:18.147 (pid 13678) server/glue/info
    #1109344938147
    Encountered an exception during an ASAD operation:
    javax.naming.CommunicationException [Root exception is
    java.io.FileNotFoundException:
    /opt/tarantella/var/log/billing/tmp.1109344938/aep.pass-consulting.com.2005.02.21-00.00.00.csv
    (Permission denied)]
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
    Method)
    at
    sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at
    sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
    at java.lang.Class.newInstance0(Class.java:308)
    at java.lang.Class.newInstance(Class.java:261)
    at
    com.sco.jndi.toolkit.provider.SimpleContinuation.getSimpleException(SimpleContinuation.java:57)
    at
    com.sco.jndi.toolkit.provider.SimpleContinuation.getSimpleException(SimpleContinuation.java:82)
    at
    com.sco.jndi.toolkit.provider.ToolkitContext.namingException(ToolkitContext.java:386)
    at
    com.sco.jndi.toolkit.provider.ToolkitContext.namingException(ToolkitContext.java:361)
    at
    com.sco.jndi.toolkit.provider.ToolkitContext.namingException(ToolkitContext.java:372)
    at
    com.sco.jndi.provider.file.FileContext.f_bind(FileContext.java:1139)
    at
    com.sco.jndi.provider.file.FileContext.f_rebind(FileContext.java:1179)
    at
    com.sco.jndi.toolkit.provider.SimplePartialCompositeContext.pc_rebind(SimplePartialCompositeContext.java:582)
    at
    com.sco.jndi.toolkit.provider.SimplePartialCompositeContext.pc_rebind(SimplePartialCompositeContext.java:612)
    at
    com.sco.jndi.toolkit.provider.PartialCompositeContext.rebind(PartialCompositeContext.java:383)
    at
    javax.naming.spi.ContinuationDirContext.rebind(ContinuationDirContext.java:169)
    at
    com.sco.jndi.toolkit.provider.ToolkitContext.nns_rebind(ToolkitContext.java:2081)
    at
    com.sco.jndi.toolkit.provider.PartialCompositeContext.rebind(PartialCompositeContext.java:385)
    at
    javax.naming.spi.ContinuationDirContext.rebind(ContinuationDirContext.java:169)
    at
    com.sco.jndi.toolkit.provider.ToolkitContext.nns_rebind(ToolkitContext.java:2081)
    at
    com.sco.jndi.toolkit.provider.PartialCompositeContext.rebind(PartialCompositeContext.java:385)
    at
    javax.naming.spi.ContinuationDirContext.rebind(ContinuationDirContext.java:169)
    at
    com.sco.jndi.toolkit.provider.ToolkitContext.nns_rebind(ToolkitContext.java:2081)
    at
    com.sco.jndi.toolkit.provider.PartialCompositeContext.rebind(PartialCompositeContext.java:385)
    at
    javax.naming.spi.ContinuationDirContext.rebind(ContinuationDirContext.java:169)
    at
    com.sco.jndi.toolkit.provider.ToolkitContext.nns_rebind(ToolkitContext.java:2081)
    at
    com.sco.jndi.toolkit.provider.PartialCompositeContext.rebind(PartialCompositeContext.java:385)
    at
    com.sco.tta.server.glue.CreateAsadOp.doCreate(CreateAsadOp.java:170)
    at
    com.sco.tta.server.glue.CreateAsadOp.create(CreateAsadOp.java:93)
    at
    com.sco.tta.server.glue.AsadOpHandler.create(AsadOpHandler.java:221)
    at
    com.sco.tta.server.server.asad.AsadCalcTask.create(AsadCalcTask.java:983)
    at
    com.sco.tta.server.server.asad.AsadCalcTask.processEnvelope(AsadCalcTask.java:201)
    at com.sco.tta.server.server.CalcTask.runTask(CalcTask.java:125)
    at com.sco.tta.server.server.Task.run(Task.java:122)
    at com.sco.cid.common.WorkerPool$Worker.run(WorkerPool.java:524)
    at java.lang.Thread.run(Thread.java:534)
    Caused by: java.io.FileNotFoundException:
    /opt/tarantella/var/log/billing/tmp.1109344938/aep.pass-consulting.com.2005.02.21-00.00.00.csv
    (Permission denied)
    at java.io.FileOutputStream.open(Native Method)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
    at
    com.sco.jndi.provider.file.FileBaseContext.writeFileContents(FileBaseContext.java:322)
    at
    com.sco.jndi.provider.file.FileBaseContext.writeFileContents(FileBaseContext.java:450)
    at
    com.sco.jndi.provider.file.FileBaseContext.setFileAttributes(FileBaseContext.java:483)
    at
    com.sco.jndi.provider.file.FileContext.f_bind(FileContext.java:1132)
    ... 25 more
    ============================================
    This lead me to the idea, the permissions of the
    billing directory could be wrong, but it
    wasn't. The problem remains, even when I
    gave this directory all permission to all,
    means:
    chmod 0777 /opt/tarantells/var/log/billing
    So I believe, the process can't write the
    file (cf. log):
    /opt/tarantella/var/log/billing/tmp.1109344938/aep.pass-consulting.com.2005.02.21-00.00.00.csv
    because it doesn't try to create the intermedian
    sub-dir 'tmp.1109344938' in 'billing'.
    Kind regards,
    Tankred
    Carmelo wrote:
    Tankred,
    Can you add one more bit of logging
         server/glue/*:glue.log
    and try to generate a query again. Let me know if there is anything
    further in the logs.
    Thanks,
    Tankred Hirschmann wrote:
    Once again,
    as a workaround for the reported problem,
    I collect billing records directly from
    /opt/tarantella/var/log/billing/days (in the
    case of an 1-server array).
    The csv files there have a little bit different
    format as the output from
    tarantella query billing command has.
    Okay, the header is:
    id,time,type,user,runtime,livetime,app,server,ipaddress
    time seems to be te start time of the webtop or
    emulator session as 'yyyy/mm/dd hh:mm:ss'
    runtime and livetime are in milliseconds.
    It remain some detail questions:
    - what is the difference between runtime and
    lifetime
    - how to merge information from an number of
    csv file, witch may contain records with the
    same session-id (in the case of long running
    sessions)
    Any hints will be welcome.
    Kind regards,
    Tankred
    Tankred Hirschmann wrote:
    Hi Carmelo,
    the problem exists on two different installations:
    1) SuSE 9.2 with one interface
    2) redhat 3ES with 3 interfaces (internat,
    local management, cross link to a WTS)
    in both situations the array contains only
    one server, so all inter array communication
    goes over the loopback interface (lo), and
    this I can check via tcpdump...
    The failure remains the same after archiving,
    nothing about billing in summary.txt.
    Turning billing log, gives only several messages
    like:
    2005/02/23 12:55:00.001 (pid 3184) server/billing/moreinfo
    #1109159700001
    Completed billing checkpoint.
    2005/02/23 12:55:57.049 (pid 3184) server/billing/moreinfo
    #1109159757049
    Completed a run of the decay process.
    No special message appears during one runs
    tarantella query billing ...
    Kind regards,
    Tankred
    Carmelo wrote:
    Tankred,
    I forgot to add that you can add some logging to help identify the
    problem.
    >>
    >>
    In the Array Manager in the Log Filter section, please add the following
    server/billing/*:billing%%PID%%.log
    For your testing, first archive the logs
    $ tarantella archive
    Next run your billing command and if you can reproduce this error, then
    run the archive command again and looking in
    /opt/tarantella/var/log/1
    for the billing log and see if it points at any problem. If you can can
    post the log, that would be appreciated.
    Regards,     
    Carmelo wrote:
    Tankred,
    Can you tell us a bit more about your system?
    * What version of Linux are you running?
    * Does your system have multiple nics?
    * What about swap file size?
    * Single server or multi-server array?
    Anything in the logs related to billing? Due to the log rotation, you
    should have a summary.txt file on /opt/tarantella/var/log/1
    Thanks,
    Tankred Hirschmann wrote:
    Hi,
    there seems to be a bug with the billing component of TTA 4.00.903 on
    Linux.
    If the piriod of the billing report is such that the report is empty,
    the
    command works:
    lin:/opt/tarantella/bin # ./tarantella query billing full start
    2005/02/13 --days 1
    Generating billing report from files dated
    2005.02.13-00.00.00 up to 2005.02.13-23.59.59
    for the following servers: lin.local.net
    Downloaded 0 billing files from "lin.local.net"
    Starting to process files in:
    /opt/tarantella/var/log/billing/tmp.1108744129
    Please wait...
    report,,,,,2005/02/13 00:00:00,1
    But for period with non-empty billing recording, the tarantella
    command produces a communication error:
    lin:/opt/tarantella/bin # ./tarantella query billing full start
    2005/02/14 --days 1
    Generating billing report from files dated
    2005.02.14-00.00.00 up to 2005.02.14-23.59.59
    for the following servers: lin.local.net
    Failed to download billing files from server "lin.local.net" to local
    directory: /opt/tarantella/var/log/billing/tmp.1108744470
    The error was: commproblem
    Tracing the problem, using tcpdump on the
    loopback interface shows, that from TTA port
    5427 indeed the contents of the billing file
    /opt/tarantella/var/log/billing/days/2005.02.14-00.00.00.csv
    is transfered, but then a problem seems to be
    arose...
    Many thanks in advance,
    Tankred

  • Urgent Help........Error at Runtime.....

    here are the errors i am getting
    C:\Documents and Settings\Sumit\Desktop>java ab.SearchFiles -index c:\opt\lucene
    \index
    Enter query:
    bill gates
    Searching for: bill gates
    2 total matching documents
    *************INSIDE LINKSPOPULARITY METHOD**************
    Keyword in this step is  bill and the ITERATION NO. is 0
    the string so[]
    com is2
    Keyword in this step is  gates and the ITERATION NO. is 1
    the string so[]
    com is2
    *************INSIDE HYPERLINK POPULARITY METHOD**************
    the string so[]
    *************INSIDE IMPKEYWORDS METHOD**************
    the string so[]
    the score is 0
    1. ../data/b.txt
    the Score of the document is 0.57754713
    the id of the document is26
       Title:
    enter the id of the hyperlink you want to select
    26
    str[]0 is  sony
    str[]1 is  hi
    str[]2 is  bye
    str[]3 is  lucene
    arr[] length is 2
    str[] length is j4
    not doing anything
    arr [k] is0 str[l] is0
    Comparing bill//////////sony
    not doing anything
    arr [k] is0 str[l] is1
    Comparing bill//////////hi
    not doing anything
    arr [k] is0 str[l] is2
    Comparing bill//////////bye
    not doing anything
    arr [k] is0 str[l] is3
    Comparing bill//////////lucene
    bill is stored with 1st condition
    arr [k] is0 str[l] is4
    not doing anything
    arr [k] is1 str[l] is0
    Comparing gates//////////sony
    not doing anything
    arr [k] is1 str[l] is1
    Comparing gates//////////hi
    not doing anything
    arr [k] is1 str[l] is2
    Comparing gates//////////bye
    not doing anything
    arr [k] is1 str[l] is3
    Comparing gates//////////lucene
    gates is stored with 1st condition
    arr [k] is1 str[l] is4
    *************INSIDE STORE HYPERLINK METHOD**************
    Keyword in this step is  bill and the ITERATION NO. is 0
    the string so[bill/null]
    hyperlink for bill is null
    ***********DATABASE UPDATE SUCESSFUL*****************
    Updated Database
    6
    gates/null
    sony/35:1
    hi/a:1
    bye/d:7
    lucene/29:1
    bill/26:1
    Iteration No. 0 is finished
    Keyword in this step is  gates and the ITERATION NO. is 1
    the string so[gates/null]
    hyperlink for gates is null
    ***********DATABASE UPDATE SUCESSFUL*****************
    Updated Database
    6
    gates/26:1
    sony/35:1
    hi/a:1
    bye/d:7
    lucene/29:1
    bill/26:1
    Iteration No. 1 is finished
    INSIDE STOREHYPERLINK 2 METHOD
    str[]0 is  35
    str[]1 is  29
    str[]2 is  a
    str[]3 is  d
    str[] length is j 4
    not doing anything
    hypobj is26 str[l] is0
    Comparing 26//////////35
    not doing anything
    hypobj is26 str[l] is1
    Comparing 26//////////29
    not doing anything
    hypobj is26 str[l] is2
    Comparing 26//////////a
    not doing anything
    hypobj is26 str[l] is3
    Comparing 26//////////d
    26 is stored with 1st condition
    hypobj is26 str[l] is4
    STORE HYPERLINK2 IS FINISHED
    *************INSIDE STORE HYPERLINK  2 METHOD**************
    the keyword to be added isbill
    the hyperlink is26
    the string so[26/null]
    ***********DATABASE UPDATE SUCESSFUL*****************
    Updated Database
    5
    35/sony:1
    26/bill:1
    29/lucene:1
    a/hi:1
    d/bye:7
    Iteration No. 0 is finished
    the keyword to be added isgates
    the hyperlink is26
    the string so[26/bill:1]
    in else if
    value of keyword is   bill
    do nothing
    new entry added
    ***********DATABASE UPDATE SUCESSFUL*****************
    Updated Database
    6
    35/sony:1
    26/bill:1
    29/lucene:1
    26/gates:1
    a/hi:1
    d/bye:7
    Iteration No. 1 is finished
    Enter query:
    Exception in thread "main" java.io.IOException: Stream closed
            at java.io.BufferedInputStream.getBufIfOpen(Unknown Source)
            at java.io.BufferedInputStream.read(Unknown Source)
            at sun.nio.cs.StreamDecoder$CharsetSD.readBytes(Unknown Source)
            at sun.nio.cs.StreamDecoder$CharsetSD.implRead(Unknown Source)
            at sun.nio.cs.StreamDecoder.read(Unknown Source)
            at java.io.InputStreamReader.read(Unknown Source)
            at java.io.BufferedReader.fill(Unknown Source)
            at java.io.BufferedReader.readLine(Unknown Source)
            at java.io.BufferedReader.readLine(Unknown Source)
            at ab.SearchFiles.main(SearchFiles.java:123)
    [db4o 6.4.14.8131   2008-03-26 12:16:15]
    'formula1.db4o' closed by ShutdownHook.and here is my code
    package ab;
    * Licensed to the Apache Software Foundation (ASF) under one or more
    * contributor license agreements.  See the NOTICE file distributed with
    * this work for additional information regarding copyright ownership.
    * The ASF licenses this file to You under the Apache License, Version 2.0
    * (the "License"); you may not use this file except in compliance with
    * the License.  You may obtain a copy of the License at
    *     http://www.apache.org/licenses/LICENSE-2.0
    * Unless required by applicable law or agreed to in writing, software
    * distributed under the License is distributed on an "AS IS" BASIS,
    * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    * See the License for the specific language governing permissions and
    * limitations under the License.
    import org.apache.lucene.analysis.Analyzer;
    import org.apache.lucene.analysis.standard.StandardAnalyzer;
    import org.apache.lucene.document.Document;
    import org.apache.lucene.index.FilterIndexReader;
    import org.apache.lucene.index.IndexReader;
    import org.apache.lucene.queryParser.QueryParser;
    import org.apache.lucene.search.Hits;
    import org.apache.lucene.search.IndexSearcher;
    import org.apache.lucene.search.Query;
    import org.apache.lucene.search.Searcher;
    import java.io.BufferedReader;
    import java.io.FileReader;
    import java.io.IOException;
    import java.io.InputStreamReader;
    import java.util.Date;
    import java.io.*;
    import java.util.*;
    import com.db4o.Db4o;
    import com.db4o.ObjectContainer;
    import com.db4o.ObjectSet;
    import com.db4o.query.Predicate;
    /** Simple command-line based search demo. */
    public class SearchFiles {
      /** Use the norms from one field for all fields.  Norms are read into memory,
       * using a byte of memory per document per searched field.  This can cause
       * search of large collections with a large number of fields to run out of
       * memory.  If all of the fields contain only a single token, then the norms
       * are all identical, then single norm vector may be shared. */
      private static class OneNormsReader extends FilterIndexReader {
        private String field;
        public OneNormsReader(IndexReader in, String field) {
          super(in);
          this.field = field;
        public byte[] norms(String field) throws IOException {
          return in.norms(this.field);
      private SearchFiles() {}
      /** Simple command-line based search demo. */
      public static void main(String[] args) throws Exception {
           ObjectContainer db=Db4o.openFile(Util.DB4OFILENAME);
        String usage =
          "Usage: java org.apache.lucene.demo.SearchFiles [-index dir] [-field f] [-repeat n] [-queries file] [-raw] [-norms field]";
        if (args.length > 0 && ("-h".equals(args[0]) || "-help".equals(args[0]))) {
          System.out.println(usage);
          System.exit(0);
        String index = "index";
        String field = "contents";
        String queries = null;
        int repeat = 0;
        boolean raw = false;
        String normsField = null;
        for (int i = 0; i < args.length; i++) {
          if ("-index".equals(args)) {
    index = args[i+1];
    i++;
    } else if ("-field".equals(args[i])) {
    field = args[i+1];
    i++;
    } else if ("-queries".equals(args[i])) {
    queries = args[i+1];
    i++;
    } else if ("-repeat".equals(args[i])) {
    repeat = Integer.parseInt(args[i+1]);
    i++;
    } else if ("-raw".equals(args[i])) {
    raw = true;
    } else if ("-norms".equals(args[i])) {
    normsField = args[i+1];
    i++;
    IndexReader reader = IndexReader.open(index);
    if (normsField != null)
    reader = new OneNormsReader(reader, normsField);
    Searcher searcher = new IndexSearcher(reader);
    Analyzer analyzer = new StandardAnalyzer();
    BufferedReader in = null;
    if (queries != null) {
    in = new BufferedReader(new FileReader(queries));
    } else {
    in = new BufferedReader(new InputStreamReader(System.in, "UTF-8"));
    QueryParser parser = new QueryParser(field, analyzer);
    while (true) {
    if (queries == null) // prompt the user
    System.out.println("Enter query: ");
    String line = in.readLine();
    if (line == null || line.length() == -1)
    break;
    line = line.trim();
    if (line.length() == 0)
    break;
    Query query = parser.parse(line);
    System.out.println("Searching for: " + query.toString(field));
    String[] arr = query.toString(field).split (" ");
    Hits hits = searcher.search(query);
    if (repeat > 0) {                           // repeat & time as benchmark
    Date start = new Date();
    for (int i = 0; i < repeat; i++) {
    hits = searcher.search(query);
    Date end = new Date();
    System.out.println("Time: "+(end.getTime()-start.getTime())+"ms");
    System.out.println(hits.length() + " total matching documents");
    final int HITS_PER_PAGE = 10;
    for (int start = 0; start < hits.length(); start += HITS_PER_PAGE) {
    int end = Math.min(hits.length(), start + HITS_PER_PAGE);
    for (int i = start; i < end; i++) {
    if (raw) {                              // output raw format
    System.out.println("doc="+hits.id(i)+" score="+hits.score(i));
    continue;
    Document doc = hits.doc(i);
    String path = doc.get("path");
    if (path != null) {
         int temphyp = hits.id(i);
         String hypobj = Integer.toString(temphyp);
    int a1,a2,a3;     
    temporary abc1 = new temporary();
              a1 = abc1.linkspopularity(db,arr,hypobj);
              temporary abc2 = new temporary();
              a2 = abc2.hyperlinkspopularity(db,hypobj);
              temporary abc3 = new temporary();
              a3 = abc3.impkeywords(db,arr,hypobj);
    int totalscore;
              totalscore = a1+a2+a3;
              System.out.println("the score is " + totalscore );
    System.out.println((i+1) + ". " + path);
    System.out.println("the Score of the document is " + hits.score(i));
    System.out.println("the id of the document is" + hits.id(i));
    String title = doc.get("title");
    if (title != null) {
    System.out.println(" Title: " + doc.get("title"));
    } else {
    System.out.println((i+1) + ". " + "No path for this document");
    System.out.println("enter the id of the hyperlink you want to select");
    BufferedReader in5 = new BufferedReader(new InputStreamReader(System.in));
    String hypobj = in.readLine();
    modules a1 = new modules();
              a1.StoreKeywords(db,arr);
              modules a2 = new modules();
              a2.StoreHyperlinks(db,arr,hypobj);
              modules a3 = new modules();
              a3.StoreHyperlinks2(db,hypobj);
              modules a4 = new modules();
              a4.StoreKeywords2(db,arr,hypobj);
    in5.close();
    break;
    if (queries != null) // non-interactive
    break;
    if (hits.length() > end) {
    System.out.println("more (y/n) ? ");
    line = in.readLine();
    if (line.length() == 0 || line.charAt(0) == 'n')
    break;
    reader.close();

    Here is my help:
    The entire line of output up until the actual error means absolutely nothing to me or anyone else except you; it is means anything at all, then you need to get into your debugger and start stepping thorugh your code until you hit the error and see what is actually happening, then if you are stuck, write a question stating what the problem is and where it occurs in your code. You chould give some of the variable states in the same scope during the iteration inwhich the error occures, but unless you are willing to do this, I doubt anyone is going to do your debugging for you--paticulary since this is not even your own code.

  • Complaints Lack of Customer Service and No respons...

    Hi there
    I have had very similar experiences. Misold BT Business Line with Braodband speeds. Engineer called and connected to an old second line at the property which would only give me 2 MB.
    Complained - Nothing Happened
    BT engineer said that my home line was " pants" as Chesterfield Broadband non existentr suggested I move my Braodband to Sky as they have better speeds and dont drop the connection!!!! I moved my home line to SJKY and guess what he was right!!!!!
    Complained again about my Business Line - losing customers - no response
    Complained via Twitter - no response only more promises of help.
    BT  deceided to  increase my bill for no reason no letter no notoification April 2013 queried bills back to October 2012 - queriied this with Billing Accounts - they said sorry charges put on account in errror. Told Billing they were now in default of contract they cancelled the line said I would receive a refund of the incorrect charges.
    Credit bill received  which I assumed was the final bill so cancelled my Direct Debit and then ongoing bills still arriving
    Calls  amde to to BT Billing usually answered by Asia or Thailand had no idea of what i was saying most of the time  number of calls in excess of 20  All calls State that account was closed in April and that bills incorrect.
    Called again  recently and spoke to Billing they promised to help but said that there were no notes of calls and contacts on system. E mail received from Karen Bernadino as I insisted that she acknowledge my call  -E mail promising to help. no futher mail or phone call despite further e mail chase up requests.
    Today -  BT Chat   - waited  20 minutes today no luck -  called BT poptions team suggested I complain at www.bt.com/business complaints - doesnt exist.
    At wits end now will write to Chairmain and Onbudsman - BT  have a non existent Customer Service that costs us millions?
    Looks as though whatever you do the only way you can get a complaint sorted through BT is to go on this forum to shame them in full view of the general public.
    Please can someone help I am not paying Bt any further money as they  jhave been in default of my contract since the Account was opened and further since October 2012 when they decided to increase the charges on  my account for no reason. No other organisation would get away with this invisibility and total lack of accountability.

    I'm in the same boat have an outstanding complaint with BT , reported it 7 days ago.  Still nothing from BT.
    Even if you do get a reply fromt he customer service team, you can ask agin and you will get something different they have no idea whats happening in the company.
    It has to be said I now reckon BT are the worst company for customer service, they make Santander look brilliant.  Never have I encountered such poor customer service from a company that I have from BT.  Just look at the forums they are full of people complaining about the service they dont get.
    Good luck in writing to the chairman, I did that too after a couple of days and got an automated reply back, still nothing official from BT. 
    They are totally rubbish.

  • "Reporting a problem" doesn't let you report a problem

    I go to my account, click purchase history, click report a problem, click report a problem next to the billing item that is the problem and end up at the iTunes general support page. From there I try to find a contact us. I do but it takes me to a series of drop downs that never ends in an actual email message to anyone. Just help articles.
    If you're running a store you need to provide a simple way to query billing and resolve billing issues. This isn't it.
    How can I report my problem???

    Thank you Atomic Al. I did eventually get to the email so good on you! But does Apple really think this is a better system? It certainly isn't express. Nor is it easy as I now go through countless screens to "report a problem" with itunes billing. It used to take a couple clicks.
    Thanks again

  • Cloud services with hosting guaranteed to be Canada?

    Microsoft announced recently that it will allow clients to choose to store their data in data centres in their home country to help shield it from
    US government. http://www.ft.com/cms/s/0/e14ddf70-8390-11e3-aa65-00144feab7de.html
    Having consulted a Canadian privacy law expert, it seems that the law is clear that an offering from a Canadian owned company would not be subject to possible US government legally compelled provision of data, but it is far from clear that a US owned subsidiary
    such as Microsoft Canada would be legally exempt as well. Will Microsoft allow its partners in Canada who currently sell O365 and hosted Exchange such as Bell to offer O365 hosted with them? That would resolve many legal difficulties that have arisen post-Snowden.
    Does Microsoft or its partners have data centres in Canada that would support a) Office 365 for 20k user installations, and b) Azure applications?
    Thanks.

    Hi,
    Thanks for your question. Please understand that this forum is mainly focused on technical questions and issues on Office 2013 and Office 365 ProPlus. For this issue, I highly recommend you to contact the Microsoft Billing Support team for Office 365
    http://virtualchat.support.microsoft.com/client/default.aspx?siteid=32ECF580-B446-44E5-8B4D-25F0AFE07779&uiscope=en_US&scope=billing&scope=L&query=Billing%20Support%20phone%20number
    and submit your feedback on the following web form for general Microsoft Privacy issues.
    https://support.microsoft.com/contactus/emailcontact.aspx?scid=sw;en;1310&ws=1prcen
    You can also check Office 365 Trust Center to get more information.
    http://office.microsoft.com/en-us/business/office-365-trust-center-cloud-computing-security-FX103030390.aspx
    I hope these information will be helpful for you. Thank you.
    Judy Zhou
    TechNet Community Support

  • RRI Problem: Transferring Value to a Value Range Global Filter

    Hi experts,
    I am facing a problem with the transfer of value during RRI jump. I have the following query definition:
    Sender Query: Customer ID, Billing Date, Valid From (<= replacement path "Billing Date"), Valid To (> replacement path "Billing Date")
    Receiver Query: Billing Date, Valid From (<= replacement path "Billing Date"), Valid To (> replacement path "Billing Date")
    The problem lies in Valid From and Valid To. In both queries, I have defined a filter replacement path variable with value range for these two characteristics:  Valid From (<= Billing Date), Valid To (> Billing Date). However, no values will be transferred to the Valid From and Valid To in receiver query and this triggers an uncaught exception during RRI call.
    Could anyone please shed some light in this issue?
    Thanks,
    Joon

    Hi Suman,
    yes, both queries are from the same InfoProvider. When I provide static single values for the From (<= 31.12.2010) and To (> 31.12.2010) dates in global filters of the receiver query, I get the correct result. If I instead select the Replacement Path variables I get exception.
    Regards,
    Joon

  • Difference between Documnt currency and Statistic Currency

    Guru's
    While Extarcting Data from 2LIS_13_VDITM to 0SD_C03,
    There is a Field Netvalue of billing Item in Document Currecy, i,e NETWR and  which is taking  into  Info objeect net value in statistics currency( 0NET_VAL_S) of  0SD_C03,
    and In update rule there is std routine is working,
    may be that is converting into statistics currency,
    Why m mentioning this one is m not getting the actual values when i check in data target, which differ from PSA values
    and giving  different values in report when i execute standard query "Billing Document" as well
    Can any one pls tell me how to get actual values  into cube?

    Hi
    I tried this n it is working for me.
    DATA: a TYPE QSSHB VALUE '400.00',
          b TYPE wrbtr VALUE '1210.00',
          c TYPE wrbtr.
    c = b - a.
    WRITE / c.

  • Finding group membership

    We have eDirectory on Netware with a number of groups. These groups
    have users in.
    eg
    Group1 has members cn=Bill, cn=Ben and cn=Sue
    Group2 has members cn=Bill and cn=Sue
    What LDAP query can I run to find the groups a given person is in?
    eg to find which groups Bill is in I want to do something like
    (&(cn=Group*)(member=Bill))
    but this doesn't work....
    Can anyone help me please?
    Thanks.
    Paul Green
    Eastleigh
    UK
    PaulGreen77
    PaulGreen77's Profile: http://forums.novell.com/member.php?userid=24059
    View this thread: http://forums.novell.com/showthread.php?t=367479

    Wolfgang Schreiber;1767110 Wrote:
    > You can
    >
    > * either specify the full name of the member - something like:
    > (&(cn=Group*)(member=cn=Bill,ou=myOrgUnit,o=myOrg) )
    >
    > * or - faster - query Bill's "groupMembership" attribute
    >
    > Wolfgang
    >
    >
    >
    >
    > "PaulGreen77" <[email protected]> wrote in message
    > news:[email protected]..
    > >
    > > We have eDirectory on Netware with a number of groups. These groups
    > > have users in.
    > > eg
    > > Group1 has members cn=Bill, cn=Ben and cn=Sue
    > > Group2 has members cn=Bill and cn=Sue
    > >
    > > What LDAP query can I run to find the groups a given person is in?
    > > eg to find which groups Bill is in I want to do something like
    > >
    > > (&(cn=Group*)(member=Bill))
    > >
    > > but this doesn't work....
    > >
    > > Can anyone help me please?
    > >
    > > Thanks.
    > >
    > > Paul Green
    > > Eastleigh
    > > UK
    > >
    > >
    > > --
    > > PaulGreen77
    > >
    > ------------------------------------------------------------------------
    > > PaulGreen77's Profile: 'NOVELL FORUMS - View Profile: PaulGreen77'
    > (http://forums.novell.com/member.php?userid=24059)
    > > View this thread: 'Finding group membership - NOVELL FORUMS'
    > (http://forums.novell.com/showthread.php?t=367479)
    > >
    Many thanks for that - this does exactly what I want.
    Paul Green
    PaulGreen77
    PaulGreen77's Profile: http://forums.novell.com/member.php?userid=24059
    View this thread: http://forums.novell.com/showthread.php?t=367479

  • Dump while executing the query on MProvider on Stock and Billing

    Hi,
    I am getting this dump while executing a Query on Multiprovider. Here Multiprovider is on Billing cube(z-cube) and 0IC_C03 cubes. In the report , I have KF of both cubes. I am sure I never faced this type of problem in version 3.5. It seems we are going back day by day because of version 7.0.
    A:
    1) I am not getting any error if I take Kfs of only Billing cube in the
    report on the multiprovider.
    2) But I am getting this problem by taking only KF from 0IC_c03 on this multiprovider .
    3) And also this problem is not raising in any queries(ofcourse same type) of those 2 cubes.
    4) Here Fiscal Variant is constant filter, and User will enter the Fiscal year.
    5) In the Columns area ,I have taken 12 selections each one restricted with one CALMONTH2.
    6) in Rows part I have 3 selections. Here 2 selections have Billing KF and other selection has Blockd Stock qty KF.
    B:
    The above dump is not raising if I take 12 selections on columns with a restriction on 0CALMONTH with Customer exit varible , but different offsets in selections. Here the Customer exit variable gets April of the User entered Financial year as the value.  But the problem is For all columns it is giving same Value for Stock KF even though we have different values in the system. Surprisingly issue is , Sales figures are comming proper.
    I am on Version 7 and patch 13. And  I am using Querydesigner 3.5.
    Dump message: GETWA_NOT_ASSIGNED
    <i>Short text:
        Field symbol has not yet been assigned.
    What happened?
        Error in the ABAP Application Program
        The current ABAP program "RSDRC_NCUM_ROUTINES" had to be terminated because it has come across a statement that unfortunately cannot be executed.
    keywords:
    "GETWA_NOT_ASSIGNED" " "
    "RSDRC_NCUM_ROUTINES" or "RSDRC_NCUM_ROUTINES"
    "FILTER_SELDR"</i>
    Thanks and Regards,
    Anil Kumar Sharma .P
    Message was edited by:
            Anil Kumar Sharma
    Message was edited by:
            Anil Kumar Sharma

    OK,
    I come back to my question: you said "<i>But the problem is For all columns it is giving same Value for Stock KF even though we have different values in the system</i>"
    Can you say to which period this value correspond?
    This looks like you are missing some characteristic identification in your multi.
    Can you assess that?
    Do you have the same time periods in both cubes? I mean, do you have at least the periods used in your RKF / query in both cubes? Would you mind pasting your identification for time IObjs from table RSDICMULTIIOBJ?
    please see hereunder my identification for a sales and stock multicube
    INFOCUBE                       OBJVERS IOBJNM                         PARTCUBE                       PARTIOBJ                                                                               
    ZMC021                         A       0CALDAY                        ZICRT_C07                      0CALDAY                      
    ZMC021                         A       0CALMONTH                      ZICRT_020                      0CALMONTH                    
    ZMC021                         A       0CALMONTH                      ZICRT_C07                      0CALMONTH                    
    ZMC021                         A       0CALMONTH2                     ZICRT_020                      0CALMONTH2                   
    ZMC021                         A       0CALMONTH2                     ZICRT_C07                      0CALMONTH2                   
    ZMC021                         A       0CALQUART1                     ZICRT_020                      0CALQUART1                   
    ZMC021                         A       0CALQUART1                     ZICRT_C07                      0CALQUART1                   
    ZMC021                         A       0CALQUARTER                    ZICRT_020                      0CALQUARTER                  
    ZMC021                         A       0CALQUARTER                    ZICRT_C07                      0CALQUARTER                  
    ZMC021                         A       0CALWEEK                       ZICRT_C07                      0CALWEEK                     
    ZMC021                         A       0CALYEAR                       ZICRT_020                      0CALYEAR                     
    ZMC021                         A       0CALYEAR                       ZICRT_C07                      0CALYEAR                     
    ZMC021                         A       0FISCPER                       ZICRT_020                      0FISCPER                     
    ZMC021                         A       0FISCPER                       ZICRT_C07                      0FISCPER                     
    ZMC021                         A       0FISCPER3                      ZICRT_020                      0FISCPER3                    
    ZMC021                         A       0FISCVARNT                     ZICRT_020                      0FISCVARNT                   
    ZMC021                         A       0FISCVARNT                     ZICRT_C07                      0FISCVARNT                   
    ZMC021                         A       0FISCYEAR                      ZICRT_020                      0FISCYEAR                    
    ZMC021                         A       0FISCYEAR                      ZICRT_C07                      0FISCYEAR                    
    note that here ZICRT_020 is a monthly stock cube.
    hope that helps...
    Olivier.

  • Accounting Rule query from the Pricing/Billing tab in Service Contracts

    Running Oracle Apps. 11.5.10.2. I have the query listed below which returns both header and live level data for service contracts. I am trying to add the Accounting Rule from the Pricing/Billing tab within service contracts, but I am not having luck finding a suitable join. I have tried joining ra_customer_trx_lines_all to okc_k_lines_b using the following join from etrm rctla.contract_line_id(+) = oklb.cle_id, but it does not return any records for accounting_rule_id. Once I can get records to return for accounting_rule_id, I can pull in the rule name from ra_rules.
    SELECT OKHB.CONTRACT_NUMBER                                         CONTRACT_NUMBER,
           NVL(OKHB.CONTRACT_NUMBER_MODIFIER, '-')                      CONTRACT_NUMBER_MODIFIER,
           OKHB.STS_CODE                                                STATUS,
           OKHB.START_DATE                                              START_DATE,
           OKHB.END_DATE                                                END_DATE,
           to_date(oklbs.attribute1, 'YYYY/MM/DD HH24:MI:SS')           WARRANTY_START_DATE,
           to_date(oklbs.attribute2, 'YYYY/MM/DD HH24:MI:SS')           WARRANTY_END_DATE,
           rctta.name                                                   PRODUCT_GROUP,
                           rctla.accounting_rule_id,
           P.PARTY_NUMBER                                               PARTY_NUMBER,
           P.PARTY_NAME                                                 PARTY_NAME,
           to_char(oklb.line_number)||'.'||to_char(oklbs.line_number)   SUBLINE_NUMBER,
           to_char(okcis.number_of_items, '9,999,999,999')              QTY,
           msib.segment1                                                ITEM_NUMBER,
           msib.description                                                      DESCRIPTION,
           to_char(oklbs.price_unit, '9,999,999,990.99')                UNIT_PRICE,
           to_char(oklbs.price_negotiated, '9,999,999,990.99')          EXTENDED_PRICE
      FROM OKC_K_HEADERS_B      OKHB,
           OKC_K_PARTY_ROLES_B  OKPRB,
           HZ_PARTIES           P,
           HZ_PARTIES           HP,
           OKX_CUST_SITE_USES_V C_BILL_TO,
           OKX_CUST_SITE_USES_V C_SHIP_TO,
           OKC_CONTACTS OC,
           OKC_CONTACTS OCS,
           OKX_RESOURCES_V ORV,
           OKC_K_LINES_B oklb,
           MTL_SYSTEM_ITEMS_B MSIB,
           OKC_K_ITEMS OKCI,
           OKC_K_ITEMS OKCIS,
           OKC_K_LINES_B OKLBS,
           OKX_SALESREPS_V OSV,
           RA_CUST_TRX_TYPES_ALL RCTTA,
                    ra_customer_trx_lines_all rctla
    WHERE OKHB.ID = OKPRB.CHR_ID
        AND OKPRB.JTOT_OBJECT1_CODE = 'OKX_PARTY'
        AND OKPRB.OBJECT1_ID1 = P.PARTY_ID
        AND C_SHIP_TO.PARTY_ID = HP.PARTY_ID
        AND OKHB.ID = OC.dnz_chr_id(+)
        AND okhb.id = ocs.dnz_chr_id(+)
        AND oc.jtot_object1_code (+) = 'OKX_RESOURCE'
        AND oc.OBJECT1_ID1 = orv.ID1(+)
        AND ocs.jtot_object1_code = 'OKX_SALEPERS'
        AND ocs.object1_id1 = osv.id1
        AND C_BILL_TO.SITE_USE_CODE(+) = 'BILL_TO'
        AND OKHB.SHIP_TO_SITE_USE_ID = C_SHIP_TO.ID1(+)
        AND OKHB.BILL_TO_SITE_USE_ID = C_BILL_TO.ID1(+)
        AND C_SHIP_TO.SITE_USE_CODE(+) = 'SHIP_TO'
        AND okhb.id = oklb.chr_id
        AND msib.inventory_item_id = okci.object1_id1
        AND msib.organization_id = 3
        AND okcis.cle_id           = oklbs.id
        AND okci.cle_id           = oklb.id
        AND oklbs.lse_id     <> '2'
        and oklbs.cle_id     = oklb.id
        AND rctta.cust_trx_type_id(+) = oklbs.attribute8
                 and rctla.contract_line_id(+) = oklb.cle_id

    Sorry for the late reply, but this solution worked great.
    and OKS_K_HEADERS_B.ACCT_RULE_ID = RA_RULES.RULE_ID
    and OKC_K_HEADERS_B.ID = OKS_K_HEADERS_B.CHR_ID

Maybe you are looking for