How to create API

hi plz let me know how to create API for user defined class

Well what do you want to know exactly? The topic of this thread leaves a lot to the imagination.
- To create documentation for your API: use the command line javadoc tool that comes with the SDK, or use an IDE like Netbeans to generate the javadocs.
- to create an API you basically just create your own package of classes (plus documentation, or how else is anybody going to use your API?). To easily distribute this API you should put all those classfiles in a jar using the jar command line tool or again an IDE to make the job easier.

Similar Messages

  • How to create Detailed API? urgent!!!!!

    Hi all
    I know how to create API using javadoc. but in that case it shows me the list of methods and fields. but i want to have some details of all the things. so can you tell me how to do that. do i need to give some details in my .java file or anything else?
    please do reply fast...
    thanx so much
    jhelam

    If you're trying to look at the documentation of java files and want to know everything about them w/o opening each file yourself you are probably going to need to write your own code to examine each .java file on a text level. As far as I know there isn't any special classes or API's out there that will automate the documentation process for every variable and method (including private ones) and also standard comments. If this is what you are trying to do then you will probably need to create it yourself. The other aspect is trying to decompile the class files but that too can be misleading and incorrect many times.

  • How to create numeric attribute using ABAP API

    Hi experts
    I'm trying to create a numeric attribute for a taxonomy table. In the how-to-examples there are only ways to create text attributes.
    Those who have tried, please let me know the steps.
    I have given below the code snippet which i tried to create numeric attribute. Please let me knw the missing link.
    ls_num_attr_val-rating = 500.
        APPEND ls_num_attr_val TO ls_ext_attr_info-characteristics.
      ls_ext_attr_info-attr_info-attr_id-id = lv_attribute_id.
           APPEND ls_ext_attr_info TO lt_ext_attr_info.
        GET REFERENCE OF lt_ext_attr_info INTO lv_data.
        ls_namevalue-value = lv_data.
        ls_namevalue-code = 'ACCT'.
        APPEND ls_namevalue TO ls_parameter-name_value_pairs.
        lv_string = 'Customer 12'.
        GET REFERENCE OF lv_string INTO lv_data.
        ls_namevalue-value = lv_data.
        ls_namevalue-code = 'CUST_NAME'.
        APPEND ls_namevalue TO ls_parameter-name_value_pairs.
        CALL METHOD lr_api->mo_core_service->create
          EXPORTING
            iv_object_type_code = 'ACCT_TYPE'
            is_parameter        = ls_parameter
            iv_parent_id        = 0
          IMPORTING
            ev_new_internal_id  = lv_key.
    Thanks
    SwarnaDeepika
    Edited by: SwarnaDeepika on Dec 19, 2009 4:38 PM

    Hello Ashok,
    [here|https://help.sap.com/javadocs/MDM/current/com/sap/mdm/examples/CreateField.html] is the Java API of the needed command.
    There is also an example of how to create a field. You can use the class by replacing the strings for the server, repository, table, etc. to your needs.
    If you want to create more than one field, simply use a loop, like the for-loop, while-loop, etc.
    Hope this helps.
    Best regards
    Dominik

  • How to create a new User / Contact using APIs

    I am not able to figure out how to create a new User / Contact in WLPS using APIs
    . Is there a factory class ?
    Thanks,
    AJ

    Hi Bala,
    Try using these function modules
    SUSR_BAPI_USER_CREATE
    BAPI_USER_CREATE
    BAPI_USER_CREATE1
    BAPI_USER_INTERNET_CREATE ( This internally calls BAPI_USER_CREATE1)
    Please read the FM documentation for more information.

  • How to create an update listener using event notification in MDM Java2 API.

    Hi folks,
    I need some help on how to create an update listener for Customer updates in MDM using notification API. Could some one point me to where I should start. We are still using SP5.
    Thanks
    -Sai

    Hi All,
    I need to create update listener with notifications and it is giving this error.
    Nov 14, 2008 12:26:21 PM com.sap.mdm.internal.net.ConnectionImpl finalize
    INFO: Disconnect was not called. Cleaning up connection in finalize.
    Nov 14, 2008 12:26:21 PM com.sap.mdm.internal.net.ConnectionImpl finalize
    INFO: Disconnect was not called. Cleaning up connection in finalize.
    Nov 14, 2008 12:26:21 PM com.sap.mdm.internal.net.ConnectionImpl finalize
    INFO: Disconnect was not called. Cleaning up connection in finalize.
    I am still using SP05 and noticed that some mentioned that MDM4J.jar has to be used. Can someone throw some pointers how to do this with MDM4J.jar. Can I  include MDM4J.jar in the same project along with mdm-admin.jar, mdm-core.jar, mdm-common.jar, mdm-protocol.jar or I shoudl have only MDM4j.jar to create this listener. Any help is appreciated.
    Thanks
    -sai

  • How to create a listener using the new MDM API

    Does anyone have an example on how to create a addrecord listener using the new MDM API?

    Refresh!
    Hi all,
    Looking for some sample codes on the same
    Best regards,
    Arun prabhu S

  • How to create a project templace using a API?

    Hi all,
    I can create a project using API PA_PROJECT_PUB.create_project, but how to create a project templace using a API?
    thanks for your any effort.
    Caril

    Hi Caroline:
    If sub projects are not supported currently, does the EDK API support creating the project folders under a project? Please let me know.
    Thanks.
    Bhanu

  • How to create autofilter in excel page using jxl api?

    Hi Friends,
    I am using jxl api for excel generation. Its no problem
    but i need to set auto filter options. I am search in this API package but i can't find it.
    Any one know how to create autofilter in excel page using jxl api?.
    Please ..... Its urgent.... ...
    Thanks

    Hi,
    Please mail me on [email protected] if u will find any solutions, i will do the same if i will find any...
    Thank u in advance,

  • How to create all Integration Directory with Directory API

    How to create all Integration Directory
    elements (Receiver determination, Interface Mapping, Communication channel Etc ) using Directory API
    Can we upload multiple elements in ID from list in Excel sheet

    Take a look to this "How TO", can be really helpful for your requirements:
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a0336199-d3c7-2c10-c983-f8a945a4588c?QuickLink=index&overridelayout=true

  • How to create snapshot portlet and snapshot query using server API

    How to create snapshot portlet and snapshot query using server API
    Regards
    Dheeraj

    Hi Sebastian,
    I have used the query and it is working fine. but, How could i include the headers of the query also in to the Excel Sheet.
    RehaanKhan. M
    see the method discussed here
    http://sqlblogcasts.com/blogs/madhivanan/archive/2008/10/10/export-to-excel-with-column-names.aspx
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • How to Create RMA Based on Sales order using OE_ORDER_PUB api

    Hi,
    Can any one pls help me how to create a RMA based on the sales order using oe_order_pub.process_order APi.
    Thanks.

    Creating RMA is very similar to creating an Order. You need to make sure you're passing the correct order_type, line_type which'll be setup as 'RETURN' (or 'MIXED') category in transaction type definition.
    For the API to automatically create a reference on your RMA lines to the original Order lines, you need to pass the following
    l_line_tbl (l_line_tbl.COUNT).return_reason_code := 'RETURN'; -- Mandatory for RMA
    l_line_tbl (l_line_tbl.COUNT).reference_line_id := v_ref_line_id; -- Original order line_id
    l_line_tbl (l_line_tbl.COUNT).reference_header_id := v_ref_header_id; -- Original order header_id
    l_line_tbl (l_line_tbl.COUNT).return_context := 'ORDER';
    l_line_tbl (l_line_tbl.COUNT).return_attribute1 := v_ref_header_id; -- Original order header_id
    l_line_tbl (l_line_tbl.COUNT).return_attribute2 := v_ref_line_id; -- Original order line_id
    Once the RMA gets created, query the order and navigate to Lines>Returns tab. You can see the original order number and line number.
    Thanks
    Gopal

  • How to create Downpayment Invoice using DI API in SAP B1 2005 version?

    Hi there,
    I appreciate anyone that can suggest me how to create a down payment invoice using DI API in SAP B1 2005 version? What is the object that we need to use? I can't find any object to achieve this
    Many Thanks,
    Harianto Ng

    the object is SAPbobsCOM.BoObjectTypes.oDownPayments, but if i remember correctly this object wasnt exposed in DI for 2004 and maybe for 2005 too.

  • How to create RAS phonebook entry using cmd or win API

    I could't find forum about Batch/cmd or API so I'll post here. Hope it's ok, it's C# related after all.
    I need to implement simple VPN client functionality in my C# application, and it is highly preferable not to use any third party libraries, like DotRas for example, which I find not efficient and well documented anyway. I can use DotRas, but the connection
    fails 9 of 10 times, because of some keys DotRas don't set correctly. I can connect using:
    rasdail entryname user pass /PHONEBOOK:mypath
    The problem is how to create an entry (the custom phone book here is nod needed and it don't concern my question, I can use the default as well), I even know what keys to use, so I can create it from string, but the problem is in those 4 keys:
    LowDateTime= HighDateTime= DialParamsUID= Guid=
    I vaguely know what're those for, but I can't find good explanation how they are created. Windows documentation says:
    LowDateTime= - This key is optional and if present MUST be ignored by RRAS HighDateTime=30428537 - This key is optional and if present MUST be ignored by RRAS DialParamsUID=2945250 - This key specifies
    a unique identifier (an 8-bit ASCII-encoded string representation of a decimal number) to be used on RRAS for use as a credential key for demand-dial connection. This key is optional. Guid= - This key specifies a unique identifier (GUID) for this RRAS entry.
    This key is optional.
    Those are all optional and even omitted according to Microsoft documentation, but when I change one of those the connection fails with error 800, which I don't have an idea why. I can obviously create the entry with DotRas and change some keys, assuming the
    problem is not in those flags, and I'm not so sure in this, or I can try to automate and hide the vpn creation GUI in windows, but both the ideas look very ugly to me...

    Hi Memeandme,
    Thank you for visiting the MSDN forum.
    I’m afraid that it is not the correct forum about this issue, since this forum is to discuss Visual C# programming language. In .Net Framework, there is no build-in method to help you implement
    this.  Now I am moving your question to the moderator forum ("Where is the forum for..?"). The owner of the forum will direct you to a right forum. Thanks for your understanding.
    Best regards,
    Kristin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to create Authorization policy using OIM 11g API

    Hi,
    Could you please let me know how to create Authorization policy using OIM 11g API.
    Thanks

    Constructing A Policy Programmatically
    http://docs.oracle.com/cd/E27559_01/dev.1112/e27154/cons_policy_prog.htm#CHDHACBF
    api ref for PolicyStore
    http://docs.oracle.com/cd/E21764_01/apirefs.1111/e22649/oracle/security/jps/service/policystore/PolicyStore.html#createApplicationPolicy_java_lang_String_
    something like below code to start with
    try {
    JpsContextFactory ctxFact;
    ctxFact = JpsContextFactory.getContextFactory();
    JpsContext ctx;
    ctx = ctxFact.getContext();
    PolicyStore ps = ctx.getServiceInstance(PolicyStore.class);
    if (ps == null) {
    // if no policy store instance configured in jps-config.xml
    System.out.println("no policy store instance configured");
    return;
    ApplicationPolicy ap = ps.createApplicationPolicy("Trading", "Trading
    Application","Trading Application.");
    } catch (JpsException e) {
    }

  • How to create Approval Policies using API - OIM 11g R2

    Hi,
    Could you please let me know how to create the Approval Policies using java API code in OIM 11g R2.
    Thanks

    Hi Karthik,
    Thanks for sharing the link. Could you please let me know how to specify the rule condition while creating the Approval Policy using the API given in this link.

Maybe you are looking for

  • Sharing the same iTunes library from different Macs/Pcs to Time Capsule

    Hello everybody, I have just bought a new Time Capsule (2TB) internal storage and an external 2TB Western Digital that i have also connected to the time capsule just fine. The Time capsule is supplying internet to a ps3, apple tv, sony bluray player

  • How do I respond to a Finalize Project Failure due to an open file?.

    I'm new to iMovie, but have put together about 7 related projects. I went to Finalize the first project over night. It said it would take about 5 hours. In the morning it said the attempt failed due to an open file. I thought this was referring to th

  • Active Run Content

    hello, i've got a flash file (SWF). I have the file running on my production server. However, i've been using DW CS3 to create a new page to hold the SWF file. The page runs great when I display it under my local server. However, when I upload my DW-

  • Intermitent Loss of Network Connectivity

    Lately, some users in our network (a gigabit switched network) have been experiencing intermitent loss of connectivity to their network servers/resources. The message reads: "The connection to the remote computer was broken. This may have been caused

  • Time Capsule set-up

    Hi, I tried the following steps 1. Plugged in TC (no other connections, Ethernet, etc, only mains connection 2. My IMac finds TC thru Airport, I click it and go through the TC set-up screens, passwords, join my existing network etc 3. Then it says my