cancel
Showing results for 
Search instead for 
Did you mean: 

E1EDP19 mapping issue in ORDERS05 IDOC

Former Member
0 Kudos

Hi experts,

I'm mapping ORDERS05 IDOC to an XSD from a WSDL i'm using, each E1EDP01 creates a Order line int the target XSD

in E1EDP01  we've got E1EDP19  that gives us material number and description.


in my case in the 4 recurrence of E1EDP01  I've got 2 E1EDP19  with diferent QUALF, i'm performing :

if without else QUALF = 2 than pass IDTNR to material number, i get a suppress value for when QUALF=1 and it crushes the mapping.



I've treid using remove context but it messes up the order of data in the diferent Order lines (item in xsd), I've also tried using this UDF to remove suppress but it returns the value NULL instead of suppress which also crushes the mapping  :


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

{

if (!a[i].equalsIgnoreCase(ResultList.SUPPRESS))

{

result.addValue(a[i]);

}

}

can anyone help on how to simply preform this simple task ? what am I missing ?

Accepted Solutions (1)

Accepted Solutions (1)

pvishnuvardan_reddy
Active Contributor
0 Kudos

Hi Zevik,

As you are populating target Item node based on source node E1EDP01, can you please put context of QUALF & IDTNR to E1EDP01, and keep the same logic as it is and check the outcome.


Try this and let me know if you still having issues.

Regards

Vishnu

Former Member
0 Kudos

Hi,

P vishnu vardan,

Your solution solved the problem, Thank you very much!!!

before i only tried changing the context of QUALF or IDTNR and not both.

pvishnuvardan_reddy
Active Contributor
0 Kudos

You are welcome Zevik...

Regards

Vishnu

Answers (1)

Answers (1)

markangelo_dihiansan
Active Contributor
0 Kudos

Hi Zevik,


I've treid using remove context but it messes up the order of data in the diferent Order lines (item in xsd), I've also tried using this UDF to remove suppress but it returns the value NULL instead of suppress which also crushes the mapping  :

Can you give a complete sample input/output to completely visualize what should happen?

Regards,

Mark

Former Member
0 Kudos

Hi Mark,

Do you mean actual data from IDOC  ? if yes, I can't because its PROD environment.

after using the udf it looks like this:

pvishnuvardan_reddy
Active Contributor
0 Kudos

Hi Zevik,

As you are populating target Item node based on source node E1EDP01, can you please put context of QUALF & IDTNR to E1EDP01, and keep the same logic as it is and check the outcome.


Try this and let me know if you still having issues.

Regards

Vishnu