I need to create/write a text in an infotype via ABAP code. So I'm looking for a function module or some "clean" solution for this. Right now I only found this post with a "quick&dirty" solution.
I'm a bit afraid to change something directly from the cluster so I hope maybe someone can offer me another way to solve this issue.
Perhaps this will help you. It's the most modular and OO possibility I've came across yet.
Here is a sample code:
creating infotype object
modifying data
updating cluster