BUG: field DocNum in queries

Hi
In the queries in which the field DocNum is used, the link to the document does not work correctly when there are document series of diferent years where there are already documents with the same number. Not to use the field DocEntry to link to the document.
Vasco

Hi
Ok, isn't a bug. But it will be usefull to have it.
I'm just suggest this.
Vasco

Similar Messages

  • How to put Mandatory option for selection screen fields in ABAP Queries

    Hi Experts
    Can anyone tell me how to put mandatory option for the selection screen fields in ABAP Queries.
    Manually I had written code in the At Selection Screen  option in infoset to display error message if that field is blank.
    But I need to display the selection fields with the tick mark (obligatory mark).
    How to do this?
    Appropriate answers will be awarded

    Hi
    For parameter option
    parameters : p_kunnr type kna1-kunnr  obligatory.
    For select option
    select-options: s_date for vbak-erdat obligatory.
    Plz rewards points ,
    Regards ,
    Ganesh.

  • ORDER BY FIELD, Query of Queries

    Hi, is ther any substitution for this query in CF Query of
    Queries?
    SELECT * FROM table1 ORDER BY FIELD(col_1, 'apple', 'orange',
    'banana')
    Query of Queries do not support FIELD but I need a query
    ordered in a specific way and i would rather not add a field to my
    table for this simple query

    Your syntax is not standard sql. There might be a db that
    supports it, but none that I know of.
    Depending on what you are trying to accomplish, you can
    derive your sort column in your initial query. You might not even
    need a Q of Q. Maybe something like this:
    select case
    when col_1 = 'apple' then 1
    when col_1 = 'orange' then 2
    when col_1 = 'banana' then 3
    end as sort_column
    from etc
    order by sort_column

  • Another bug - field positioning

    Another problem I have noticed is that sometimes the position
    of the field or label on the layout is not what the properties.top
    says. I had a field that was in one place on the layout and in
    another place altogether when it was printed. Once I corrected the
    Top property, it printed in the same place as it was on the layout.
    ie the printing used the Top property, the layout used something
    else to decide where it was located.
    Murray

    No I don't want to use channels. I want to use a 'Solid Fill Colour' layer. If you click on the little icon at the bottom of the layers palette you get a little menu and at the top of that menu you can select 'Solid Colour'. Then you can select the 'Colour Libraries' tab and apply a Pantone Colour as a Solid Fill layer.
    Photoshop definitely DOES support this method because we have been using it here for the last few years, its quite standard practice to work like this before going into channel work or DCS work.
    It means you can double click a layer to reveal its intended Pantone colour rather than cmyk match.
    As I say it works fine in CS2.
    Well it seems its another bug in a very poor update. I just hope CS4 doesn't have the same problems.

  • Inserting calculated fields in database queries

    I have just changed from using StarOffice version 7 to version 8.
    I am having difficulties in creating a calculated field in a query.
    Would anyone have some ideas for me to follow?
    Thanks - Dan

    1.  Order as a column name could be problematical as it might conflict with the SQL 'ORDER BY'.  Wrapping it in square brackets should cater for this.
    2.  You are missing some spaces.  
    3.  The use of the arithmetical + operator could be problematical with dates as the string expressions, which might be interpreted as arithmetical expressions.  The + operator is used rather than the ampersand concatenation operator to suppress
    Nulls, but that's not the case here.  
    4.  As you are only returning columns from one table you do not need to qualify the column names with the table name.  
    5.  Defining a range as on or later than the start date and before the day following the end date is more reliable as it allows for rows with date/time values on the last day of the range with a non-zero time of day element, something you cannot rule out
    with complete confidence unless you have taken specific steps in the table definition to disallow such values.
    So taking these points into account:
    strSQL6 = _
            "SELECT [Order], [OperWorkCenter], [Created on], " & _
            "[Actfinish date]," [Actfinish date]-[Created on] AS Delta " & _
            "FROM [WOMP Work Orders] " & _
            "WHERE [Created on] >= #" & FStartDate$ & "# " & _
             "AND [Created on] < #" & FEndDate$  & "# + 1"
    The FStartDate$ and FEndDate$ values must of course be in US short date format or an otherwise internationally unambiguous format such as the
    ISO standard date format of YYYY-MM-DD.
    Ken Sheridan, Stafford, England

  • BLOB fields slow down queries

    Hello,
    If I run this query:
    select MyID, MyDescription, MyblobField
    From MyTable
    Brings 500 records but it takes 30 seconds !
    If I select without any blob fied like:
    select MyID, MyDescription
    From MyTable
    It's fast.
    The blob fields are storing images like jpg or gif files. Approximately, each field stores 250 KB.
    I know that blob fields are slowing down the query, but could be any way to accelerate it?
    Thank you!

    1. use connection pool on your web program.because connecting database is big cost in 3-T structure.
    2. tune your sql, using explain plan.
    3. adjust your database setting
    Hope this help

  • Tricky bug!!

    Hi there, ive been using lucence for a assignment that i am doing i was wondering if some you could have a look that this piece of code that i have been working on.
    The code that i am working on this below
    package Search;
    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.ArrayList;
    /** Simple command-line based search demo. */
    public class searchHTML {
    /** 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);
    public searchHTML() {}
    /** Simple command-line based search demo. */
    public String querySearch(String[] args,String searchValue) throws Exception
         String result = "";
    String usage =
    "Usage: java Lucene.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-dir}";
    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);
    if(true)
         if (queries == null) // prompt the user
         System.out.println("Enter query: " + searchValue);
         String line = searchValue;
         if (line == null || line.length() == -1)
              System.out.println("test");
         //break;
         line = line.trim();
         if (line.length() == 0)
              System.out.println("test2");
         //break;
         Query query = parser.parse(line);
         System.out.println("Searching for: " + query.toString(field));
         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 = hits.length();
         int end = Math.min(hits.length(), HITS_PER_PAGE);
         for (int start = 0; start < end; start++)
         //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(start);
         // System.out.println(hits.length());
         for(int i = 0; i<hits.length(); i++)
              ArrayList<String> st = new ArrayList<String>();
              st.add(doc.toString());
              // System.out.println(st);
         String path = doc.get("path");
         if (path != null)
              System.out.println((start + 1) + ". " + path);
         String title = doc.get("title");
         if (title != null)
              ArrayList<String> r = new ArrayList<String>();
              r.add(result = "Title:" + doc.get("title"));
              //System.out.println(result.length());
              //result = " Title: " + doc.get("path");
         else
         result = (start+1) + ". " + "No path for this document";
         //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();
    else
         System.out.println("finished");
    return result;
    At the mintue i am using JSP pages to display the result however, i am getting different results on the jsp page from what i am getting on the consle.
    This is the result from the jsp page
    Value Searched on:myspace
    1Title:MySpace
    2Title:MySpace
    3Title:MySpace
    4Title:MySpace
    5Title:MySpace
    6Title:MySpace
    7Title:MySpace
    8Title:MySpace
    9Title:MySpace
    10Title:MySpace
    11Title:MySpace
    12Title:MySpace
    13Title:MySpace
    14Title:MySpace
    The title MySpace is the title of the html document
    and from the console this is what i am getting : -
    3 total matching documents
    1. H:/Lucenetext/output4.html
    2. H:/Lucenetext/output8.html
    3. H:/Lucenetext/output1.html
    Ive been looking at this for a couple of weeks and was wondering if i could have a fresh pair of eyes to look at it.
    Any help would be very grateful
    Yours
    Chris

    OK
                 System.out.println("Enter query: " + searchValue); What's the point of that unless you then read some input from the user?
               if (line == null || line.length() == -1) line.length() can never be -1. This is rubbish.
              // 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");
              // } Remove this junk.
               System.out.println(hits.length() + " total matching documents"); This goes to the console. A JSP doesn't have a console so you will never see it - it might be in a log file somewhere if you're lucky.
                 //for (int i = start; i < end; i++) Remove all this commented-out junk.
                   for(int i = 0; i<hits.length(); i++)
                        ArrayList<String> st = new ArrayList<String>();
                        st.add(doc.toString());
                       // System.out.println(st);
                   } As 'st' now gets thrown away this is all junk. Remove it.
                      System.out.println((start + 1) + ". " + path); See above remarks about the console.
                     if (title != null)
                          ArrayList<String> r = new ArrayList<String>();
                          r.add(result = "Title:" + doc.get("title"));
                          //System.out.println(result.length());
                          //result = "   Title: " + doc.get("path");
                     } See above. 'r' gets thrown away. Remove this junk except for the assignment to 'result'.
                   System.out.println("more (y/n) ? ");
                   line = in.readLine(); See above re console. You need to think more clearly about the difference between a console application and a JSP. A JSP writes a page of HTML.

  • Making all Infotype 0033 fields available in an infoset

    Hi.
    I have an infoset using the logical database PNPCE and I just added infotype 0033 in the Further Infotypes option.
    The infotype is now displayed but not all the fields I need.
    I need fields AUS16, AUS17, AUS18, AUS19 and AUS20 to be both Selection and Output fields in my queries and the only field I get is AUS01.
    Can you please tell how to fix this?
    I try to add a structure PA0033 but the fields are there but only with Output options.
    With best regards.
    Marco Duarte

    Hi.
    Yes... I know...
    But the fields do not appear available to be transported to the Field Group...
    They just aren't there in the left side of the screen... Only some fields of the infotype are there... not all.
    I have no idea why this happens...
    BR
    Marco Duarte

  • Ad Hoc query Addition Field code

    Dear Experts,
    I need amend Ad hoc query to be able to report on Expected End MPP Q0088-EEMPP, It is not a standard field in the infotype for SE16 or SAP Query/Ad Hoc. We need to be able to query off this field. Can someone please point me in the right direction about how to get the calculated value from this field added to queries, or what code is needed.
    I have created an additional field in SQ02, i probably need code to make it fetch the data
    thanks
    haji

    Hi,
    Please take a look at standard function module HR_GBSMP_MPP_DATES. It returns the expected end date.
    Hope this helps.
    Donnie

  • ADF query panel with table, adding new search fields dynamically

    I am a beginner very new to ADF world. I have a ADF query panel with table which has its source from a ViewCriteria. I need to add a new search field on the form dynamically based on the user's need. Assume I am using a Employee table and I have search "employee ID" as one field in the form, upon clicking a add button in the form I need to have a another "employee ID" field appears along with the already existing one.
    I tried to add the condition in ViewCriteria but do not know how to add it ?
    Could some one pls address how it can be approached ?

    User, please always tell us your jdev version.
    Well, this use case need some thinking to be done. What do you want to archive with adding a new query field to the panel? As you said you already have one field for employeeId and now, on a click on a button, you add another one. How would the resulting query work with the new field? Should it use 'and' to concatenate the query or should it use 'or'?
    I suggest that you use the ADF Riche Client Demo (http://jdevadf.oracle.com/adf-richclient-demo/faces/index.jspx) select the Query node and then select 'af:query'. This shows you what is possible otu of hte box using the af:query component. You can add fields to existing queries in advanced mode (e.g. use system query 5, which starts with an empty panel and allows you to add fields).
    Once you understand how this works you may come back with a more detailed use case description or you have found the solution already. Read the documentation on af:query along with trying otu the component.
    Timo

  • Message "No Queries Found" showing in ABAP Query

    Hi,
    I have a ABAP Query, in which i want to add a new field in it... I already add that field but not displaying when i m executing that query..
    I think i copied only field, not give queries on field....
    Because when i compare this field from earlier one....i found a diff. in it...When i click (right) on this field, - Queries for fields, it shows "Directory of Queries for field........", BUT When i click on my field, it gives a message - No queries found....
    Please tell me, what is the problem...
    Thanks..

    Hi,
    Try this:
    SQ01->Query->More Functions->Adjust and Generate program, then Execute.

  • Auto populate Infopath 2013 fields after entering a data into a textbox.

    Firstly can I please say I am sorry to be revisiting this but I just can sort it out!!
    I have 3 fields in a SharePoint 2013 list, Code, Section, SubSection, after some guidance I am trying to use rules to populate Section/SubSection when a Code is entered.  I am getting the Data for the three Fields from an XML file. The form can see
    the XML data fine. Here's the BUT.. I cant seem to get the quering correct to autofil the other two fields.
    I promise this is the last time I shall ask for help on this!
    TIA
    Jon

    Thanks Cameron.
    No that’s not what I need, not Cascading Drop Downs, I want TextBox’s to be populated.
    I have 3 fields, Code, Section, and SubSection, when a user enters a code into the first box, a rule queries the list, I(I have XML or SharePoint List) to populate the Section/SubSection with
    the data relating to the Code.
    So far I have a rule that on FormLoad when the Code field changes it queries the XML list for the info.  The problem I have it I can’t get the query correct.
    Thanks
    Jon

  • #datasync error - could that come from merging on fields from fact tables instead of dimensions tables?

    I'm reporting out of two universes published by Epic
    1. Warehouse - Patient
    2. Warehouse - Transactions
    I wanted to join two queries based on the primary key for a hospital encounter. Following the tutorial seemed pretty straightforward until I got to displaying data from a merged query.
    The table displayed results from Query1, but adding fields from Query2 wiped out all the data in the table, leaving only #datasync in each field.
    My workaround to get fields from both queries displayed (see screenshot)
    1. Merge queries on *two* fields - primary key of hospital encounter and primary key of patient
    2. Create new variable
    3. Make variable type Detail
    4. Associate variable with hospital encounter key from Query1
    5. Set formula equal to a field from Query2
    I'm not sure why this workaround works or if what I'm experiencing is a symptom of something larger. Could this workaround be needed because I am merging on fields from a fact table instead of fields from a dimension table?
    Thanks in advance

    You have defined merged dimension on 'company code-Key' which is common in both the Bex-queries.
    You are able to bring the merged dimension and other objects from  Query_ One to report block without any issue but when adding objects from Query_Two you are getting the error #DATASYNC.
    In this case objects from Query_One are got sync with the merged dimension object without any issue because they got added first to it.
    Similarly when you add merged dimension and objects from Query_Two you find no issue, because objects from Query_Two go sync first.
    Once objects from a query(Query_One/Query_Two) got added to a merged dimension, when we try adding objects from other query we get #DATASYNC error. This is because data in the other query is not able to sync with the initial result set, this is a know behavior.
    There are two workarounds:
    1) Merging all common dimension/characteristic objects: Only merged dimensions data will sync with the initial query,  un-merged dimensions/characteristic objects will still give #DATASYNC error.
    2) Create detail objects/attribute objects at report level for all uncommon characteristic/dimension objects from query_two referring to merged dimension. Then add these newly created detail/attribute objects to the table block that is having initial query objects with merged dimension, with this you see result set of query_two in the table block  not #DATASYNC error.
    ~ Manoj

  • Using chars entered in field in FMS invoked on the field

    Hi
    I have an FMS linked to a field. Basically, works perfect.
    I now want to be able to enter some chars before invoking the FMS (Shift+F2) and using the entered chars to narrow down the results (.. WHERE ... 'chars').
    Can somebody help me on getting this together?
    How can I use the chars in the field in the FMS?
    Thanks
    Franz

    Query:
    SELECT T1.DocNum AS 'PA-Nummer', T1.ItemCode AS 'Artikelnummer', T1.U_SIA_Rev AS 'Revision', T0.ItemName AS 'Artikelbeschreibung', T1.PlannedQty AS 'Planmenge', T1.CmpltQty AS 'Fertigmenge' FROM  [dbo].[OITM] T0 ,  [dbo].[OWOR] T1  WHERE T0.ItemCode = T1.ItemCode  AND  T1.Status <> N'L'
    This query is linked as FMS (Shift+F2) to the field DocNum in the production order. Basically works and I get a list of the open orders only from which i can chose to open.
    I now want to enter part of the ItemCode (AVB for instance) before invoking the FMS with Shift+F2 and the query should be added by something like:
    AND T1.ItemCode = +AVB+
    I just don't know I get the string entered into the query.
    Franz

  • Correlation on IDOC docnum

    Hello,
    I built an Integration Process, where a MATMAS Idoc is sent to an R/3 System and a ZALEAUD (copy of ALEAUD) is received (which should be merged with the MATMAS and sent back to MDM later on). I created a correlation called ZALEAUD with Container DOCNUM. I took the two Messages using the field DOCNUM. When I want to activate the correlation in the sender step, I can choose it from the drop down menu, but the value is not saved.
    Can anybody please tell me what I’m doing wrong?
    Thanks in advance
    René

    Rene,
    Faced a similar constraint when I raised this thread,
    Idoc Acknowledgements and BPM.
    My conclusion to your issue was as,
    <i>
    I looked into the Outbound Idoc in IDX5 and the Idoc Number is the same as the EISTATE-DOCNUM as correctly pointed by you. This can be used as a correaltion , but...
    1. This Idoc number is generated by XI and I dont think this will be available inside my Send Step of the BPM when I am sending the idoc from XI to the R3 system.</i>
    Maybe I was wrong, but I found no other answer.
    Regards
    Bhavesh

Maybe you are looking for