Ask the Expert

RFM issues in the JCo tutorial

I went through the JCo tutorial.pdf. I am trying to run the example in It is working fine. As you mentioned in the tutorial on page 4:

    Requires Free Membership to View

"Changes in SAP will only happen if you call an RFM that uses a table parameter you pass to it in order to update the database".

I am not clear which RFM that would be. Since I am not following the steps I am not able to update the changes into the database. I want to know now how to update into the SAP using JCo.

I am doing the following things in your example program:

      codes =
      codes.setValue("P001", "COMP_CODE");
      codes.setValue("POL", "COMP_NAME");
      codes.setValue("P002", "COMP_CODE");
      codes.setValue("NUC", "COMP_NAME");
      codes.setValue("P003", "COMP_CODE");
      codes.setValue("RKS", "COMP_NAME");

I need to update the changes into SAP. What is the step i need to follow
Company code P001 does not exist
Company code P002 does not exist

How do I avoid this error?

There has to be a BAPI or other RFM that deals with the specific requirement. In the case of company codes, no such BAPI exists. So, unless you want to build your own BAPI, this simply cannot be done.

This was first published in May 2002

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: