Skip to Content
avatar image
Former Member

JAVA CODE NOT CREATING IDOC

Hi all

I m facing problem to upload data through idoc.the scenario is like we receive electric meter reading in flat file format. And to upload that data JAVA code is written which will create an IDOC FILE this authorization is only give to 2-3 person in organization and to basis guy also as user changed itÂ’s password in SAP and in JAVA the java code is not going to create the IDOC file and data is not going to upload. after changing user password in sap system ,user not able to upload the data.

ISU_MR_UPLOAD01 is the idoc file generated. So is there any authorization issue, password issue how to see and view IDOC IN SAP, can any one help me out into this.

The error with java throws is as;

1ST ERROR IN TRACE FILE

  • ERROR file opened at 20061109 133610 India Standard, SAP-REL 640,0,59 RFC-VER 3 MT-SL

T:2736 ======> User TR has no RFC authorization for function group SYST .

T:2736 <* RfcReceive [1] : returns 3:RFC_SYS_EXCEPTION

2ND ERROR ON COMMAND PROMT

C:\j2sdk1.4.2_07>cd bin

C:\j2sdk1.4.2_07\bin>java sandsupload

Creating IDoc...Exception in thread "main" com.sap.mw.idoc.IDoc$Exception: (2) I

DOC_ERROR_METADATA_UNAVAILABLE: The meta data for the IDoc type "ISU_MR_UPLOAD01

" is unavailable.

at com.sap.mw.idoc.jco.JCoIDoc$JCoDocument.<init>(JCoIDoc.java:233)

at com.sap.mw.idoc.jco.JCoIDoc$JCoDocument.<init>(JCoIDoc.java:187)

at com.sap.mw.idoc.jco.JCoIDoc.createDocument(JCoIDoc.java:10521)

at sandsupload.main(sandsupload.java:35)

the part of java code

try {

//create a JCo client pool

JCO.addClientPool( "MyPool", //pool name

3, //maximum pool connections

"333", //SAP client

" TR", //user ID

" XYZ", //password

"EN", //language

" 1.1.1.1 ", //app server host name

"00" ); //system number

//create an IDoc repository

IDoc.Repository idocRep = JCoIDoc.createRepository("MyIDocRepository", "MyPool");

//create a new and empty MATMAS02 document

System.out.print("Creating IDoc...");

Line where it shows error

IDoc.Document doc = JCoIDoc.createDocument(idocRep, "ISU_MR_UPLOAD01");

//get the root segment from the document

//The root segment does not contain any fields or data. It is only

//used as the standard parent segment and won't be transmitted when

//the document is sent to an SAP system.

IDoc.Segment segment = doc.getRootSegment();

//create and add a new and empty child segment of type E1MARAM

//and fill the segment data

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Nov 09, 2006 at 12:42 PM

    In which way is this JDI related?

    Add comment
    10|10000 characters needed characters exceeded