Hi all,
The Idoc we are using is ORDCHG.
My requirement is if PARVW= we or LF or LS or Z1 or AG or EK then need to send name1 values
For this I wrote a java function
//write your code here
if(((inValue[0].equals("AG") || inValue[0].equals("EK") || inValue[0].equals("LF") inValue[0].equals("Z1") inValue[0].equals("WE") inValue[0].equals("LS")))
{
result.addValue(inValue[0]);
}else{
result.addValue("");
}}
for testing i used concat to combine both.
then name1->>>first parameter of use1asmany
second parameter if E1EDP01exists then E1EDp01 else constant[]
Third parameter if E1EDP01 exists then Posix else constant
up on executing this i have error
RuntimeException in Message-Mapping transformation: Runtime exception during processing target field mapping /ns0:MT_FILE_MUL/Recordset/Records/Del_To_name1. The message is: Exception:[com.sap.aii.mappingtool.tf3.IllegalInstanceException: Too many values in first queue in function useOneAsMany. It must have the same number of contexts as second queue.] in class
Please help.
Thanks,
Srinivasa