A Guide for Testing SAP NW MI & its Mobile Solutions (MAM, MAU, MTT, ...)

Hi Guys,
As per my experience, there is no enough Methodology & Tools to test the SAP Mobile solutions landscape. There are scattered documents from SAP, which are neither enough nor sufficient to carry out the different required tests from Unit test till the stress & volume tests before the Go-Live in a reliable way!
I would appreciate it very much if we combine all our experiences to compile a guide about this topic, which we can all share and even continue updating it as SAP guys further develop their Mobile Technology.
I would suggest that this SAP Mobility Solutions Test Guide should contain the main sections:
- Testing NW MI MW server.
- Testing the ECC as a MI backend system
- Critical business processes of the mobile scenario (MAM for example)
- Testing the Mobile Applications on clients devices (MAM, MAU, MTT, …)
- Performance tuning tips for all the involved software components
- Performance tuning tips for the all involved servers.
The guide should contain methodologies, tools, reference to SAP documents, sample actual testing results, ...
I would volunteer to compile your feedback into final master document and publish the final guide in SDN for all of us.
If somebody compiled such guide, it would be great if you publish it in the SDN.
Your feedback about this idea and contents for this guide is much appreciated & sure will help all of us to deliver better quality.
Thanks
Ahmed El Adl

Hi Ahmed,
Its a nice thread to start with. We shall do the same.
We are testing MI for past 1.6 yrs.
<<<<- Testing NW MI MW server.
- Testing the ECC as a MI backend system
- Critical business processes of the mobile scenario (MAM for example)
- Testing the Mobile Applications on clients devices (MAM, MAU, MTT, …)
- Performance tuning tips for all the involved software components
- Performance tuning tips for the all involved servers.>>>>
Testing NW MI MW server----The entire backend side developed application can be automated(covering many features)
We have been executing few standard test cases and enhancing them.
So can you explain more clearly about what sort of methodologies you are talking about.
We generally analyze customer raised messeges and try to pump in more test cases to cover the features.
May be this is the starting to get more enchaments methodologies to improve MI.
FYI..In Newyork release MI architecture is going to be changed a bit...so can expect better performance(Webdynpro from client side) 
Cheers,
Karthick

Similar Messages

  • Update CSS stylesheet for ITS Mobile solution

    Dear all,
    for a mobile bar code scanner solution i generated the HTML templates for the LM transactions and published a new ITSMOBILE service. So far everything is working finde.
    To fix some smaller style issues on the mobile device i added the parameter ~ITSMOBILECSSINCLUDE and uploaded the corresponding stylesheet in SE80 as a MIME object for the service.
    The stylesheet now gets triggered. But I want to do some fine tuning, therefore i changed the stylesheet, saved it and published it and the complete service.
    But know the changes visible on the screen. They are visible in SE80 but when i access the stylesheet directly (/sap/public/bc/its/mimes/barcodeservice/99/mystylesheet.css) I only see the version I have uploaded initially.
    Is this a bug? Do i have to do anything else after I have published the change file? Any ideas for an workaround?
    Thx in advance
    Florian

    I thx for your reply. I solved my problem by deleting the cache in SMICM.
    Best regards
    Florian

  • A guide for Licensing of ES3 Modules?

    We have difficulties in preparing/configuring LC ES3 modules based on prospects' requirements. Is there a "Licensing Guide" for LC ES3 that will help us in configuring the modules?
    Regards,
    Haluk Cavusoglu
    Innovatech

    Hi Ahmed,
    Its a nice thread to start with. We shall do the same.
    We are testing MI for past 1.6 yrs.
    <<<<- Testing NW MI MW server.
    - Testing the ECC as a MI backend system
    - Critical business processes of the mobile scenario (MAM for example)
    - Testing the Mobile Applications on clients devices (MAM, MAU, MTT, …)
    - Performance tuning tips for all the involved software components
    - Performance tuning tips for the all involved servers.>>>>
    Testing NW MI MW server----The entire backend side developed application can be automated(covering many features)
    We have been executing few standard test cases and enhancing them.
    So can you explain more clearly about what sort of methodologies you are talking about.
    We generally analyze customer raised messeges and try to pump in more test cases to cover the features.
    May be this is the starting to get more enchaments methodologies to improve MI.
    FYI..In Newyork release MI architecture is going to be changed a bit...so can expect better performance(Webdynpro from client side) 
    Cheers,
    Karthick

  • Beginners guide for netweaver administration

    hi ,
    i m a basis administrator . next month they r going to put me in  a project where xi is implemented .
    gurus what are the url's which guides for the sap xi administration 
    i m very new to xi...so can you also please say me what would be the job role for xiadministrator  ?
    is that very different from basisrole ?
    also if possible guide me for  netweaver administration ...
    thanks in advance

    First... download and digest the PI/XI Installation guide from SAP Marketplace.
    Then, you can go to the Exchange Infrastructure forum and search there as they have millions of threads like these one.
    Regards
    Juan

  • Implementation strategy for non sap sources

    hai friends,
                could anyone help with the
    'implementation strategy for non sap sources'.

    Hi,
    Its the same as with R3 sources.Only difference is you'll have different underlying interfaces. Non SAP systems can either be flat files, ETL systems or legacy systems using ETL connection, Oracle or Java systems XML, etc.
    But your stategy would remain the same only per your non sap source system, the transactions and the ways you configure your datasources would differ.
    Cheers,
    Kedar

  • Testing SAp biw reports

    what is the procedure for testing SAP biw reports?
    I am a beginner in sap biw.

    Hi Obily,
    If you want to Test a Query then you can do it by selct the Query in
    TCODE: RSRT --> and click Execute+Debug
    Checking BW reports is internally related with Data and the Output format...
    For checking Data from R/3 and BW we have to follow Reconcilation procedures
    check this PDF
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/7a5ee147-0501-0010-0a9d-f7abcba36b14
    Hope this helps
    Thanks,
    Sudhakar

  • SAP system access from mobile device

    Hi Techies,
    One of my client requirement is as below:
    For WMS operations they need to access SAP from mobile devices, SAP suggested to use SAP Console for their requirement.
    What are the available options to achieve this?
    And any sample docs/Install guide links?
    Env is SAP 4.7
    Regards,
    NIck Loy

    Hi Nick,
    1) We are running on ABAP engine(SAP 4.7), is it possible to use SAP ITS ?
    Yes, it is possible: you can use the ITS 6.20; SAP note 325616 will provide you with more information.
    2) If possible what are the mail installation kits, R/3 activities to activate the ITS service?
    You can go through the installation guide:
    htp://service.sap.com/instguides -> SAP Frontend Components (ITS / GUI) -> SAP Internet Transaction Server -> 6.20
    Here you find the Installation Guides, for example SAP @WEB 6.20 (SAP ITS) Inst. Guide Patchlevel 23 or higher
    I hope this helps,
    Cristiano

  • SAP Business One Forum news... - Pre-release of 2005A SP01 for testing

    Pre-Release of SAP Business One 2005A SP01 available for <u>SAP partners</u> <b>for testing purposes (only!)</b>:
    <i>April, 21st: Please note that the SAP Note No. 931019 about "Known issues" regarding SP01 has been updated and has been released.</i>
    Please checkout this article about changes, limitations, how to give feedback etc - published in the SAP Business One Developer Area here on SDN!
    Here's the direct link to the article:
    https://www.sdn.sap.com/irj/sdn/developerareas/businessone?rid=/webcontent/uuid/f3169a1c-0a01-0010-4ebd-abd65b029c71 [original link is broken]
    <b>FYI:</b>
    - Please note that the 2005A SP01 SDK package includes the <b>SDK samples in C#</b> as well!
    - Please note that currently a survey regarding partner feedback on SAP Business One documentation is done in the "SAP Business One Forum" area on Channel Partner Solution Network:
    http://cpsn-channel.sap.com/businessoneforum
    <b>TechSummit05 TechSummit05 TechSummit05 TechSummit05 TechSummit05
    Presntations, Jam Sessions and more...</b>
    Go here:
    TechSummit 2005 presentations
    SDK (basic) <b>E-learning</b> available on SMP and as download package:
    SDK (basic!) E-learning avail. on SAP Service Marketpl.(SMP) + as download
    <b>Good to remember or know as well:</b>
    There's a forum about the new "SAP Business One Integration ...":
    Busines One Integration Technology (B1i) forum!!!!
    ...and (for SAP partners only) there's a forum where you can discuss <u>implementation / sales / ...</u> questions etc.:
    Got a question about customization / implementation? Maybe ask it in CPSN!
    ...and here's the SAP Business One Forum in the "SAP Community" (public to anybody):
    Re: Got a question about customization / implementation? Maybe ask it in CPSN!
    The "Solution Overview" area in the SMB Portal on SAP Servicemarketplace now provides information on available documents in alphabetical order:
    http://service.sap.com/~form/sapnet?_SCENARIO=01100035870000000183&_SHORTKEY=01100035870000654575&_ADDINC=&
    Here's a comprehensive post about the SDN "<b>Rules of Engagement</b>":
    /thread/117232 [original link is broken]
    <b>Forum search tips:</b>
    Forum Search Tips
    ... and last but not least:
    Don't forget to check the latest news in the SAP Business One Developer Area:
    http://www.sdn.sap.com/irj/sdn/developerareas/businessone
    Message was edited by: Frank Moebius

    Hi Cristian,
    As peter mentioned, Please refer to SDK Online Help=>Content=>Degeloper Guide=>DI Server
    In addition, you can the sample code of DI Server here:
    <<...
    SAPSAP Business One SDKSamplesDI Server>>
    As regard to php sample, sorry we don't such sample so far.
    Per php, I recommend you to B1WS, a web service wrapper of DI Server for only those 45 services objects. You can download B1WS here: SDK Tools Download:
    SAP Business One Tools [original link is broken]
    =>SAP Business One Web Services Wrapper Tool
    From technical perspective, DI Server is based DCOM technology, I am not sure it is natively supported php. So you may think about wrapping DI server as web server with ASP.net, just like B1WS. php<=>web server<=>DI server
    Kind Regards, Yatsea

  • How to set up approval process for test case in SAP solution manager?

    Hi Experts,
    We need to setup a 2 level approval process for test case documents in SAP Solution Manager.
    e.g. If test case document is uploaded for transaction "MM01" then first it will go to Reviewer1. Once Reviewer1 approves it , should go to Reviewer2.
    Adn finally once reviewer2 approves it , it will be complete.
    What are the required configurations and steps for approval process setup? It will be helpful if screenshots and detailed steps are provided.
    Thanks.
    regards,
    Sanjana

    Hi,
    the above requirement we are going develop add on.below code is there. in this code how we can set for line level amount instead of document total amount
    Private Function GetCondition(ByVal sCondition As String) As ApprovalTemplateConditionTypeEnum
            Try
                Select Case sCondition
                    Case "Deviation from Credit Limit"
                        Return (ApprovalTemplateConditionTypeEnum.atctDeviationFromCreditLine)
                    Case "Deviation from Commitment"
                        Return (ApprovalTemplateConditionTypeEnum.atctDeviationFromObligo)
                    Case "Gross Profit %"
                        Return (ApprovalTemplateConditionTypeEnum.atctGrossProfitPercent)
                    Case "Discount %"
                        Return (ApprovalTemplateConditionTypeEnum.atctDiscountPercent)
                    Case "Deviation from Budget"
                        Return (ApprovalTemplateConditionTypeEnum.atctDeviationFromBudget)
                    Case "Total Document"
                        Return (ApprovalTemplateConditionTypeEnum.atctTotalDocument)
                End Select
            Catch ex As Exception
                MsgBox(ex.Message())
            End Try
        End Function
    Please guide me.
    Regds,
    Samapth Kumar.

  • XI testing for two SAP R/3 systems with same system id/logical system

    Hi
    We are currently in the process of upgrading our R/3 4.7 to ECC 6.0 and plan to maintain dual landscape for DEV & QA (4.7 & ECC 6.0) for a period  for testing and maintaining existing applications for fixes etc. The second DEV & QA (upgraded to ECC 6.0) are copy of respective systems and these systems are created automatically under technical systems in SLD by auto update (RZ70).
    The question is, can we use the same XI system for testing inbound/outbound interfaces for both the systems i.e 4.7 & ECC 6.0 at the same time.  I am aware of the fact that XI Technical/Business sytems dependent on unique logical systems, so we cannot create new business system for the upgraded DEV-II ECC 6.0 system. 
    For your information, we have two slds (one for XID/XIQ and second one for XIP).
    What are the options without disturbing & maintaining the current XI system set up?
    1) Can we change current Business systems e.g DEV010 to use new technical system i.e DEV-II ECC 6.0 for testing for a period and switch it back to DEV-I 4.7 technical system?
    2) or change logitical system name of DEV-II ECC 6.0 and create new business sytem in SLD without interfering the existing setup and modify/create interfaces to use this new business system?
    3) Do we need to refresh cache from time to time in XI ?
    4) Any other implications
    We will be upgrading XI to PI 7.1 after ECC 6. 0 Upgrade.
    Any views on this would be highly appreciated.
    Regards
    Chandu

    Hi
    Technical System was created in the SLD automatically after RZ70 configuration in the new DEV-II system. We then modified Business System to use the new Technical system and carried out following steps:
    1)     Original Idoc metadata was deleted from XID
    2)     The port definition  was deleted
    3)     A new port definition was created for new system
    4)     The metadata for each idoc type used was re-created in IDX2 , using METADATA -> CREATE
    5)     This brought in all known versions of the idoc segments, including the 7.1 version.
    I have already checked the guides suggested for our upgrade and we are thinking of going ahead with fresh installation and migrating the interfaces.
    Regards
    Chandu

  • Hi All how to add new payscale  for an employee in sap hr-abap,its urgent

    Hi All ,
    how to add new payscale for an employee  in sap hr-abap,its urgent.
    Message was edited by:
            bharat kumar
    Message was edited by:
            bharat kumar

    Hi
    If that field which you wants to add is available in one of the structures like EKKO,EKPO then you can add that field just beside the other fields
    If that field is not there in the any of the structures then you can define a variable using define command
    /: DEFINE  &VAR&
    / &VAR&  = <some value>
    or you can write subroutines to fetch the data from outside tables and can use those fields data in the script
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • HT5772 I ordered this today 1/13/14  Pet rescue saga guide walk through (Bhavin Satashiya) - purple  Ordered this guide ... opened it up and nothing. Pages are blank. I paid .99cents for this. I know its not much. But if there is a lot of people buying th

    I ordered this today 1/13/14
    Pet rescue saga guide walk through (Bhavin Satashiya) - purple
    Ordered this guide ... opened it up and nothing. Pages are blank. I paid .99cents for this. I know its not much. But if there is a lot of people buying this app. it tends to be quite a bit of an amount. Please check into this matter and reimburse the amount back to my account.
           Thank You
                           Cindy Cline

    Welcome to the user to User Technical Support Forum provided by Apple.
    For your issue please Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact

  • SAP Best Practice Guide for QM data pull to BI

    Hello Gurus,
    I am looking for SAP Best Practice Guide for Quality Mangament data modelling required for BI. That will solve my problem, to go through all the documentation before concluding to finalize the SAP Delivered Business Content objects.
    Need your input.
    Thanks,
    Lasya.

    Need your inputs experts.
    Thanks,
    Lasya.

  • SAP user guide for change request management 4.0

    Hi,
    does anybody know where i can find SAP user guide for change request management 4.0?
    Thanks in advance..
    MERAL

    Hi
    You can use this as a reference
    Regular corr
    https://websmp201.sap-ag.de/~sapidb/011000358700000872582009E/index.htm
    Urg corr
    https://websmp201.sap-ag.de/~sapidb/011000358700000872612009E/index.htm
    Hope it helps
    Regards
    Prakhar
    Edited by: Prakhar Saxena on Oct 15, 2009 10:05 AM

  • How to download jco, for using in a test sap system?

    Hello,
    at the moment i am trying to program with java a connection to a sap test system (from the book abap objects).
    Normally the conenction is built up by jco. My question is, because i haven´t got a login to the service marketplace,
    is there any possibility to download and use jco for my test connection? I only try it for education.
    Thank you very much
    Bye

    Hi GLM,
    i just used the example from the jco package,
    which i downloaded from sap service marketplace.
    (I have changed the sap poperties).
    With the jco 2 it works perfect. Only with new one
    i got problems.
    import java.io.File;
    import java.io.FileOutputStream;
    import java.util.Properties;
    import java.util.concurrent.CountDownLatch;
    import com.sap.conn.jco.AbapException;
    import com.sap.conn.jco.JCoContext;
    import com.sap.conn.jco.JCoDestination;
    import com.sap.conn.jco.JCoDestinationManager;
    import com.sap.conn.jco.JCoException;
    import com.sap.conn.jco.JCoField;
    import com.sap.conn.jco.JCoFunction;
    import com.sap.conn.jco.JCoFunctionTemplate;
    import com.sap.conn.jco.JCoStructure;
    import com.sap.conn.jco.JCoTable;
    import com.sap.conn.jco.ext.DestinationDataProvider;
    public class StepByStepClient
        static String ABAP_AS = "ABAP_AS_WITHOUT_POOL";
        static String ABAP_AS_POOLED = "ABAP_AS_WITH_POOL";
        static String ABAP_MS = "ABAP_MS_WITHOUT_POOL";
        static
            Properties connectProperties = new Properties();
            connectProperties.setProperty(DestinationDataProvider.JCO_ASHOST, "binmain");
            connectProperties.setProperty(DestinationDataProvider.JCO_SYSNR,  "53");
            connectProperties.setProperty(DestinationDataProvider.JCO_CLIENT, "000");
            connectProperties.setProperty(DestinationDataProvider.JCO_USER,   "JCOTEST");
            connectProperties.setProperty(DestinationDataProvider.JCO_PASSWD, "JCOTEST");
            connectProperties.setProperty(DestinationDataProvider.JCO_LANG,   "en");
            createDataFile(ABAP_AS, "jcoDestination", connectProperties);
            connectProperties.setProperty(DestinationDataProvider.JCO_POOL_CAPACITY, "3");
            connectProperties.setProperty(DestinationDataProvider.JCO_PEAK_LIMIT,    "10");
            createDataFile(ABAP_AS_POOLED, "jcoDestination", connectProperties);
            connectProperties.clear();
            connectProperties.setProperty(DestinationDataProvider.JCO_MSHOST, "binmain");
            connectProperties.setProperty(DestinationDataProvider.JCO_R3NAME,  "BIN");
            connectProperties.setProperty(DestinationDataProvider.JCO_CLIENT, "000");
            connectProperties.setProperty(DestinationDataProvider.JCO_USER,   "JCOTEST");
            connectProperties.setProperty(DestinationDataProvider.JCO_PASSWD, "JCOTEST");
            connectProperties.setProperty(DestinationDataProvider.JCO_GROUP, "PUBLIC");
            connectProperties.setProperty(DestinationDataProvider.JCO_LANG,   "en");
            createDataFile(ABAP_MS, "jcoDestination", connectProperties);
        static void createDataFile(String name, String suffix, Properties properties)
            File cfg = new File(name+"."+suffix);
            if(!cfg.exists())
                try
                    FileOutputStream fos = new FileOutputStream(cfg, false);
                    properties.store(fos, "for tests only !");
                    fos.close();
                catch (Exception e)
                    throw new RuntimeException("Unable to create the destination file " + cfg.getName(), e);
        public static void step1Connect() throws JCoException
            JCoDestination destination = JCoDestinationManager.getDestination(ABAP_AS);
            System.out.println("Attributes:");
            System.out.println(destination.getAttributes());
            System.out.println();
            destination = JCoDestinationManager.getDestination(ABAP_MS);
            System.out.println("Attributes:");
            System.out.println(destination.getAttributes());
            System.out.println();
        public static void step2ConnectUsingPool() throws JCoException
            JCoDestination destination = JCoDestinationManager.getDestination(ABAP_AS_POOLED);
            destination.ping();
            System.out.println("Attributes:");
            System.out.println(destination.getAttributes());
            System.out.println();
        public static void step3SimpleCall() throws JCoException
            JCoDestination destination = JCoDestinationManager.getDestination(ABAP_AS_POOLED);
            JCoFunction function = destination.getRepository().getFunction("STFC_CONNECTION");
            if(function == null)
                throw new RuntimeException("BAPI_COMPANYCODE_GETLIST not found in SAP.");
            function.getImportParameterList().setValue("REQUTEXT", "Hello SAP");
            try
                function.execute(destination);
            catch(AbapException e)
                System.out.println(e.toString());
                return;
            System.out.println("STFC_CONNECTION finished:");
            System.out.println(" Echo: " + function.getExportParameterList().getString("ECHOTEXT"));
            System.out.println(" Response: " + function.getExportParameterList().getString("RESPTEXT"));
            System.out.println();
        public static void step3WorkWithStructure() throws JCoException
            JCoDestination destination = JCoDestinationManager.getDestination(ABAP_AS_POOLED);
            JCoFunction function = destination.getRepository().getFunction("RFC_SYSTEM_INFO");
            if(function == null)
                throw new RuntimeException("BAPI_COMPANYCODE_GETLIST not found in SAP.");
            try
                function.execute(destination);
            catch(AbapException e)
                System.out.println(e.toString());
                return;
            JCoStructure exportStructure = function.getExportParameterList().getStructure("RFCSI_EXPORT");
            System.out.println("System info for " + destination.getAttributes().getSystemID() + ":\n");
            for(int i = 0; i < exportStructure.getMetaData().getFieldCount(); i++)
                System.out.println(exportStructure.getMetaData().getName(i) + ":\t" + exportStructure.getString(i));
            System.out.println();
            //JCo still supports the JCoFields, but direct access via getXX is more efficient as field iterator
            System.out.println("The same using field iterator: \nSystem info for " + destination.getAttributes().getSystemID() + ":\n");
            for(JCoField field : exportStructure)
                System.out.println(field.getName() + ":\t" + field.getString());
            System.out.println();
        public static void step4WorkWithTable() throws JCoException
            JCoDestination destination = JCoDestinationManager.getDestination(ABAP_AS_POOLED);
            JCoFunction function = destination.getRepository().getFunction("BAPI_COMPANYCODE_GETLIST");
            if(function == null)
                throw new RuntimeException("BAPI_COMPANYCODE_GETLIST not found in SAP.");
            try
                function.execute(destination);
            catch(AbapException e)
                System.out.println(e.toString());
                return;
            JCoStructure returnStructure = function.getExportParameterList().getStructure("RETURN");
            if (! (returnStructure.getString("TYPE").equals("")||returnStructure.getString("TYPE").equals("S"))  )  
               throw new RuntimeException(returnStructure.getString("MESSAGE"));
            JCoTable codes = function.getTableParameterList().getTable("COMPANYCODE_LIST");
            for (int i = 0; i < codes.getNumRows(); i++)
                codes.setRow(i);
                System.out.println(codes.getString("COMP_CODE") + '\t' + codes.getString("COMP_NAME"));
            codes.firstRow();
            for (int i = 0; i < codes.getNumRows(); i++, codes.nextRow())
                function = destination.getRepository().getFunction("BAPI_COMPANYCODE_GETDETAIL");
                if (function == null)
                    throw new RuntimeException("BAPI_COMPANYCODE_GETDETAIL not found in SAP.");
                function.getImportParameterList().setValue("COMPANYCODEID", codes.getString("COMP_CODE"));
                function.getExportParameterList().setActive("COMPANYCODE_ADDRESS",false);
                try
                    function.execute(destination);
                catch (AbapException e)
                    System.out.println(e.toString());
                    return;
                returnStructure = function.getExportParameterList().getStructure("RETURN");
                if (! (returnStructure.getString("TYPE").equals("") ||
                       returnStructure.getString("TYPE").equals("S") ||
                       returnStructure.getString("TYPE").equals("W")) )
                    throw new RuntimeException(returnStructure.getString("MESSAGE"));
                JCoStructure detail = function.getExportParameterList().getStructure("COMPANYCODE_DETAIL");
                System.out.println(detail.getString("COMP_CODE") + '\t' +
                                   detail.getString("COUNTRY") + '\t' +
                                   detail.getString("CITY"));
            }//for
         * this example shows the "simple" stateful call sequence. Since all calls belonging to one
         * session are executed within the same thread, the application does not need
         * to take care about the SessionReferenceProvider. MultithreadedExample.java
         * illustrates the more complex scenario, where the calls belonging to one session are
         * executed from different threads.
         * Note: this example uses Z_GET_COUNTER and Z_INCREMENT_COUNTER. The most ABAP systems
         * contain function modules GET_COUNTER and INCREMENT_COUNTER, that are not remote enabled.
         * Copy these functions to Z_GET_COUNTER and Z_INCREMENT_COUNTER (or implement as wrapper)
         * and mark they remote enabled
         * @throws JCoException
        public static void step4SimpleStatefulCalls() throws JCoException
            final JCoFunctionTemplate incrementCounterTemplate, getCounterTemplate;
            JCoDestination destination = JCoDestinationManager.getDestination(ABAP_MS);
            incrementCounterTemplate = destination.getRepository().getFunctionTemplate("Z_INCREMENT_COUNTER");
            getCounterTemplate = destination.getRepository().getFunctionTemplate("Z_GET_COUNTER");
            if(incrementCounterTemplate == null || getCounterTemplate == null)
                throw new RuntimeException("This example cannot run without Z_INCREMENT_COUNTER and Z_GET_COUNTER functions");
            final int threadCount = 5;
            final int loops = 5;
            final CountDownLatch startSignal = new CountDownLatch(threadCount);
            final CountDownLatch doneSignal = new CountDownLatch(threadCount);
            Runnable worker = new Runnable()
                public void run()
                    startSignal.countDown();
                    try
                        //wait for other threads
                        startSignal.await();
                        JCoDestination dest = JCoDestinationManager.getDestination(ABAP_MS);
                        JCoContext.begin(dest);
                        try
                            for(int i=0; i < loops; i++)
                                JCoFunction incrementCounter = incrementCounterTemplate.getFunction();
                                incrementCounter.execute(dest);
                            JCoFunction getCounter = getCounterTemplate.getFunction();
                            getCounter.execute(dest);
                            int remoteCounter = getCounter.getExportParameterList().getInt("GET_VALUE");
                            System.out.println("Thread-" + Thread.currentThread().getId() +
                                    " finished. Remote counter has " + (loops==remoteCounter?"correct":"wrong") +
                                    " value [" + remoteCounter + "]");
                        finally
                            JCoContext.end(dest);                   
                    catch(Exception e)
                        System.out.println("Thread-" + Thread.currentThread().getId() + " ends with exception " + e.toString());
                    doneSignal.countDown();
            for(int i = 0; i < threadCount; i++)
                new Thread(worker).start();
            try
                doneSignal.await();
            catch(Exception e)
        public static void main(String[] args) throws JCoException
            step1Connect();
            step2ConnectUsingPool();
            step3SimpleCall();
            step4WorkWithTable();
            step4SimpleStatefulCalls();
    Edited by: Unicast on Sep 14, 2008 4:33 PM

Maybe you are looking for

  • Last Line Item in Report Repeating on Next Page

    The last line of data of every page is also the first line on the next page. I have not encountered this before and I cannot see how it is happening or how to correct it. The report has three groups and the 3rd group has 3 details lines. It is the 2n

  • Is it possible to load music onto an iPod in Disc Mode?

    Hi guys, Is it possible to load music onto an iPod in Disc Mode? I recently sold my 5th Gen 30Gb iPod on eBay, about a week later the buyer sent it back claiming it was faulty, he could not switch it on etc etc... Within a few minutes I had it runnin

  • Elliptic curve coprocessor in JCOP

    I have some JCOP41/72K cards with support to ECC. I suppose the cards come with a coprocessor that performs the elliptic curve operations in binary fields, like reduction modulo irreducible polynomial and escalar multiplication of a point. I've alrea

  • Selecting Plant data using parameter WRK

    Hi, I have to the requirement that I need to extract the maintainance plant data accoring for the equipment if not plant data is found for equipment then i have to check user preference for parameter WRK. Please provide me the syntax for the same. Th

  • "Share Online" Delete !

    hello, I have to install program "Share Online" on my n82, restart my n82.... then after removing the program... I have two icons on your desktop : [IMG]http://i45.servimg.com/u/f45/11/75/87/30/post-410.jpg[/IMG] With the addition of an icon in the a