my guess answer is pls check the Bound Node Record which you are using as a input to
transform_HierarchytoFlat RFC.
Since may be boundnode which you have created using documentToRecord from IDOC (ORDRSP05),the problem may be in IDOC itself,pls check the structure in it whether important data or control records may be missing in segments.
This might be some clue for your problem.
#webMethods-General#webMethods#Integration-Server-and-ESB