Dear Satya
if you gethelp by an "ABABper" you can anylse the function module C*SEP_BY_VA. This is one of teh "core" pieces in the "game" to decide if you have import or export or...
Look on the logic used. As explained: Prepare sales order (accordint to selection criteria) "set break point" in the "read planned data" function moduel and try to understand the logic used. It will take you may be one day. Please reread OSS note. And the story for "sales organisation" and how data from sales organisation "comes" in place (as with data from the plant as used) to decide if you have import or export or..
C.B.
PS: based on your "general" story. It seems to be that "import" is working? The logic of Export is not "that different" to import.