regarding clarfication in RFC scenario..
Actually my scenario was File to RFC scenario in which i am using the BAPI -- BAPI_MATERIAL_SAVEDATA
In the response i am getting the error message with its 3 digit code, but is it possibe to get the sender source filename or the material which it is created..
For eg: if i create a new material using this BAPI, if the material was successfully created then we will get 356 as a success message and the message was the material 0325689 was successfully created, here the 0325689 is the material and in case of failure it is just generating some error with out specifying any name..
So, now the problem is how to find that error is occured for that material..