Unreachable code detected using string in my master cs file

can not string javascript or pages
String javaScript =
public
String GetCurrentPageName()all
the strings have the error.

Hi Bumples ,
Thanks for your posting.
From your description, I can’t completely understand your issue: ” can’t  string javascript
or pages “ ,” public String GetCurrentPageName() all the strings have the error”.
Based on my understanding ,I need to confirm some information as follows:
please let me that the detailed step to reproduce this issue .
Please  offer us the master.cs file or
 a sample code  so that we can analyses this issue.
Please let  me know that the detailed  information about error  or you can screenshot  in
order that we can help you further.
Hope these help.
Lilia Gong <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
Thanks
MSDN Community Support
Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

Similar Messages

  • Detected use of SPRequest for previously closed SPWeb object. Please close SPWeb objects when you are done with all objects obtained from them, but not before.

    I have develop a custom solution for SharePoint Foundation 2010 that provide PDF documents filled with lists data and attachemnts.
    If the Customer run the solution to get the PDF we found in the ULS log following entry:
    03/07/2014 12:07:20.69  w3wp.exe (0x0B10) 0x18EC 
    SharePoint Foundation General                        90hv Unexpected 
    Detected use of SPRequest for previously closed SPWeb object.  Please close SPWeb objects when you are done with all objects obtained from them, but not before.  Stack trace:    at Microsoft.SharePoint.Utilities.SPUtility.GetLocalizedString(String
    source, String defaultResourceFile, UInt32 language)     at Microsoft.SharePoint.SPFieldCollection.get_DisplayNameDict()     at Microsoft.SharePoint.SPFieldCollection.GetFieldByDisplayName(String strDisplayName, Boolean
    bThrowException)     at Microsoft.SharePoint.SPFieldCollection.GetField(String strName, Boolean bThrowException)     at Microsoft.SharePoint.SPListItem.GetValue(String strName, Boolean bThrowException)    
    at Microsoft.SharePoint.SPListItem.get_Item(String fieldName)    
    at ECM_PDF_Excel.ListClicked.GetECOs(Dictionary`2 searchedEC... e918ecd4-7ed6-44bb-9e4f-d764586a2f79 ...RECONumber)    
    at ECM_PDF_Excel.PDF.Create()     at ECM_PDF_Excel.Layouts.ECM_PDF_Excel.ECMPDFExcel.ProcessRequest(HttpContext context)     at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()    
    at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)     at System.Web.HttpApplication.PipelineStepManager.ResumeSteps(Exception error)     at System.Web.HttpApplication.BeginProcessRequestNotification(HttpContext
    context, AsyncCallback cb)     at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)     at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr
    managedHttpContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32 f... e918ecd4-7ed6-44bb-9e4f-d764586a2f79
    03/07/2014 12:07:20.69* w3wp.exe (0x0B10)                        0x18EC SharePoint Foundation        
     General                        90hv Unexpected ...lags)     at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr
    managedHttpContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)     at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr managedHttpContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32
    flags)     at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr managedHttpContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)   e918ecd4-7ed6-44bb-9e4f-d764586a2f79
    We check the method
            /// <summary>
            /// Returns the ECOs in a Dictionary: ECO Number, Suffix
            /// </summary>
            /// <param name="searchedECRECONumber">Dictionary, with the search ECR/ECO Number</param>
            /// <returns>Dictionary ECO Number, Suffix</returns>
            public static Dictionary<string, string> GetECOs(Dictionary<String, String> searchedECRECONumber)
                SPSite siteContx = SPContext.Current.Site;
                SPWeb webContx = siteContx.RootWeb;
                Dictionary<string, string> listECOs = new Dictionary<string, string>();
                string ecoNumber = string.Empty;
                string ecoSuffix = string.Empty;
                if (searchedECRECONumber.ContainsKey(ConstantData.listClickedECONumberDictionary))
                    ecoNumber = searchedECRECONumber[ConstantData.listClickedECONumberDictionary];
                else
                    return listECOs;
                // Ich suche die ECO Nummber bei gegebener ECR Nummer
                // Ich brauche den Listen Namen der in den Spalten Realtion ECR Number & Realtion ECO Number einen Wert hat
                SPList dataList = webContx.Lists.TryGetList(ConstantData.listName_ECMExcelTemplateDataLists);
                if (dataList != null)
                    SPListItemCollection dataListItems = webContx.Lists.TryGetList(ConstantData.listName_ECMExcelTemplateDataLists).Items;
                    foreach (SPItem dataListItem in dataListItems)
                        Object relationECRColumnName = (String)dataListItem[ConstantData.listFieldName_ECMExcelTemplateDataLists_RelationECRNumber];
                        Object relationECOColumnName = (String)dataListItem[ConstantData.listFieldName_ECMExcelTemplateDataLists_RelationECONumber];
                        if (relationECRColumnName != null && relationECOColumnName != null)
                            // Ich habe den Listennamen gefunden in dem Spalten Realtion ECR Number & Realtion ECO Number einen Wert haben
                            string searchedListName = (String)dataListItem[ConstantData.listFieldName_ECMExcelTemplateDataLists_Title];
                            string searchedECOSuffixColumnName = (String)dataListItem[ConstantData.listFieldName_ECMExcelTemplateDataLists_RelationECONumber];
                            // Get the List from variable listName
                            listECOs = GetECOsDictionary(searchedListName, searchedECOSuffixColumnName, ecoNumber, relationECOColumnName);
                return listECOs;
    - What take we wrong?
    - How can we avoid this message?
    Regards
    Jonnyenglisch
    Ralf Happe - Christobal Colón N° 1 ES 07670 Portocolom Tel.: +34 6961 0375 7 @: [email protected] Skype: ralfhappe msm: [email protected] www.ralfhappe.com ralfhappe | soluciónes

    Here the code of GetECOsDictionary:
             /// <summary>
            /// Fill the dicionary with related ECO Numbers/Suffix
            /// </summary>
            /// <param name="searchedListName">String: the name of the list</param>
            /// <param name="ecoNumber">String: the ECO Number</param>
            /// <param name="relationECOColumnName"></param>
            /// <returns>Dictionary</returns>
            private static Dictionary<string, string> GetECOsDictionary(string searchedListName, string ecoNumber, Object relationECOColumnName)
                SPSite siteContx = SPContext.Current.Site;
                SPWeb webContx = siteContx.RootWeb;
                Dictionary<string, string> listECOs = new Dictionary<string, string>();
                SPQuery oQuery = new SPQuery();
                oQuery.Query = "<OrderBy>" +
                                    "<FieldRef Name='" + "Title" + "' Ascending='TRUE'></FieldRef>"
    +
                                "</OrderBy>" +
                                "<Where><BeginsWith>" +
                                    "<FieldRef Name='" + "Title" + "'/>" +
                                    "<Value Type='Text'>" + ecoNumber + "</Value>" +
                                "</BeginsWith></Where>";
                SPListItemCollection searchedListItems = webContx.Lists.TryGetList(searchedListName).GetItems(oQuery);
                foreach (SPItem searchedListItem in searchedListItems)
                    // Wenn die geclickte ECO Nummer gleich der Listen ECO Nummer ist dann setze die gefundene ECO Nummer
                    string foundECONumber = (String)searchedListItem[relationECOColumnName.ToString()];
                    string[] splitECONumber = foundECONumber.Split(ConstantData.splitBy_Slash);
                    if (ecoNumber == splitECONumber[0])
                        ecoNumber = splitECONumber[0];
                        if (splitECONumber.Count() == 1)
                            listECOs.Add(foundECONumber, "0");
                        if (splitECONumber.Count() > 1)
                            listECOs.Add(foundECONumber, splitECONumber[1]);
                return listECOs;
    Ralf Happe - Christobal Colón N° 1 ES 07670 Portocolom Tel.: +34 6961 0375 7 @: [email protected] Skype: ralfhappe msm: [email protected] www.ralfhappe.com ralfhappe | soluciónes

  • Special characters in XML structure when prepared using String

    Hi,
       I am preparing an XML structure using 'String'. I print the prepared XML structure in the server log. Issue is that I am seeing extra characters([[ and ]]) that I am not printing.
    Please let me know how to get rid of those.
    Code Excerpt
            String xmlHeader = "<?xml version=\"1.0\" encoding=\"utf-8\" ?>";
            String lsb_xmlcon = xmlHeader;
            logger.info("ReqXMLString Process  1  --->" + lsb_xmlcon);
            lsb_xmlcon = lsb_xmlcon +("\n");
            logger.info("ReqXMLString Process  1.1  --->" + lsb_xmlcon);
            lsb_xmlcon = lsb_xmlcon +("<REQUEST>");
            lsb_xmlcon = lsb_xmlcon +("\n");
            logger.info("ReqXMLString Process  1.2  --->" + lsb_xmlcon);
    Log
    ReqXMLString Process  1  ---><?xml version="1.0" encoding="utf-8" ?>
    ReqXMLString Process  1.1  ---><?xml version="1.0" encoding="utf-8" ?>[[
    ReqXMLString Process  1.2  ---><?xml version="1.0" encoding="utf-8" ?>[[
    <REQUEST>
    Thanks,
    Message was edited by: 996913
    This issue is observed only while running the code in server, not from Jdev.
    When we append the additional tags without new line character, "\n", there are no extra characters being added. Also, in other case also. where we used "Marshaller" to prepare the XML, we have seen this issue.
    After we set the below property to false, we got rid of the extra characters.
                            jaxbMarshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, false);
    Apparently the insertion of new line when the code runs on server(Weblogic 10.3.6.0) is creating the issue.
    Please let me know if anyone has come across a similar scenario.
    Thanks,

    I am building this XML in a servlet so ,right, DOM does process XML (even though a valid HTML file can be loaded into a DOM object) but if you build XML using DOM then write the XML out using PrintWriter and Transformer objects this will cause the XML to print out in your browser. If you view source on this XML you will see that the DOM object has translated all special characters to there &xxxx; equivalent. For a example: when the string (I know "cool" java) gets loaded into a attribute using the DOM object then wrote back out it looks like (I know &xxx;cool&xxx; java) if you view the source in your browser. This is what it should do, but the DOM object is not change the � to the "&xxxxx;". This servlet is acting as a gateway between a Java API and a windows asp. The asp will call the servlet expecting to get XML back and load it directly into a DOM object. When the windows DOM object gets the xml that I am returning in this servlet is throws a exception "invalid character" because the � was not translated to &xxxx; like the other characters were. According to the book HTML 4 in 24 hours (and other references) the eacute; or #233; are how you say "�" in HTML or XML. How do you say it?

  • How to retrieve IndividualStrings from a txt file using String Tokenizer.

    hello can any one help me to retrieve the individual strings from a txt file using string tokenizer or some thing like that.
    the data in my txt file looks like this way.
    Data1;
    abc; cder; efu; frg;
    abc1; cder2; efu3; frg4;
    Data2
    sdfabc; sdfcder; hvhefu; fgfrg;
    uhfhabc; gffjcder; yugefu; hhfufrg;
    Data3
    val1; val2; val3; val4; val5; val6;
    val1; val2; val3; val4; val5; val6;
    val1; val2; val3; val4; val5; val6;
    val1; val2; val3; val4; val5; val6;
    i need to read the data as an individual strings and i need to pass those values to diffarent labels,the dat in Data3 i have to read those values and add to an table datamodel as 6 columns and rows depends on the data.
    i try to retrieve data using buffered reader and inputstream reader,but only the way i am retrieving data as an big string of entire line ,i tried with stringtokenizer but some how i was failed to retrive the data in a way i want,any help would be appreciated.
    Regards,

    Hmmm... looks like the file format isn't even very consistent... why the semicolon after Data1 but not after Data2 or Data3??
    Your algorithm is reading character-by-character, and most of the time it's easier to let a StringTokenizer or StreamTokenizer do the work of lexical analysis and let you focus on the parsing.
    I am also going to assume your format is very rigid. E.g. section Data1 will ALWAYS come before section Data2, which will come before section Data3, etc... and you might even make the assumption there can never be a Data4, 5, 6, etc... (this is why its nice to have some exact specification, like a grammar, so you know exactly what is and is not allowed.) I will also assume that the section names will always be the same, namely "DataX" where X is a decimal digit.
    I tend to like to use StreamTokenizer for this sort of thing, but the additional power and flexibility it gives comes at the price of a steeper learning curve (and it's a little buggy too). So I will ignore this class and focus on StringTokenizer.
    I would suggest something like this general framework:
    //make a BufferedReader up here...
    do
      String line = myBufferedReader.readLine();
      if (line!=null && line.trim().length()>0)
        line = line.trim();
        //do some processing on the line
    while (line!=null);So what processing to do inside the if statement?
    Well, you can recognize the DataX lines easily enough - just do something like a line.startsWith("Data") and check that the last char is a digit... you can even ignore the digit if you know the sections come in a certain order (simplifying assumptions can simplify the code).
    Once you figure out which section you're in, you can parse the succeeding lines appropriately. You might instantiate a StringTokenizer, i.e. StringTokenizer strtok = new StringTokenizer(line, ";, "); and then read out the tokens into some Collection, based on the section #. E.g.
    strtok = new StringTokenizer(line, ";, ");
    if (sectionNo==0)
      //read the tokens into the Labels1 collection
    else if (sectionNo==1)
      //read the tokens into the Labels2 collection
    else //sectionNo must be 2
      //create a new line in your table model and populate it with the token values...
    }I don't think the delimiters are necessary if you are using end-of-line's as delimiters (which is implicit in the fact that you are reading the text out line-by-line). So the original file format you listed looks fine (except you might want to get rid of that rogue semicolon).
    Good luck.

  • Issue: Detected use of SPRequest for previously closed SPWeb object

    I have a solution to create web site by a custom web template. I used ULS Viewer to monitor the sharepoint error log during the process. I see some unexpected error(Detected use of SPRequest for previously closed SPWeb object.  Please close SPWeb
    objects when you are done with all objects obtained from them, but not before.)
    I believe that It will bring up a memory leak issue in anytime future. so I spend some time to find the root cause. It has no unexpected issue by creating web site with out of the box template(BLOG,WIKI, etc). I will get only get it with custom
    template. Does anyone know the reason and soltuon for this issue? Thanks.

            protected void Button2_Click(object sender, EventArgs e)
                string Client = "Client";
                string creatorId = "UserId";
                string creatorname = "Robin Hung";
                string rreatorEmail = "[email protected]";
                SPSecurity.RunWithElevatedPrivileges(delegate()
    using (
    SPSite newSite =
    new SPSite("http://localhost/sites/" + Client))
    SPWebTemplateCollection WTC =
    newSite.GetWebTemplates(1033);
    SPWebTemplate webTemplate =
    newSite.GetWebTemplates(1033)["SubSite"];
    newSite.AllowUnsafeUpdates = true;
    SPDiagnosticsService.Local.WriteTrace(0,
    new SPDiagnosticsCategory
    ("Log",
    TraceSeverity.
    Verbose,
    EventSeverity.
    Verbose),
    TraceSeverity.Verbose,
    "Test 2", "Called");
    using (SPWeb spWeb = newSite.OpenWeb())
    SPDiagnosticsService.Local.WriteTrace(0,
    new SPDiagnosticsCategory
    ("Log",
    TraceSeverity
    .Verbose,
    EventSeverity
    .Verbose),
    TraceSeverity.
    Verbose,
    "Test 21",
    "Called");
    spWeb.AllowUnsafeUpdates = true;
    spWeb.Webs.Add("Robin4", "Robin2", "test", 1033,
    webTemplate, false, false);
    SPDiagnosticsService.Local.WriteTrace(0,
    new SPDiagnosticsCategory
    ("Log",
    TraceSeverity
    .Verbose,
    EventSeverity
    .Verbose),
    TraceSeverity.
    Verbose,
    "Test 211",
    "Called");
    spWeb.Webs.Add("Robin5", "Robin2", "test", 1033,
    WTC["SubSite"], false, false);
    SPDiagnosticsService.Local.WriteTrace(0,
    new SPDiagnosticsCategory
    ("Log",
    TraceSeverity
    .Verbose,
    EventSeverity
    .Verbose),
    TraceSeverity.
    Verbose,
    "Test 212",
    "Called");
    spWeb.Webs.Add("Robin6", "Robin2", "test", 1033,
    WTC[30], false, false);
    SPDiagnosticsService.Local.WriteTrace(0,
    new SPDiagnosticsCategory
    ("Log",
    TraceSeverity
    .Verbose,
    EventSeverity
    .Verbose),
    TraceSeverity.
    Verbose,
    "Test 213",
    "Called");
    spWeb.AllowUnsafeUpdates = false;
    SPDiagnosticsService.Local.WriteTrace(0,
    new SPDiagnosticsCategory
    ("Log",
    TraceSeverity
    .Verbose,
    EventSeverity
    .Verbose),
    TraceSeverity.
    Verbose,
    "Test 22",
    "Called");
    newSite.AllowUnsafeUpdates = false;
    //currentSite.AllowUnsafeUpdates = false;
    SPDiagnosticsService.Local.WriteTrace(0,
    new SPDiagnosticsCategory
    ("Log",
    TraceSeverity.
    Verbose,
    EventSeverity.
    Verbose),
    TraceSeverity.Verbose,
    "Test 4", "Called");

  • What Function Module can be used to create vendor master data in SAP R/3?

    Hello -
    I've been trying to find a standard SAP delivered BAPI that can be used to create vendor master records in ECC 6.0. Up to this point I have not been able to do so. With SAP MDM solutions and SRM solutions it seems logical that SAP would deliver a standard BAPI that can be used to create vendor master records in the ERP/R3 environment (similar to the BAPI_MATERIAL_SAVEREPLICA for creating material master data records).
    I have been able to find BAPI_VENDOR_CREATE but this only calls the online transaction and does not offer much additional functionality beyond what transaction code XK02 already offers.
    The next best alternative appears to be IDOC_INPUT_CREDITOR but our preference would be to not use IDOCs for the project we are working on.
    Can anyone offer any insight or personal experience on how vendor master records have been successfully interfaced with SAP R/3? Did you have to use IDOCs or create a custom RFC call? Thanks for the help!
    Rich Wortmann
    << Personal information removed >>
    Edited by: Rob Burbank on May 14, 2009 10:43 AM

    Quite a gap in the BAPI arsenal. I think the options are IDoc, which you don't want, good old program RFBIKR00 (requires flat file for input, can be used via LSMW) or DIY (very complex).
    Thomas

  • Problem in using String in Implicit Cursor

    Hi,
    I am facing problem in using String in Implicit Cursor:
    I have initialise
    DECLARE
    v_grant varchar2(4000);
    begin
    v_grant:='SELECT TABLE_NAME FROM DUMP_USER_TABLES WHERE TABLE_NAME LIKE ';
    FOR obj IN (SELECT v_grant||'''BS%''' FROM dual) LOOP
    V_REVOKE:='REVOKE ALL ON ' || 'obj.TABLE_NAME' || ' FROM ' || '''TEST''';
    DBMS_OUTPUT.PUT_LINE('THE REVOKE STATEMENT IS'||V_REVOKE);
    num := num + 1;
    END LOOP;
    END;
    I am not getting the value from obj.TABLE_NAME its coming as 'obj.TABLE_NAME'
    Kindly anyhelp will be needful for me

    Besides from what Sybrand already pointed out clearly:
    Your example doesn't run at all:
    MHO%xe> DECLARE
      2  v_grant varchar2(4000);
      3  begin
      4  v_grant:='SELECT TABLE_NAME FROM DUMP_USER_TABLES WHERE TABLE_NAME LIKE ';
      5  FOR obj IN (SELECT v_grant||'''BS%''' FROM dual) LOOP
      6  V_REVOKE:='REVOKE ALL ON ' || 'obj.TABLE_NAME' || ' FROM ' || '''TEST''';
      7  DBMS_OUTPUT.PUT_LINE('THE REVOKE STATEMENT IS'||V_REVOKE);
      8  num := num + 1;
      9  END LOOP;
    10  END;
    11  /
    V_REVOKE:='REVOKE ALL ON ' || 'obj.TABLE_NAME' || ' FROM ' || '''TEST''';
    FOUT in regel 6:
    .ORA-06550: line 6, column 1:
    PLS-00201: identifier 'V_REVOKE' must be declared
    ORA-06550: line 6, column 1:
    PL/SQL: Statement ignored
    ORA-06550: line 7, column 49:
    PLS-00201: identifier 'V_REVOKE' must be declared
    ORA-06550: line 7, column 1:
    PL/SQL: Statement ignored
    ORA-06550: line 8, column 1:
    PLS-00201: identifier 'NUM' must be declared
    ORA-06550: line 8, column 1:
    PL/SQL: Statement ignoredI guess you need to read up on quoting strings properly and probably also dynamic SQL.
    But:
    WHAT are you trying to do anyway?
    I cannot parse your code at all...so what is your requirement in human language?

  • How to search for upper/lower case using string using JAVA!!!?

    -I am trying to write a program that will examine each letter in the string and count how many time the upper-case letter 'E' appears, and how many times the lower-case letter 'e' appears.
    -I also have to use a JOptionPane.showMessageDialog() to tell the user how many upper and lower case e's were in the string.
    -This will be repeated until the user types the word "Stop". 
    please help if you can
    what i have so far:
    [code]
    public class Project0 {
    public static void main(String[] args) {
      String[] uppercase = {'E'};
      String[] lowercase = {'e'};
      String isOrIsNot, inputWord;
      while (true) {
       // This line asks the user for input by popping out a single window
       // with text input
       inputWord = JOptionPane.showInputDialog(null, "Please enter a sentence");
       if ( inputWord.equals("stop") )
        System.exit(0);
       // if the inputWord is contained within uppercase or
       // lowercase return true
       if (wordIsThere(inputWord, lowercase))
        isOrIsNot = "Number of lower case e's: ";
       if (wordIsThere(inputword, uppercase))
         isOrIsNot = "number of upper case e's: ";
       // Output to a JOptionPane window whether the word is on the list or not
       JOptionPane.showMessageDialog(null, "The word " + inputWord + " " + isOrIsNot + " on the list.");
    } //main
    public static boolean wordIsThere(String findMe, String[] theList) {
      for (int i=0; i<theList.length; ++i) {
       if (findMe.equals(theList[i])) return true;
      return false;
    } // wordIsThere
    } // class Lab4Program1
    [/code]

    So what is your question? Do you get any errors? If so, post them. What doesn't work?
    And crossposted: how to search for upper/lower case using string using JAVA!!!?

  • SELECT command using String

    Hi
    How can I do to select data using string with range:
    srch_strA = notcr-low.
    srch_strb = notcr-high.
    * Building selection
    IF srch_strA IS NOT INITIAL AND srch_strB IS INITIAL.
      CONCATENATE '%' srch_strA '%' INTO srch_strA.
    *document header
      SELECT bukrs belnr gjahr bktxt bldat xblnr
        FROM bkpf INTO CORRESPONDING FIELDS OF TABLE it_bkpf
        WHERE bukrs EQ p_bukrs AND
              belnr IN belnr AND
              gjahr EQ p_gjahr
              AND xblnr IN xblnr
              AND BKTXT LIKE srch_strA.
    ENDIF.
    IF srch_strA NE '' AND srch_strB NE ''.
      CONCATENATE '*' srch_strA '*' INTO srch_strA.
      CONCATENATE '*' srch_strB '*' INTO srch_strB.
      ti_nc-sign    =  'I'.
      ti_nc-option  =  'BT'.
      ti_nc-low     =  srch_strA.
      ti_nc-high    =  srch_strB.
      append ti_nc. clear ti_nc.
    *document header
      SELECT bukrs belnr gjahr bktxt bldat xblnr
      FROM bkpf INTO CORRESPONDING FIELDS OF TABLE it_bkpf
        WHERE bukrs EQ p_bukrs AND
              belnr IN belnr AND
              gjahr EQ p_gjahr
              AND xblnr IN xblnr
              AND BKTXT IN ti_nc.
      ENDIF.
    Thanks in advance.
    Moderator message - Please use code tags around your code
    Edited by: Rob Burbank on Nov 27, 2009 5:26 PM

    Hi,
    Pls. use this code and check if its working...
    srch_strA = notcr-low.
    srch_strb = notcr-high.
    * Building selection
    IF srch_strA IS NOT INITIAL AND srch_strB IS INITIAL.
      CONCATENATE '%' srch_strA '%' INTO srch_strA.
    *document header
      SELECT bukrs belnr gjahr bktxt bldat xblnr
        FROM bkpf INTO CORRESPONDING FIELDS OF TABLE it_bkpf
        WHERE bukrs EQ p_bukrs AND
              belnr IN belnr AND
              gjahr EQ p_gjahr
              AND xblnr IN xblnr
              AND BKTXT LIKE srch_strA.
    ENDIF.
    IF srch_strA NE '' AND srch_strB NE ''.
      CONCATENATE srch_strA '*' INTO srch_strA.
      CONCATENATE srch_strB '*' INTO srch_strB.
      ti_nc-sign    =  'I'.
      ti_nc-option  =  'BT'.
      ti_nc-low     =  srch_strA.
      ti_nc-high    =  srch_strB.
      append ti_nc. clear ti_nc.
    *document header
      SELECT bukrs belnr gjahr bktxt bldat xblnr
      FROM bkpf INTO CORRESPONDING FIELDS OF TABLE it_bkpf
        WHERE bukrs EQ p_bukrs AND
              belnr IN belnr AND
              gjahr EQ p_gjahr
              AND xblnr IN xblnr
              AND BKTXT IN ti_nc.
      ENDIF.
    Thanks,
    Sid

  • Use string as url

    Hello,
    I�m looking for a help. I�m creating a GUI in Java Studio creator 2 and I need to comunicate with ArcIms. I have prepared URL adress with parameter as a string and I need tu use it as a start page.
    String url_1 = .....164.10.161/website/olk_hzs/viewer.htm?ActiveLayer=77&Query=KOD_OBCE%3D%27";
    String url_2 = "%27&QueryZoom=Yes";
    Object obec = null;
    obec = obceDataProvider2.getValue("KOD_OBCE");
    String odkaz = url_1 + obec + url_2;
    I�m starting a web browser using Runtime.getRuntime() I have no problem with starting the browser, but the start page is the same as a page where I placed a hypertext.
    Thanks for any help.
    Regards Kamil

    I trying but it doesnt work. Is this code ok?
    String command = "C:\\Program Files\\Internet Explorer\\IEXPLORE.EXE + odkaz";
    Runtime r = Runtime.getRuntime();
    Process proc = r.exec(command);
    "odkaz" is string - I cant use url because I am using a query to create it and when I trying to create url I ahve an error incompatible types

  • Java Plugin Detection using VBScript on Internet Explorer

    Hi,
    I need a way to detect when the plugin version is above a certain version number (such as 1.4.1 or higher) so that I can give the user some extra info as to what is happening when the plugin is downloading automatically on Internet Explorer. Something like :-
    "Please wait for Java plugin to download"
    At present there is a long delay when the user may not know what is happening as no info is relayed back to user.
    I know that the presence of the plugin can be detected using vbscript but not with JavaScript but how do i determine that the user has 1.4.1 or higher. I use the following code:
    <script language="vbscript">
    If IsObject(CreateObject("JavaPlugin"))=True Then
    document.writeln("some info to user")
    End If
    </script>
    This tells me if a JavaPlugin is installed but not what version so we still dont know whether the applet will run or the plugin will download.
    I have also tried:
    <script language="vbscript">
    If IsObject(CreateObject("JavaPlugin.141"))=True Then
    document.writeln("some info to user")
    End If
    </script>
    this works but what if the user already has a version greater than 1.4.1 this is not detected and a nonsense message saying that the Java plugin is downloading is displayed.
    Any ideas?

    Here's JavaPlugin detection for netscape and ie using JavaScript . . .
    Throw this in a .js file and source it at the start of you html.
    function detectPlugin() {         
         var thePlugins = detectPlugin.arguments;     // allow for multiple checks in a single pass
         var pluginFound = false;               // consider pluginFound to be false until proven true
         // if plugins array is there and not fake
         if (navigator.plugins && navigator.plugins.length > 0) {
    var pluginsArrayLength = navigator.plugins.length;     
              // for each plugin loop through all desired names and check each against the current plugin name
    for (pluginsArrayCounter=0; pluginsArrayCounter < pluginsArrayLength; pluginsArrayCounter++ ) {
    var numFound = 0;
    for(namesCounter=0; namesCounter < thePlugins.length; namesCounter++) {
                        // if desired plugin name is found in either plugin name or description     the pluginFound                     
    if( (navigator.plugins[pluginsArrayCounter].name.indexOf(thePlugins[namesCounter]) >= 0) || (navigator.plugins[pluginsArrayCounter].description.indexOf(thePlugins[namesCounter]) >= 0) ) {
    numFound++;
                   // now that we have checked all the required names against this one plugin,
                   // if the number we found matches the total number provided then we were successful
    if(numFound == thePlugins.length) {
    pluginFound = true;
                        // if we've found the plugin, we can stop looking through at the rest of the plugins
    break;
    return pluginFound;
    function noJavaPlugin(){
    window.open("http://plugin_location");
    function redirect_users(URL){
    location.href = URL;
    if(navigator){
    browser_string = navigator.appVersion + " " + navigator.userAgent;
    if (browser_string.indexOf("MSIE")>=0) {
              document.write(' <object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"');
              document.write(' CODEBASE="javascript:noJavaPlugin()" width=1 height=1>');
              document.write(' <param name="type" value="application/x-java-applet;version=1.4">');
              document.write(' <param name="cache_option" value="Plugin">');
              document.write(' <param name="cache_archive" value="">');
              document.write(' <param name="MAYSCRIPT" value="true">');
              document.write(' </object>');
         else {
              if (! (detectPlugin("Java Plug-in 1.4.0_01 for Netscape Navigator (DLL Helper)"))) {
                   noJavaPlugin();
    else{
         noJavaPlugin();
    redirect_users("http://place_to_go_if_they_have_plugin");

  • BTE's used for project systems master data.

    Hi ,
    Can anyone tell me what are the BTE's used for project systems master data.
    Tcode used are CJ01,  Cj02,  CJ20N,  CJ12,  CNMASS
    When master data is changed or created BTE should trigger.
    Regards
    Subin

    I don't think there are any open_fi BTE available for PS master data.
    you can use classic subs/vals using GGB0 and GGB1 transaction codes.

  • Using string password

    Hi
    Can someone give me a sample code about how to use string password when encrypting and decrypting data?
    I have made an application that encrypts and decrypts data and it can even save password. Password is not created from string see code:
    KeyGenerator kgen = KeyGenerator.getInstance("Blowfish");
    SecretKey skey = kgen.generateKey();
    byte[] raw = skey.getEncoded();
    SecretKeySpec skeySpec = new SecretKeySpec(raw, "Blowfish");
    Now I want that client can give a password and application use that while encrypting and decrypting.
    I'm using CipherOutputStream and CipherInputStream to save and open data. I'm using Blowfish algorithm.
    Regards
    Juha

    Hi Juha,
    Here is the sample code for encrypting and decrypting a string.
    import java.io.*;
    import java.security.*;
    import javax.crypto.*;
    import sun.misc.*;
    public class SecretWriting{
    public static void main(String args[]) throws Exception{
    if(args.length<2)
    System.out.println("Usage : SecretWriting -e|-d text");
    return;
    Security.addProvider(new com.sun.crypto.provider.SunJCE());
    Key key;
    try{
    ObjectInputStream in=new ObjectInputStream(new FileInputStream("des.key"));
    key=(Key)in.readObject();
    in.close();
    catch(FileNotFoundException fnfe)
    KeyGenerator generator= KeyGenerator.getInstance("DES");
    generator.init(new SecureRandom() );
    key=generator.generateKey();
    ObjectOutputStream out=new ObjectOutputStream(new FileOutputStream("des.key"));
    out.writeObject(key);
    out.close();
    Cipher cipher=Cipher.getInstance("DES/ECB/PKCS5Padding");
    if(args[0].indexOf("e") !=-1)
    cipher.init(Cipher.ENCRYPT_MODE,key);
    String amalgam=args[1];
    for(int i=2;i<args.length;i++)
    amalgam+=" "+args;
    byte[] stringBytes=amalgam.getBytes("UTF8");
    byte[] raw=cipher.doFinal(stringBytes);
    BASE64Encoder encoder = new BASE64Encoder();
    String base64 = encoder.encode(raw);
    System.out.println(base64);
    else if(args[0].indexOf("d")!=-1)
    cipher.init(Cipher.DECRYPT_MODE,key);
    BASE64Decoder decoder = new BASE64Decoder();
    byte[] raw = decoder.decodeBuffer(args[1]);
    byte[] stringBytes = cipher.doFinal(raw);
    String result = new String(stringBytes,"UTF8");
    System.out.println(result);
    I hope this will help you out.
    Thanks
    Bakrudeen
    Technical Support Engineer
    Sun MicroSystems Inc, India

  • SleepServicesD[68]: FIXME: IOUnserialize has detected a string that is not valid UTF-8, ""

    I have an iMac late 2013 which hangs after one night in sleep mode. The only way to get it back working again is to power cycle it (5 sec power button)
    It is a late 2013 21'' imac with 16GB RAM, and a fusion drive, with Mavericks installed.
    When I look in the console the following entries appear just before the reboot:
    10/10/14 00:45:17,000 kernel[0]: [0x2e0685000, 0x100000]
    10/10/14 00:45:17,000 kernel[0]: [0x2e07c5000, 0x80000]
    10/10/14 00:45:17,000 kernel[0]: [0x2e0885000, 0x100000]
    10/10/14 00:45:17,000 kernel[0]: [0x2e09c5000, 0x180000]
    10/10/14 08:15:58,000 bootlog[0]: BOOT_TIME 1412921758 0
    A lot of kernel messages, this is always the same. Just before the kernel messages appear these messages:
    10/10/14 00:44:50,000 kernel[0]: AppleThunderboltNHI::prePCIWake - power up complete - took 0 us
    10/10/14 00:44:50,000 kernel[0]: AppleThunderboltHAL::earlyWake - complete - took 0 milliseconds
    10/10/14 00:44:50,000 kernel[0]: VNOP_ALLOCATE(0) 413138944
    10/10/14 00:44:50,000 kernel[0]: Thunderbolt Self-Reset Count = 0xedefbe00
    10/10/14 00:44:50,000 kernel[0]: IOThunderboltSwitch<0xffffff8023b5c400>(0x0)::listenerCallback - Thunderbolt HPD packet for route = 0x0 port = 11 unplug = 0
    10/10/14 00:44:51,000 kernel[0]: IOThunderboltSwitch<0xffffff8023b5c400>(0x0)::listenerCallback - Thunderbolt HPD packet for route = 0x0 port = 12 unplug = 0
    10/10/14 00:45:17,000 kernel[0]: [0x1530d2000, 0x13000]
    These messages are always Thunderbold related. When I look in to the logs these events occur regularly, also when the system does not hangs over night. Today I discovered the following. Just before the crash there is an IOUnserialize error that is related to Sleep :
    10/10/14 00:44:21,874 SleepServicesD[68]: FIXME: IOUnserialize has detected a string that is not valid UTF-8, "P ��".
    Just after restart it generated several similar error, as:
    10/10/14 08:16:19,760 configd[18]: FIXME: IOUnserialize has detected a string that is not valid UTF-8, "P ��".
    I am not sure but it seems like that the crashes are more likely to occur when both me and my wife are logged in to the system. My wife is using Parallels desktop 9 with windows 8.1. And it seems that the hangs occur the night after she worked for multiple hour on the virtual machine, but I have to stress that this is just a feeling, I am not sure if that is the cause of the problems. Maybe working for extensive periods is the cause not the virtual machine.
    I am wondering did anyone other experience this and what worked for you? I am tired of the hard reboots. Today even the keyboard had crashed (apple wired keyboard with numerical input) I had to unplug it for a while (several minutes) before it started working again. The USB ports were fine after reboot. I tested them with another wired keyboard, while the other one was connected and not working. Switching ports did not help, thus that problem was really keyboard related.
    I hope someone has any ideas.
    Thanks in advance!

    To be sure I reinstalled Mavericks again, the first night exactly the same. This morning the imac did not wake up from sleep again. I checked the logs after a hard reboot. Exactly the same issue as above
    It contained multiple FIXME entries. The SleepService was the first FIXME that appeared in the log and is followed by multiple FIXMEs from various sources:
    11/10/14 03:05:29,052 SleepServicesD[71]: FIXME: IOUnserialize has detected a string that is not valid UTF-8, "Q
    ��".
    11/10/14 09:25:45,215 configd[17]: FIXME: IOUnserialize has detected a string that is not valid UTF-8, "1 � ".

  • XML queries... Change the code from using Oracle db into MS SQL

    Hi, I am a new begginer in this field. I came accross to an article that focuses in Oracle's XSU approach.
    Currently, i am trying to convert the java code from using Oracle db to MSSQL db. The code has shown below:
    import javax.naming.*;
    import javax.sql.*;
    import java.sql.*;
    import oracle.xml.sql.query.*;
    public class testxml
         public static void main(String args[]) throws SQLException, NamingException
         String tabName = "emp";
         int maxRows = 3;
         Context ctx = new InitialContext ();
         DataSource ds = (DataSource) ctx.lookup ("MyOra");
         Connection conn = ds.getConnection ();
    OracleXMLQuery qu = new OracleXMLQuery (
    conn, "select EMPNO, ENAME from " + tabName);
    qu.setMaxRows (maxRows);
    qu.setRowsetTag ("EMPLOYERS");
    qu.setRowTag ("PERSON");
    String xmlString = qu.getXMLString();
    System.out.println (xmlString);
    conn.close ();
    Currently, i am having difficulties to change the "bold" area that uses Oracle into MS SQL as my current application is using MS SQL as the database.
    Please help and need more advices from all of you. Thank You

    I resolved this issue myself. For the answer please message me.

Maybe you are looking for