Skip to Content

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

Mapping error

Hi Experts,

My scenario is flat file to DB

Created java mapping to conver flat file to xml, other mapping for xml to DB.

Created Operation mapping with Javamapping and message mapping. Below is the link for reason of choosing java mapping and separate message mapping.

Java code for txt to xml conversion

Now issue is, when i test Operation mapping with flat file, it is working fine.

end to end testing is not working, it is throwing mapping exception error. What would be the problem, not able to find issue since operation mapping test is working fine.

replied

Hi Mohan,

Created java mapping to conver flat file to xml, other mapping for xml to DB.

Created Operation mapping with Javamapping and message mapping.

I think you are just copying the contents of the file and pasting it in OM. That will work, however at runtime your actual payload is INSIDE a file. Follow this blog for proper testing

Can we test Binary Files in Interface/Operation Mapping???

Regards,

Mark

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