Skip to Content
0
Former Member
Mar 08, 2009 at 05:05 PM

Graphical RFC Lookup & Validating Numeric Value

28 Views

Hi everyone,

I have an file - PI - IDOC scenario where i need to do graphical FRC Lookup in mapping (using BAPI_COMPANYCODE_GETLIST)to collect company codes and map it to DEBMAS06 IDOC.

I want to send all company codes within the intervall 1000 < company code < 2000. the result from the lookup contains also non-numeric data such as BD01 and so on;

I create an user defined function to do this jub but the result is <null>:

/*****************/

public void rfcLookupII(String[] cc, ResultList result, Container container) throws StreamTransformationException{

String code = "";

for (int i = 0; i < cc.length; i++) {

code = cc<i>;

if (code.matches("
d+")) {

int intCode = new Integer(code).intValue();

if (intCode >= 1000 && intCode <= 2000)

result.addValue(code); }

} }

/******************/

can anyone help me Please to fix this problem.....