Getting an unexpected error while displaying the bound HtmlOutputText

I am getting this unexpected error when I am trying to display the HtmlOutputText which is bound to a backing bean HtmlOutputText component.
Error:
java.lang.IllegalStateException: strict servlet API: cannot call getOutputStream() after getWriter()
     at weblogic.servlet.internal.ServletResponseImpl.getOutputStream(ServletResponseImpl.java:253)
     at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:176)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
     at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3151)
     at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
The JSP Page is :
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Two Beans</title>
</head>
     <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<body>
<f:view>
<h:form id="TwoBeansForm">
     <h:selectOneMenu id="Dropdown" value="#{hlb.cb.selVal}">
          <f:selectItems value="#{RgsRequestBean.compLookup.competencyAreaMap}"/>
     </h:selectOneMenu>
     <h:commandButton id="TestButton" value="Display" action="#{hlb.display}"/>
     <h:outputText id="SelectedValue" binding="#{hlb.text}"/>
</h:form>
</f:view>
</body>
</html>The backing bean code is:
package trial;
import javax.faces.component.html.HtmlOutputText;
public class HighLevelBean {
     private ChildBean cb;
     private HtmlOutputText text;
     public HighLevelBean(){
          cb=new ChildBean();
     public ChildBean getCb() {
          return cb;
     public void setCb(ChildBean cb) {
          this.cb = cb;
     public HtmlOutputText getText() {
          return text;
     public void setText(HtmlOutputText text) {
          this.text = text;
     public String display(){
          text=new HtmlOutputText();
          text.setValue(cb.getSelVal());
            return "goback@twobeans";
}The goback@twobeans string provides the navigation to the same jsp page.
Childbean just have one String member variable.
The values in the drop down is getting populated but when I am trying to get the selected value to be displayed through the HtmlTextOutput the above error is thrown...

Hi  ,
For troubleshooting your issue, please take steps as below:
1. Open web.config file of current web application
2. Find the node that begins
<trust level=
3. Change the trust level from WSS_Minimal to
WSS_Medium
4. Save the file
5. Drop to command prompt and execute : 
iisreset
If your issue persists, please provide detail error message of ULS log  to determine the exact cause of the error?
For SharePoint 2010, by default, ULS log is at      
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS
Best Regards,
Eric
Eric Tao
TechNet Community Support

Similar Messages

  • Error while displaying the attached file

    Hi ,
    I am doing one task ,where I need to attach a TIFF file to the workitem .
    I am getting desired output while attaching the file from presentation server but While doing from application server , I am able to attach the file to corrseponding workitem but when i tried to display it ,it gives an error <b>" Operation could not be performed"</b>
    So could you please help me out how to do this ?
    I am using a FM "SCMS_UPLOAD" for uploading file from application server .
    Is there any other way to upload or read the file .
    Thanks

    Hi,
    Use the other FM's
    'SO_OBJECT_UPLOAD'
    OR
    If you are trying to read the file from an SAP Application server,
    1) "OPEN DATASET" to open the file,
    2) "READ DATASET" to read the data into an internal table
    3) "CLOSE DATASET".
    OR
    *   Retrieve Data file from Application server(Upload from Unix)
    DATA: i_file like rlgrap-filename value '/usr/sap/tmp/file.txt'.
        OPEN DATASET i_file FOR INPUT IN TEXT MODE.
        IF sy-subrc NE 0.
          MESSAGE e999(za) WITH 'Error opening file' i_file.
        ENDIF.
        DO.
    *     Reads each line of file individually
          READ DATASET i_file INTO wa_datatab.
    *     Perform processing here
        ENDDO.
    Regards,
    Nandha

  • Unexpected Error while initilizing the Livecycle Database

    Hi<br />  I am facing problems with intializing the database server. I am getting Bootstrap error. Please find the below error log details.<br /><br />What should i do to make the bootstrap task passed. Below the error says error had occured while intilizing [http://192.168.121.58:1521/adobe-bootstrapper/bootstrap?fetchTasks=true&responseLocale=e n ]. The IP specified in the URL is a database server IP. <br /><br />How should i proceed to solve this problem.<br /><br />[2009-01-29 17:50:00,921], INFO, AWT-EventQueue-0, com.adobe.livecycle.lcm.feature.bootstrap.BootstrapDialog, Starting processing<br />[2009-01-29 17:50:00,921], INFO, AWT-EventQueue-0, com.adobe.livecycle.lcm.feature.bootstrap.BootstrapTask, Starting task: com.adobe.livecycle.lcm.feature.bootstrap.BootstrapTask@1d41132<br />[2009-01-29 17:50:00,921], INFO, Thread-29, com.adobe.livecycle.bootstrap.client.FetchTasksClient, Invoking [http://192.168.121.58:1521/adobe-bootstrapper/bootstrap?fetchTasks=true&responseLocale=e n]<br />[2009-01-29 17:50:01,093], INFO, Thread-29, com.adobe.livecycle.bootstrap.client.FetchTasksClient, Unexpected error occured, SSL may be enabled, trying https protocol...<br />[2009-01-29 17:50:01,109], INFO, Thread-29, com.adobe.livecycle.bootstrap.client.FetchTasksClient, Invoking [https://192.168.121.58:1521/adobe-bootstrapper/bootstrap?fetchTasks=true&responseLocale= en]<br />[2009-01-29 17:50:01,109], SEVERE, Thread-29, com.adobe.livecycle.lcm.feature.bootstrap.BootstrapTask, Task failed<br />com.adobe.livecycle.bootstrap.BootstrapException: ALC-TTN-109-000: Could not establish a valid connection to server: [Unexpected end of file from server]<br />     at com.adobe.livecycle.bootstrap.client.BootstrapClient.invoke(BootstrapClient.java:117)<br />     at com.adobe.livecycle.bootstrap.client.FetchTasksClient.fetchTasks(FetchTasksClient.java:68 )<br />     at com.adobe.livecycle.bootstrap.client.BootstrapManager.getTasks(BootstrapManager.java:147) <br />     at com.adobe.livecycle.lcm.feature.bootstrap.BootstrapTask$ActualTask.<init>(BootstrapTask.j ava:100)<br />     at com.adobe.livecycle.lcm.feature.bootstrap.BootstrapTask$1.construct(BootstrapTask.java:58 )<br />     at com.adobe.livecycle.lcm.core.tasks.SwingWorker$2.run(SwingWorker.java:114)<br />     at java.lang.Thread.run(Thread.java:595)<br />Caused by: java.net.SocketException: Unexpected end of file from server<br />     at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:684)<br />     at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:554)<br />     at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:682)<br />     at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:554)<br />     at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:936)<br />     at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:367)<br />     at com.adobe.livecycle.bootstrap.client.BootstrapClient.parseResponse(BootstrapClient.java:1 55)<br />     at com.adobe.livecycle.bootstrap.client.BootstrapClient.invoke(BootstrapClient.java:105)<br />     ... 6 more<br />[2009-01-29 17:50:01,421], SEVERE, AWT-EventQueue-0, com.adobe.livecycle.lcm.feature.bootstrap.BootstrapDialog, Bootstrap exception<br />com.adobe.livecycle.bootstrap.BootstrapException: ALC-TTN-109-000: Could not establish a valid connection to server: [Unexpected end of file from server]<br />     at com.adobe.livecycle.bootstrap.client.BootstrapClient.invoke(BootstrapClient.java:117)<br />     at com.adobe.livecycle.bootstrap.client.FetchTasksClient.fetchTasks(FetchTasksClient.java:68 )<br />     at com.adobe.livecycle.bootstrap.client.BootstrapManager.getTasks(BootstrapManager.java:147) <br />     at com.adobe.livecycle.lcm.feature.bootstrap.BootstrapTask$ActualTask.<init>(BootstrapTask.j ava:100)<br />     at com.adobe.livecycle.lcm.feature.bootstrap.BootstrapTask$1.construct(BootstrapTask.java:58 )<br />     at com.adobe.livecycle.lcm.core.tasks.SwingWorker$2.run(SwingWorker.java:114)<br />     at java.lang.Thread.run(Thread.java:595)<br />Caused by: java.net.SocketException: Unexpected end of file from server<br />     at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:684)<br />     at sun.net.www.http.HttpClient.parseHTTP

    While officially XP is not supported, I don't believe that is causing your problem. The "Could not establish a valid connection to server" indicates that there is a problem connecting from the WAS server to the DB server.
    This can be caused by one of several common problems such as:
    - Missing database driver file
    - Error in the JDBC Driver configuration or data source
    - Error in the connection pools
    The WebSphere installation guide (http://help.adobe.com/en_US/livecycle/8.2/install_websphere.pdf) has a walk through starting at page 31. It can be something as minor as a typo in one of the configurations.

  • I get a runtime error while installing the VCREDIST_X86_2005_SU.exe

    Hi Guys,
    I get "Error : 1316.A network error occured while attempting to read from the file: C:\TEMP\IXP001.TMP\CP0000328.msi" while installing the VC++ redistributable.
    Is this known to any of you, please let me know how to fix it.
    If there is a solution on some forum, please direct me to that link.
    Some one is intrested in solving this problem, please let me know what else do you need to understand the problem.
    Please give me a possible solution, as i need it ASAP.
    -Abhai

    Hi Dude,
    Please follow the below steps.
    [Be careful when you deleting any registry key. Your system may crashed if you delete or modify wrong registry key. Please follow technet to know about registry backup.
    1. Go to run and type regedit, at regedit window go to edit then find and type IXP000.TMP and click on "Find Next"
    2. It will Search entire registry and please delete entire Hive if you it find under below registry.
    a. HKEY_CLASSES_ROOT\Installer\Products\(hive with alpha numaric valu, see belwo exmp)
    (examp: HKEY_CLASSES_ROOT\Installer\Products\b25099274a207264182f8181add555d0 if you found IXP00.TMP under this hive then only delete "b25099274a207264182f8181add555d0", the last alpha numaric
    hive may be diff for your box, you can check product name key under this alpha numaric hive whether it "="Microsoft Visual C++ 2005 Redistributable" or not (ProductName"="Microsoft Visual C++ 2005 Redistributable") Be careful when you delete registry key,
    please do not delete entire "Products". Before deleting right click on it and select export and save this hive backup any location on your system )
    b..HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\}
    (examp: "[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7299052b-02a4-4627-81f2-1818da5d550d}]" if you found IXP00.TMP under this hive then only delete "b25099274a207264182f8181add555d0"
    the last alpha numeric hive may be diff for your box, you can check "DisplayName" under this alpha numeric hive whether it "Microsoft Visual C++ 2005 Redistributable" or not (ProductName"="Microsoft Visual C++ 2005 Redistributable") Be careful when you delete
    registry key, please do not delete entire "Products". Before deleting right click on it and select export and save this hive backup any location on your system )
    c. HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\
    (examp: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\b25099274a207264182f8181add555d0"if you found IXP00.TMP under this hive then only
    delete "b25099274a207264182f8181add555d0" the last alpha numeric hive may be diff for your box, you can check "DisplayName" under this alpha numeric hive whether it "Microsoft Visual C++ 2005 Redistributable" or not (ProductName"="Microsoft Visual C++ 2005
    Redistributable") Be careful when you delete registry key, please do not delete entire "Products". Before deleting right click on it and select export and save this hive backup any location on your system )
    3. Reboot your box and run installer again, it will work. Please let us know if you found any issue.

  • Getting Unknown Source Error While Deploying the Planning Application

    Hi,
    Getting following error while trying to Deploy Planning Application from BPMA
    Started Time : Tuesday, January 08, 2008 5:43:40 PM
    Submitted Time : Tuesday, January 08, 2008 5:43:40 PM
    Last Updated Time : Tuesday, January 08, 2008 5:44:32 PM
    User Name : hpadmin
    Process Name :
    Thread : 0
    Server : DimServer
    Detail : App Creation failed with Exceptionjava.lang.RuntimeException: Exception occurred while creating the application. Check log for details     at com.hyperion.planning.appdeploy.HspAppDefinition.deployAppFromXML(Unknown Source)     at com.hyperion.planning.appdeploy.HspAppDefinition.access$000(Unknown Source)     at com.hyperion.planning.appdeploy.HspAppDefinition$1.run(Unknown Source)

    Hi,
    I am getting the same error:-
    Started Time : Tuesday, February 26, 2008 4:14:31 PM
    Submitted Time : Tuesday, February 26, 2008 4:14:31 PM
    Last Updated Time : Tuesday, February 26, 2008 4:15:39 PM
    User Name : hpadmin
    Process Name :
    Thread : 0
    Server : DimServer
    Detail : App Creation failed with Exceptionjava.lang.RuntimeException: Exception occurred while creating the application. Check log for details     at com.hyperion.planning.appdeploy.HspAppDefinition.deployAppFromXML(Unknown Source)     at com.hyperion.planning.appdeploy.HspAppDefinition.access$000(Unknown Source)     at com.hyperion.planning.appdeploy.HspAppDefinition$1.run(Unknown Source)
    1---Have created new user for new App as well datasource
    2-Bounced the EPMA as well planning server but no avail.
    how I can I get detail log ? or if is it possible to tell me which directory to look into
    thanks in advance
    Sanjay

  • Run time error while displaying the list of km folders

    hi
    i am trying to display the list of contents in the km folder using km api but the application is displaing an runtime error
    package com.sap.test;
    error in init method component
    any body know the solution for this problem .
    thanks

    hi there
    public class kmportalcomp extends AbstractPortalComponent
              public String outtxt;
              int depth;
              int rowid = 0;
              int counter = 0;
         public void doContent(IPortalComponentRequest request, IPortalComponentResponse response)
              IUserContext userCtx =request.getUser();
              IResourceFactory factory;
              IPortalComponentContext compContext = request.getComponentContext();
              IPortalComponentProfile profile = compContext.getProfile();
              try {IUser serviceUser = WPUMFactory.getServiceUserFactory().getServiceUser("ccadmin_service");
                   String webpath = request.getWebResourcePath();
                   IResourceContext resourceContext = new ResourceContext(serviceUser);
                   response.write(webpath);
                   String fpath;
                   fpath = profile.getProperty("path").trim();
                   depth = Integer.valueOf(profile.getProperty("depth").trim()).intValue();
                   RID rid = RID.getRID(fpath);
                   ICollection folder = (ICollection)ResourceFactory.getInstance().getResource(rid, resourceContext);
                   IResourceList  fileList = folder.getChildren();
                   response.write("d.add(0,-1,'"folder.getName()"');\r\n");
                   rowid = 0;
                   scan_km(response, fileList,0);
                   response.write("document.write(d);\r\n");
                    response.write("//--></script>");
                    response.write("</div>");
                } catch (Exception e) {
                    response.write("Error Occured<br>");
                    response.write(e.toString());
              public void scan_km(IPortalComponentResponse response,IResourceList list,int level) {
                   int currentrowid = rowid;
                   if (level>depth&&depth!=0) {
                         return ;
                     String rid = " ";
                     IResourceList tmpreslist;
                     ICollection tmpcollection;
                     level++;
                     for (int i = 0; i < list.size(); i++) {
                         IResource tmpres = list.get(i);
                         try {
                             if (tmpres.isCollection() && tmpres.getLinkType() == LinkType.NONE ) {
                                  //&& tmpres.getLinkType() == LinkType.NONE
                                  tmpcollection = (ICollection) tmpres;
                                tmpreslist = tmpcollection.getChildren();
                                if (tmpreslist.size()>0) {
                                    rowid++;
                                    response.write("d.add("rowid","currentrowid",'");
                                    response.write(tmpres.getName());
                                    response.write("','');\r\n");
                                    scan_km(response,tmpreslist,level);
                             else {
                                rowid++;
                                String dispname;
                                dispname = tmpres.getDisplayName();
                                if (dispname==null||dispname.equals(""))
                                    dispname = tmpres.getName();
                                rid = "/irj/go/km/docs"+tmpres.getAccessRID();
                                response.write("d.add("rowid","currentrowid",'"dispname"','"rid"');\r\n");
                         } catch (Exception ex) {
    the error is am getting is
    com.sapportals.wcm.repository.enum.LinkType and com.sapportals.wcm.repository.enums.LinkType     kmportalappproject/src.core/com/sap/test     kmportalcomp.java     
    thanks

  • Getting run time errors while executing the copied SAP programs

    Hi folks,
    i want to copy an sap program.after coping i need to change some coding there.then i have to create a new transaction for that.
    i am just copying the sap program RQEEAL10(transaction-QA32) to Z_RQEEAL10. it has 4 include  programs.i am copying them to z programs like
    RQ00MF10 copied to z_RQ00MF10
    RQALVF14 copied to z_RQALVF14
    RQALVF16 copied to z_RQALVF16
    RQALVTOP copied to z_RQALVTOP.
    now i am executing that program Z_RQEEAL10.but i am getting run time errors as given below.
    <b>runtime error---</b>
    The termination occurred in the ABAP program "Z_RQEEAL10" in           
    "SELECT_FIELDS_MANIP2_F16".                                           
    The main program was "Z_RQEEAL10 ".                                                                               
    The termination occurred in line 257 of the source code of the (Include)
    program "RQALVF16"                                                    
    of the source code of program "RQALVF16" (when calling the editor 2570).
    --Error in ABAP statement when processing an internal table.  
    --When changing or deleting one or more lines of the internal table         
    "\PROGRAM=Z_RQEEAL10\DATA=SELECT_FIELDS" or when inserting in the table   
    "\PROGRAM=Z_RQEEAL10\DATA=SELECT_FIELDS", 0 was used as                  
    the line index. An index less than or equal to zero is not                
    allowed.                                                                               
    The error can occur when using the following options:                     
    1. "INDEX idx" for specifying the line number in the table                
    "\PROGRAM=Z_RQEEAL10\DATA=SELECT_FIELDS"                                 
       where you want to change, insert or delete.                            
    2. "FROM idx" for specifying the start index when deleting a line         
       area from or inserting a line area into the table                      
    "\PROGRAM=Z_RQEEAL10\DATA=SELECT_FIELDS".                                
    3. "TO idx" for specifying the end index when deleting a line             
       area from or inserting a line area into the table                      
    "\PROGRAM=Z_RQEEAL10\DATA=SELECT_FIELDS".                                                                               
    When the program terminated, the table had 2 lines.                       
    these r the runtime errors what i am getting.where is the problem?i have activated all interface & includes.plz advice.
    Thanks & regards

    Hi Madhu,
    I will give you one more check point where you have to give your concentration while copying the standard programs....
    Call Customer-Function (Function Exists) if any in the Program when copied will not get executed. Instead you need to call the FM Directly.
    one more is also here
    You are likely to have some problems with the text-elements and translation that may have been maintained for the original report.
    ~~Guduri

  • Iam getting Gone 410 error while accessing the isupport page.

    Hi,
    While accessing the isupport page from reverse proxy external machine iam getting the GONE 410 error on the browser. I know this is because of some problem in url_fw.conf. But i did not trace out the problem.
    And in the logs it is throwing the following errors.
    1. OACoreGroup log---> Exception in thread "main"
    2. Accesslog --> "GET /OA_HTML/test.jsp HTTP/1.0" 410 400
    3.jserv.log --> java.lang.NoSuchFieldError: LOOK_AND_FEEL
         at org.apache.jserv.JServServletManager.load_init(JServServletManager.java:765)
         at org.apache.jserv.JServServletManager.loadServlet(JServServletManager.java:659)
         at org.apache.jserv.JServServletManager.loadStartupServlets(JServServletManager.java:789)
         at org.apache.jserv.JServServletManager.init(JServServletManager.java:447)
         at org.apache.jserv.JServ.start(JServ.java:625)
         at org.apache.jserv.JServ.main(JServ.java:234)
    4.mod_jserv.log --> (ERROR) an error returned handling request via protocol "ajpv12"
    (EMERGENCY) ajp12: auth did not receive challenge size
    EMERGENCY) ajp12: function auth fail.
    Environment: 11.5.10.2, SUNOS 5.10
    Can any one help me.
    Thanks inadvance.
    Sree.

    Sree,
    You are looking at the right place, url_fw.conf, make sure that there is any entry for ibu* to access the isupport pages, if the page does not start with "ibu" grep in the conf file for your page prefix and see if there are any entries, else create a new entry in the conf file for your page and it should go through properly.
    Hope that helps.
    VK

  • Getting a heap error while opening the BI Publisher Console login page

    Hi,
    I have installed BI Publisher 10.1.3.4.2 on OC4J on Windows 7 OS and getting the following error on opening the BI Publisher Login Console.
    *2013-04-30 20:44:31.921 NOTIFICATION J2EE JSP-0008 Unable to dispatch JSP Page*
    *: Exception:oracle.jsp.provider.JspCompileException: <H3>Errors compiling:C:\Ora*
    Home_2\oc4j_bi\j2ee\home\application-deployments\xmlpserver\xmlpserver\persisten
    ce\_pages\\_login.java</H3><pre>Could not create the Java virtual machine.
    Error occurred during initialization of VM
    Could not reserve enough space for object heap
    *</pre>*
    Thanks !

    set the JAVA_HOME environment variable to point to the same location where the JDK for OC4J standalone is located

  • I am getting photshop file error while opening the project. I am using Adobe production premium CS6.

    Hi,
    I have try to open one comp file in After effects and i am getting an following error for linked PSD,
    After that i have tried to open that PSD file in photoshop and i am getting an following error,
    I am using Adobe production premium CS6. Could you please anyone faced this problem or provide some solution regarding this.
    Thanks in advance :-)

    I have the same suspicions as Szalam.  This Photoshop file was probably made in the creative cloud version.  You need to get one backsaved to CS6.  The backsave shouldn't be a problem.

  • Getting JBO-34010 error while running the application

    Hi,
    I have created a small application using Toplink and ADF-RC. When I ran the application I am getting this below error...
    oracle.security.jazn.JAZNRuntimeException: JBO-34010: The "model/DataBindings.cpx" descriptor appears in the application classpath more than once:
    - file:/home/oracle/jdev/JDev/mywork/MyApp/ViewController/classes/model/DataBindings.cpx
    - file:/home/oracle/jdev/JDev/mywork/MyApp/Model/classes/model/DataBindings.cpx
    What could be wrong?
    Please help me out as I compeltly stuck here.
    Message was edited by:
    Sreekanth

    What is your desired startup page? Is it something like home.html, or index.jsp? Are you opening the application with a URL like:
    http://myhost/myapp
    If so, you probably need to add the welcome file definitions in your web.xml file. You can find the syntax in the OC4J docs.
    John H.

  • Getting Custom code error while deploying the report but in local(BI studio) when i preview its working,

    Hi,
    I Haven't used Vb.net, as I work on C#, But in SSRS it supports only VB.net code as custom coding, so i coded in c# and converted to VB.net from online converter. The code i got from online converter is working fine in local i.e when i preview in BI studio,
    but when i try to deploy the same i'm getting error 
    Error 3
    There is an error on line 12 of custom code: [BC30201] Expression expected.
    0 0
    Below is the code:
    ' -- Author        : Jai Anand
    ' -- Date            : 06-05-2014
    ' -- Discription : To split the given string of numbers and Assign the days for it,
    ' --                        example: if integer 1 - (Su) --> Sunday, 2 - (Mo) --> Monday
    public Function FindPlanDays(plandate As String) As String
    Dim planarray As String() = New String() {}
    Dim days As String = ""
    planarray = plandate.Split(","C)
    Dim i As Integer = 0
    While i < planarray.Length 
    Dim day As String = If(planarray(i) = "1", "Su,", If(planarray(i) = "2", "Mo,", 
     If(planarray(i) = "3", "Tu,", If(planarray(i) = "4", "We,", If(planarray(i) = "5", "Th,", If(planarray(i)="6","Fr,", If(planarray(i) = "7", "Sa,", String.Empty)))))))
    days = days & day
    i += 1
    End While
    days = If(days <> String.Empty, " (" + days.TrimEnd(","C) + ")", days)
    Return days
    End Function
    Kindly check the code, if any issue is there,give me the solution..Thank you

    Hi,
    I found the solution and the report is deployed . The issue was with If and we should suffix with space and underscore( _) at the end of the line break and continues in next line (i.e if the statement continues in next line).
    iif has always been available in VB, even in VB6.
    Dim day As String = Iif(planarray(i) = "1", "Su,","Mon")
    It is not a true operator, as such, but a function in the Microsoft.VisualBasic namespace.
    so the modified code which worked fine to deploy
    ' -- Author        : Jai Anand
    ' -- Date            : 06-05-2014
    ' -- Discription : To split the given string of numbers and Assign the days for it,
    ' --                        example: if integer 1 - (Su) --> Sunday, 2 - (Mo) --> Monday
    public Function FindPlanDays(plandate As String) As String
    Dim planarray As String() = New String() {}
    Dim days As String = ""
    planarray = plandate.Split(","C)
    Dim i As Integer = 0
    While i < planarray.Length 
    Dim day As String = Iif(planarray(i) = "1", "Su," ,Iif(planarray(i) = "2", "Mo,", _  
     Iif(planarray(i) = "3", "Tu,", Iif(planarray(i) = "4", "We,", Iif(planarray(i) = "5", "Th,", _
     Iif(planarray(i) ="6","Fr,", Iif(planarray(i) = "7", "Sa,", String.Empty)))))))
    days = days & day
    i += 1
    End While
    days = Iif(days <> String.Empty, " (" + days.TrimEnd(","C) + ")", days)
    Return days
    End Function

  • Return delivery error while displaying the confirmation in EBP

    Hi All,
    I face an error in EBP when I try to return delivery after confirmation of PO. Just to explain you all in detail-
    I created a shopping cart, ordered it and then confirmed it using Create Confirmation. Now when i try to make <b>Return Delivery</b>, it gives me an error saying, No return delivery can be entered for confirmation, followed by another error- Interface data contains errors.
    Pls help!!!!!!!!!!
    Thanks in advance.
    Regards,
    Swapna

    Hi Yann,
    As per your suggestion, I tried to do a return delivery through backend with PO quantity same as delivered quantity. I am able to do a return delivery successfully. So the error seem to be in EBP,, is it?
    While debugging BBPCF02, I noticed that it calls a function module -
    BBP_CF_ASSIGNMENT_BACKEND.
    In this function module, it calls a routine tolerance_check_backend which checks for the below code
    lv_open_tol_quan = is_tol_check-quantity
    ( 1 + is_tol_check-overdel_tol / 100 )
                         - is_tol_check-deliv_qty.
    If this field lv_open_tol_quan is 0, it throws the error.
    Now in backend, where the purchase order gets created, i checked for over delivery tol,,its 0.
    so if both the qtys are same, I will alwz get the same error.
    Can you please help me to understand this???
    Thanks in advance.
    Regards,
    Swapna
    and since

  • Getting a syntax error while creating the simple OData service.

    Hi Folks,
    That is what I typed in a in .xsodata file but it is giving me a syntax error..any idea why this can be?
    Thank you for your help.
    service namespace "sap.hana.test.service"
    { "SYS" , "AFL_AREAS_" as "TEST";

    Hi,
    I tried creating the same. I was able to activate all three files i.e. .xsapp,.xsaccess,*.xsodata. The three file contents are mentioned below. The data might not be displayed in the browser due to privileges issue as it is SYS table.
    .xsapp contains
    .xsaccess contains
      "exposed" : true
    *.xsodata contains
    service
    "SYS"."AFL_AREAS_" as "mytable";

  • Getting ODI - 20088 error while Generating the Scenario.

    Hi Gurus,
    When i am trying to create a scenario for the duplicated Package i am getting the following error.
    Source temporary interface SDE_ORA_WorkorderDimension_EAM.W_WORKORDER_DS_SQ_WIP_DISCRETE_JOBS cannot be used as a derived table. Source datastore SQ_EAM_JOB_COMPLETION_TXNS is not on the same data server as the target.
    Thanks
    Ravikiran

    If your source data store is not on the same as the target, you can not use the Derived table functionnality.
    So you need to open your interface, click on the W_WORKORDER_DS_SQ_WIP_DISCRETE_JOB source yellow datastore and unselect the option "Use as Derived-Table (sub-select statement)".
    Regards,
    JeromeFr

Maybe you are looking for