cancel
Showing results for 
Search instead for 
Did you mean: 

RFC call using JCO

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

suresh_krishnamoorthy
Active Contributor
0 Kudos

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