Problem of getting user defined element

Hello collegues !
I have following problem
I need to check, if my element was creanted on form or not
For this i do following :
if(oOrderForm.Items.Item("myItem")!=null)
but this give me an exception
are there another ways to check, if element exists or was not created yet ?
Best regards

there are two ways:
1. clear way
dim oitem as sapbouicom.item
for each oitem in oOrderForm.Items
..check the item id
next
or
2. quick way
try
dim oitem as sapbouicom.item
oitem = oOrderForm.Items.Item("myItem")
catch ex as exception
... doesnt exists
end try

Similar Messages

  • Using a user-defined element in ASO cube.

    I have an ASO cube to which I'm adding a new hierarchy/dim containing a single user-defined element as a member. This dim is set to dynamic at dimension level, since I'm going to add additional members with formulas.
    My issue is that as soon as I add this new hierarchy to my cube, all my fact values double! What could cause this and how should I fix this? The user-defined element in this new dim is not connect to the rest of my data in any way, i.e. it is not in any table of my minischema. So why should it have any impact on my data values? Should I be adding a filter of some kind on this user-defined element?
    Fyi- I'm using Essbase Studio (EPM 11.1.2) for cube building and data loading.
    Appreciate any help.
    thanks,
    Axe

    A colleague suggested a reason that SDO_GEOMETRY works is that it is granted to PUBLIC with GRANT OPTION. PUBLIC is not a proper role, somewhere between a user and a role and the issue of having to receive permissions on the type explicitly do not apply.
    If I GRANT EXECUTE ON XTYPE TO PUBLIC WITH GRANT OPTION; it works!
    Thanks for the replies.
    C

  • Problem with the user-defined message search in PI 7.3.1

    Hi, all
    I having been trying out the new user-defined message search in PI 7.3.1(with TREX). I am stuck on creating the search critera section and could not move forward. Here is how I define the filter:
    Here is a sample payload:
      <?xml version="1.0" encoding="utf-8" ?>
      <ns:JOB_MT xmlns:ns="urn:peoplesoft:batch:job_r:message">
        <MsgData>
          <JOB>
             <ACTION_FLAG>NewPerson</ACTION_FLAG>
             <EMPLID>XXXXX</EMPLID>
             <REG_NO />
             <LAST_NAME>XXXX</LAST_NAME>
             <FIRST_NAME>XXXX</FIRST_NAME>
          </JOB>
        </MsgData>
      </ns:JOB_MT>
    I have tried the xpatch search criteria as the following:
    /ns:JOB_MT/MsgData/JOB/EMPLID
    /ns:JOB_MT xmlns:ns="urn:peoplesoft:batch:job_r:message"/MsgData/JOB/EMPLID
    Both failed to return the emplid field when I clicked on the "test search criteria" against a PI message. Can you advise what I did wrong?
    Thanks,
    Jonathan.

    Hi.
    Did you put the prefix?
    Regards

  • Problem in creating user defined fields

    hi,
       i created nearly 25 userdefined fields. after that b1 is not allowing me to created further, I like to know any restriction is there to create or kindly give me the solution to create.
    Regards
    R.vijai

    Vijaya,
    This kind of bottlenecks are common when using SQL Server 2000 where it has a row size limitation.
    Click on the link below and read the thread as it also related to the similar error.
    Error in defining the User Defined Fields
    Suda

  • Problem after uploading user defined characterstic schema in product catalo

    Hi friends,
    We were using SRM 5.0 and CCM 2.0, we were uploaded Master catalog through .CSV file, Product catalog schema through .XML and user defined characteristic schema through .XML file   separately. System given message catalog updated successfully. But when I observed in product catalog user defined characteristics are removed from the product catalog the content of these fields is also wiped out from the items. Once the catalog was in this state, I mapped it to the Master Catalog and all the user defined characteristics show up in error. What could be the cause?? can any body Help  (Urgent)
    Thanks in advance
    Srinivas

    Hi
    <u>Please go through the following SAP OSS Note / link -></u>
    Note 1024002 - Error introduced by CCM SP07
    Re: Unable to Edit the Charateristic?
    Do let me know.
    Regards
    - Atul

  • Problems with getting user input

    Hi All,
    I want to get user input from a command line and i am NOT using a GUI.
    The user can still see their password when they are typing it in.
    Is there anyway to show '******' when they type in their password??
    This is what I have so far..
    public static void getPassword() {
    System.out.print("Enter password-->");
    DataInputStream input = new DataInputStream(System.in);
    try{  
    password = input.readLine();
    catch (IOException e){
    System.out.println("ERROR " + e);
    Any help would be greatly appreciated.
    Thanks
    Kal.

    Kal,
    I'm pretty sure you're going to need some kind of GUI (either a Java window or an HTML page) to get the desired effect. There might be a way to set the echo character in the command line, but I'm not sure.
    - Sheepy

  • How to get user defined class in java client of a bpel prcoess?

    I have written a simple bpel process which returns a bean class namely employee which has three String fields(name,id and email). From java client when I am invoking the prcoess the prcoess instance is starting and completing properly. From Bpel console when I check the audit of the instance, it shows everything as expected. But in client class instead of three strings I am getting only first string i.e email in response. I checked the mapping and all WSDL files but could not find a proper reason. I am attaching the wsdls of bpel prcoess and the client code:
    BPELProcess5.wsdl
    <?xml version="1.0" encoding="UTF-8"?>
    <definitions name="BPELProcess5"
    targetNamespace="http://xmlns.oracle.com/BPELProcess5"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:client="http://xmlns.oracle.com/BPELProcess5"
    xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
    xmlns:sq="http://xmlns.oracle.com/BPELProcess5/bean">
         <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         TYPE DEFINITION - List of services participating in this BPEL process
         The default output of the BPEL designer uses strings as input and
         output to the BPEL Process. But you can define or import any XML
         Schema type and us them as part of the message types.
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
         <types>
    <schema attributeFormDefault="qualified"
                   elementFormDefault="qualified"
                   targetNamespace="http://xmlns.oracle.com/BPELProcess5/bean"
                   xmlns="http://www.w3.org/2001/XMLSchema">
    <complexType name="employeetype" >
    <all>
    <element name="fname" type="string"/>
    <element name="lname" type="string"/>
    <element name="id" type="string"/>
         </all>
    </complexType>
    </schema>
              <schema attributeFormDefault="qualified"
                   elementFormDefault="qualified"
                   targetNamespace="http://xmlns.oracle.com/BPELProcess5"
                   xmlns="http://www.w3.org/2001/XMLSchema">
    <import namespace="http://xmlns.oracle.com/BPELProcess5/bean"/>
                   <element name="BPELProcess5ProcessRequest">
                        <complexType >
                             <sequence>
                                  <element name="input" type="string"/>
                             </sequence>
                        </complexType>
                   </element>
    <!--
                   <element name="BPELProcess5ProcessResponse">               
    <complexType >
                             <sequence>
                                  <element name="output" type="sq:employeetype"/>
                             </sequence>
                        </complexType>
                   </element>
    -->
              </schema>
         </types>
         <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         MESSAGE TYPE DEFINITION - Definition of the message types used as
         part of the port type defintions
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
         <message name="BPELProcess5RequestMessage">
              <part name="payload" element="client:BPELProcess5ProcessRequest"/>
         </message>
         <message name="BPELProcess5ResponseMessage">
              <part name="payload" type="sq:employeetype"/>
         </message>
         <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         PORT TYPE DEFINITION - A port type groups a set of operations into
         a logical service unit.
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
         <!-- portType implemented by the BPELProcess5 BPEL process -->
         <portType name="BPELProcess5">
              <operation name="process">
                   <input message="client:BPELProcess5RequestMessage" />
                   <output message="client:BPELProcess5ResponseMessage"/>
              </operation>
         </portType>
         <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         PARTNER LINK TYPE DEFINITION
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
         <plnk:partnerLinkType name="BPELProcess5">
              <plnk:role name="BPELProcess5Provider">
                   <plnk:portType name="client:BPELProcess5"/>
              </plnk:role>
         </plnk:partnerLinkType>
    </definitions>
    BPELPrcoess5.bpel
    // Oracle JDeveloper BPEL Designer
    // Created: Thu Jul 14 16:50:15 IST 2005
    // Author: Arka
    // Purpose: Synchronous BPEL Process
    -->
    <process name="BPELProcess5" targetNamespace="http://xmlns.oracle.com/BPELProcess5" xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/" xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20" xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/" xmlns:ns1="http://demows/handler/SessionEJB.wsdl" xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns2="http://xmlns.oracle.com/BPELProcess5/bean" xmlns:client="http://xmlns.oracle.com/BPELProcess5" xmlns:bpelx="http://schemas.oracle.com/bpel/extension" xmlns:ora="http://schemas.oracle.com/xpath/extension" xmlns:orcl="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"><!-- ================================================================= --><!-- PARTNERLINKS --><!-- List of services participating in this BPEL process --><!-- ================================================================= -->
    <partnerLinks><!--
    The 'client' role represents the requester of this service. It is
    used for callback. The location and correlation information associated
    with the client role are automatically set using WS-Addressing.
    -->
    <partnerLink name="client" partnerLinkType="client:BPELProcess5" myRole="BPELProcess5Provider"/>
    <partnerLink myRole="SessionEJBPortType_Role" name="PartnerLink_1" partnerRole="SessionEJBPortType_Role" partnerLinkType="ns1:SessionEJBPortType_PL"/>
    </partnerLinks><!-- ================================================================= --><!-- VARIABLES --><!-- List of messages and XML documents used within this BPEL process --><!-- ================================================================= -->
    <variables><!-- Reference to the message passed as input during initiation -->
    <variable name="inputVariable" messageType="client:BPELProcess5RequestMessage"/><!--
    Reference to the message that will be returned to the requester
    -->
    <variable name="outputVariable" messageType="client:BPELProcess5ResponseMessage"/>
    <variable name="Invoke_1_getEmployee_InputVariable" messageType="ns1:getEmployee1Request"/>
    <variable name="Invoke_1_getEmployee_OutputVariable" messageType="ns1:getEmployee1Response"/>
    </variables><!-- ================================================================= --><!-- ORCHESTRATION LOGIC --><!-- Set of activities coordinating the flow of messages across the --><!-- services integrated within this business process --><!-- ================================================================= -->
    <sequence name="main"><!-- Receive input from requestor.
    Note: This maps to operation defined in BPELProcess5.wsdl
    -->
    <receive name="receiveInput" partnerLink="client" portType="client:BPELProcess5" operation="process" variable="inputVariable" createInstance="yes"/><!-- Generate reply to synchronous request -->
    <assign name="Assign_1">
    <copy>
    <from variable="inputVariable" part="payload" query="/client:BPELProcess5ProcessRequest/client:input"/>
    <to variable="Invoke_1_getEmployee_InputVariable" part="empid"/>
    </copy>
    </assign>
    <invoke name="Invoke_1" partnerLink="PartnerLink_1" portType="ns1:SessionEJBPortType" operation="getEmployee" inputVariable="Invoke_1_getEmployee_InputVariable" outputVariable="Invoke_1_getEmployee_OutputVariable"/>
    <assign name="Assign_2">
    <copy>
    <from variable="Invoke_1_getEmployee_OutputVariable" part="return" query="/return/fname"/>
    <to variable="outputVariable" part="payload" query="/payload/ns2:fname"/>
    </copy>
    <copy>
    <from variable="Invoke_1_getEmployee_OutputVariable" part="return" query="/return/lname"/>
    <to variable="outputVariable" part="payload" query="/payload/ns2:lname"/>
    </copy>
    <copy>
    <from variable="Invoke_1_getEmployee_OutputVariable" part="return" query="/return/id"/>
    <to variable="outputVariable" part="payload" query="/payload/ns2:id"/>
    </copy>
    </assign>
    <reply name="replyOutput" partnerLink="client" portType="client:BPELProcess5" operation="process" variable="outputVariable"/>
    </sequence>
    </process>
    myClient.java
    package mypackage2;
    import bean.EmployeeBean;
    import java.rmi.RemoteException;
    import java.util.ArrayList;
    import javax.xml.namespace.QName;
    import javax.xml.rpc.JAXRPCException;
    import javax.xml.rpc.ParameterMode;
    import javax.xml.rpc.Service;
    import javax.xml.rpc.ServiceException;
    import javax.xml.rpc.ServiceFactory;
    import javax.xml.rpc.encoding.XMLType;
    import javax.xml.rpc.soap.SOAPFaultException;
    import org.apache.axis.Constants;
    import org.apache.axis.client.Call;
    public class myClient
    private static QName SERVICE_NAME;
    private static QName PORT_TYPE;
    private static QName OPERATION_NAME;
    private static String SOAP_ACTION;
    private static String STYLE;
    private static String THIS_NAMESPACE = "http://xmlns.oracle.com/BPELProcess5";
    private static String PARAMETER_NAMESPACE = "http://xmlns.oracle.com/BPELProcess5";
    private String location;
    static
    SERVICE_NAME = new QName(THIS_NAMESPACE,"BPELProcess5");
    PORT_TYPE = new QName(THIS_NAMESPACE,"BPELProcess5") ;
    OPERATION_NAME = new QName(THIS_NAMESPACE,"BPELProcess5ProcessRequest");
    SOAP_ACTION = "process";
    STYLE = "wrapped";
    public myClient()
    public void setLocation(String location)
    this.location = location;
    public void initiate(String symbol)
    try
    DeserializerImpl des = new DeserializerImpl();
    ServiceFactory serviceFactory = ServiceFactory.newInstance();
    Service service = serviceFactory.createService( SERVICE_NAME );
    Call call = (Call)service.createCall( PORT_TYPE );
    call.setTargetEndpointAddress( location );
    call.setProperty(Call.SOAPACTION_USE_PROPERTY, Boolean.TRUE);
    call.setProperty(Call.SOAPACTION_URI_PROPERTY, SOAP_ACTION);
    call.setOperationName(OPERATION_NAME);
    call.addParameter(new QName(PARAMETER_NAMESPACE,"input"), XMLType.XSD_STRING, ParameterMode.IN);
    Object[] params = new Object[1];
    params[0] = "1";
    call.setReturnType(new QName("http://xmlns.oracle.com/BPELProcess5", "BPELProcess5ProcessResponse"), EmployeeBean.class);
    EmployeeBean response = (EmployeeBean)call.invoke(params);
    System.out.println( " BPEL process initiated" );
    catch (SOAPFaultException e)
    System.err.println("Generated fault: ");
    System.out.println (" Fault Code = " + e.getFaultCode());
    System.out.println (" Fault String = " + e.getFaultString());
    catch (JAXRPCException e)
    System.err.println("JAXRPC Exception: " + e.getMessage());
    catch (ServiceException e)
    System.err.println("Service Exception: " + e.getMessage());
    catch(RemoteException e)
    System.err.println("Remote Exception: " + e.getMessage());
    public static void main(String[] args)
    String location = "http://localhost:9700/orabpel/default/BPELProcess5/1.0";
    myClient client = new myClient();
         client.setLocation( location );
    client.initiate( "" );
    }

    Hi Abdul,
    From the document, we know that CONSTRAINED flag is used to reduce the risk of injection attacks via the specified string. If a string is provided that is not directly resolvable to qualified
    or unqualified member names, the following error appears: "The restrictions imposed by the CONSTRAINED flag in the STRTOSET function were violated."
    So you need to make sure the members are passed properly to the STRTOSET function. For more details, please see the following links:
    http://ch1n2.wordpress.com/2010/02/21/the-restrictions-imposed-by-the-constrained-flag-in-the-strtoset-function-were-violated/
    http://www.bp-msbi.com/2010/04/passing-unconstrained-set-and-member-parameters-between-reports-in-reporting-services/
    Hope this helps.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Problem creating a user defined function...

    I have written a function in oracle as follows:
    ===========================
    CREATE OR REPLACE
    function getTeacherNameForHmroomAndSch(in_student_id STUDENTS.STU_ID%TYPE)
    return varchar2 as
    emp_full_name varchar2(64);
    begin
         stu_school_id STUDENTS.STU_CURRENT_SCHOOL_ID%TYPE;
         stu_home_room STUDENTS.STU_HOMEROOM%TYPE;
         emp_id EMPLOYEES.EMPLOYEE_ID%TYPE;     
         select STU_CURRENT_SCHOOL_ID, STU_HOMEROOM INTO stu_school_id, stu_home_room from STUDENTS where STU_ID = in_student_id;
         select el1.TL_EMPLOYEE_ID into emp_id from EMPLOYEE_LOCATIONS el1
         where el1.TL_ID = (select max(el2.TL_ID) from (select el.TL_ID
         from EMPLOYEE_LOCATIONS el
         where el.TL_LOCATION_ID = stu_school_id
         and el.TL_HOMEROOM = stu_home_room) el2 group by el2.TL_ID);
         select case when FIRST_NAME is null then LAST_NAME else FIRST_NAME || ' ' || LAST_NAME end into emp_full_name from EMPLOYEES where EMPLOYEE_ID = emp_id;
         return emp_full_name;
         EXCEPTION
              WHEN NO_DATA_FOUND THEN
              RETURN null;
    end getTeacherNameForHmroomAndSch;
    ===========================
    When I am executing this create function i.e., compiling function in a SQL Editor, the SQL engine is throwing a warning message as follows:
    ===========================
    Warnings: --->
    W (1): Warning: execution completed with warning
    <---
    ===========================
    As a result, am not able to use this function in my SQL.
    Please suggest a solution for my problem.
    Thank You.
    Shravan Kumar.M

    Hello,
    It is possible to create user fields using SDK on anykind of table but, sometimes in some Tables, adding them causes integrity problems and B1 cannot create the document of the Table, you can try that, but if there's an error when adding the bank statement you should erase it from the OBNK table using SDK again.
    I've tried this on MRV1 (Inventory Revaluation Lines) and IPF2 (Landed Costs, Costs), when I tried to add the document (Inventory Revaluation or Landed Costs) appeared an error and B1 could not create the document, so i had to remove them with SDK again and the error was solved.
    Best Regards hope it'll help you
    Gabriela

  • Problem with creating User Defined Fields

    Hello,
    I have a big problem on one customers db. Everytime when user logs in SBO, he got immediatley after login message, that db structure was modified and user must click OK to continue (close all form - in this case is still no form opened).
    I tried to uninstall all addons to be sure that its not addon related but when is only clean SBO there, the message still pops up. It seems that somewhere in db is stored that this message must pops up.
    When I copied this db localy from custromer, the message still occurs.
    Is here someone who met this prolem and solved it?
    Thanks
    Petr

    Hi Petr,
    Just to remind that if you send a message to SAP based on Suda's answer belows:
    Petr,
    This is very unusual, Please check SAP Notes and also send a message to support. This should not be happening.
    Madhan: Just FYI - Petr is one of the Senior Implementation and SDK consultants who has spent a long time on the product and I am 100% sure that he knows the basics you are pointing to very well.
    Suda
    you must really make sure that you have performed support level 1 and level 2. If not, the SAP support will be happy to bill the message about 80 euro.
    Rgds,

  • How do you have JList display user defined element

    How do you have JList display the element you define???
    I tried:
    list.setSelectedIndex( 1 );
    list.ensureIndexIsVisible(1);
    because I want the element at index[1] in the list to be displayed when the GUI opens. It always defaults to element [0] (1st element).
    So if I have
    String[] colors = {blue, red, yellow};
    when the GUI opens, I want "red" to appear in the JList, but blue is always displayed...

    Sorry, that must've been cut off, here it is...
    What I want it to do is open and I want "green" to be the only element showing in the JList...
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.border.*;
    import java.awt.Container;
    import javax.swing.JOptionPane;
    import java.lang.Object;
    import java.awt.event.*;
    import java.awt.Component;
    import javax.swing.JOptionPane;
    import java.awt.BorderLayout;
    //import java.awt.Container;
    import java.awt.Dimension;
    import java.awt.Rectangle;
    import java.awt.event.MouseEvent;
    import java.awt.event.MouseMotionListener;
    import javax.swing.event.ListSelectionEvent;
    import javax.swing.event.ListSelectionListener;
    //import javax.media.jai.JAI;
    //import javax.media.jai.PlanarImage;
    import javax.swing.BorderFactory;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.JComponent;
    import javax.swing.SpringLayout;
    import javax.swing.border.BevelBorder;
    * Simple applications for demonstrating the use of FormUtility
    * to hide the details of creating a form layout with
    * GridBagLayout.
    * <P>
    * Philip Isenhour - 060628 - http://javatechniques.com/
    public class correctOfficerGUI extends JFrame
            private JPanel form;
            private final JFrame f;
            //public final int lineCount = 0;
            //EASTERN NY
            public static String nameInfoString   = new String();
            String facilities[] = {     "blue",     "green", "yellow"};
        public correctOfficerGUI()
            //JFrame
            f = new JFrame("Add Officer");
            //int x = f.DoModal();
            // Make a panel to hold the demo �form", then
            // add it to the top of the frame�s content pane
            //JPanel
            form = new JPanel();
            f.getContentPane().setLayout(new BorderLayout());
            f.getContentPane().add(form, BorderLayout.NORTH);
            // Set the form panel�s layout to GridBagLayout
            // and create a FormUtility to add things to it.
            form.setLayout(new GridBagLayout());
            JPanel spacerPanel = new JPanel();
            spacerPanel.setLayout(new BorderLayout());
            final JList list = new JList(facilities);
            int index = 2;
         list.setSelectedIndex( 1 );
            list.setVisibleRowCount(1);
         list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
         //contentpane
            form.add(new JScrollPane(list));
            JButton addButton = new JButton("Add");
            form.add(addButton);
            //addButton.add(       
         addButton.addActionListener(
              new ActionListener()
              public void actionPerformed( ActionEvent actionEvent )//valueChanged(ListSelectionEvent e)
                        //f.DoModal();
                        System.out.println("********************************************");
                        JOptionPane.showMessageDialog(null, "The Officer has been Added.");
            // Add an little padding around the form
            form.setBorder(new EmptyBorder(2, 2, 2, 2));
            f.setSize(300, 300);//230);
            f.setVisible(true);
        public static void main(String[] args)
            correctOfficerGUI test = new correctOfficerGUI();
         test.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);       
    }Message was edited by:
    poncho

  • Problem related with User Defined search

    Hi all,
    In service type marketing doc.i added three UDF at row level.
    1)Item code
    2)Item Desc.
    3)Quantity
    i need to design a formatted search which will multiply Quantity with unit price and will update result in Total field in row level.
    please suggest me Formatted search.
    TIA

    Chetan,
    In addition to Suda's reply, we have also created 3 UDFs in the service type document of purchase order but there is no item code. it is okay you use item code UDF but actually it won't give effect if you use the 3 udfs in the purchase or sales order documents, although actually we assigned the following FMS I will give. Why I said this because user always asks how to make automatic  movement of 3 UDFs to the next documents (GRPO service and A/P invoice service). I suggest to assign the 3 UDFs you made to invoice directly.
    Try to use this another code to make Total (LC) become automatic update after you fill the qty and unit price;
    declare @m as money
    declare @n as nvarchar(40)
    declare @o as varchar(40)
    declare @p as money
    declare @q as varchar(40)
    declare @r as money
    declare @total as money
    declare @ntotal as varchar(40)
    set @n = $[$39.5.0]
    set @n = substring(@n,4,(len(@n)))
    set @m = cast(@n as money)
    set @o = $[$39.U_QTY.0]
    set @p = cast(@o as money)
    set @total=@m*@p
    set @ntotal=cast(@total as nvarchar(40))
    select @ntotal
    Assigned the query FMS above using display saved values.
    You just need to replace this following:
    $[$39.U_QTY.0]
    to be UDF code of quantity you have made
    Rgds,

  • Problem when getting array's elements in JSF

    Using Struts/EJB/JSF.
    Here is the code:
    Action servlets code:
    request.setAttribute("colSellers", (List<SellerDTO>) List );JSF part:
           <c:out value="${colSellers[projectForm.client].id}"/>Error message:
    *[ServletException in:/html/forms/project/read.jsp] The "[]" operator was supplied with an index value of type "java.lang.String" to be applied to a List or array, but that value cannot be converted to an integer.'*
    But it works when i use real integer values....like
           <c:out value="${colSellers['2'].id}"/>

    Sorry, but this doesn't look like JSF, it looks like a combination of servlets, JSP EL and JSF. It will all work alot better if you choose your poison.
    Put the array in a managed bean and use a JSF component like h:datagrid or t:datalist to display the elements. If that seems too restrictive, do what I did and switch to Spring MVC.

  • Problems using user defined activitys in Process Flows

    Hi everybody,
    i have problems using an user defined activity in my owb process flow.
    I did the following according to https://blogs.oracle.com/warehousebuilder/entry/how_to_use_user_defined_activity_in_owb_process_flow.
    1. create a script in /tmp called test.sh
    2. chmod +x on the script so it can be executed
    3. Changed the Runtime.properties file under ORACLE_HOME/owb/bin/admin
    property.RuntimePlatform.0.NativeExecution.FTP.security_constraint = NATIVE_JAVA
    property.RuntimePlatform.0.NativeExecution.Shell.security_constraint = NATIVE_JAVA
    property.RuntimePlatform.0.NativeExecution.SQLPlus.security_constraint = NATIVE_JAVA
    property.RuntimePlatform.0.NativeExecution.OMBPlus.security_constraint = NATIVE_JAVA
    4. Creating an Process Flow with just the user defined activity
    5. Deploying the Process flow was successfull
    But everytime i execute the pf i get the following error in my Job Details.
    TEST_PF:USER_DEFINED                                        
    Parameters                                                  
    Log file is available. Click Information button to view.                                             
    It says Log file is available. But i can't find this file. Also i don't know what the problem is.
    Can anybody help me out of this?
    Thanks a lot

    Hi,
    solved the problem by myself.
    I had problems with my script. So i insert set -x into the script an executed the pf again. Know i can see whats happening in a log. You can find this log in the job detail window by pressing the blue ! Button when the whole PF (the first entry) is marked.
    Greetings

  • User Defined Field Print Layout Designer print problem

    I am having a problem with a user defined field in the Business Partner - Addresses table. The user defined field is a "directions" text field that is intended to print on packing slips generated from the sales order. When I use the PLD to add the UDF in the header or in the table, all data lines in the body of the report repeat.
    Please advise if others are seeing this and what work around or SAP plans exist to resolve.
    Glen Kinney
    Corrpac
    [email protected]

    Hi Glen,
    I am facing the same problem.
    I need to add UDFs in Business Partners - Addresses at row level. The field will be used for some Taxation Nos. like CST, LST, VAT. I have tried to add. the fields are added and data saved too.
    But when I am going to PLD of Invoice and tried to get, the Business Partners - Addresses Table not showing in the list.
    Shell I have your help to resolve this.
    Thanks a lot.
    With Warm Regards,
    Chintesh Soni
    India

  • Oracle 11g AQ : problem enqueue user-defined type with varchar2 attribute

    Hello.
    I have a problem enqueuing a user-defined type to the queue on Oracle 10g.
    I'm using jdbc driver (ojdbc5.jar, version 11.1.0.6.0) as they provide oracle.jdbc.aq package.
    The type is following:
    CREATE OR REPLACE TYPE FIXED_T5 AS OBJECT
    (id integer,
    label varchar2(100),
    code integer,
    today date
    )I have created a java class for this type with jpub utility supplied with oracle 11g client package:
    jpub -user=scott/tger -url=jdbc:oracle:thin:@host:sid-sql=FIXED_T5:ru.invito.FixedType -compile=falseIt generated FixedType.java and FixedTypeRef.java files. Don't understand why i need the latter (FixedTypeRef).
    Then in test app:
    package ru.invito;
    import java.io.IOException;
    import java.net.InetAddress;
    import java.net.UnknownHostException;
    import java.sql.SQLException;
    import java.sql.Timestamp;
    import java.util.Date;
    import java.util.Properties;
    import java.util.UUID;
    import junit.framework.TestCase;
    import oracle.jdbc.aq.AQAgent;
    import oracle.jdbc.aq.AQEnqueueOptions;
    import oracle.jdbc.aq.AQFactory;
    import oracle.jdbc.aq.AQMessage;
    import oracle.jdbc.aq.AQMessageProperties;
    import oracle.jdbc.aq.AQEnqueueOptions.DeliveryMode;
    import oracle.jdbc.aq.AQEnqueueOptions.VisibilityOption;
    import oracle.jdbc.driver.OracleConnection;
    import oracle.jdbc.driver.OracleDriver;
    import oracle.sql.Datum;
    import oracle.sql.STRUCT;
    import oracle.sql.StructDescriptor;
    import org.apache.commons.logging.Log;
    import org.apache.commons.logging.LogFactory;
    public class AqTest extends TestCase {
         protected Log logger = LogFactory.getLog(getClass());
         public void testEnqueue() throws Exception {
              OracleDriver dr = new OracleDriver();
              Properties prop = new Properties();
              prop.setProperty("user", Config.USERNAME);
              prop.setProperty("password", Config.PASSWORD);
              OracleConnection connection = (OracleConnection) dr.connect(Config.JDBC_URL, prop);
              assertNotNull(connection);
              connection.setAutoCommit(false);
              enqueueMessage(connection, "INVITO.FIXED_T5Q", null);
              connection.commit();
         private void enqueueMessage(OracleConnection conn, String queueName, AQAgent[] recipients) throws SQLException,
                   IOException {
              logger.debug("----------- Enqueue start ------------");
              AQMessageProperties props = makeProps(queueName);
              AQMessage mesg = AQFactory.createAQMessage(props);
              String msqText = String.format("Hello, %s!", queueName);
              FixedType data = createData(36, msqText);
              Datum d = data.toDatum(conn);
              STRUCT s = (STRUCT) d;
              debugStruct("s", s);
              String toIdStr = byteBufferToHexString(s.getDescriptor().getOracleTypeADT().getTOID(), 20);
              logger.debug("s.toIdStr: " + toIdStr);
              StructDescriptor sd = StructDescriptor.createDescriptor("INVITO.FIXED_T5", conn);
              logger.debug("sd.toXMLString(): " + sd.toXMLString());
              mesg.setPayload(s);
              AQEnqueueOptions opt = makeEnqueueOptions();
              logger.debug("sending............");
              // execute the actual enqueue operation:
              conn.enqueue(queueName, opt, mesg);
              debugMessageId(mesg);
              logger.debug("----------- Enqueue done ------------");
         private void debugMessageId(AQMessage mesg) throws SQLException {
              byte[] mesgId = mesg.getMessageId();
              if (mesgId == null) {
                   throw new IllegalStateException("message id is NULL");
              String mesgIdStr = byteBufferToHexString(mesgId, 20);
              logger.debug("Message ID from enqueue call: " + mesgIdStr);
          * @return
          * @throws SQLException
         private FixedType createData(int ID, String label) throws SQLException {
              FixedType data = new FixedType();
              data._struct.setNChar(1);// initializes the flag for 'label' field
              data.setId(ID);
              data.setLabel(label);
              data.setCode(1);
              Date today = new Date();
              data.setToday(new Timestamp(today.getTime()));
              return data;
          * @param string
          * @param s
          * @throws SQLException
         private void debugStruct(String string, STRUCT s) throws SQLException {
              logger.debug(s + ".debugString(): " + s.debugString());
              logger.debug(s + "s.dump(): " + s.dump());
          * @return
          * @throws SQLException
         private AQAgent makeAgent() throws SQLException {
              AQAgent ag = AQFactory.createAQAgent();
              ag.setName("AQ_TEST");
              String agentAddress = null;
              try {
                   agentAddress = InetAddress.getLocalHost().getHostAddress();
              catch (UnknownHostException e) {
                   logger.error("cannot resolve localhost ip address. will not set it as AQ Agent address");
                   agentAddress = "NA";
              ag.setAddress(agentAddress);
              return ag;
         private AQMessageProperties makeProps(String queueName) throws SQLException {
              final String EXCEPTION_Q_TEMPLATE = "AQ$_%sT_E";
              final int DEFAULT_DELAY = 0;
              final int DEFAULT_EXPIRATION = -1;
              final int DEFAULT_PRIORITY = 0;
              AQMessageProperties propeties = AQFactory.createAQMessageProperties();
              propeties.setCorrelation(UUID.randomUUID().toString());
              propeties.setDelay(DEFAULT_DELAY);
              propeties.setExceptionQueue(String.format(EXCEPTION_Q_TEMPLATE, queueName));
              propeties.setExpiration(DEFAULT_EXPIRATION);
              propeties.setPriority(DEFAULT_PRIORITY);
              // propeties.setRecipientList(null);//should not set
              propeties.setSender(makeAgent());
              return propeties;
          * @return
          * @throws SQLException
         private AQEnqueueOptions makeEnqueueOptions() throws SQLException {
              AQEnqueueOptions opt = new AQEnqueueOptions();
              opt.setRetrieveMessageId(true);
              // these are the default settings (if none specified)
              opt.setDeliveryMode(DeliveryMode.PERSISTENT);
              opt.setTransformation(null);
              opt.setVisibility(VisibilityOption.ON_COMMIT);
              return opt;
          * Form the AQ reference
          * @param buffer
          * @param maxNbOfBytes
          * @return
         private static final String byteBufferToHexString(byte[] buffer, int maxNbOfBytes) {
              if (buffer == null)
                   return null;
              int offset = 0;
              StringBuffer sb = new StringBuffer();
              while (offset < buffer.length && offset < maxNbOfBytes) {
                   String hexrep = Integer.toHexString((int) buffer[offset] & 0xFF);
                   if (hexrep.length() == 1)
                        hexrep = "0" + hexrep;
                   sb.append(hexrep);
                   offset++;
              String ret = sb.toString();
              return ret;
    }The output is following:
    [main] 2008-07-03 19:09:49,863 DEBUG [ru.invito.AqTest] - ----------- Enqueue start ------------
    [main] 2008-07-03 19:09:50,348 DEBUG [ru.invito.AqTest] - [email protected](): name = INVITO.FIXED_T5 length = 4 attribute[0] = 36 attribute[1] = Hell
    o, INVITO.FIXED_T5Q! attribute[2] = 1 attribute[3] = 2008-07-03 19:09:49.0
    [main] 2008-07-03 19:09:50,363 DEBUG [ru.invito.AqTest] - [email protected](): name = INVITO.FIXED_T5
    length = 4
    ID = 36
    LABEL = Hello, INVITO.FIXED_T5Q!
    CODE = 1
    TODAY = 2008-07-03 19:09:49.0
    [main] 2008-07-03 19:09:50,363 DEBUG [ru.invito.AqTest] - s.toIdStr: 507ccce5b6e9f572e040007f01007203
    [main] 2008-07-03 19:09:50,363 DEBUG [ru.invito.AqTest] - sd.toXMLString(): <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <StructDescriptor sqlName="INVITO.FIXED_T5" >
      <OracleTypeADT sqlName="INVITO.FIXED_T5"  typecode="0" tds_version="1"
               is_embedded="false" is_top_level="true" is_upt="false" finalType="true" subtype="false">
        <attributes>
          <attribute name="ID"  type="INTEGER" >
            <OracleType typecode="2" />
          </attribute>
          <attribute name="LABEL"  type="VARCHAR2" >
            <OracleType typecode="12" />
          </attribute>
          <attribute name="CODE"  type="INTEGER" >
            <OracleType typecode="2" />
          </attribute>
          <attribute name="TODAY"  type="DATE" >
            <OracleType typecode="0" />
          </attribute>
        </attributes>
      </OracleTypeADT>
    </StructDescriptor>
    [main] 2008-07-03 19:09:50,379 DEBUG [ru.invito.AqTest] - sending............
    [main] 2008-07-03 19:09:50,395 DEBUG [ru.invito.AqTest] - Message ID from enqueue call: 511ff143bd4fa536e040007f01003192
    [main] 2008-07-03 19:09:50,395 DEBUG [ru.invito.AqTest] - ----------- Enqueue done ------------But when dequeueing the 'label' attribute is lost:
    DECLARE
    dequeue_options     DBMS_AQ.dequeue_options_t;
    message_properties  DBMS_AQ.message_properties_t;
    message_handle      RAW(16);
    message             fixed_t5;
    BEGIN
      dequeue_options.navigation := DBMS_AQ.FIRST_MESSAGE;
      DBMS_AQ.DEQUEUE(
         queue_name          =>     'fixed_t5q',
         dequeue_options     =>     dequeue_options,
         message_properties  =>     message_properties,
         payload             =>     message,
         msgid               =>     message_handle);
      DBMS_OUTPUT.PUT_LINE('ID   : '||message.id);
      DBMS_OUTPUT.PUT_LINE('Label: '||message.label);
      DBMS_OUTPUT.PUT_LINE('Code : '||message.code);
      DBMS_OUTPUT.PUT_LINE('Today: '||message.today);
      COMMIT;
    END;
    ID   : 36
    Label:
    Code : 1
    Today: 03.07.08
    Could anyone tell me what is wrong with the setup/code?
    Why 'label' not saved in queue, though i saw it is not empty in STRUCT?

    Thank you for the reply!
    I have enqueued:
    [main] 2008-07-04 15:30:30,639 DEBUG [ru.invito.UserDefinedTypeAqTest$1] - [email protected](): name = INVITO.FIXED_T5
    length = 4
    ID = 41
    LABEL = Hello, INVITO.FIXED_T5Q!
    CODE = 1
    TODAY = 2008-07-04 15:30:30.0and in table (select * from FIXED_T5QT) the 'label' is blank:
    Q_NAME     FIXED_T5Q
    MSGID     51310809B5EA3728E040007F01000C79
    CORRID     b8f38fd3-4fa6-4e0f-85d1-2440d02d655e
    PRIORITY     0
    STATE     0
    DELAY     
    EXPIRATION     
    TIME_MANAGER_INFO     
    LOCAL_ORDER_NO     0
    CHAIN_NO     0
    CSCN     0
    DSCN     0
    ENQ_TIME     04.07.2008 15:28:44
    ENQ_UID     INVITO
    ENQ_TID                       4012
    DEQ_TIME     
    DEQ_UID     
    DEQ_TID     
    RETRY_COUNT     0
    EXCEPTION_QSCHEMA     AQ$_INVITO
    EXCEPTION_QUEUE     FIXED_T5QT_E
    STEP_NO     0
    RECIPIENT_KEY     0
    DEQUEUE_MSGID     
    SENDER_NAME     AQ_TEST
    SENDER_ADDRESS     10.1.1.137
    SENDER_PROTOCOL     
    USER_DATA.ID     41
    USER_DATA.LABEL     
    USER_DATA.CODE     1
    USER_DATA.TODAY     04.07.2008 15:30:30I must point to a strange thing: when the FixedType instance is created (via new operator) and then the setLabel("....") called as:
    FixedType data = new FixedType();
    // hack: proper initialization for 'label' field
    data._struct.setNChar(1);
    data.setId(ID);
    data.setLabel(label);
    data.setCode(1);
    Date today = new Date();
    data.setToday(new Timestamp(today.getTime()));
    Datum d = data.toDatum(connection);
    STRUCT s = (STRUCT) d;
    logger.debug(s + ".debugString(): " + s.debugString());
    logger.debug(s + ".dump(): " + s.dump());and if i comment line (data._struct.setNChar(1);) the debug messages for created STRUCT also shows empty value for label.
    But if i explicitly call data._struct.setNChar(1) then debug contains the label i defined in call to the setLabel method.

Maybe you are looking for

  • ITunes could not back up the iPhone... because an error occurred

    Hi I have been trying to sync my iPhone 3GS on my ailing G5 and for the past couple of weeks get the message above every time. I have seen some suggested solutions but none seems to work. Earlier I read that deleting the previous back ups and then tr

  • ArchiveLink and External Content Server

    Newbie question. Well, we are going to try to implement ArchiveLink HTTP interface 4.5 for a DMS to be able to use it as certified external content server. We are planning to user java/jsp. We can specify content server as 'http://mycontentserver:808

  • Ipod classic sorts album other than in itunes

    i sorted all my albums in itunes as i like it by album interpret. On Ipod this order is ignored. I wanted all the albums for the Kids at the beginning of Cover Flow. How do i change the order of albums on the ipod?

  • CIN - TAXINN and TAXINJ

    Why should we go for TAXINN, what are the advantagous of TAXINN over TAXINN Thanks in Advance

  • FM for Material charateristric modify

    Hi,   Is there any function module to modify the material master charateristic. Please let me know the procedure and sample code.