Skip to Content

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

java udf

Hello sdners

I need help with a java udf.

I am not sure how to write in java ,the udf for belwo scenario and wheter it will be value or context or que function.

Scenario is file to idoc



D1 : Invoice


P1 : AB

P2 : 123


P1 : CD


P1 : DE

P2 : 456

Requirement is : To substring ( first 4 chars) of D1 coming in DHP segment and concatenate with P2 if qualifier is DE in P1 then map this logic to a field in target.

Important point to consider is that if we see that second PLK segment does not have P2 so we cannot do something like we extract a<i> and then take b<i> corresponding since the queue for P2 had 2 values whereas queue for P1 has 3 values.

Can we achieve this ?

Thank you.

Former Member
Not what you were looking for? View more on this topic or Ask a question