Skip to Content
0
Oct 28, 2013 at 11:00 AM

mapping error in targer field mapping

161 Views

mapping error in the targer field mapping due to the mapping field d_387 PLEASE ANY one explain me is any error in the bellow java

code as i am just new for the code

SAP:Stack>Runtime exception occurred during application mapping com/sap/xi/tf/_DESADV_ANDA_IDOC_To_ASNEDIFile_New_;

com.sap.aii.mappingtool.tf7.MessageMappingException: Runtime exception when processing target-fieldmapping

/LIST/S_ISA/S_GS/S_ST/G_SHL/S_HL/S_TD5/D_~</SAP:Stack>

<SAP:Retry>M</SAP:Retry>

/LIST/S_ISA/S_GS/S_ST/G_SHL/S_HL/S_TD5/D_~

public void populateD387(String[] route, String[] partner, String[] name1,

String[] constantval, String[] filterVal1, ResultList result, Container container) throws StreamTransformationException{

if (route[0].indexOf("ZUPS")>-1){

result.addValue(constantval[0]);

}else{

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

if(partner[i].equals( filterVal1[0]) && route[0].indexOf("ZLTL")>-1){

result.addValue( name1[i]);

}

}

}