Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

message mapping issue in idoc to jdbc scenario

We have a scenario of idoc->XI-JDBC

the below given segment may get repeated , as shown below ,

E1EDP19[2]--idoc segment

QUALF---003

IDTNR---01000123(Bar Code No)

E1EDP19[3]--idoc segment

QUALF---003

IDTNR---20500000000034(EAN No)

Reqd mapping

if QUALF=003

THEN IDTNR----->Bar_code_Number_EAN

Now IDTNR has to be mapped with Bar_code_Number_EAN for the segment which comes last

Pl suggest how to map using graphical mapping for the above scenario.

Former Member
replied

Mohammad,

Try the below code

get two inputs - qualf, idtnr (cache Context- Queue)

String temp;
for(int i=0;i<qualf.length;i++)
{
if(qualf<i>.equals("003"))
{
temp = idtnr<i>;
}
}

result.addValue(temp);

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question