Hello Ulrich,
Thanks for your reply. As for your question,
1. The error is weird. When there are no parameters, the RFC call is perfect and successful. However, when there are parameters, it is unable to read them properly, e.g., SUBRC is read as UBRC and therefore the structure of the parameter is not fetched and the addItem function fails.
I hope you understand why I am trying to explain here. Even I am fairly new to this.
2. What worked out for me is, installing SAPGUI on the server ( a quick hack ). This seemed to have installed proper dll files at their desired locations and the RFC started to function properly. Since we had to meet deadline, we used this method but I am still researching about what exactly could have happened. The server initially did not have the librfc32u.dll file at all.
I hope I answered your queries.
Please feel free if you have more suggestions or questions.
Regards
Shubhendu