Hi,
I am preparing an inbound map. ( conversion from edi 837 claims file to database tables)
kindly suggest me, how I can resolve the below issue.
Issue:
I need to print data from the below provider loops to the target database.
2420A
2420B
2420C
2420D
2420E
2420F
Currently I am using "After Every Record" event handler to print each of the above loop's the data. But I have observed that, the previous loop's data is printed to the target database in the current loop's event handler.
For eg: In the 2420B Afterevery record event handler, the 2420A's data is present. So in 2420B's event handler, 2420A's data is printed to the database. If I proceed in this way, I will be missing the last occurred loop's data ( i.e. 2420F in the above loops ). After 2420F loop, there is no mandatory segment so that I can grab 2420F's data in that mandatory segment's event handler. Please suggest me how can I resolve this. or How can I grab the last loop's data since there is no mandatory segment after 2420F loop.
Thanks & Regards,
Mahendra Babu.