How to create callable object which implements GP interface

Hi experts ,  
                    I am very new to GP . I want to create a simple process , in which employee send an request to HR and then HR approves it. for this I am using two process and two callable object . I can create simple WD java project , but how we can call it , and where can i define input and out put , I  dont know .
I have also gone through a PDF which talks about this same thing but i dont know why its adding a dc in projeact and adding dependencies .
<b>can anyone tell me what is mainly required to convert a simple wd java application to a callable wd java appliaction .</b>
Thanks in advance
Abhay

Hi,
There are only 2 zip files you need to extract.
Location to Extract <b>gp_api_nw04s.zip</b>=>C:\Program Files\SAP\IDE\IDE70\eclipse\plugins\com.sap.tc.ap_2.0.0\comp\CAF\DCs\sap.com\caf\eu\gp
Location to Extract <b>gp_TopLevelDcs.zip</b>=>C:\Program Files\SAP\IDE\IDE70\eclipse\plugins\com.sap.tc.ap_2.0.0\comp\CAF\SCs\sap.com\CAF\_comp\TopLevelDCs
Very simple.
Then in your DC project expand the tree of your previously created DC and
navigate to DC MetaData->DC Definition ->Used DCs
Right click on the node “Used DCs” and click on Add Used DC…
Add both the api's separetely,
Choose caf/eu/gp/api -> DC MetaData -> Public Parts -> external
Choose caf/eu/gp/api/wd -> DC MetaData -> Public Parts  ->  GPWebDynproCO.
For “Dependency Type” select  Build Time, Deploy Time, and Run Time for both.
Finally ,
Define Web Dynpro References for  your DC
a. Right click on your DC b. Click Properties
Select entry Web Dynpro References
a. Select tab page Library References
b. Choose Add
c. Enter the reference cafeugp~api
Now your project is ready for GP development.
Hope it help you...
Award points if it helps you...
Regards,
Nirmal Sivakumar G

Similar Messages

  • Getting error while creating callable object

    Hi,
    I've created and deployed a DC using webdynpro.
    Now I want to create a callable object from portal
    I'm choosing the following options Guided Procedurers-->DesignTime>Create callable object-->userinterface>webdynprocomponent(GP interface)
    On entering the required data on the displayed page, when I'm clicking 'next' option it is giving <b>"500 internal server error"</b>.
    Can somebody help how to resolve this.
    Thanks
    Piyush

    your callable object component is missing. try to take preview of the iview and check.

  • How to create an object of a class?

    plz read the question carefully ..
    how to create the object of a class by giving the class name as an String
    suppose i have a java file name:" java1.java ".
    so now how to create an object of this class "java1"by passing a string "java1"..

    kajbj wrote:
    rajeev-usendi wrote:
    thanks but still i have problem..
    i have created the object but now i m unable to do anything with that created object..
    i have coded like this..
    Object o= Class.forName("java1").new Instance();
    after this i m unable to do anything with the object 'o'..So why did you create the instance? You can also get all methods using reflection, but that is probably not what you want to do. You should instead let the class implement an interface and cast the created object into that interface ans call the methods that you want to call.
    KajI agree with Kaj. If you need to use a class that's unavailable at compile time, you should create an appropriate interface by which to refer to the class and then you create instances reflectively and access them normally via their interface (which is called reflective instantiation with interface access)

  • How to create authorisation object for save button please help in abap

    how to create authorisation object for save button please help in abap

    Hi
    In general different users will be given different authorizations based on their role in the orgn.
    We create ROLES and assign the Authorization and TCODES for that role, so only that user can have access to those T Codes.
    USe SUIM and SU21 T codes for this.
    Much of the data in an R/3 system has to be protected so that unauthorized users cannot access it. Therefore the appropriate authorization is required before a user can carry out certain actions in the system. When you log on to the R/3 system, the system checks in the user master record to see which transactions you are authorized to use. An authorization check is implemented for every sensitive transaction.
    If you wish to protect a transaction that you have programmed yourself, then you must implement an authorization check.
    This means you have to allocate an authorization object in the definition of the transaction.
    For example:
    program an AUTHORITY-CHECK.
    AUTHORITY-CHECK OBJECT <authorization object>
    ID <authority field 1> FIELD <field value 1>.
    ID <authority field 2> FIELD <field value 2>.
    ID <authority-field n> FIELD <field value n>.
    The OBJECT parameter specifies the authorization object.
    The ID parameter specifies an authorization field (in the authorization object).
    The FIELD parameter specifies a value for the authorization field.
    The authorization object and its fields have to be suitable for the transaction. In most cases you will be able to use the existing authorization objects to protect your data. But new developments may require that you define new authorization objects and fields.
    http://help.sap.com/saphelp_nw04s/helpdata/en/52/67167f439b11d1896f0000e8322d00/content.htm
    To ensure that a user has the appropriate authorizations when he or she performs an action, users are subject to authorization checks.
    Authorization : An authorization enables you to perform a particular activity in the SAP System, based on a set of authorization object field values.
    You program the authorization check using the ABAP statement AUTHORITY-CHECK.
    AUTHORITY-CHECK OBJECT 'S_TRVL_BKS'
    ID 'ACTVT' FIELD '02'
    ID 'CUSTTYPE' FIELD 'B'.
    IF SY-SUBRC <> 0.
    MESSAGE E...
    ENDIF.
    'S_TRVL_BKS' is a auth. object
    ID 'ACTVT' FIELD '02' in place 2 you can put 1,2, 3 for change create or display.
    The AUTHORITY-CHECK checks whether a user has the appropriate authorization to execute a particular activity.
    This Authorization concept is somewhat linked with BASIS people.
    As a developer you may not have access to access to SU21 Transaction where you have to define, authorizations, Objects and for nthat object you assign fields and values. Another Tcode is PFCG where you can assign these authrization objects and TCodes for a  profile and that profile in turn attached to a particular user.
    Take the help of the basis Guy and create and use.
    Regards
    ANJI

  • Create callable object

    hai every one ...
    could u tell me we can create the callable object like with out any backend conection , like not using webdynpro...
    i need one callable object which contian ... 3 fileds
    name :
    num:
    des:
    submit    reject
    submit and reject are as button how to create this ....
    3 fileds are input fileds ..

    hai thanks for giving reply..
    yes u are saying is right . what i did is output1 consolidate with input1 it giving Group.
    And agisn i selected output1 which is in group and consolidate with input2 ..
    here when i ever save it input2 is mapped with any output..
    my doubt is mapping of one element with other input fileds of two other applications ..

  • How to create a object for IPageItemControlData?

    how to create a object for IPageItemControlData?

    From the header comment you'll see that IPageItemControlData is an Interface of PageItemWidget. That must've been an InDesign 1.0 or 1.5 feature predating kPageItemBoss, because except for the same comment even in InDesign 2.0 SDK the only further reference is a copy in the comment of its sibbling IFrameControlData which was removed with InDesign CS.
    The IID and kPageItemControlDataImpl are probably only around because deep under the hood there must be some kind of conversion provider waiting to do its job on a very old document.
    I guess the closest in today's functionality will be IHierarchy.
    Dirk

  • How to create an object within the same class???

    hi im just a newbie
    i v been always creating an object from the main class..
    but how to create an object inside the same class??
    i got main and students class
    the main got an array
    Students[] stu = new Students[]
    and i got
    stu[i] = new Students(id,name);
    i++;
    but i wanna do these things inside the Students class..
    i tried ..but i got errors.....
    how to do this
    .

    javaexpert, :)
    I really have no idea what you are trying to do since you say you've always been creating an object from the main class, yet you always want to create an object inside the same class.
    I'll assume that you have an object in the main class that you are trying to access from the Students class.
    If you are trying to access objects that are contained within the main class FROM the Students class, then know that there are two ways of doing so, one being static, and the other dynamic (look up definitions if unclear):
    1.) make the objects in the main class both static and public and access the the objects using a convention similiar to: Main.object; It's important to note that Main is the name of your main class, and object is a static object. There are better ways of doing this by using gettter/setter methods, but I'll omit that tutorial.
    2.) Create a new instance of the main class and access the objects using a similiar fashion: Main myInstance = new Main(); myInstance.myObject;
    You should really use getter and setter methods but I'll omit the code. In terms of which approach is better, step one is by far.
    I don't mean to be condecending, but you should really brush up on your programming skills before posting to this forum. This is a fundamenetal concept that you will encounter time and time again.

  • How to create an object in LSMW

    Hi Gurus,
    How to create an Object in LSMW..
    In the step 1 "Maintain Object Attributes"
    Under heading ---Object Type and Import Method
    there is object ... normally we will get Sap standard object for the corresponding Transaction
    My Requirement is like i want to assign an ZBDC Program instead of Sap Standard program there....
    Please help me..
    Regards,
    Praveen.

    Hi Praveen,
    I think you want to upload data in some master tcode,so for these u need recording for particular tcode.
    So for these u need to select Batch Input Recording option inside very first step of Maintain Object Attributes.
    In that u need to put recording name in which u want to record tcode.
    Regards,
    vishal jain

  • How to create a region which should float in a page . (Like as windows cal)

    Hello Friends
    Using
    Apex Version 4 +.
    Oracle database 11g.
    How to create a region which should float in a page .
    ie i can move that region inside that page anywhere like as windows calculator.
    Can anyone please help me.
    Thanks in advance
    regards
    Edited by: A on Apr 13, 2011 1:48 AM
    Edited by: A on Apr 13, 2011 1:48 AM

    Hi,
    You can use a jQuery dialog.
    http://docs.jquery.com/UI/Dialog
    e.g. create html region, just say you give the region static id: floating-region, make it hidden by adding attributes: style="display: none;"then do like: $('#floating-region).dialog();
    I made another post on steps to create a dialog. See: {message:id=9506160}
    Ta,
    Trent

  • How to create an object for this Question...

    i want to create an object to Factorial.java, but the class is in String object... how can i do that
    please help me with code how to create an object
    String str = Factorial.java;
    i tried to do like this
    str s1 = new str();
    this way is not working...
    thank u

    yes sir am trying to instantiate and retrieve the metadata, am a student am asked to do Program Analyzer, while fullfilling the application requirements i came across this situation, like i have to find total number of public methods in any source file that is entered as input.
    Am taking the input in String variable, i can have the details of the source class only of i instantiate and create an Object to that....
    Please suggest me some way to do that... JAVA is so interesting am working on the project since 2 weeks am done with all other classes but struck here finding the total number of methods...
    Thank you

  • How to create Activex object for my Visual C++ object

    Hi,
    I am working on development on Acrobat 9.0 SDK. I am facing problem is that I can compiled Visual C++ source code to an api. I can test functions on this api on Acrobat 9.0 windows, but I could not test it on IE web browser, because I don't know how to create Activex object from my Visual C++ source code or its api.
    I read Acrobat 9 SDK document and found under C:\Acrobat 9 SDK\Version 1\PluginSupport\Tools\Visual Studio App Wizard has two files: Acro9PIWizInstaller.msi and setup.exe. I am not very sure those file are the key to help me to create Activex objects for my api.  Are they the one I need to create Activex object? If not, could you please advise me how to create Activex object for my api or C++ codes.
    Thanks a lot for any of your comments or advices.
    Thai

    Hi lrosenth,
    Thanks a lot for your information.
    My question is, on Javascript how do I call a function from .api. Below is my very simple test.
    I got a function on BasicPlugin.cpp under C:\Acrobat 9 SDK\Version 1\PluginSupport\Samples\BasicPlugin. See below.
    I added BasicPlugin.api on C:\Program Files\Adobe\Acrobat 9.0\Acrobat\plug_ins
         ACCB1 int ACCB2 MyPluginCommand() {
              int num = 5;
              return num;
    On my HTML file, I create an <Object> below:
        <OBJECT id="acrobatapp"
                classid="clsid:85DE1C45-2C66-101B-B02E-04021C009402">
        </OBJECT>
        <OBJECT id="acrobatpdf"
                classid="clsid:CA8A9780-280D-11CF-A24D-444553540000"   >
            <Param name="SRC" value="http://www.adobe.com/devnet/acrobat/pdfs/acrobat_digital_signature_appearances_v9.pdf">
       </OBJECT>
    On my Javascript. I call function MyPluginCommand() as below, but it is not working. How do I call function MyPluginCommand() on Javascript?
         var acrobatapp= document.getElementById("acrobatapp");
         var num= acrobatapp.MyPluginCommand();
         alert(num);
    Thanks for your support,
    Thai

  • Creating callable object+ authorization problem

    Hi,
    I am following the tutorial to create the first process (GP). I assigned all designtime specific roles. I can now  create a content package object. But when I try to create the callable object, I come across the following error:
    You are not authorized to start the design time
    What going wrong! A quick reply will be appreciated!
    Mayukh

    I restarted the server. But the problem persists.
    Let me give more details:
    It says :
    YOU CAN
    and then the following list
    Create Action  #
    Create Callable Object #
    Create Process #
    Create Object View
    Create Block #
    Create Content Package Object
    Create Simple Process
    Create Process by Semantics
    The problem is with the ones I marked as # and for the others it works fine.
    I assigned the role : designtime_all and all other roles where the term designtime occurs.
    Namely:
    UME com.sap.caf.eu.gp designtime.businessobject
    UME com.sap.caf.eu.gp designtime.admin
    UME com.sap.caf.eu.gp designtime.process
    UME com.sap.caf.eu.gp designtime.callableobject
    UME com.sap.caf.eu.gp designtime.logicalcriteria
    UME com.sap.caf.eu.gp designtime.businessobject
    UME com.sap.caf.eu.gp designtime.admin
    UME com.sap.caf.eu.gp designtime.process
    UME com.sap.caf.eu.gp designtime.callableobject
    UME com.sap.caf.eu.gp designtime.logicalcriteria
    UME com.sap.caf.eu.gp designtime.translation
    UME com.sap.caf.eu.gp designtime.cpkgobject
    UME com.sap.caf.eu.gp designtime.ertemplate
    UME com.sap.caf.eu.gp designtime.all
    UME sap.com_tclmwebadmin~permissions Applications_Start_Stop
    Phew!
    Mayukh

  • How to create an object alive all the time on a server side

    Hi,
    I work on an Intranet with J2EE technologies. I need an object to do several tasks in background on the server side. Like start scheduled processes on a database and files, stocked on the server. What is the way to do this. I thought to use the JNDI by declaring the object in the Deployement Descriptor, and to manage a timer within.
    I don't know if this works.
    Anyway, my question is how to create an object on the server that is ALIVE ALL THE TIME and visible by the other objects running in the same VM.
    Thank's.

    This may not be the correct design, but I had success doing the following:
    1. Create an Stateless EJB that does a task, i.e. update a database table.
    2. Create a subclass of java.util.TimerTask to call the EJB methods.
    3. Kick off the TimerTask from a servlet.init method.
    Seems to work pretty well to do scheduled tasks, such as refreshing lookup tables. I would imagine the same could be done with an MBean, but I haven't had time to fully understand JMX yet. (It's on the list).
    As for event driven procedures, that can be done through a servlet interface.
    You may also wish to review a scheduler here: http://www.part.net/quartz.html. Note, I have NOT even looked at it yet, so I have no clue if it's any good. But, it is on my list of tools to evaluate (that's a long list) someday when my head's above water. Have a look, and caveat emptor.
    Hope this helps,
    Perry Tew

  • How to create an object class programmatically?

    Guys,
    I need your help. If possible with a simple example of how to do it.
    I need to create an aplication that read an specification of a repository type from a file and then creates it inside my BEA Repository. The problem are few:
    1 - How to Create an Object Class programmaticaly?
    I looked at documentation of ObjectClassOps but havent figured out how to do it.
    2 - How to Create a Property Definition programmaticaly?

    Sorry, ITypeManager only exists in 9.2. If you are working on 8.1, then the previous example becomes:
    RepositoryManager repositoryMgr = RepositoryManagerFactory.create();
    //connect to the repository
    repositoryMgr.connect();
    //get ObjectClassOps
    ObjectClassOps ocops = repositoryMgr.getObjectClassOps();
    ID repId = new ID();
    repId.setRepositoryName(repositoryName);
    PropertyDefinition[] pds = new PropertyDefinition[1];
    pds[0] = new PropertyDefinition(repId, "stringProp", null, Property.STRING, false, false, false, false, false, null);
    ObjectClass oc = new ObjectClass(repId, "myType", null, pds);
    oc = ocops.createObjectClass(oc);

  • How to create an object of inner class

    hi i don't know how to create an object of an inner class..
    i got something like
    class Abc{
    private class Abcd {
    like this and i want to create an object of Abcd so that i can use some of method
    there..
    i think i should create the outter class object first right? but not sure
    the syntax.. i tried something like
    Abc.Abcd justTry = new Abc.Abcd()
    something like this..but not work..
    help me plz. ...

    If the nested class (that's not technically an inner
    class you have there) is not static, then you can't
    refer to it with OuterClassName.InnerClassName any
    more than you can refer to any other member--method
    or variable--with ClassName.staticMember.
    You need an instance.
    It's been a while since I've created an instance of a
    non-static nested class from outside that clsas, but
    I think it's something like this: Outer outer = new Outer();
    outer.Inner inner = new outer.Inner();
    Actually, I think it is this:
      Outer outer = new Outer();
      outer.Inner inner = outer.new Inner();Can't test it now though, gotta go to Taco John's for TACO TUESDAY!!!!
    Gotta love them crunchy shell bean tacos!!!

Maybe you are looking for

  • Format Definition for Bank Statement Processing

    Hi All, I am using SAP B1 8.8 PL08 I have bank statement in .csv format and I made .bfp file through FormatDefinition add-on. Now I am doing Bank Statement Processing but when I am importing from bank statement showing error "Operation failed due to

  • Rotating while reading IBooks done in IBooks Author?

    I came across this book in the Itunes store, it is an example of what a client wants for a book made in I Books Author. I noticed that it has a "Rotate Your IPad To Keep Reading" feature. I have never come across this in IBA, just in case you do not

  • Newbie flash question

    I was thinking about a way to create a opening page for our club website. I would like to have some images fade in, and out, with sounds, etc, and give visitors a way to bypass that (if they want) and head right to the main page with info. So, based

  • PLS-00306: wrong number or types of arguments in call to 'TO_CURRENT'

    Hi, I'm a newbie with Oracle procedures and Oracle Spatial, and I have this problem: I have a table named POINT which is in a older version in Oracle Spatial, is a Relational Model with the following tables: POINT, POINT_SDO_INDEX, POINT_SDODIM, POIN

  • Testing WMI for TPM chip

    Win 7 Ts with a group to pre-provision Bitlocker (SCCM 2012 SP1) The group has a condition to run only if "select * from win32_TPM where IsEnabled Initialvalue="False" This works fine on HP laptops but testing a Dell Latitude it skips past Check wbem