No rameshraj i think u r wrong.. Mapfail doesn't occur when u have not compiled the map.. tht error is AEIM..
Mapfail occurs whn u receive a map tht is empty.. i mean u send a map and when u receive the map u simply press enter without entering any values in the input field of the map.. u can use RESP key in the receive statement. Check if it is mapfail and thn send some message "Enter value in the map!!" to some message in the map and send the same map again..
Hope it is clear..
I would like to know what has to be done when a MAPFAIL occurs when receiving MAP.
where i would i have went wrong.
These forums are meant to help each other working in similar communities. People contribute out of their own time. While posting requests, please be considerate of fellow members and provide as much information as possible. Also, be kind enough to request and not demand anything. Some posts doesn't seem to be requests. They rather look like statements or sometimes demanding.
You encounter Map fail error when there are no values entered in the map by the user before the enter key is pressed.
So you should use FSET Cntl word in any of the receiving fields(In BMS). Say if you map(BMS) has Name and employee Id field where the user need to key in the values, you can code FSET in MAP for the corresponding field "Name".
By this way you can avoid the map fail error
Or you can use FSET field in your map definition as one byte filed, so that data will always be transmitted and MAPFAIL condition will never arise. FSET will turn the MDT tag on for that particular field when you receive the MAP.