Using component interface in Java

i know working and programming with component interface but no knowledge about java
please give me steps to use component interface in java.
Shiv

1. Identify/Create Component Interface which you want to access in Java
2. Apply security for your Component Interface
3. Open the Component Interface in Application Designer
4. In Application Designer, select Build > PeopleSoft APIs
5. A dialog box comes with caption "Build PeopleSoft API Bindings"
6. Select Build checkbox for Java Classes Frame and give a target directory
7. Select OK, This will generate PeopleSoft API classes, dont panic if it takes some time
8. Right click on component interface, select Generate Java Template, this step will generate Java Template
9. If you are not familiar with compiling and setting up CLASSPATH in Java then it is better you ask any of your colleagues who knows Java.
10. Once CLASSPATH is set properly you can compile the generate Java Template without any problems
11.after compilation you will get a .class file and you need to execute that .class file
12. When you execute the .class file it will ask application server name, application server port, application user name and application password.
If you give all the information correctly then you will be accessing CI in Java.
Let me know if you need more help on this.
Jayaprakash Tedla

Similar Messages

  • Context binding between different components using component interface cont

    Please tell me the procedure how to do context mapping between different components ......
    Please post the procedure ASAP.

    Hi Koti,
               Check this
    <a href="/people/bertram.ganz/blog/2007/01/19/new-web-dynpro-java-tutorial--component-interface-definitions-in-practice:///people/bertram.ganz/blog/2007/01/19/new-web-dynpro-java-tutorial--component-interface-definitions-in-practice
    <a href="https://www.sdn.sap.com/irj/sdn/wiki?path=/display/wdjava/usecomponentsinbiggerWebDynproprojects%28componentization%29&">https://www.sdn.sap.com/irj/sdn/wiki?path=/display/wdjava/usecomponentsinbiggerWebDynproprojects%28componentization%29&</a>
    regards
    Sumit

  • Using native interfaces in java

    How can you use a native interface in java?

    1) By reading the JNI api and writing appropriate code or
    2) Stealing some code already done to get you started
    (#2 is VERY popular)
    And, oddly enough, I have posted 2 articles on here about using JNI in the last few weeks. So, do a search for "smg123 JNI" and you'll find my posts.

  • Commenting a Line in ABAP Editor when using SAP GUI for java

    Hi,
    In ABAP editor we can highlight the line which are to be comment and use cmd+< sign to comment those lines. What will be the command to be used to achieve the same functionality when using SAP GUI for JAVA on an iMac.

    Hello Kedar,
    please check with SAP GUI for Java 7.20 rev 5 before submitting a bug report.
    Also please verify, that cmd-< and cmd-> are not assigned as "Keyboard Shortcuts" in the "Keyboard" control panel of "System Preferences".
    Bug reports can be submitted with the [SAP Message Wizard|http://service.sap.com/message], for SAP GUI for Java please use component BC-FES-JAV.
    Best regards
    Rolf-Martin

  • Issue while calling COBOL program from Component Interface in PeopleSoft HRMS 9.2

    In HRMS 9.2, I am facing problem while calling the remote call function through component interface. In GP_ABS_EESS_REQ (Navigation Main Menu > Self Service > Time Reporting > Report Time > Absence Request) component, we have “Forecast Balance” button as shown below:
    This button checks for eligibility for leave being applied. While using component interface, it executes FORCAST_PB field change event peoplecode which contains a remote call to a cobol program as below:
    RemoteCall("PSRCCBL", "PSCOBOLPROG", "GPPOLRUN", "NET_RETURN_CD", &NET_RETURN_CD, "NET_TXN_ID", &NET_TXN_ID, "NET_TXN_NUM", &NET_TXN_NUM, "NET_MSG_ID", &NET_MSG_ID, "NET_MSG_PRM_CNT", &NET_MSG_PRM_CNT, "NET_MSG_PRM1", &NET_MSG_PRM1, "NET_MSG_PRM2", &NET_MSG_PRM2, "NET_MSG_PRM3", &NET_MSG_PRM3);
    I am getting following error while executing it via component interface:
    (2,148) - Think-time PeopleCode event (RemoteCall), but a SQL update has occurred in the commit interval. (2,148) FUNCLIB_GP_ABS.FCST_PB.FieldFormula Name:Abs_ForecastExec  PCPC:5311  Statement:60
    Called from:GP_ABS_EESS_REQ.GBL.DERIVED_ABS_SS.FCST_PB.FieldChange  Statement:26
    (91,34) - Error changing value. {Z_GP_ABS_EESS_REQ_CI.FCST_PB} (91,34)
    (18,2) - Data being added conflicts with existing data. (18,2)
    (91,37) - Error saving Component Interface. {Z_GP_ABS_EESS_REQ_CI} (91,37)
      After commenting out this line of code, I was able to save the CI successfully. But I need to execute this statement before saving CI so that I can check the eligibility for leave being applied. Can anyone help me on this issue?

    When I tried to read the file using `CAT -vt <filename>`, I could see that the file contains special characters such as ^M and ^I. This may be because of the file transfer mode(but I transferred in ASCII mode, still the special characters where appearing).
    I opened a VI editor and pasted the same script. Save the file, tried to run the script, It was working fine.
    I still didn't get how the special characters appeared. I used notepad++ as my editor.

  • Question about insertitem in component interface

    Hi:
    I'm using component interface in my work and face a question. When I use InsertItem function in peoplecode, I'm confused about its relationship with ActiveRowCount property of Row class. I need to check the data inserted in the record, so I put logic in component fieldchange event, uses ActiveRowCount to loop in the record to check every one row .
    In the PIA, if we insert one row(by click add button) for some record, ActiveRowCount seems include the row you just insert even if you have not click save button. But when I use InsertItem and triggered a FieldChange event, ActiveRowCount in this event seems not include the new row inserted by InsertItem function. It is quite different from inserting in PIA. I'm not sure whether I uses InsertItem in a wrong way or it is just a mechanism that component interface implemented to exclude InsertItem inserted row in ActiveRowCount ? Hope someone can help me. Thanks a lot.

    That doesn't make sense to me. Regardless of whether you are going through the PIA or through a Component Interface, your ActiveRowCount should increment the same.
    Is it possible that maybe your CI code is inserting into a different RowSet than what you are doing online through the PIA?
    I don't know if this terminology helps --
    Online via PIA | Component Interface
    RowSet = Collection
    ActiveRowCount = Count
    Row = Collection
    Field = Property
    Also be sure that your FieldChange is getting triggered after you insert the row. I am not sure how you are viewing the ActiveRowcount. If it is a message, I would assume that shows up in the message collection. The message collection will just queue the messages and you can check them at the end. So, what could happen is that your field change is getting triggered first and the message gets added to the collection. Then, you could insert the row. Then, you could check messages and see the count from before the row insert yet it looks like after the row insert. You might consider printing all your messages from the collection right before the row insert and deleting any pending messages.
    If you would like to post some of your code, maybe we can help more. Hope that much helps.

  • Change volume and Balance of speaker using Clip interface

    Hello,
    I am playing more than one Clip simulteniously. I want to change the volume and balance of individual Clip so that they have individual effect on speaker. I mean, if there are two clip then one should have high sound and other have low like that.
    Any help would be appreciated.
    Thanks in Advance.

    Hello,
    I play a sound using Clip interface in Java Sound. i am able to get FloatControl.Type.MASTER_GAIN) control but not FloatControl.Type.PAN)
    I have written a code like this,
    FloatControl gainControl = (FloatControl) clip.getControl(FloatControl.Type.PAN);
    Any help would be appreciated.
    * Thanks In advance*

  • How to Use COM Component in a Java Bean

    Dear Sir,
    How can I use a COM Component in a Java-Bean . I am having a COM Component for reading Weighment Reading on a Serial Port and want to use this Component in a Java-Bean . I would also like to call the methods of this COM Component inside my Java-Bean . COM Component is a dll file .
    Please guide me how to go ahead . If possible kindly provide some sample code for the same .
    With Thanks and Regards
    B V Mittal

    You need a Java to COM bridge like Jacob. Try searching this forum for more information, I've answered this question several times before.
    Dom.

  • How to use the Web Dynpro Component Interface

    Hi, All
    Error when processing your request
    What has happened?
    The URL http://erp2005.besuretech.com:8000/sap/bc/webdynpro/sap/zz_test5/ was not called due to an error.
    Note
    The following error text was processed in the system E05 : Error when Creating Component ZZ_TEST6. ZZ_TEST6 Is a Component Interface, Therefore, an Instance Cannot Be Created. Name of Component May Not Be Specified. (Used Component: ZZ_TEST5, Component Usage: MYCOMPUSAGE)
    The error occurred on the application server erp2005_E05_00 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: IF_WD_COMPONENT_USAGE~CREATE_COMPONENT of program CL_WDR_COMPONENT_USAGE========CP
    Method: RESOLVE_MAPPING of program CL_WDR_CONTEXT_NODE_INFO======CP
    Method: MAP of program CL_WDR_CONTEXT_NODE_MAP=======CP
    Method: MAP of program CL_WDR_CONTEXT_NODE_MAP=======CP
    Method: IF_WD_CONTEXT_NODE~GET_ELEMENT of program CL_WDR_CONTEXT_NODE_MAP=======CP
    What can I do?
    If the termination type was RABAX_STATE, then you can find more information on the cause of the termination in the system E05 in transaction ST22.
    If the termination type was ABORT_MESSAGE_STATE, then you can find more information on the cause of the termination on the application server erp2005_E05_00 in transaction SM21.
    If the termination type was ERROR_MESSAGE_STATE, then you can search for more information in the trace file for the work process 0 in transaction ST11 on the application server erp2005_E05_00 . In some situations, you may also need to analyze the trace files of other work processes.
    If you do not yet have a user ID, contact your system administrator.
    Error code: ICF-IE-http -c: 600 -u: LIPEI -l: E -s: E05 -i: erp2005_E05_00 -w: 0 -d: 20070120 -t: 212436 -v: RABAX_STATE -e: UNCAUGHT_EXCEPTION
    HTTP 500 - Internal Server Error
    Your SAP Internet Communication Framework Team
    How can i do?
    Thanks

    Hi,
    There is something wrong in the definition of component usage in your component. Maybe you forgot to instantiate the use component, maby the name you are using is not correct. Try to find it in that direction.
    Good Luck,
    Ben

  • How java support multiple inheritance by the use of interface.

    As per my understanding, Interface is just having the signatures of the methods not the implementation.
    So How java support multiple inheritance by the use of interface?
    Answer 1: we can institate interface reference by its implemented
    class.
              ����� interface inf...
              ����� class aa implements inf..
              ����� class bb implements inf....
               Now, inf i = new aa();
               inf i = new bb();
    Answer 2: We can extends as many interface as we want in the
    single
               interface.
               i.e. interface infFirst....
               interface infSecond....
               interface infThird....
               Now ,
               interface ingMulti extends infFrist, infThird...
    By above two answers its not prity clear as per the multiple inheritance in C or C++.
               i.e.
               class first{
               method abc();....}
               class second{
               method bbc()......}
               class multi::first::second{
               we can call to abc();.....as well as bbc();
    -Please give your important suggstion on the same.(Hope I explain it well.)
    -Jeff

    The keyword implement is used only for interfaces not
    for abstract class. If i am wrong correct me.I believe your right, but I will double check.
    As for the multiple inheritence think about the following code:
    class Animal {
        //  Animal generic stuff in this class
    interface Eat {
        //  Generic stuff that models eating behavior
    interface Runs {
        //  generic methods that model running behavior
    public class Horse extends Animal implements Eat, Runs {
        //  Stuff specific to a horse
    }The Animal class is generic but has stuff in it common to all animals.
    The Eat interface models behavior that is generic to eating, all living things have to eat something to survive. Herbavore are different from carnivores.
    The Runs interface models generic behavior to running, such as speed. A cheeta definately runs faster than a human.
    This brings us to the Horse class. It extends the Animal class because it "is-a" animal, and it implements the eat and runs interface because they are behaviors a horse has.
    I hope that helps.
    Extending an abstract class is the same as extending a regular class with the exception you MUST override all abstract methods in the abstract class. Thats not too difficult but I believe when designing classes, designing an abstract can be more diffecult than modeling the base class, and generic behaviors in interfaces. JMO.
    JJ

  • Doubts while doing  example on WDJ-Using Web Dynpro Component Interface

    Hi
    I am doing the example mentioned in the PDF file WDJ - Using Web Dynpro Component Interface Definition.
    In the PDF file its mentioned the following code inside onActionCreateDC1:
    g_Usage.createComponent("com.sap.wd.childdc1comp.ChldDC1Comp");
    wdThis.wdGetWDCompInterfInstInterface().passInfo(
    "Created Child DC 1");
    I have one query that what is com.sap.wd.childdc1comp.ChldDC1Comp?Is it the component name of DC or the package name of DC?
    I have deployed the application.When i click on button Create Child DC1 i am getting follwing exception:
    com.sap.tc.webdynpro.services.sal.deployment.api.WDDeploymentException: Failed to load deployable object part 'com.wartsila.test.ChileDC1Comp', type 'Component' of deployable object 'wartsila.com/DP_TutWDInterfaces'.
    When i click on Create Child DC2 i am getting follwing exception:
    com.sap.tc.webdynpro.services.exceptions.WDRuntimeException:Failed to create delegate for custom controller com.wartsila.test1.ChildDC2CompInterfaceCfg. (Hint: Is the corresponding DC deployed correctly? Does the DC contain the component?)
    Can anybody tell how can i solve it?
    Is it required to deploy the two child component also that is ChildDC1Comp and ChildDC2Comp?If yes then how to deploy these two child DC as when i am tryng to create application for these two component then default plug is showing blank thats why i am unable to deploy these child Dcs.
    Thanks
    Susmita

    Hi Susmita,
                      Is it required to deploy the two child component also that is ChildDC1Comp and ChildDC2Comp?
    Yes , u have to deploy both the components.
    when i am tryng to create application for these two component then default plug is showing blank thats why i am unable to deploy these child Dcs.
    U need not create an Application for deploying the component .Right Click on ur project --> Deploy.
    The problem is with ur Component, while creating a Component u should have created a Interface view and default StartUp plug.
    Just check whether u have Created the startup plug for ur interface view.
    Open the controller editor of ur interface view --> Select Plugs Tab .
    and in the plug tab , check whether u have Default Start plug (in Inbound Plugs Table).
    if there is no Default Start Plug , then click the Button New to create a Default Plug .
    in the pop up window -- select Stsrt Up and Give the name of the plug as "Default".
    After doing this , select the default plug and Right click on the plug -->copy  and Open the window Controller editor -- > select Plugs Tab --> check whether u have default plug (in Inbound plugs) in the Window controller .
    if the plug is not there , then paste the plug in the Window's Inbound Plug Table .
    Hope it helps
    Thanks and Regards

  • How to create entity object (Business Component) using service interface

    Hi,
    I have tried to create one entity object (ADF Business Component) in JDeveloper 11g using service interface option instead of database schema but getting Failed to read service WSDL URL: http://....?wsdl message.
    I have tried with axis default service Admin & Version wsdl and got same error message.
    Regards,
    Devang

    Hi,
    +"Oracle ADF Business Components application modules offer built-in support for web services and for publishing rows of view object data as service data objects (SDOs). This means that you can use an application module both as a local component and as a remotely accessible service, thereby using the same component to support interactive web user interfaces and web service clients. Entity objects that you create in your local Business Components project can utilize SDOs that the service-enabled application module exposes on its service interface."+
    This means that you don't use Axis services but ADF Business Components Services. I am not sure this functionality made it in Boxer, but surely will in the next
    Frank

  • How to use XML / XPath in JAVA (in 1.4) which third part component to use?

    How to use XML / XPath in JAVA (in 1.4)
    I'm absolutely novice in XML
    but I need to query XML using XPath
    As I understand XPath become avalible only in Java 1.5
    But I use 1.4 (project requirement)
    Which third part component could you recomend?

    Can anyone help me with this XPath query
    I get result [title: null]
    import java.io.*;
    import javax.xml.parsers.*;
    import org.xml.sax.*;
    import org.w3c.dom.*;
    import org.jaxen.*;
    import org.jaxen.dom.*;
    import org.jaxen.saxpath.*;
    import java.util.*;
    public class TestX {
         public void ggg() {
              try {
                   File f = new File("journal.xml");
                   DocumentBuilder docBuilder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
                   org.w3c.dom.Document doc = docBuilder.parse(f);
                   XPath xpath = new DOMXPath( "/journal/article/title" );
                   List result = (List) xpath.evaluate(doc);
                   System.out.println(result.get(0));
              } catch (Exception e) {
                       e.printStackTrace();
         public static void main(String[] args) {
              TestX tx = new TestX();
              tx.ggg();
    }journal.xml
    <journal>
        <article id="article.1">
            <title>Art1</title>
            <author>
               <first>Bob</first>
               <last>McWhirter</last>
            </author>
            <text>
            </text>
        </article>
        <article id="article.2">
            <title>Art2</title>
            <author>
               <first>James</first>
               <last>Strachan</last>
            </author>
            <text>
            </text>
        </article>
    </journal>

  • Is it crazy to mix java 2d with ready to use component?

    Hi, friends,
    I searched here and there in libraries for days. but I still din't find a sample or even an idea to mix java 2d with ready to use component.but, it should be able, should not it?
    I want to create a button with 4 icons surrounding by. I would like to drawing the 4 icons with paint method in componentUI but I want to use a button inside my UI. I don't want to create the whole button my self. Are there any good ideas for that?
    The main idea is to mix a 2d graphics with exiting component. any samples or hints?

    hi,
    what I mean is:
    Suppose we run the hello world applet: we draw string on the graphics. but now i want to add a button just inside the graphics. so i click the button, the color of hello world will change. I didnot add the button outside the graphics. are there any special way to clip an area and add the button in?
    Thanks

  • Name of used component in component interface

    Hi,
    I have a component interface which can be implemented by many components. How can I find dynamically the name of the Z used component?
    If I use name attribute of comp. usage attribute or info, I can only get the name which is either the statically defined name (for first usage) or freely assigned dynamical name. However, I need the Z name of the component. Like in this example:
    IF...
    *  first usage
      lo_comp_usage = wd_this->wd_cpuse_if_usage( ). "statical name 'IF_USAGE'
    ELSE.
    *  clones
      lo_comp_usage = lo_comp_usage->create_comp_usage_of_same_type( 'FREELY_ASSIGNED_NAME' ).
    ENDIF.
    lo_comp_usage->create_component( 'ZUSED_COMPONENT' ).
    *Now I'd like to get used component name from lo_comp_usage.
    *In this example, satisfactory result would be: 'ZUSED_COMPONENT'.
    l_name = lo_comp_usage->name. "here I get 'IF_USAGE' or  'FREELY_ASSIGNED_NAME'
    lo_info = lo_comp_usage->get_component_usage_info( ).
    l_name = lo_info->get_name( ). "also 'IF_USAGE'... :-(
    I know a workaround: I can create an attribute in component interface with used component name, but I would first like to try to do it properly, without workaround.
    Thanks in advance!
    KR,
    Igor

    Hi,
    I'm on latest version of netwaeaver. Please check it out the method is alaready there.. that method returns this parameter
    WDAPI_COMPONENT_USAGES   which has fields in it -
    COMPONENT_USAGE_NAME
    USED_COMPONENT
    EMBEDDING_POSITION
    COMPONENT_USAGE
    Regards,
    Lekha.

Maybe you are looking for

  • Problem in calling FBL3N and passing Dynamic Selection Screen Parameters

    Hi Experts, I am calling the standard report FBL3N in one of my reports using Submit. I am passing the GLcode, Company code and Open at key Date in the selection screen. Now my requirement is that I need to pass the Posting Key as '40' in my report.

  • Common Cache for all Users JRE 1.6

    I understand that the cache location is controlled through the Deployment.Properties file. The part I do not understand is how to get JRE to ignor the properties files in user profiles. Can someone please explain how to create a single cache location

  • Unwanted 'New Email' notification on home screen

    Havin read some of the posts on this board concerning email notification messages, i went to menu-tools-settings-general-personalisation-homesc​reen-mode settings-homescreen applications-enabledapplications, and unticked both email1 and email2 notifi

  • Batch process not playing actions or saving

    I'm having trouble with batch processing on the PC at work. When using batch processing on my trusty but ancient Mac at home, one file opens, the action plays, and the file is saved and closed before the next file is opened. This is how I perceive ba

  • SAP Self Service Vs Sucessfactor.

    Dear Experts, Can someone provide how ESS&MSS functionality can be achieved in Successfactor. Below are the quires  The scope and span of self-service in Successfactor The limits to self-service in Successfactor Anticipated administrative overhead to