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

RFC call using JCO

Hi folks,

I need to call a RFC which has an import parameter AMT_PAID type of CURR of length 12. I need to pass the value form java. Whatever value I give like double or Sting it shows error as BAD_CURRENCY. Can anybody please guide me how to give value for CURR in java.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Oct 16, 2006 at 12:58 PM

    Hi Amutha,

    what is the data type for currency in import parameters check in BAPI. first logon to SAP try to execute inside BAPI by setting your currency value. whether your BAPI executing without any problem?.

    jcoFunction = jcoRepository.getFunctionTemplate("Y_BAPI").getFunction();

    jcoFunction.getImportParameterList().setValue(curr, "CURRENCY");

    jcoClient.execute(jcoFunction);

    Regards, Suresh KB

    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.