Hi prloblem while importing the table in to sap system

hi
I exported a table from sap and set the values and i am importing same table to sap system
when I am executing that function i am getting following error at mConnection.execute();
error
com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE: Illegal access to a string (offset too large)
at com.sap.mw.jco.rfc.MiddlewareRFC$Client.nativeExecute(Native Method)
at com.sap.mw.jco.rfc.MiddlewareRFC$Client.execute(MiddlewareRFC.java:1242)
at com.sap.mw.jco.JCO$Client.execute(JCO.java:3816)
at com.sap.mw.jco.JCO$Client.execute(JCO.java:3261)
at com.example.Testing.main(Testing.java:46)
my program
package com.example;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
import com.sap.mw.jco.*;
import com.sap.mw.jco.JCO.AbapException;
import com.sap.mw.jco.JCO.Structure;
import com.sap.mw.jco.JCO.Table;
import com.sap.mw.jco.support.SapInfo.MyRepository;
public class Testing {
@SuppressWarnings("deprecation")
public static void main(String[] args) {
JCO.Client mConnection;
JCO.Repository mRepository;
JCO.Function function;
mConnection = JCO.createClient("800", "AGORE", "sap333", "EN","10.25.116.33", "00");
mConnection.connect();
mRepository = new JCO.Repository("ARAsoft", mConnection);
IFunctionTemplate ft = mRepository.getFunctionTemplate("ZBAPI_CREATE_QUOTATION3");
function = ft.getFunction();
if (function == null) {
System.out.println("ZBAPI_CREATE_QUOTATION3" + " not found in SAP.");
JCO.ParameterList list = function.getTableParameterList();
JCO.Table ztable = list.getTable("QUOTATION");
for (int i = 0; i < 3; i++) {
ztable.appendRow(); //ztable.setValue(value, field name)
ztable.setValue("6000000012"+ i,"RFQ_NUMBER");
ztable.setValue("00010"+ i,"ITEM");
ztable.setValue("0020"+ i,"PRICE");
list.setValue(ztable,"QUOTATION");
System.out.println(ztable);
System.out.println(list);
function.setTableParameterList(list);
try
mConnection.execute(function);
catch(Exception e)
e.printStackTrace();
System.exit(1);
JCO.Table codes = null;
try {
codes = function.getTableParameterList().getTable("QUOTATION");
System.out.println("Return Values starts HERE:");
for (int i =0; i < codes.getNumRows(); i++){
codes.setRow(i);
System.out.println(codes.getString("MANDT")+ '\t'+
codes.getValue("RFQ_NUMBER")+ '\t'+
codes.getString("ITEM")+ '\t'+
codes.getString("PRICE")); }
catch (Exception ex) {
ex.printStackTrace();
System.exit(2);
mConnection.disconnect();

Guys,
I am able to solve the problem. I think the problem is Language settings difference between Database and OWB repository.

Similar Messages

  • Error while importing the tables from MySQL using the data source connection

    Hi,
    I am trying to import tables from MySQL into Powerpivot using the data source connection, if use the import using the Query option its working fine but not with the select list of table option.
    when i click on the select list of tables option, i get the below error after selecting all the tables to be imported:
    OLE DB or ODBC error.
    An error occurred while processing table 'XXXXXXXXXX'.
    The current operation was cancelled because another operation in the transaction failed.

    Hi Bharat17an,
    Please provide the detail information when create the MySQL connection in your PowerPivot model. Here is a good article regarding "how to Use MySQL and Microsoft PowerPivot Together" for your reference, please see:
    http://www.datamensional.com/2011/09/how-to-use-mysql-and-microsoft-powerpivot-together-2/
    If this issue still persists, please help to collection windows event log information. It maybe helpful for us to troubleshoot this issue.
    Regards,
    Elvis Long
    TechNet Community Support

  • Facing a problem with RFC Call receiver error while importing the table sap sandbox

    Hi All,
    I am trying to import a table from sap sand box . while importing it is showing below error..
    RFC CallReceive error <Function DDIF_FIELDINFO_GET: RFC_ABAP_EXCEPTION-(Exception_Key: NOT_FOUND, No active nametab exists for /BIC/OHZ_ISP_SCX)[SAP NWRFC 720][SAP Partner 731 ][SCX][ics106046124][APOBODS][4103]>.
    Please suggest me how can i overcome this problem ??

    Hi Kishore,
    Can you quickly check with your SAP Basis Team whether they have installed necessary  functions related to BODS on the SAP Application server.
    Please check Supplement for SAP Guide
    Regards
    Arun Sasi

  • While import the table i got error "ORA-39166"

    I got error "ORA-39166: Object XXXXXXX_030210 was not found." while importing.
    Edited by: AshishS on 03-Feb-2012 04:37

    Pl post details of OS and database versions, along with the complete impdp command used and the sections from the log file where this error occurs.
    HTH
    Srini

  • Error while importing the .txt file for SAP script to another system.

    Hi Gurus,
    I'm trying to import the .txt file exported (using RSTXSCRP) from one system to another.But getting the following error on the destination system  (4.6C).I'm able to import the same file on all other releases (Like 470 500,600,604).
    "ERROR: Invalid start marker: SF instead of SFORM "
    Kindly assist..
    Jasvir

    Hi,
    Usually when you download the file and open it with notepad, the first line is like
    SFORMZINVOICE
    ie SFORM followed by form name
    Check this in your downloaded file
    Regards

  • Error in importing the tables from database

    HI ,
    while importing the table from the metada by using OCI call 10g/11g i am getting the below exception:
    *"Some objects are not imported because of invalid names : (DESCRIPTION =(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=orcl)))"*
    i am getting this exception after selecting the objects which i want to import from the database.....it first imports the tables and the throws the above exception and then removies from the repository view.
    How can i get this resolved???

    Hi,
    I'm also hitting this problem, did anyone solve this, I'm not able to import any data to the repository, error message is: -
    *"Some objects are not imported because of invalid names"*
    Thanks,
    Mike

  • Error while importing a table index.

    Hi,
    We are facing a problem while importing an index to the production region. Below are the details.
    1. A secondary index was created on standard SAP table ILOA in DEV region.
    2. The Index was successfully moved to the Quality system, without any glitches.
    3. Due to some issue (releated to testing, for which we had to revert back the changes), we had to delete the index on ILOA in the DEV region. The transports were moved to the PPD region and hence, the index on ILOA was deleted in PPD also.
    4. Once the issue related to testing was resolved, we again created an index on the table ILOA and moved it to PPD.
    All these 4 mentioned steps happened successfully and in PPD there was no error while importing the transports.
    But, while moving the above transports to the Production region, there was an error :
    "Index ILOA~Y could not be activated
    (E - No index ILOA~Y found with status M)"
    Please note that Y is the name of the index that was created on the table ILOA.
    The error code that we have got is "8".
    Can anyone please shed any light on what the issue is?? WE cannot re-import the transports in to Production without analysing this issue,because our client doesnt permit that.
    Thanks and eagerly awaiting a kind reply.
    Regards,
    Raghavendra.

    You've three transports - one to create the index, one to delete, and one to recreate.  It could be that the the third one tried to run before the database had finished with the second?
    Have you looked on SE14 for the actual status on production of the index?
    matt

  • Error while Importing a Table in To Target Module

    Hi All,
    Iam getting follwong error msg while importing a table in OWB Target Module.
    API4806: Object description is not allowed to be translated before object business name. Please give a translation to the business name first.
    why I am getting this error ?
    Rajesh

    Guys,
    I am able to solve the problem. I think the problem is Language settings difference between Database and OWB repository.

  • Error while Importing SQL Table's Metadata

    Hi
    I am creating an External defination of category "dbtab". when i try to import the table in 3rd step i get this error.
    "Error occurred while attempting to connect to database".
    I checked the JDBC channel, in the channel getting this error "Error processing request in sax parser: Error when executing statement for table/stored proc. 'metadataRequest' (structure 'statement'): java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Can't start a cloned connection while in manual transaction mode."
    Please help

    Hi,
      Check this discussion.
    Re: JDBC Channel : Connection reset
    Also try setting AutoCommit = true (Check box in the JDBC adapter)
    Regards,
    Ravi Kanth Talagana
    Edited by: Ravi Kanth Talagana on Oct 27, 2009 11:07 AM

  • Error while importing the user Records through SCC7

    Hi Basis Gurus,
    We are doing the post DB Refresh Activities for a Sandbox .
    Refresh is done from D21 to S21.
    We are stuckup with an error while importing the user Records(scc7).
    The exported user records request from D21 is dumped in the trans directory of S38 and imported in to S21 using TP commands at O/S level. The import is done successfully( RC 4 with warnings).
    But now when we run SCC7 (post import activities) in the background the process is getting cancelled right in the begining.
    Error Occured in SCC3 log
    Table logging disabled in program RSCLXCOP by user SAP*"
    R/3 Version is 4.6C OS:AIX5.3
    Your suggestions will be highly appreciated.
    Regards,
    Sitaram

    Hey Sitaram,
    I looks like you have incorrect parameters of client copy in the S21 system.
    You can change the parameters in S21 system,
    by executing report RSCLXCOP (via transaction SE38 or SA38) in S21.
    Search parameters that related to table logging/sap*
    good luck!

  • Error While Activating the Table

    i have created a table name ZEMPLOY11 in ABAP Dictionary containing fields Client [NUM] Carieer [NUM] Firstname [CHAR] and Surname [CHAR] and save it . when i activated this table it shows and error Mesage "Errors occurred during activation". kindly help me out
    i have created few more tables and faceing the same problem
    Regards
    Ammad

    Hi Ammad,
    Could you please paste the error what you are getting so that we can help you in a bettre way, I think most probably you haven't assign a key variable while creating the table, so in the screen where you have mentioned the fiels Client NUM Carieer NUM Firstname CHAR and Surname CHAR ,mark client and carrioer as key fields, then try to activate it after setting the technical setting of the table.
    Hope now you will able to activate your tables.
    Pooja

  • Ora-00604,ora-01422 error while dropping the table

    Hi gurus,
    I am using Oracle 10g R2 on windows 2000 platform,while dropping the table the following error occured.
    ORA-00604 : error occurred at recursive sql level 1.
    ORA-01422: exact fetch returns more than requested number of rows.
    Need urgent help.
    Thanks in advance

    Is there an AFTER EVENT trigger defined on this database? Can you check that?
    Secondly, was this database migrated from earlier version? I remember having seen this problem on 9i (it was 9.2.0.1 or 9.2.0.2; I can't recall exactly).

  • Error while importing the export in new environment

    All,
    I have getting AIP-11052: Writing following objects: Transport Protocol Parameter failed due to following constraint violation: TRANSPORTPROTOCOLPARAMETER_UK. UNIQUE CONSTRAINT VIOLATION
    while importing the export. Has anyone encountered this issue? or Can anyone provide pointers as to why this might be occuring?
    Any help would be greatly appreciated!
    Dipal

    Hello Dipal,
    The erros seems to be because of some UNIQUE key constraint issue while importing the export. This may be due to some conflicting import data which is causing this voilation. If it is a possibility, please purge the entire repository and have a clean import or else please analyse the UI log to find some more details.
    Rgds,Ramesh

  • Getting error while Importing the Application

    Hi,
    I am Getting Problem While Importing the Application
    We are moving the Application from Test enivorment to Production Environment, Both are Oracle 10g with HTTP server and Application Express 3.2.1.
    While Importing i am getting Error like.
    Error report:
    ORA-06550: line 3627, column 1:
    PLS-00123: program too large (Diana nodes)
    06550. 00000 - "line %s, column %s:\n%s"
    *Cause:    Usually a PL/SQL compilation error.
    *Action:
    Please Help Me its Urgent

    Hi joel,
    Even tried for the Copy of the same application in the same Application but its giving the same error.
    and I tried with the SQL Developer It shows the error like
    Set Application ID...
    ...authorization schemes
    Rollback
    Error starting at line 200 in command:
    begin
    --application/shared_components/security/authorization/des_mstr_delete
    wwv_flow_api.create_security_scheme(
    p_id => 7573129300337441 + wwv_flow_api.g_id_offset
    in the line 200 the above code starts.
    at end This will be displayed
    Error report:
    ORA-06550: line 3652, column 13:
    PLS-00123: program too large (Diana nodes)
    06550. 00000 - "line %s, column %s:\n%s"
    *Cause:    Usually a PL/SQL compilation error.
    *Action                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Sequence tag error while importing the SSL certificate into ".keystore" fil

    I have created the ".keystore " file successfully and also imported the "root.cer".
    but while importing the SSL certificate it says like
    "keytool error: java.security.cert.CertificateException: IOException: Sequence ta
    g error" (I got the certificate from Verisign)
    How to resolve this Error?
    can anyone help me?
    mail to:: [email protected]
    Thanks in Advance

    Hi,
    I resolved this error by making it sure that there are no extra spaces or unwanted caracter copied while copying the certificate response from the CA. Make sure you are copying the certificate response properly. In my case, some extra space was getting copied so after re-copyinf it properly, it worked.

Maybe you are looking for