Skip to Content
author's profile photo Former Member
Former Member

How to write java code for Java Proxy , when rfc has parameter changing

Hi all:

I need to write java code to call RFC , through Java Proxy mode. the Sap Enterprise Connector help me generate some proxy class.

But this rfc has 3 parameter ( table type ) in change . ( not in import/export parameter ). I find when I call that rfc, without passing the table element to that rfc, it always returns me RFC error.

How should I write java code for this ?

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 01, 2007 at 07:14 AM

    Function func = getDefaultJCoConnection().getJCoFunction(FUNCTION MODULE NAME);

    func.getImportParameterList().getField(IMPORTPARAMETER).setValue(VALUE);

    Table table = func.getTableParameterList().getTable(TABLENAME);

    productTable.appendRow();

    productTable.setValue(VALUE,FIELDNAME);

    getDefaultJCoConnection().execute(func);

    Follow this code and send parameters through table to an RFC

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 02, 2007 at 03:20 PM

    Hi jianhong,

    download the jco documentation to find coding examples or the javadocs,

    which help you on your expedition...

    service.sap.com/connectors --> SAP Java Connector

    Regards, Jens

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.