Duplicate check in a Java functionality

Hi,
I am writing a small integration piece to to retrive the testcases from TestCase Management tool in java, in which i have the following scenarios:-
1)     I have testcase which is “failed”, that time I am checking whether there is any defect which is already exists in the Defect management tool for the failed testcase using the testcase name , because the testcase name and the defect name are same in our case. If not I am logging the new defect. This is fine.
2)     In another case, I have testcase which is “Passed” at the first time, for that also I am checking the whether there are any duplicate defect is present in the Defect management tool , eventhough I am not going to log any defect.
This I am doing because, I don’t know whether the testcase is “Pass” or “Fail” in the first attempt or not. Hence I am doing this mandatory check , to see whether the duplicate defect exists or not for both “pass” and “fail” testcase. I know that it is wrong to check the duplicate existence of the defect for the “pass” testcase. But there is no option I have. Is there any way we can ignore calling duplicate existence of the defect method if the testcase is “passed”? I want your guys opinion on this. Thanks in advance.

Thanks Young & JVerd.
This is a small piece of code I have build :-
        private int NOT_TESTED = 0;
     private int PASSED_1 = 0;
     private int PASSED_2 = 0;
     private int FAILED =0;
     private String testStatus = "pass"; // will be fetched dynamically
     private void execute(){
          if(testStatus.equalsIgnoreCase("fail")){
               //FAILED--;
               FAILED = FAILED + 1;
               System.out.println("the failed value is:"+FAILED);
          }else if(testStatus.equalsIgnoreCase("pass")){// first attempt
               PASSED_1 = PASSED_1 + 1;
               System.out.println("the Passed_1 value is:"+PASSED_1);
               if(PASSED_1 == 1){
                    System.out.println("Passed in the first attempt, hence no need to create a defect");
          }else if(testStatus.equalsIgnoreCase("pass") && FAILED ==1){// second attempt
               PASSED_2 =  PASSED_2+1;
               System.out.println("the Passed_2 value is:"+PASSED_2);
               if(PASSED_2 ==1){
                    System.out.println("Passed in the second attempt, create a defect");
                    // logic to create a new defect
          }else {
               System.out.println("The test not tested");
     }Here the testStatus will be eitheir "pass" or "fail", it wont give the details whether it is "pass" or "fail" in the first attempt (when you test the testcase at first(initially)). If that is the case when the Passed_2 condition which is failed at the first attemp and passed at the second attempt will be invoked?
if(testStatus.equalsIgnoreCase("pass") && FAILED ==1){// second attempt
PASSED_1 = PASSED_1 + 1;
               System.out.println("the Passed_1 value is:"+PASSED_1);
               if(PASSED_1 == 1){
                    System.out.println("Passed in the first attempt, hence no need to create a defect");
}This logic won't invoked at all, as we are not able find from the "testStatus" variable whether it is pass or fail at the second attempt. Hence for the testStatus which is "pass", always the first "pass" condition will get invoked.
Similarly for the "fail" as well.
Please tell me where i am going wrong? thanks in advance.

Similar Messages

  • Duplicate Check Function in CRM when creating new BPs?

    Hi
    Three questions:
    1. does anyone know if there is some standard way in CRM (we are on CRM5.0) to enable a duplicate check to happen when a new business partner is created - one that will warn that a similar BP already exists when the user goes to save (or even better, when part way through creation)? I have already looked into using the data cleansing cases in CRM, which is ok for existing duplicate records, but doesn't help with stopping them being created in the first place.
    2. Is there a standard function/report available that will go through the database and identify any potential duplicate records? Or, does anyone know of some standard function calls/bapis etc that can be used by our developers to design something to do this for us?
    3. Failing the above two, are there any recommendations out there for 3rd party add-ins for address/duplicate checks?
    Any insight would be most gratefully received!
    Regards
    Cara

    Hi Cara
    SAP Business Address Services (BAS) is used for maintaining BP address data.
    You can maintain any number of addresses for each business partner. One address per business partner is always flagged as being the standard address. You can define address usages by assigning the different addresses to the relevant business processes.
    Postal data and information on different communication types, such as phone numbers, fax numbers and e-mail, can be assigned to the address. If you have only the name and the (mobile) phone number of a business partner but you donu2019t know the address, you can create a BP with this address-independent communication data.
    Now Answer to your question
    A postal validation for the postal code, the city and the street can be carried out by checking against the SAP Regional Structure. You can also use external software for postal validation, checks for duplicates, and error-tolerant searches. (For more information, please see SAP Note 176559.)
    The following are examples of possible checks:
    Postal codes, cities and streets, and combinations of all of them are checked for consistency. During the check, missing elements are added. For example, if you enter only the city, the postal code is added.
    When you create and change a business partner, several phonetically similar, existing BPs are proposed for comparison purposes.
    This prevents you from creating the same partner more than once.
    Please let me know if this answered your questions.
    Regards
    Dinesh

  • Java function call from Trigger in Oracle

    Moderator edit:
    This post was branched from an eleven-year-old long dead thread
    Java function call from Trigger in Oracle
    @ user 861498,
    For the future, if a forum discussion is more than (let's say) a month old, NEVER resurrect it to append your new issue. Always start a new thread. Feel free to include a link to that old discussion if you think it might be relevant.
    Also, ALWAYS use code tags as is described in the forum FAQ that is linked at the upper corner of e\very page. Your formulae will be so very much more readable.
    {end of edit, what follows is their posting}
    I am attempting to do a similar function, however everything is loaded, written, compiled and resolved correct, however, nothing is happening. No errors or anything. Would I have a permission issue or something?
    My code is the following, (the last four lines of java code is meant to do activate a particular badge which will later be dynamic)
    Trigger:
    CREATE OR REPLACE PROCEDURE java_contact_t4 (member_id_in NUMBER)
    IS LANGUAGE JAVA
    NAME 'ThrowAnError.contactTrigger(java.lang.Integer)';
    Java:
    CREATE OR REPLACE AND COMPILE JAVA SOURCE NAMED "ThrowAnError" AS
    // Required class libraries.
    import java.sql.*;
    import oracle.jdbc.driver.*;
    import com.ekahau.common.sdk.*;
    import com.ekahau.engine.sdk.*;
    // Define class.
    public class ThrowAnError {
    // Connect and verify new insert would be a duplicate.
    public static void contactTrigger(Integer memberID) throws Exception {
    String badgeId;
    // Create a Java 5 and Oracle 11g connection.
    Connection conn = DriverManager.getConnection("jdbc:default:connection:");
    // Create a prepared statement that accepts binding a number.
    PreparedStatement ps = conn.prepareStatement("SELECT \"Note\" " +
    "FROM Users " +
    "WHERE \"User\" = ? ");
    // Bind the local variable to the statement placeholder.
    ps.setInt(1, memberID);
    // Execute query and check if there is a second value.
    ResultSet rs = ps.executeQuery();
    while (rs.next()) {
    badgeId = rs.getString("Note");
    // Clean up resources.
    rs.close();
    ps.close();
    conn.close();
    // davids badge is 105463705637
    EConnection mEngineConnection = new econnection("10.25.10.5",8550);
    mEngineConnection.setUserCredentials("choff", "badge00");
    mEngineConnection.call("/epe/cfg/tagcommandadd?tagid=105463705637&cmd=mmt%203");
    mEngineConnection.call("/epe/msg/tagsendmsg?tagid=105463705637&messagetype=instant&message=Hello%20World%20from%20Axium-Oracle");
    Edited by: rukbat on May 31, 2011 1:12 PM

    To followup on the posting:
    Okay, being a oracle noob, I didn't know I needed to tell anything to get the java error messages out to the console
    Having figured that out on my own, I minified my code to just run the one line of code:
    // Required class libraries.
      import java.sql.*;
      import oracle.jdbc.driver.*;
      import com.ekahau.common.sdk.*;
      import com.ekahau.engine.sdk.*;
      // Define class.
      public class ThrowAnError {
         public static void testEkahau(Integer memberID) throws Exception {
         try {
              EConnection mEngineConnection = new EConnection("10.25.10.5",8550);
         } catch (Throwable e) {
              System.out.println("got an error");
              e.printStackTrace();
    }So, after the following:
    SQL> {as sysdba on another command prompt} exec dbms_java.grant_permission('AXIUM',"SYS:java.util.PropertyPermission','javax.security.auth.usersubjectCredsOnly','write');
    and the following as the user
    SQL> set serveroutput on
    SQL> exec dbms_java.set_output(10000);
    I run the procedure and receive the following message.
    SQL> call java_contact_t4(801);
    got an error
    java.lang.NoClassDefFoundError
         at ThrowAnError.testEkahau(ThrowAnError:13)
    Call completed.
    NoClassDefFoundError tells me that it can't find the jar file to run my call to EConnection.
    Now, I've notice when I loaded the sdk jar file, it skipped some classes it contained:
    c:\Users\me\Documents>loadjava -r -f -v -r "axium/-----@axaxiumtrain" ekahau-engine-sdk.jar
    arguments: '-u' 'axium/***@axaxiumtrain' '-r' '-f' '-v' 'ekahau-engine-sdk.jar'
    creating : resource META-INF/MANIFEST.MF
    loading : resource META-INF/MANIFEST.MF
    creating : class com/ekahau/common/sdk/EConnection
    loading : class com/ekahau/common/sdk/EConnection
    creating : class com/ekahau/common/sdk/EErrorCodes
    loading : class com/ekahau/common/sdk/EErrorCodes
    skipping : resource META-INF/MANIFEST.MF
    resolving: class com/ekahau/common/sdk/EConnection
    skipping : class com/ekahau/common/sdk/EErrorCodes
    skipping : class com/ekahau/common/sdk/EException
    skipping : class com/ekahau/common/sdk/EMsg$EMSGIterator
    skipping : class com/ekahau/common/sdk/EMsg
    skipping : class com/ekahau/common/sdk/EMsgEncoder
    skipping : class com/ekahau/common/sdk/EMsgKeyValueParser
    skipping : class com/ekahau/common/sdk/EMsgProperty
    resolving: class com/ekahau/engine/sdk/impl/LocationImpl
    skipping : class com/ekahau/engine/sdk/status/IStatusListener
    skipping : class com/ekahau/engine/sdk/status/StatusChangeEntry
    Classes Loaded: 114
    Resources Loaded: 1
    Sources Loaded: 0
    Published Interfaces: 0
    Classes generated: 0
    Classes skipped: 0
    Synonyms Created: 0
    Errors: 0
    .... with no explanation.
    Can anyone tell me why it would skip resolving a class? Especially after I use the -r flag to have loadjava resolve it upon loading.
    How do i get it to resolve the entire jar file?
    Edited by: themadprogrammer on Aug 5, 2011 7:15 AM
    Edited by: themadprogrammer on Aug 5, 2011 7:21 AM
    Edited by: themadprogrammer on Aug 5, 2011 7:22 AM
    Edited by: themadprogrammer on Aug 5, 2011 7:23 AM
    Edited by: themadprogrammer on Aug 5, 2011 7:26 AM

  • How can I use Seeburger java functions on SAP XI's user defined functions?

    Hi All,
    As my title implies; how can I use Seeburger java functions on SAP XI's user defined functions?  I've tried searching over the net in tutorials regarding this topic but I failed to find one; can someone provide me information regarding my question? thanks very much.
    best regards,
    Mike

    Hi Mike !
    You should check your documentation about which java classes you need to reference in the "import" section of your UDF. And also deploy the java classes into the java stack or include them as a imported archive in integration repository...it should be stated in the seeburger documentation.
    What kind of functions are you trying to use?
    Regards,
    Matias.

  • Indexing for Business Partner Duplicate check((Manual Account Creation)

    Hi,
    We are working on a BP de-duplication functionality in SAP CORM. We have implemented all the necessary steps for de-duplication. But, we are facing one issue while trying to initially index the data using program - 'SIC_BAS_RADII' using the following input parameters:
    Field Name Entry
    Object Type BUT
    Object Subtype PARTNER
    Index Pool Table BUT
    Index Pool Field PARTNER
    Service Name NORMALIZE_INDEX
    Service Profile Profile defined in the configuration of the services
    Once we execute this program, it keeps on running for hours. Even after that we are not getting any successful completion message or any report related to its success execution.
    We also have option to index BAS_BUPA using t-code SES_ADMIN. Can this be considered as an alternative to program 'SIC_BAS_RSADRINI' ?
    Please let us know where are we going wrong in our execution steps/input parameters.  Anyone who has previously worked on this functionality, please help?
    Regards,
    Amit

    Hi Amit,
    To run the duplicate check you first need to activate the implementations SIC_ADDRESS_SEARCH of the BAdI ADDRESS_SEARCH and SIC_ADDRESS_UPD_TREX of the BAdI ADDRESS_UPDATE.
    You can search for duplicates by creating/changing a business partner only if the previous created busines partners were indexed (in TREX) aftre their saving.
    1. Activate both implementations.
    2. For indexing in TREX you need a RFC-destination to TREX. This RFC destination should be maintained in TA SES_ADMIN as following:
    Transaction SES_ADMIN   > Goto Customizing  > System Settings.
    Here should you enter the RFC destination for TREX.
    3. After you maintained the RFC destination for TREX, start SES_ADMIN
       Index   > Create/Activate Indexes, select BAS_BUPA and press continue
    4. Before you begin to work with checking duplicates you should do an initial indexing of the already existent business partners from BUT000. Therefore you should start the Report SIC_BAS_RSADRINI with the proposed parameters.
    5. After that each saved BP will be indexed and will be available for checking duplicates by the creation of new BPs.
    Please check: Transaction SES_ADMIN-> TREX Admin-> Queue Administration -> Function Set Queue Parameters
    Select the Queue ID  .....BAS_BUPA___1
    and set the parameter Replicate After Synchronize   > On.
                          Schedule Time                  All-0:01
    Eventually, you can start again the report SIC_BAS_RSADRINI and after 1 minute the data will be indexed in TREX.
    You can have a look also to sap help:
    http://help.sap.com/saphelp_crm60/helpdata/en/a3/eaa43ab9db4814e10000000a11402f/frameset.htm
    I hope this help.
    Thanks and regards,
    Ita

  • Duplicate check: access ID of current business partner

    Hello,
    we're using BADI ADDRESS_SEARCH to perform duplicate check of business partners in CRM 7.0.
    Some relevant address fields are passed to method ADDRESS_SEARCH (e.g. city, country, ...), however, not the partner ID or the GUID of the business partner.
    Is there any chance to access the currently processed business partner from inside the BADI method? The former (CRM 4.0, 5.0) BDT function modules "BUPMEMORY" don't work any more.
    The thing is that we need to control the duplicate check based on several BP attributes like grouping, BP role, and so on.
    Kindly consider that we're not in the IC (interaction center) but in the CRM web client (role SALESPRO)
    Many thanks for any help & kind regards
    Wolfgang

    Hi,
    One way is to enhance the custom controller of the BP_HEAD component, add a new attribute e.g., BP No or GUID and set its value on submitorenter event or save event and inside the BADI retrieve the custom controller reference to fetch the BP No or GUID.
    Regards
    Prasenjit

  • Duplicate Check while creating new BP

    Dears,
    I am a CRM Consultant and working on a CRM VMS integration scenario, wherein BP(End customer) is created in VMS system and this will be replicated to SAP CRM system which has duplicate check active.  However we would like to perform the duplicate check within VMS System, so that it checks against existing BP records in BUT000 of VMS System.
    Can you share your experience in performing the same?
    Cheers
    Sweta

    Thanks Ritesh/Ganesh.
    Yes i understand that we can make certain fields which needs to be validated/checked during customer/bp creation process.
    Example:
    Customer 1 : Already exists in VMS DB.
    First Name: Steve
    Last name:  Jobs
    Mobile: 868686
    Email:[email protected]
    BP ID/Customer No : 100
    Customer 2: Being created by user in VMS DB
    First name: Steve
    Last name: jobs
    Mobile: 868686
    Email: [email protected]
    Based upon tolerance set by business, system will display a pop up with duplicate message....
    User can ignore the message and continue creating new customer/bp record or user can make use of BP/customer 100......
    This is how duplicate check works in the CRM System....
    Note: when system tries to find the potential duplicate , it is not actually checking in CRM DB, but in TREX.....
    So  can we achieve similar functionality in SAP VMS System ? if yes....can you please provide config steps or any BADI or user exit ..etc.....
    Hope i am clear...
    Thanks again for your suggestions.
    Best Regards
    Sweta

  • BP Duplicate Check - SIC_INDEX_MAIN

    I am enabling BP duplicate check in SAP CRM6.0.
    Steps followed to activate indexes are:
    1) I created an index for for application BAS, object type BUT000 and index object type BUT000 from spro > Web Application server > Application Server > System Settings > Search Engine Services > Define Object Types for Indexes.
    2) Once I am done with these changes, I don't find the corresponding entry in the SIC_INDEX_MAIN table. 
    Still if I go ahead and try to activate the index, it says 'No entry found in table SIC_INDEX_MAIN' for object BAS and sub object type BUT000'

    Hi,
    Use BadI 'CRM_MKTLIST_BADI' and implement method IF_EX_CRM_MKTLIST_BADI~DUPLICATE_CHECK. Inside write down following code:
    DATA: lv_duplicates_found    TYPE crmt_mktlist_duplicate.
    Perform Duplicate Check.
      CALL FUNCTION 'CRM_MKTLIST_DUP_CHECK_INT'
        EXPORTING
          it_staging_adr      = it_mktlist_adr
          it_staging_per      = it_mktlist_per
          it_staging_org      = it_mktlist_org
        IMPORTING
          et_staging_dup      = et_duplicates
          ev_duplicates_found = lv_duplicates_found
          ev_error            = ev_error
          et_message          = et_message.
      IF lv_duplicates_found IS NOT INITIAL.
        ev_error = gc_true.
      ENDIF.
    You may refer class 'CL_DEF_IM_CRM_MKTLIST_BADI' for more reference.
    Regards,
    Shikha

  • Duplicate Check for Business Partners

    Hi,
    I was checking the Application COMM_CONTACT. When I create a new contact person, there is a duplicate check. When you want to create a new business partner of type person, the system raises an pop-up. This pop up appears when you want to create a new contact person of an company, which already exists.
    I would like to have this kind of functionality for the creation of an business partner of type organisation.
    Does any of you folks have an solution for that issue without an third party product.
    Or do you have any clue, why the explained problem on the top does not work with business partners (organizations), as it is working with business partners (person).
    Thanks in advance
    Stephan

    Hi
    goto Table:CRMV_BP_DCIFL and choose table =ADRC and required filed name at waht level you want to have Duplicate check for ORG and fill other relevant data as you filled for ADRP table entry
    Try this....
    Phani K

  • Duplicate check via BAS (ADDRESS_SEARCH)-- how to handle non-crm customer?

    Dear all,
    I'm implementing a duplicate check and using the BADI Address_search. Within this BADI I use the method "Address_Search" for calling a third party software tool with customer information. This tool checks whether the entered customer is already available in CRM AND in other system in our company holding.
    The method provides me a list of all found duplicates (incl. non-crm customers)
    My problem is that I need to fill a export table "ex_t_search_result" (type adkey_indx_tab) of this method which expects ADRC number. For the CRM customer it is not a problem. I can figure them out by table BUT020 and the customer number. But for the non-crm customer I do not have a ADRC number.
    I know there are some methods for creating addresses in BAS (function group SZA0), but actually Im not sure how to handle them.
    Does anybody of you had faced a similar issue?
    Thanks for your help
    Firat C.

    hello,
    BP is BDT (Business Data toolset) enabled (you can check it by adding break point in FM BUS_PBO and executing BP transaction). You can add your check directly to standard view (the check will be executed each time when user pushes enter) or you could add you check to appropriate action (during saving etc.) there are number of actions which you could use it depends on your requirements. You can find a lot of info about BDT (if you are not familiar) in Wiki.
    br,
    dez_

  • CRM E-Commerce BOB Web shop - Duplicate check for New Customer Creation

    Hi,
    In CRM E-Commerce BOB Web shop we have a requirement wherein new customer creation should go through a duplicate check. Only unique customers should be created as BP in backend GUI, in case a customer already exists with the same credentials, BP should not be created and user should get a message that the customer already exist in the system.
    Currently the system is not preventing me from creating new customers with same credentials.
    In case anybody has worked on the similar requirement or has any idea about the same, Kindly help.
    Regards, Vipul
    Edited by: vipul_kumar02 on Jun 21, 2011 4:20 PM

    Hi,
    Any pointers for function module used for creation of a new BP for a new customer request in BOB Web shop?
    Is it same as B2C Web shop?

  • Duplicate check for Connection Objects in CRM

    Hi,
    I want to implement a duplicate check for connection objects in CRM. The duplicate check shall use the address of the connection object and perhaps additonal attributes. I have found a duplicate check for business partners using the basis address service and TREX as index pool. However, I couldn't find a similar functionality for connection objects. Does somebody know:
    1) How to implement a duplicate check for connection objects which is based on the address of the connection object?
    2) Is there a way to use the TREX-based duplicate check which is integrated into the basis address service for connection objects?
    Thanks in advance!
    Best regards,
    Frank

    I also have a requirement to check for duplicate address at connection object level and we are using SAP data servies to validate the address. Can anyone share their experience.

  • Duplicate check for non inventory vendor invoices in Finance

    Hi,
    SAP provides duplicate check for non inventory vendor invoices posted through transactions F-43 and FB01 etc. The field values checked for duplicate invoice include Document date and Reference field.
    I want to know, is there any flexibility of removing Document date from checking criteria?
    This is to facilitate picking more invoices in duplicate check net.
    Regards,
    Vijay

    Dear Vijay
    Yes, you can control this via business transaction events. Please review the below explanation.
    In Rel 4.6, duplicate invoices are checked using function module
    FI_DUPLICATE_INVOICE_CHECK which is called when invoices are posted via trans FB60.  Duplicate invoice checking criteria can be customized using the open FI interface SAMPLE_PROCESS_00001110 (custom function module) starting from Rel 4.6.  Please verify if the open FI interface 00001110 is being used in your system and review duplicate invoice selection criteria via trans BERP. You may wish to omit the document date (BLDAT field from the duplicate invoice check criteria to trigger error msg F5117.  In addition, table BSIP (vendor duplicate documents) may need to be updated.  (see note 114563 for further info).
    Please also check note 537213, and note 31771 for your information.
    If this helps please reward with points.
    Best Regards
    Kesav

  • New video blog: Address Validation and Duplicate Check in IC

    Hello Everyone,
    Here is a short video discussing "Address Validation and Duplicate Check in the Interaction Center" for CRM 7.0 from Renee Wilhelm of SAP product management.
    [http://www.sdn.sap.com/irj/scn/elearn?rid=/library/uuid/70e18a60-efc9-2c10-01ae-c4626f673a53]
    Best regards,
    John
    P.S. Please share your thoughts, ideas, or concerns!  Thank you.

    Hi,
    in the video, you say that the user (logged into the system as IC Agent), can choose to merge the BPs once identified that a duplication exists.
    By the way, into SAP OSS note "1565230 - dump after merging of BPs in IC webclient" it is written that it is not supported to integrate Business partner merge functionality to IC webclient.
    Here below, an extract from the Note:
    Reason and Prerequisites:
    It is not supported to integrate Business partner merge functionality to IC webclient. Technically after the merging of Businss partners, the buffers of business transaction will be initalized at API layer directly, instead of by Genil layer. It is not possible to synchronize the buffer to BOL layer. Once you access to the business transaction which has been initialized during the merging of Business partners, the dump will occur.
    Solution:
    It is required to move the functionality to the business roles for
    backoffice scenario, for example, SALESPRO etc.
    What do you think about? Am I missing something?
    Thanks in advance and Best Regards,
    Andrea

  • ABAP Calling JAVA Function or Method

    Hi Friend,
    I need help in how to proceed using  ABAP  and Call JAVA Function . I know that  we need to use RFC enabled Function modules. I was able to connect  using JAVA Connector which was provided by SAP For communicating with JAVA Apps. The approach for connecting the JAVA to SAP is working fine.  But I  have browsed through various website but failed to find any information.Now i am looking forward to help from you friends to solve my problems .
    The Requirement is mentioned below:-
      1. Prerequiste for SAP ABAP calling a third Party software which is working in JAVA Platform (like any middle ware which might be hardware or software).
      2. Sample Code  like calling a Text  ' Hello  to the world  calling JAVA from ABAP'.
      3. Steps and process so that it would be helpful.
    Timely help would be appreciated.
    Rajiv Christopher.

    1.Middleware is JCO RFC provider it comes with SAP so no need any third party Adapter.
    2.
    " The ECHOTXT parameter should contain the text of REQUTXT.Information on
    " calling the function module should be returned in RESPTXT, indicating, for
    " example, in which system and when the function module call was processed.
    data:ECHOTEXT type SY-LISEL,
         RESPTEXT type SY-LISEL.
    CALL FUNCTION 'STFC_CONNECTION' DESTINATION '<Your JCO destination name>' " which one you have developed in SM59 as TCP/IP
      EXPORTING
        requtext       = 'ABAP Calls JAVA'
    IMPORTING
       ECHOTEXT       = ECHOTEXT
       RESPTEXT       = RESPTEXT.
    if sy-subrc = 0.
      WRITE:/'---------------------------------------------------------------------'.
      WRITE: / 'establish a link to the ABAP application server with logon data'.
      WRITE:/'---------------------------------------------------------------------'.
      write:/ ECHOTEXT .
      else.
          WRITE:/'---------------------------------------------------------------------'.
      WRITE: / 'Not establish a link to the ABAP application server with logon data'.
      WRITE:/'---------------------------------------------------------------------'.
      endif.
    Check the sample code and Let me know will you get ECHOTEXT ?
    Kanagaraja L
    Edited by: Kanagaraja  Lokanathan on Jan 6, 2010 1:27 PM

Maybe you are looking for