Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

執行RFC的問題(Web Dynpro for Java)

Dear Experts,

小弟目前使用一支ABAP工程師寫好的RFC,這支RFC會去修改到我們所建立的add-on Table,以下敘述是RFC的結構和程式。



Zep1_M_Purchase_Order_Input MNode = new Zep1_M_Purchase_Order_Input();
Zpolist1 node = new Zpolist1();


Former Member
Former Member replied

检查你的的jco connection如下:

Creating the JCO connections in the Content Administrator

The logical system names used in the model declaration must be associated with an actual SAP system defined in the SLD before this application can be executed. For this reason you need to create JCO connections in the Web Dynpro Content Administrator. To use an adaptive RFC model in your Web Dynpro application you will define two connections:

u2022 A connection to get the needed (dictionary) meta data information

u2022 A connection to get the read the application data

To create the new JCO connections proceed as follows:


1. Open the Web Dynpro Content Administrator on your J2EE Engine using the URL: http://<host>:<port>/webdynpro/welcome.

2. If you are using the Content Administrator for the first time, you need to perform the self registration.

3. Select the Browse tab and navigate to the application node localu2192 TutWD_YouApp_Initu2192 Applicationsu2192 YourApp.

4. Choose the JCO Connections tab.

Two destinations named Your_MODELDATA_DEST and Your_RFC_METADATA_DEST are shown in this view and both of them have the status red. This means that the JCO connection is not yet maintained in assigned SLD.

5. Select Your_MODELDATA_DEST and choose Create to configure a new JCO connection.

a. Go though the steps of the JCO connection creation wizard and specify the connection data.

b. After making the required entries, press Finish.

c. Test your configuration data by pressing the Test button.

6. Do the same for Your_RFC_METADATA_DEST.

The both destinations are ready to use and the status id green

7. If the tests were successful, you can close the Content Adminstrator. Otherwise correct your connection entries.

Edited by: Frank Zhou on Apr 12, 2010 6:01 AM

0 View this answer in context

Helpful Answer

Not what you were looking for? View more on this topic or Ask a question