cancel
Showing results for 
Search instead for 
Did you mean: 

file to idoc

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (4)

Answers (4)

former_member192295
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi,

If i Understood Correctly means,

You have multiple records in File and need to create One one Idoc in R/3 for each and every Record.

Then have a look at this by changing the Occurence of the Idoc

Regards

Seshagiri

Edited by: N V Seshagiri on Sep 10, 2008 8:13 AM

Former Member
0 Kudos

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");

}

}

Former Member
0 Kudos

Hi,

Have a look at the number of occurances of the root node