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.

Similar Messages

  • 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

  • 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.

  • 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.

  • 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

  • I want a solution to my problem and i hope to see any number to contact you for information i'm from saudi arabia and the problem has not been solved so far and i sent my problem via a Email twice before

    I want a solution to my problem and i hope to see any number to contact you for information i'm from saudi arabia and the problem has not been solved so far and i sent my problem via a Email twice before

    Most of the people on these forums, including myself, are fellow users - you aren't talking to iTunes Support here.
    Have you contacted iTunes Support as was suggested on your duplicate posts :
    https://discussions.apple.com/message/22178793#22178793
    https://discussions.apple.com/message/22178411#22178411

  • 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.

  • Any one having file upload problems via webforms for site in the Australian data center or elsewhere?

    For the last 3-4 weeks we have a web app that can longer upload largish files (e.g. 35mb PDF) via a web form Uploads no problem via SFTP.
    Adobe so far has provided to answers and can't reproduce the problem.
    Yet we (in Auckland) and our client in Wellington have the same problem.
    Is there an issue with AWS Sydney, Adobe's setup or has BC introduced some new throttling or security rules around file uploads?
    Any help greatly appreciated.

    Hi,
    Please try to use the UI element "Office Control" of a web dynpro view.
    For more details, refer to the web dynpro component: IOS_TEST_HELLOWORLD_MS.
    Best regards,
    Shalini.

  • Problem to JCO after configure ModelData

    Hello dear Experts.
    I have a DC Web dynpor java when i depploy my DC and tray to configure the ModelData at the end of the  asisstant of creating this when i press button finish i got the next error:
    Error Summary
    While processing the current request, an exception occured which could not be handled by the application or the framework.
    If the information contained on this page doesn't help you to find and correct the cause of the problem, please contact your system administrator. To facilitate analysis of the problem, keep a copy of this error page. Hint: Most browsers allow to select all content, copy it and then paste it into an empty document (e.g. email or simple text file).
    Root Cause
    The initial exception that caused the request to fail, was:
       java.lang.NullPointerException
        at com.sap.tc.webdynpro.serverimpl.wdc.sl.SystemLandscapeFactory.checkStatus(SystemLandscapeFactory.java:991)
        at com.sap.tc.webdynpro.services.sal.sl.api.WDSystemLandscape.checkStatus(WDSystemLandscape.java:485)
        at com.sap.tc.webdynpro.tools.explorer.JCOConnectionsDetails.updateJCOClientStatus(JCOConnectionsDetails.java:481)
        at com.sap.tc.webdynpro.tools.explorer.JCOConnectionsDetails.addJCOClientToList(JCOConnectionsDetails.java:700)
        at com.sap.tc.webdynpro.tools.explorer.JCOConnectionsDetails.addJCOClientToList(JCOConnectionsDetails.java:664)
        ... 39 more
    If i enter to the Portal content Studio in order to configure this JCO again i got the same exception We have to restart server
    to enter to the JCO maintenance of content portal studio.
    I am sstuck in this problem.
    Thanks for helping me.

    Hi,
    Please look at these links for that
    [Problem to JCO After Configure ModelData|http://www.qnasap.com/problem-to-jco-after-configure-modeldata/] and [Null pointer while maintaining JCO destination|Null pointer while maintaining JCO destination;
    Hope this is help full for you,
    Regards
    Vijay

  • 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

  • Problem with JCo Connection Pool

    Hi,
    I have a problem with using an RFC Model in my WebApplication. So sometimes the access to the function block works, and sometimes it doesn't work. Now I know, that there is a problem with the connection pool. Look at this message:
    com.sap.mw.jco.JCO$Exception: (106) JCO_ERROR_RESOURCE: Connection pool WD_X24_MODELDATA_DEST_CPIC_REKTO_DE_useDefinedUser is exhausted. The current pool size limit (max connections) is 10 connections.
    So it looks like a problem with closing the JCo Connections after using. Do know where the problem is? Because I'm using many other function blocks with no problems.

    Hello,
    You need to increase the pool size via Visual Administrator.
    Server 0 -> Services -> JCO RFC Connections.
    Change the pool size from there. I believe a restart is in order.
    Regards,
    Jan

  • RFC & BAPI problem in SUP 2.0

    Hi,
    I have been using the Standard BAPI's & RFCs for my app. However i am getting the errors for all of them while actually using in workflow app.
    1] Invalid Templet for BAPI.
    2] java.io.Exception:JASON:character not standard date time type
    3] ____BAPI Return is not a standard DateTime type
    But i can see the preview of all successfully. Do we need some kind of special requirement fo BAPI & RFC's to work in SUP ?
    I am using MBS & simple workflow app concept to design. I have also searched the SDN for any SUP 2.0  & SAP BAPI example. I found My Flights but that was too old in previous 1.5.2 i think so which is of no use.
    Your help highly appreciated
    BR
    Yogesh

    Hi,
    That's the first thing i checked the version, I have the latest JCO & JAR files being used. So there is no version conflict in Backend EIS & the front UI.
    I am on digging out the infinitesimal log entries in the server to fetch the exact reason behind the problem.
    I would like to know if you have ever imported the BAPI or RFC would you normally get conflicts with SAP returning the NULL or NaN values from backend.
    Because I know Sybase Messaging Client can not handle the NaN & NULL values thats an offcial confirmation from Sybase for RESTful WS i got.
    So may be its same but i am not sure I must or someone who has encounter these errors should confirm this.
    Best Regards
    Yogesh

  • BAPI call with JCO too slow

    Hello everybody,
    I have an application which a call a BAPI in an ECC System. This BAPI is a specific one, and it is developed in Batch input to create a Billing document from a sales order.
    This call take too much time and my java program don't wait for the answer of it. I have done some performance check on the program and this call take more of 1 minutes to finish.
    Here is my program :
                   //-Fill the entry parameter-
                   //Import parameter
                   paramImport = function.getImportParameterList();
                   paramImport.setValue(SalesOrder, Constants.IV_VBELN);
                   //Define Export parameter list for the returning Data
                   paramExport = function.getExportParameterList();
                   //Execute the BAPI
                   client.execute(function.getName(), paramImport, paramExport);
    The fact it is developped in Batch input could be a problem ? Tell me if there is a solution to speed up the process or to say to my java program to wait until the answer of the BAPI.
    Thanks.

    Hello Sir,
    I am a student who is pursuing a project that deals with JCo 3.
    I read your question on the forum and think that you have done the JCo stuff and can answer my questions.
    Kindly, try to shed some light on following question:
    Q1: I simply want to start with connecting my SAP system. I have a user ID and password for the same.
    I saw some examples where they use "JCo.createClient(....)" and "JCo.client.connect()" to simply connect the client but
    when I type in the code it shows me an error, because they are using package "com.sap.mw.jco" but since I am using JCo3,
    I don't have that package instead I have "com.sap.conn.jco" which do not have createClient function.
    Q2: By setting the classpath for "sapjco.jar" I was able to compile one of the sample programs but could not run it. Do you
    know how to run the SAP JCo program.
    Your guidance will be highly appreciated
    -Thanks
    -Dmukhi

  • Log On problem via webgui. sap/bc/gui/sap/its/webgui

    Hello, would you be so kind to help me in my problem.
    I have sap web as 7.00, and i have published a service for using "sap gui for html" via browser from the Remote Place.
    http://........./sap/bc/gui/sap/its/webgui
    icm/server_port_0 i made 80 in the profile
    (icm/server_port_0     = PROT=HTTP,PORT=80).
    But there is such a problem.
    When u try to connect using this url it gives u the log on screen to enter your user/password (u can even change it!!)
    but when you try to log on it just refreshes the screen and nothing actually happens.
    The same time when you are doing it licaly in the office everything works fine.
    Does anybody know what can be the solution of this problem?
    Dmitry.

    Hi! &#1055;&#1088;&#1080;&#1074;&#1077;&#1090;.
    Well i have tried to use this transaction (SIAC_PUBLISH_ALL_INTERNAL) and it published a lot of services, but still i can't log on from home, for example, to the system in our office where ICM and ITS are running.
    I found an interesting link
    /people/durairaj.athavanraja/blog/2005/08/21/running-your-first-its-webgui-application-in-sap-netweaver-04-abap-edition--nsp
    And i tried mannually to publish "SYSTEM"  and "SHUFFLER" services. The same time "WEBGUI" service works fine in the office. Those two i also can publish, but i can't start them in SE80.
    It is written that
    sap/bc/gui/sap/its/system/ call was terminated because the corresponding service is not available. And i can't find such a service following that link... Still it shows that it has been published.
    May be it is so because i can't test the service
    /default_host/sap/public/bc/its/mimes
    The error is
    The URL http://.../sap/public/bc/its/mimes was not called due to an error.
    Note
    The following error text was processed in the system S01 : Illegal access to a string (offset too large)
    The error occurred on the application server s00-5000_S01_01 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: SPLIT_PATH_GIVE_ROOT of program CL_IAC_HELPER=================CP
    Method: SPLIT_PATH_GIVE_SERVICE of program CL_IAC_HELPER=================CP
    Method: GIVE_MIME_CONTENT_USING_PATH of program CL_IAC_HELPER=================CP
    Method: IF_HTTP_EXTENSION~HANDLE_REQUEST of program CL_HTTP_EXT_ITS_MIMES=========CP
    Method: EXECUTE_REQUEST of program CL_HTTP_SERVER================CP
    Function: HTTP_DISPATCH_REQUEST of program SAPLHTTP_RUNTIME
    Module: %_HTTP_START of program SAPMHTTP

Maybe you are looking for

  • Function Module for getting person under position

    Hi all, I have a requirement where I need to get all the person under a position and need to forward the workitem to those person. Is there any Function module is available which will give the person for that position?. Please help in this regard. Re

  • Setting/changing and using date and time for an alarm.

    While I know how to get the time I'm not sure how to somehow allow the user of the app to change it, save it and then use both the date and time to set off an alarm. While this can be easily done using forms my application is purely canvas based so n

  • Where are my purchased songs located?

    Where do I find my purchased itunes songs?

  • SAP Fiori with Web service

    Hi All, SAP Fiori(Apps provided by SAP) which works on Gateway Service. Can we use web service instead..?? Thanks, Babu Tags edited by: Michael Appleby

  • Flash Player Version 6 Archive Error

    I've used the archived players provided on the site for testing for years and am appreciative. However, I got a tech spec from a client requiring 6.0.49 (which may be an error) and I see 6.0.47 is provided in the version 6 player archive. However, wh