DMS via JCO - BAPI_DOCUMENT_CHECKOUTVIEW2

Hi All,
I'm trying to download a file from DMS in Web Dynpro.
I wrote a simple Java app that works when run from the command line.
I set:
JCO.setMiddlewareProperty("jco.middleware.allow_start_of_programs", "sapftp;saphttp");
and
input.setValue("SAHTTP", "PF_HTTP_DEST");
     input.setValue("SAFTP", "PF_FTP_DEST");
This allows me to download the file with out using SAPGUI.
When I added this code to my Web Dynpro application it executes without error but the file is not there. (input.setValue(".
", "ORIGINALPATH"); to create the file in the current directory)
I am thinking this is either due to:
-Different version of JCO between the sapjco.jar I am using in the Java command line app and the version used in Web Dynpro
-Web Dynpro application doesn't have rights to write file on the server.
Any thoughts or similar experiences?
Thanks

Try to set this command previous execute the function.
     client.setSapGui(2);
     client.setTrace(true);

Similar Messages

  • How to via JCO Call RFC upload file to the SAP DMS.

    HI ,ALL :
      NOW i want to upload file via JCO,but i upload in sap gui is success ,but jco call RFC is error ,this is my code:
    excute this  code is not error ,but the data not write to SAP,
            //连接SAP
              Client client = com.hipfung.jco.JCOFactory.getInstance().getClient();
              JCO.Repository repo = new JCO.Repository("ZOA01", client);
              //调用RFC函数
              IFunctionTemplate ft = repo.getFunctionTemplate("CVAPI_DOC_CHECKIN");
              JCO.Function f = ft.getFunction();
              IFunctionTemplate ft2 = repo.getFunctionTemplate("BAPI_TRANSACTION_COMMIT");
              JCO.Function commitFunction = ft2.getFunction();
              //设置传入参数值(注意类型)
              //1.传入参数为Field
                f.getImportParameterList().setValue("TXB",          "PF_DOKAR");  //
              f.getImportParameterList().setValue("0000010101010101020000000","PF_DOKNR");  //文档类型
              f.getImportParameterList().setValue("01","PF_DOKVR");                          //文档版本
              f.getImportParameterList().setValue("000","PF_DOKTL");     
              f.getImportParameterList().setValue("SAPFTPA","PF_FTP_DEST");     
              f.getImportParameterList().setValue("SAPHTTPA","PF_HTTP_DEST");     
              // Get content as table
              f.getImportParameterList().setValue("TBL", "PF_CONTENT_PROVIDE");
            //read file and trans to byte
                      byte b[]=null;
                        File inf = new File("d:
    test.jpg");
                        InputStream in;
                        try {
                             in = new FileInputStream(inf);
                              b =new byte[(int)inf.length()];     //创建合适文件大小的数组
                             in.read(b);                          //读取文件中的内容到b[]数组
                             in.close();
                        } catch (FileNotFoundException e1) {
                             // TODO Auto-generated catch block
                             e1.printStackTrace();
              //set byte to internal table     
             JCO.Table poItem = f.getTableParameterList().getTable("PT_CONTENT");        
             poItem.appendRow(); //增加空行
             poItem.setValue(b, "ORBLK");
             poItem.nextRow();
             //运行RFC函数
              try
                   client.execute(f);
                   client.execute(commitFunction);
              catch(JCO.AbapException ae)
                   System.err.println("JCO.AbapException: < DMS > " + ae);
                   ae.printStackTrace();
              catch(JCO.Exception e)
                   System.err.println("JCO.Exception: < DMS > " + e);
                   e.printStackTrace();
             //返回参数
              JCO.Structure struct = f.getExportParameterList().getStructure("PSX_MESSAGE");
              String te = struct.getString("MSG_TYPE");
              System.out.println("RFC Error Type is :"+te);
              String pr = struct.getString("MSG_TXT");
              System.out.println("RFC get Data is :"+pr);
              com.hipfung.jco.JCOFactory.getInstance().release(client);
    i  can get file via CVAPI_DOC_CHECKoutView
    Edited by: pan qiaoming on Mar 15, 2011 3:05 PM

    HI ,ALL :
      NOW i want to upload file via JCO,but i upload in sap gui is success ,but jco call RFC is error ,this is my code:
    excute this  code is not error ,but the data not write to SAP,
            //连接SAP
              Client client = com.hipfung.jco.JCOFactory.getInstance().getClient();
              JCO.Repository repo = new JCO.Repository("ZOA01", client);
              //调用RFC函数
              IFunctionTemplate ft = repo.getFunctionTemplate("CVAPI_DOC_CHECKIN");
              JCO.Function f = ft.getFunction();
              IFunctionTemplate ft2 = repo.getFunctionTemplate("BAPI_TRANSACTION_COMMIT");
              JCO.Function commitFunction = ft2.getFunction();
              //设置传入参数值(注意类型)
              //1.传入参数为Field
                f.getImportParameterList().setValue("TXB",          "PF_DOKAR");  //
              f.getImportParameterList().setValue("0000010101010101020000000","PF_DOKNR");  //文档类型
              f.getImportParameterList().setValue("01","PF_DOKVR");                          //文档版本
              f.getImportParameterList().setValue("000","PF_DOKTL");     
              f.getImportParameterList().setValue("SAPFTPA","PF_FTP_DEST");     
              f.getImportParameterList().setValue("SAPHTTPA","PF_HTTP_DEST");     
              // Get content as table
              f.getImportParameterList().setValue("TBL", "PF_CONTENT_PROVIDE");
            //read file and trans to byte
                      byte b[]=null;
                        File inf = new File("d:
    test.jpg");
                        InputStream in;
                        try {
                             in = new FileInputStream(inf);
                              b =new byte[(int)inf.length()];     //创建合适文件大小的数组
                             in.read(b);                          //读取文件中的内容到b[]数组
                             in.close();
                        } catch (FileNotFoundException e1) {
                             // TODO Auto-generated catch block
                             e1.printStackTrace();
              //set byte to internal table     
             JCO.Table poItem = f.getTableParameterList().getTable("PT_CONTENT");        
             poItem.appendRow(); //增加空行
             poItem.setValue(b, "ORBLK");
             poItem.nextRow();
             //运行RFC函数
              try
                   client.execute(f);
                   client.execute(commitFunction);
              catch(JCO.AbapException ae)
                   System.err.println("JCO.AbapException: < DMS > " + ae);
                   ae.printStackTrace();
              catch(JCO.Exception e)
                   System.err.println("JCO.Exception: < DMS > " + e);
                   e.printStackTrace();
             //返回参数
              JCO.Structure struct = f.getExportParameterList().getStructure("PSX_MESSAGE");
              String te = struct.getString("MSG_TYPE");
              System.out.println("RFC Error Type is :"+te);
              String pr = struct.getString("MSG_TXT");
              System.out.println("RFC get Data is :"+pr);
              com.hipfung.jco.JCOFactory.getInstance().release(client);
    i  can get file via CVAPI_DOC_CHECKoutView
    Edited by: pan qiaoming on Mar 15, 2011 3:05 PM

  • How to connect to R/3 via JCo using MYSAPSSO2?

    Hello!
    I'm developing a J2EE application who resides in an EP with Single Sign On. I have to retrieve some data from R/3, the way I want to connect is via JCo using MYSAPSSO.
    I have read that is possible to connect passing MYSAPSSO2 as <i>user</i> and its value as <i>password</i>. The java code in the jsp is something like this:
    javax.servlet.http.Cookie [] my_cookies = request.getCookies();
    java.util.Hashtable cks = new Hashtable();
    for(int i=0;i<my_cookies.length;i++){
         cks.put(my_cookies<i>.getName(),java.net.URLDecoder.decode(my_cookies<i>.getValue()));
    String user = "$MYSAPSSO2$";
    String pass = (String)cks.get("MYSAPSSO2");
    JCO.Client conex;
    JCO.Repository rep;
    boolean ok=true;
    conex = JCO.createClient("000",user,pass,"es","192.168.0.1","00","","");
    try{
         conex.connect();
         rep = new JCO.Repository("mirep",conex);
    } catch (Exception e){
         out.write("<br>"e"<br>");
         ok = false;
    if (ok)
         conex.disconnect();
    We are working with EP6 SP2, WAS 6.20.
    The error is:
    com.sap.mw.jco.JCO$Exception: (103) RFC_ERROR_LOGON_FAILURE: Se ha recibido un ticket SSP que no se puede interpretar
    (I translate you:)
    RFC_ERROR_LOGON_FAILURE: unable to interpret a retrieved SSP ticket
    Thank you all!!

    Ok!
    I have solve the problem. So, I was trying to connect via SSO within an user that was not registered in R/3 and I forgot it.
    Sorry for the inconvenience.

  • Error during data transfer from Lotus Notes to SAP via JCO - Urgent Help Required

    Dear SAP Expert:
    I need your help! Recently getting error during data transfer to SAP. I need your suggestion!
    I am transferring Lotus Notes data to SAP via JCO, recently getting the below error msg, could you pls tell me what could be the reason?
    Please suggest me how to fix that kind of issue.
    "com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE: Error in ABAP/4 statement when processing an internal table. table.
    at com.sap.mw.jco.rfc.MiddlewareRFC$Client.nativeExecute(Native Method)
    at com.sap.mw.jco.rfc.MiddlewareRFC$Client.execute(MiddlewareRFC.java:1244)
    at com.sap.mw.jco.JCO$Client.execute(JCO.java:3842)
    at com.sap.mw.jco.JCO$Client.execute(JCO.java:3287)
    at SAPAdapter.execute(Unknown Source)
    at JavaAgent.fillBapiAndWriteBackToNotes(Unknown Source)
    at JavaAgent.NotesMain(Unknown Source)
    at lotus.domino.AgentBase.runNotes(Unknown Source)
    at lotus.domino.NotesThread.run(NotesThread.java:249)
    Thanks in advance! Your help would be highly appreciated! Thanks again!

    error is clear, check your abap code.

  • Create a new routing with BAPI BAPI_ROUTING_CREATE via JCo

    I try to create a new routing with BAPI BAPI_ROUTING_CREATE via JCo.
    I filled all necessary parameters. I also realized a commit_work. I get in the RETURN parameter of the BAPI the Message "S 000 Routing N/50001641/01". But the routing isn't in the database. Other JCo programs I wrote (create material master or costumer order) are working very well.
    Have anyone an idea?
    Thanks Jörg
    Here's my coding:
    public void createArbeitsplan() {
              doLogin();
    //          connectionAttributes();
              Plan plan = new Plan();
              for (int i = 0; i < planList.size(); i++)
                   plan = (Plan) planList.get(i);
                   //Ein Function-Objekt erzeugen
                   String bapi = "BAPI_ROUTING_CREATE";
                   JCO.Function savePlan = null;          
                   try { savePlan = this.createFunction(bapi); }
                   catch(Exception ex) { ex.printStackTrace(); System.exit(1); }
                   if(savePlan == null) { System.err.println(bapi + " not found in SAP"); System.exit(1); }
                   //Import und Tabellen füllen
                   // Plankopf
                   JCO.Table headData = savePlan.getTableParameterList().getTable("TASK");
                   headData.appendRow();
                   headData.setValue(plan.kurztext,"DESCRIPTION");
                   headData.setValue("1","TASK_LIST_USAGE");
                   headData.setValue(werks,"PLANT");
                   headData.setValue("4","TASK_LIST_STATUS");
                   headData.setValue("ST","TASK_MEASURE_UNIT");
                   headData.setValue("001","RESP_PLANNER_GROUP");
                   headData.setValue("20070101","VALID_FROM");
                   headData.setValue("20991231","VALID_TO_DATE");
                   headData.setValue("1","LOT_SIZE_FROM");
                   headData.setValue("99999999","LOT_SIZE_TO");
                   // Materialzuordnung
                   JCO.Table materialAlloc = savePlan.getTableParameterList().getTable("MATERIALTASKALLOCATION");
                   materialAlloc.appendRow();
                   materialAlloc.setValue(plan.material,"MATERIAL");
                   materialAlloc.setValue(werks,"PLANT");
                   materialAlloc.setValue("20070101","VALID_FROM");
                   materialAlloc.setValue("20991231","VALID_TO_DATE");
                   materialAlloc.setValue("1","GROUP_COUNTER");
                   // Vorgänge
                   JCO.Table operationData = savePlan.getTableParameterList().getTable("OPERATION");
                   for (int j = 0; j < plan.getAnzahl(); j++) {
                        operationData.appendRow();
                        operationData.setValue(plan.getVorgang(j).vorgang,"ACTIVITY");
                        operationData.setValue(plan.getVorgang(j).steuschl,"CONTROL_KEY");
                        operationData.setValue(plan.getVorgang(j).arbplatz,"WORK_CNTR");
                        operationData.setValue("1111","WORK_CNTR");
                        operationData.setValue(plan.getVorgang(j).text,"DESCRIPTION");
                        operationData.setValue(plan.getVorgang(j).basismenge,"BASE_QUANTITY");
                        operationData.setValue(plan.getVorgang(j).vw1,"STD_VALUE_01");
                        operationData.setValue(plan.getVorgang(j).vw2,"STD_VALUE_02");
                        operationData.setValue(plan.getVorgang(j).vw3,"STD_VALUE_03");
                        operationData.setValue(plan.getVorgang(j).ze1,"STD_UNIT_01");
                        operationData.setValue(plan.getVorgang(j).ze2,"STD_UNIT_02");
                        operationData.setValue(plan.getVorgang(j).ze3,"STD_UNIT_03");
                        operationData.setValue("1","DENOMINATOR");
                        operationData.setValue("1","NOMINATOR");
                        operationData.setValue("20070101","VALID_FROM");
                        operationData.setValue("20991231","VALID_TO_DATE");
                        operationData.setValue("ST","OPERATION_MEASURE_UNIT");
                   // Testflag
                   JCO.Structure test = savePlan.getImportParameterList().getStructure("TESTRUN");
                   test.setValue(" ","BAPIFLAG");
                   //BAPI ausführen (incl. Commit)
                   mConnection.execute(savePlan);
                   JCO.Function commit = null;
                   try {commit = this.createFunction("BAPI_TRANSACTION_COMMIT"); }
                   catch (Exception ex) { ex.printStackTrace();System.exit(1); }
                   JCO.ParameterList input = commit.getImportParameterList();
                   input.setValue("X","WAIT");
                   mConnection.execute(commit);
                   //Messages vom SAP-System holen
                   JCO.Table jcoReturn = savePlan.getTableParameterList().getTable("RETURN");
                   for (int k = 0; k < jcoReturn.getNumRows(); k++)
                        jcoReturn.setRow(i);
    //                    System.out.println(jcoReturn.getField("MESSAGE").getValue());
                        System.out.println(jcoReturn.getField("TYPE").getValue());
                        System.out.println(jcoReturn.getField("NUMBER").getValue());
                        System.out.println(jcoReturn.getField("MESSAGE_V1").getValue());
                        System.out.println(jcoReturn.getField("MESSAGE_V2").getValue());
                        System.out.println(jcoReturn.getField("MESSAGE_V3").getValue());
                        System.out.println(jcoReturn.getField("MESSAGE_V4").getValue());
                   JCO.Structure output = commit.getExportParameterList().getStructure("RETURN");;
                   System.out.println(output.getString("MESSAGE"));
                   System.out.println(output.getString("TYPE"));
                   System.out.println(output.getString("NUMBER"));
                   System.out.println(output.getString("MESSAGE_V1"));
              closeConnectionToSAP();
              System.exit(1);

    Hi,
    perhaps you could use
    BAPI_HRMASTER_SAVE_REPL_MULT
    Regards
    Bernd

  • Bapi problem via jco

    hi guys,
       i am using bapi via jco
       i am retrieving data,appending data  on standard funtional modules , ok, fine
      how  can i insert data into custom tables using bapi via jco...
      plz give me some steps...............
    thanks,
    tony

    Hi,
    Just to clarify (again) as far as I know yuo cannot directly access SAP tables via JCo calls from Java.  JCo only allows you to call function modules on teh SAP system.  Any database interaction (Select, Insert, etc.) has to be coded in ABAP inside the function module.  You then call the function module (which must be RFC enabled) via JCo in your Java.
    You can use standard function modules or you can create custom function modules if you need to acces custom tables or perform custom logic.
    Hope this helps,
    Gareth.

  • Access Function Module "RSDU_EXEC_SQL" via Jco

    Hello Experts,
    is there a possibility to acces the FM "RSDU_EXEC_SQL" via Jco?
    My Testcode is like this:
    public class JcoTest {
         public static void connect(){
              Client connection = JCO.createClient("100", "user", "password", "EN",
                        "some.server", "00");
              connection.connect();
              Repository repository = new JCO.Repository("Test", connection);
              IFunctionTemplate functionTemplate = repository.getFunctionTemplate("RSDU_EXEC_SQL");
              Function function = functionTemplate.getFunction();
              System.out.println(function.getImportParameterList().toString());
              connection.disconnect();
         public static void main(String[] args) {
              connect();
    But this leads to an Exception: (126) NOT_FOUND: EXCEPTION NOT_FOUND RAISED
    When i access the RFC_READ_TABLE instead, everything is fine.
    Thanks in advance,
    Tanja

    Check whether RSDU_EXEC_SQL is remote enabled or not.
    You need to make it remote enabled. Only then it will become an RFC from a Function module.

  • Import params,exports params, via jco

    hi guys,
             i am retrieving what are the columns present in the table via jco
         can i retireve what are the import parameters,export parameters are
       present in the FuntionalModule.if yes, means plz give me lines of code......
       with regards,
         swathi

    hi ,,
      i tried ...but not getting..
       JCO.Table jtable=function.getExportParameterList().getName();
       i want table name in that function module......
       what is the use of IMetaData .....from this can i get table name

  • Data exchange between SAP SCM and an external java tool via JCo

    Hi everybody,
    the situation i am in is the following:
    We are developping a java application for production planning using multi-agent systems. What I am currently working on is an integration concept towards SAP via JCo. I am using a SAP SCM System.
    What i got is the following:
    I got the JCo connection to SCM and I am able to execute BAPIs from Java.
    Now my problem is the following:
    We want to recognize a change in the SCM System, e.g. when someone added a new manufacturing order. What do I have to do for that?
    Do I have to register a JCO.Server as a RFC Destination?
    Do I have to use SCM EventManagement to handle the corresponding events?
    In Java terms, what I want is a EventListener for some events - but neither do I know how the events are created nor how they are transferred to third party systems...
    Anyone with a hint?
    Thanks a lot!
    Greetings
    Jan

    Hi Jan,
    architecturally you will need to determine a point in the SCM application logic to understand that a relevant event has occurred and then issue a notification "message" - in your case it sounds like your system is directly coupled so it wouldn't exactly be a message but an RFC call instead.
    On SCM itself all you need is the RFC-enabled function module interface (an ABAP development), a logical destination and a hook somewhere in the application logic to make the RFC call.
    From a JCo perspective you then just have to implement an "RFC server" that responds to these RFC calls.
    Most difficult part will be to find a suitable hook in the SCM application logic that doesn't modify any delivered SAP code but uses an enhancement technique like a BADI.
    Anything you can share about your planned development? Is this specifically for a customer or are you planning on releasing a product?
    Regards, Harry.

  • DMS via ITS to SAP

    In DMS we are trying to atach documents that will go to SAP via ITS.  If the docs. are smaller than 1000 bytes they are transferred succesfully, any larger and it fails.  I assume that this must be a parameter setting somewhere but do not know where to look.
    Any help would be much appreciated

    Are you using the web gui or a custom transaction?
    If you are using a custom transaction. I would suggest trying to do what you want to do with transaction CV01N in the web gui.
    If you can't do it with the webgui. You will know if you have a settings issue.
    You may want to look at the parameters in CSADMIN for the content repository.
    Sorry I can't be of more help. We use the ITS and DMS, but in the other direction. Serving up docs via the ITS.

  • R/3 Accessibility via JCo Destination

    Hello
    We have a WebDynpro application running in an SAP EP 7.0 SP15.
    We have metadata and modeldata JCo destinations defined for an R/3 backend system.
    The WebDynpro application is using the modeldata JCo destination to reach a BAPI in the R/3 backend system.
    As far as SSO access is configured for the modeldata JCo destination, it is required that the Portal user of the WebDynpro applications has an user defined in the R/3 system.
    We would need to find some solution so that the WebDynpro application can access the BAPI in spite the runtime Portal user does not exist in R/3 backend system (e.g. accessing R/3 system with another user, that could be hardcoded or mapped to the Portal user or whatever).
    Is that possible? If yes, how?
    Thanks a lot!
    Regards,
    Jon

    I think that perhaps you posted this question in the wrong Web Dynpro forum. This question appears to be Web Dynpro Java related and not Web Dynpro ABAP. Please confirm otherwise I will be moving this thread to the WDJ forum where it seems to belong.

  • Transfering cFolders Docs to DMS via Collaboration tab in cProjects 4.5

    Hi Experts,
    I am trying to move documents between cFolders and DMS using the the "collaboration" tab in cProjects.
    The steps I am following are as follows.
    1. Created a link to a DMS document structure from "SAP DMS" tab in cProjects
    2. Assigned a collaboration from the "collaborations" tab
    3. Selected transfer documents.
    4. Transfered the needed documents to a folder in DMS from cFolders
    5. Clicked save documents button
    6. When I check the doc structure from the SAP DMS tab I see the document but there is no document number or type.
    7. When I select refresh the transfered document dissapears. I have also tried saving between steps to no avail.
    I have done the needed configuration for object links and default doc types under "Integration with Other mySAP.com Components -->Collaboration Projects -->SAP DMS Integration --> Specify Default Document Types per cProjects System". Also I am able to transfer a document which is stored in cProjects documents tab. I am only having an issue when trying to transfer from cFolders.
    I have seen several threads on this forum on similar issues but no clear solution. Appreciate any thoughts on this. Hope I have explained the issue clearly, but do let me know if any further information is needed from me.
    Thanks,
    Lashan

    Hi Lashan,
    Did you try with T Code CFI01(ECC ) - Import Documents from cFolders?
    If no then try you will get sucess
    Regards
    Ravindra

  • Uploading Data in DMS via excel sheets

    Please help me out in suggesting ways to uplaod data (Doc Type,Doc version,Doc Part,Characteristics.....etc) in DMS from excel sheet.
    I guess 'BAPI_DOCUMENT_CREATE2' might be useful in this. But dont know whethre this would work for the cases in which same file has got two versions in the excel sheet.
    Also help me with sample code for the above BAPI.
    Rewards assured.
    Thanx,
    Akhil

    hi,
    Refer this threads..
    Re: problem with BAPI_DOCUMENT_CREATE2
    Re: Bulk upload of documents (pdf) - DMS ?
    Cheers
    Alfred

  • Handling SAP deep structure via JCo

    Hello-
    I have an RFC enabled function module in my ECC 6 system that I'd like to call using the JCo API's. I have read conflicting materials on whether this is even possible or not. Can anyone confirm if it is possible or not, and if you have a general description of how you handled it with the Java code it would be much appreciated. I am an experienced SAP developer who is delving into JCo for the first time.
    Thanks,
    Andy

    Hi Andy
    Here is the JCo API Javadocs: http://www.huihoo.org/openweb/jco_api/
    Code could be like the following (I assume output table):
    JCO.Client client;
    /* code for ABAP connection and getting the client here*/
    JCO.Repository myRepository = new JCO.Repository("Test", client);
    JCO.IFunctionTemplate ft = myRepository.getFunctionTemplate(functionName);
    JCO.Function function = ft.getFunction();
    /* invoke function here */
    JCO.Table jcoTable = function.getTableParameterList().getTable(tableName);
    for (int i = 0; i < jcoTable.getNumRows(); i++) {
             jcoTable.setRow(i);
             // get value of the field <fieldName>: it could be anything:
             JCO.Table jcoTable = jcoTable.getTable(<field name>);
             // or JCO.Structure jcoTable = jcoTable.getStructure(<field name>);
             // or JCO.Field jcoField = jcoTable.getField(<field name>);
             // go ahead with the field: a) get plain value or b) iterate over its rows if it's a table again
    // close the connection
    BR, Sergei
    Edited by: Siarhei Pisarenka on Jun 4, 2009 3:50 PM

  • Error Connecting to SAP server via JCO

    Hi,
      When i tried to connect SAP server using JCO its giving error "Fatal error User name or password incorrect" .But with the same username and password i'm able to login to the SAP system with SAP logon pad. My username contains only numeric,does this have any significance?
    Thanks,
    Bala

    Bala
    type of username is not significant if it is correctly entered as same as entered in SAP Logon Tool.
    U should configure the JCO Interface properly with connection details
    SAP Server
    SAP Client
    SAP System Number
    SAP User Name
    SAP Password
    Execution - True
    Also every fields are very case sensitive, so hv deep look at every field with correction.
    Pls tell me the LastErrorMessage using Tracer as follows SAPJCOInterface_0.LastErrorMessage
    Regards
    Som

Maybe you are looking for