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

Create a Credit Memo from purchase invoice

Hi everyone,

I am trying to create a credit memo from a purchase invoice, but it retuns the following error:

"RFC is missing"

I am using the JCO classes to develop this application. this is a sample of my code:

IDocuments document = SBOCOMUtil.newDocuments(company,new Integer(19));

document.setCardCode("P00055");

document.setDocDate(new java.util.Date());

document.getLines().setBaseEntry(new Integer(2852));

document.getLines().setBaseLine(new Integer(0));

document.getLines().setBaseType(new Integer(18));

int lRetCode = document.add();

if(lRetCode != 0){

System.out.println(company.getLastError().getErrorMessage() );

}

Do you have any idea about what is the problem?

Many Thanks.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Nov 23, 2005 at 02:34 PM

    Hi everyone,

    the problem was solve. I had to specified the FederalTaxID field on the document.

    just added the following field:

    document.setFederalTaxID("000000000000");

    Thanks.

    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.