cancel
Showing results for 
Search instead for 
Did you mean: 

Idoc to File Scenario

Former Member
0 Kudos

Hi all,

We are using Idoc Orders Change,our requirement is that if EIDEP01->E1EDP19001->IDTNR is null then out come should be null else if EIDEP01->E1EDP19001 has some value in it ,BP(constant)

must be sent.

Graphical mapping

if IDTNR EQuals(text function) constant [] then IDTNR else BP(Const)----->target.

The issue is that even though IDTNR Value exists BP is not seen in the output file for every alternative record.

Eg:Rec1--->IDTNR exists----->BP

Rec2--->IDTNR exists----->Null

Rec3--->IDTNR exists----->BP

Rec4--->IDTNR exists----->Null

Rec5--->IDTNR exists----->BP

Rec6--->IDTNR exists----->Null

Rec7--->IDTNR exists----->BP

Rec8--->IDTNR exists----->Null

I am really confused why this is happening.Any help would be appreciated

Thanks,

Srinivasa

Accepted Solutions (1)

Accepted Solutions (1)

siddhesh_pathak4
Contributor
0 Kudos

Hello ,

Try below code,

for(int i = 0; a.length>i;i++)
{
for(int j = 0; b.length>j;j++)
{
     if(c[j] == "")
      	result.addValue(c[j]);
     else
       c[j] = "BP";
       result.addValue(c[j]);
}

Pass a As EIDEP01

Pass b As E1EDP19001

Pass c As ADTNR

Edited by: Siddhesh Pathak on Sep 16, 2009 11:02 AM

Answers (3)

Answers (3)

Former Member
0 Kudos

> if IDTNR EQuals(text function) constant [] then IDTNR else BP(Const)----->target.

The mapping seems correct. Try to close your IR and then open it again and then test. This could be some temporary memory issue.

Regards,

Sarvesh

Former Member
0 Kudos
    
   constant[BP]/---->  then
IDTNR --->Notequals---->if------------------->Target filed
constant[]/ constant[]---->  else
                        

if the issue is still not resolved try removeContext after IDTNR(or change the contect explicitly to the higher node.)

Former Member
0 Kudos

Try This:

<IDTNR> IfExist then BP(Const) else constant [] -


>target.

Shweta