on 09-10-2008 7:02 AM
Dear Experts,
I have a file to idoc scenario. The file contains multiple records . The records which satisfies a condition have to be send as an idocs. One record should go to one idoc. Other records need not be sent . What are the different options available ?
Thanks and Regards,
Aju
HI,
It is possible through UDF and check condition. At idoc end change 0..Unbound to 1..1 occurance. After each record triggered as one idoc if condition satisfy.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Experts,
From what i understood, change the idoc occurence to 0 to unbounded, check the condition in udf and map it to the idoc. so only valid records get mapped. And all the valid records would be passed in a single message with multilple idocs.
now what is the advantage to sending all the idocs together? It gets posted as separate idocs in r/3. so why do we do it.
Thanks ,
Aju
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can also write a user defined function to check for the condition :
One sample code is 😕
input value a
for(i=0;i<a.length;i++)
{
if(a.equals("A"))
{
result.addValue("Valid Value");
}
else
{
result.addValue("Not a Valid Value");
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Have a look at the number of occurances of the root node
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.