How to map idl to java for "union" type

help me

I'm not exactly sure what you're asking for. If you've written IDL that uses an IDL union type, it will be converted to Java when you use your IDL to Java compiler (like idlj), right?
If you're looking for the specification on how the compiler does/should do it, get the latest IDL to Java language mapping from the OMG -- www.omg.org.

Similar Messages

  • Please help me.. how to rewrite the following java- for loop code in ada

    int i, j, n = 100;
    for (i = 0, j = 17; i < n; i++, j-- )
    sum += i * j + 3;

    how to rewrite the following java- for loop code in ada
    You should have a programming manual for Ada first. If you mean it the other way round, I think you subject line confused me.

  • SRM 4.0- How to set the default values for product type (01) only for SC

    The radio button “Service” should not be visible.
    Also for search help (e.g. search for internal products) where a search should only be possible for product type 01 (goods). The system should not display the product type and internally always search for goods only.
    How to set the default values for product type (01) only for SC
    We needs to use Search help BBPH_PRODUCT which having parameter PRODUCT_TYPE
    Here we can set defalut value 01 but it is not correct one since same search help is using several places.
    We need to limit the search help results only for SC.
    Kindly help out me ASAP.

    The easiest way to set defautl values is to edit the batch class.
    Goto the characteiristic and go to update values.
    In here you probably have something like 0 - 100 as a spec range.
    On the next line enter the default value within this range.  At the end of the line, click in the box in the column labelled "D".  This indicates the defautl value for the characteristic.
    If you need to you can do this in the material classification view as well.
    Just to be clear, these values will only show up in the batch record.  You can not have defautl values in resutls recording screens.
    FF

  • How to create a account key for application type M ?

    Hi Guys,
    How to create a account key for application type M ? and link the same with
    Gl account.
    thanks.

    Hi
    Please create the account keys or transaction keys in
    SPRO-> IMG-> MM-> Purchasing-> Conditions-> Define Price Determination Process-> Define Transaction/Event Keys
    Thanks & Regards
    Kishore

  • How to Map OraData to Java

    Hi
    I'm trying to Map Oracle data to Java. Call some procedure which return nested table of object. I'm using thin driver. Here is my code.
    type test1 as object
    (data1 VARCHAR2(40),data2 varchar2(30));
    type test2 IS TABLE OF test1;
    procedure test (ven2 out test2);
    Test Class:
    OracleCallableStatement cstmt = (OracleCallableStatement)con.prepareCall("call Test(?)");
    cstmt.registerOutParameter(1,OracleTypes.ARRAY,"TEST2");
    cstmt.execute();
    ARRAY array = cstmt.getARRAY(1);
    Map map = con.getTypeMap();
    map.put("SchemaName.TEST1", Class.forName(Test1Type.class.getName()));
    // Retrieve array elements
    Object[] myObjects = (Object[]) array.getArray();
    // Each array element is mapped to MyObj object.
    for (int i=0; i<myObjects.length; i++)
    Test1Type obj = (Test1Type)myObjects;
    Test1Type Class:
    import java.sql.SQLException;
    import oracle.jdbc.OracleConnection;
    import oracle.jdbc.OracleTypes;
    import java.sql.SQLData;
    import java.sql.SQLInput;
    import java.sql.SQLOutput;
    import oracle.sql.STRUCT;
    import oracle.sql.ARRAY;
    import oracle.jpub.runtime.MutableStruct;
    public class Test1Type implements SQLData {
    public static final String SQLNAME = "SY_VCC.TEST2";
    public static final int SQLTYPECODE = OracleTypes.ARRAY;
    private String data1;
    private String data2;
    /* constructor */
    public Test1Type ()
    public void readSQL(SQLInput stream, String type)
    throws SQLException
    setData1(stream.readString());
    setData2(stream.readString());
    public void writeSQL(SQLOutput stream)
    throws SQLException
    stream.writeString(getData1());
    stream.writeString(getData2());
    public String getSQLTypeName() throws SQLException
    return SQLNAME;
    /* accessor methods */
    public String getData1()
    { return data1; }
    public void setData1(String xdata1)
    { data1 = xdata1; }
    public String getData2()
    { return data2; }
    public void setData2(String xdata2)
    { data2 = xdata2; }
    The Test Class Throws the Exception
    java.lang.ClassCastException: oracle.sql.STRUCT
    Thanks in advance

    This construction is working well, but I can't still remap the STRUCT Object to the Test1Type class.
    for (int i=0; i<myObjects.length; i++)
    STRUCT myObjects2 = (STRUCT) myObjects;
    Object[] Object2 = (Object[])myObjects2.getAttributes();
    // Test1Type obj = (Test1Type)myObjects[i];
    for (int j=0; j<Object2.length; j++)
    System.out.println(Object2[j]);
    The line Test1Type obj = (Test1Type)myObjects[i]; is throwing Exception java.lang.ClassCastException: oracle.sql.STRUCT.Do anybody know, if the problem is in the Test1Type class or Test class?

  • How to get mobile model name for different types mobile devices

    Hi,
    I have checked few thread in this forum about getting mobile model name at server. So far, i noticed the mobile name is set manually in the midlet as user-agent .
    HttpConnection connection = null;           connection = (HttpConnection)Connector.open(url);          connection.setRequestMethod(HttpConnection.POST);          connection.setRequestProperty("User-Agent","Nokia7110 Profile/MIDP-1.0 Configuration/CLDC-1.0");
    i retrieve the header information from servlet like below :-
    String userAgent = request.getHeader("User-Agent");
    How to get mobile model name for different model devices , not by manually adding the model name in midlet?
    Thanks in advance :-)

    Hi,
    In J2ME there is no method to get the model number from the device. how ever you can use the APIs provided by the device manufacturer if available. But still the APIs will not work with devices from other manufacturer or sometimes it will not work with the devices of the same manufacturer if the API is not supported. so it is better to send the device model name through the header.

  • How to block accounting by MIRO for specific type of documents.

    Hello
    Is there any possibility to block accounting by MIRO for specific type of document? So you could only account specific type of documents by FBV* or FB*.
    Regards
    Marcin Obukowicz

    Hi,
    You can try to make a validation (OB28) which will check the document type based on transaction code prerequisites.
    Regards,
    Eli

  • OTL TIme card: How to make Project as criteria for Expenditure type

    Hi,
    I need to add project as criteria for Expenditure Type LOV.
    Can we pass project information as bind varaiable to Expenditure LOV? I need to customize expenditure LOV such that it picks up expenditures defind at the project level apart from preference level.
    THanks
    PRasad

    Hi,
    You can do it by OAF personalization.
    Enable the link 'Personalize page' on the given OTL page and then for that column set the rendered property as 'True' and then the column will become mandatory,
    Regards,
    Anshum

  • How to map body to base64Binary for EJB callout

    Hi,
    I am trying to call an EJB method (from proxy via Business Service) from within ALSB, passing in the main body XML in its entirety as an argument (the arg on the EJB expects a byte[]). I am having problems mapping the body across to the byte[].
    The generated WSDL schema creates a base64BinaryType in the schema but I cannot find a way to map to it.
    I have tried a java callout to return a byte array which works but returns a binary-content tag with a reference in it, however the problems still remains how do I map to the base64Binary?
    I'm thinking some clever XQUERY but am struggling to find any guidance.
    Any pointers would be most welcome.
    Cheers,
    Leigh

    Hi Ankit,
    if you have 2 key figures that are not defined as a reference of another key figure, but just use 0SALES_UNIT as their unit, you should have no problems with the update rules. The system will show both key figures in the update rule (or transformation).
    Also then the logic you map for 0SALES_UNIT will apply to both key figures in a transformation. For an update rule the same applies, unless you map the 2 key figures differently on purpose.
    I am not sure if your question was saying that you have defined a key figure as a reference to another key figure. If you have that situation, you should still be fine. If not try the approach above, after all there is not much benefit in creating a reference key figure in contract to creating a reference Characteristic (sharing master data, etc.)
    Best,
    Ralf

  • How to map same sales unit for two keyfigures

    hi,
    i am using two key figure with reference of one sales unit(0SALESUNIT) but in update rules i am getting only one key figure the other key figure is not showing in update rules.
    i want to use the same sales unit for two different key figure.
    How to do it.
    Ankit

    Hi Ankit,
    if you have 2 key figures that are not defined as a reference of another key figure, but just use 0SALES_UNIT as their unit, you should have no problems with the update rules. The system will show both key figures in the update rule (or transformation).
    Also then the logic you map for 0SALES_UNIT will apply to both key figures in a transformation. For an update rule the same applies, unless you map the 2 key figures differently on purpose.
    I am not sure if your question was saying that you have defined a key figure as a reference to another key figure. If you have that situation, you should still be fine. If not try the approach above, after all there is not much benefit in creating a reference key figure in contract to creating a reference Characteristic (sharing master data, etc.)
    Best,
    Ralf

  • How to disable popup from Java for upate of J2SE?

    Dear
    We have an instance 12.0.5 running on AIX box.Since last week whenever user tries to login & use ERP, java popup appears. It asks whether to download J2SE update. Once we accept & download, it gets connected to intenet (java.com) for verification. Most of the users does not have internet connection. In this situation, i want to disable this popup.
    According to my understanding, Oracle R12 is bundled with J2SE (some version) software though which we run forms based applications. My question is, how do i disable this popup to avoid J2SE update installation & use default J2SE version that is already installed on user PC when they first login to ERP instance?
    Secondly, how can i upgrade J2SE for specific ERP instance on AIX server for latest Java version? And is it acceptable according oracle policies. What i mean whenever we have new version of java (J2SE), how do i make it applicable to our instance?
    Thanks.

    To disable updates, click on Java in the Control Panel, click on Update tab, and clear the "Check for Updates" Automatically" box.
    Secondly, how can i upgrade J2SE for specific ERP instance on AIX server for latest Java version? And is it acceptable according oracle policies. What i mean
    whenever we have new version of java (J2SE), how do i make it applicable to our instance?Refer to Note: 393931.1 - Deploying Sun JRE (Native Plug-in) for Windows Clients in Oracle E-Business Suite Release 12
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=393931.1

  • How to make changes to Java for Lion

    Forgive me, I am not experienced with Java Applets or the website I am mentioning in this post. I am asking for another person and have only been able to run tests and theories this evening.
    It seems that the most recent Java upgrade has caused some issues with runescape.com Several Mac users at the site are reporting the same issue. When attempting to log into runescape an applet requests permission to access the computer. Actually, the warning window pops open and closed so quickly I have not been able to capture the text in it. Next, a Java Applet opens in the Dock and another warning/certificate window opens where the user can choose to Deny or Accept the certificte. Prior to the update the applet was handled within Safari. Apparently there were no additional steps to logging in. I recognize that Lion does not provide a Java runtime by default so I am wondering if changing that setting would enable runtime to do its thing without having to go through several approvals. The Java Applet runs anywhere from 28% to 100% (and sometimes more—I don't undestand that) of the CPU.
    Alas, this is still not the main issue at play. Apparently the applet causes the application/website to respond v-e-r-y s-l-o-w-l-y Is there a way to achieve the same speeds that were available prior to the update? Ideas that I have been floating have been to downgrade from the present Lion/Java combination to Snow Leopard and the penultimate version of Java (next question: where can update 5 be downloaded). I have tried to install previous versions of Java but none are available for the Lion OS. Another option is to deny the applet and the user is taken to an alternate login page. The page loads the applet in Safari but there are severe limitations to the game (reported to me—I have no basis to compare). So what the user gets in speed is limited by the fact that they can only play in "one world".
    In summary, my questions are this:
    Does someone have a workaround for the Java Applet slowdown for this game, Runescape?
    Is there a downgrade option available for Java in Lion? (my searching has not found one)
    Is there a way to change the default runtime setting? (I have read at least one post where the user tried to edit settings in Java Preferences and they did not stick but they might not have restarted their browser)

    Hi,
    ITS i dont have an idea but from portal we can do CTRL+RIGHT CLICK AND WE CAN HIDE THE FIELD.
    Try the same in ITS in the iview out put.
    Thre are some tables where we can hide some fields for old ESS/MSS packages.
    Try that.
    If we are using portal we can go for NWDI ALSO.
    Thanks,
    GOPAL

  • How to map wsdl to java in build.xml?

    I write like this it is not working.............
    <target name="generate.java" >
         <taskdef name="wsdl2java"
         classname="org.apache.ws.wsdl2java.WSDL2JavaTask"
         classpathref="axis2.classpath"/>
         <wsdl2java file="http://192.168.4/forums/forumIntegration.php?wsdl"
         outputLocation="${build.dir}" >
         <classpath>
         <pathelement path="${axis2.classpath}"/>
         <pathelement location="${build.dir}/classes"/>
         </classpath>
         </wsdl2java>
         </target>

    Have used the axis ant tasks successfully before with axis 1. Are you using axis two? What kind of errors are you getting?
    Jim

  • How to find IDOC Function Module for Basic Type:ORDERS05

    Hi,
    What is the Transaction Code to locate the Function Module linked to the IDOC Basic Type & IDOC Message Type?
    Appreciate Your Help.
    Thanks,
    Kannan.

    Hi Seshu,
    Thanks for your reply. While creating a Custom IDOC, How do I link the IDOC Function Module and Basic Type. Appreciate Your Help.
    Thanks,
    Kannan.

  • How to suppress vendor bank account for vendor types

    Hi
    I'll bet this has been asked a few times before but I'm struggling to find anything relevant in theforums. This really isn't a security issue as there is the option to suppress the bank account field in SPRO but I just wondered if anybody had found a work around or proper SAP standard S&A to resolve please?
    The perennial "We need to stop people seeing vendor bank account details for our employees but still can see the 'real' vendors' bank account details!" question has been raised, I've offered the suppress bank account details field (load blunderbus and fire option) but is there anything I can do to refine this?
    This is a fairly old 4.6D system due to be upgraded late next year and there's been no XK03 custom transaction mod made so far as I can see.
    Vendors have been define as EMPLOY,..., etc so the split is there if needed...
    Thanks for your attention - just wanted to see if this was possible?
    Regards
    David
    Edited by: David Berry on Oct 18, 2010 8:15 PM
    Edited by: David Berry on Oct 19, 2010 3:37 PM

    HI
    Well, it was worth a go ;-(
    SU24 in QAS = Check/maintain F_BNKA_MAN Banks: General Maintenance Authorization
    One role assigned to the test user with XK02 in it:
    Manually   Cross-application Authorization Objects                                                                               
    Manually   Banks: General Maintenance Authorization  
    5       Manually   Banks: General Maintenance Authorization 
              Activity                       03                 
    22.10.2010                    SAP trace analysis                                                                               
    Terminal           Task Type  V*              PID      
    Time       13:37:15 BST    Date       22.10.2010      Trans/Rep. XK02     
    user       ZTEST1          client     001             mode       1        
    Host       tauksap_tst     System     AT1                                                                               
    13:37:15.521.278 AUT 0 <- F_LFA1_GEN:ACTVT=02                            
    13:37:15.521.317 AUT 0 <- F_LFA1_GRP:KTOKK=OWDR,ACTVT=02                 
    13:37:15.521.349 AUT 0 <- F_LFA1_BUK:BUKRS=0100,ACTVT=02                 
    13:37:15.521.386 AUT 0 <- M_LFM1_EKO:EKORG=0100,ACTVT=02   
    I'll have a word with one of the developers to see if the program is working correctly
    Have a lovely weekend
    Cheers
    David

Maybe you are looking for

  • Save parameters in a file with a predefined extension

    Hello everyone! I've create a VI which is saving parameters listed in a table. The saved file has *.zpw extension. It's working perfectly (please see attached VI)  but I want it to be more "professional". I mean, I'd like to present to the user a fri

  • ConcurrentModificationException for a GeneralPath

    I've got a problem that I don't know how to solve. I've got a GeneralPath, let's call it path. I've got the normal EDT thread running. I've got a JPanel in a JFrame. I also got a communication thread (separate thread). Now, I get coordinates to add t

  • Overcharged for bandwith

    I feel that BT uses the tactic to tell you you are using more than your allowance when you get within 3 months from the end of the contract this will encourage you to upgrade and sign a contract for another year!  Where can I make a complaint because

  • PLM  and Environment Health & safety

    My cutsomer is upgrading to SAP ERP 6.0 and they want to know if PLM must also be implemented in order to deploy any environment health and safety capabilities? Thanks you

  • Camera icon appearing on desktop

    Hi there, every time i start up, the icon i normally get when i have the camera connected appears. But it isn't connected! iPhoto then launches. I have deleted the contents of the camera 'folder' which stops iPhoto launching but the icon is stil ther