Skip to Content
0
Apr 18, 2012 at 10:08 AM

UDF not working in runtime

23 Views

Hi all I have this UDF function. It creates 4 segments for the idoc MATMAS based on values. I have tested on ES and works fine. But if I test my integration scenario in runtime workbench it doesnt work. In fact, if I dont add the try - cacth block I get a indexoutofboundexception. I have test with the same message. I am getting crazy, how can be possible to be working on ES and not in RWB????

AbstractTrace at = container.getTrace();

at.addInfo("createE1MARMM");

String psl_stand = "";

String largo_psl = "";

String ancho_psl = "";

String alt_psl = "";

String psl_pal_st = "";

String psl_man_st ="";

String alt_man = "";

String un_fajado = "";

try

{

psl_stand = PSL_STAND[0];

largo_psl = LARGO_PSL[0];

ancho_psl = ANCHO_PSL[0];

alt_psl = ALT_PSL[0];

psl_pal_st = PSL_PAL_ST[0];

psl_man_st =PSL_MAN_ST[0];

alt_man = ALT_MAN[0];

un_fajado = UN_FAJADO[0];

}

catch (Exception e){}

at.addInfo("psl_stand="+psl_stand);

at.addInfo("largo_psl="+largo_psl);

at.addInfo("ancho_psl="+ancho_psl);

at.addInfo("alt_psl="+alt_psl);

at.addInfo("psl_pal_st="+psl_pal_st);

at.addInfo("psl_man_st="+psl_man_st);

at.addInfo("alt_man="+alt_man);

at.addInfo("un_fajado="+un_fajado);

if (!"".equals(psl_stand) ||

!"".equals(largo_psl) ||

!"".equals(ancho_psl) ||

!"".equals(alt_psl))

{

result.addValue("");

}

if (!"".equals(psl_pal_st))

{

result.addValue("");

}

if (!"".equals(psl_man_st) ||

!"".equals(alt_man))

{

result.addValue("");

}

if (!"".equals(un_fajado))

{

result.addValue("");

}