I am having a problem with using the SAVE_TEXT FM.
Here is the scenario.
I am trying to populate the Long Text on a PM work order component line for a reservation.
Prior to populating this field, no text will exist in this field.
I create the name key using the following:
sy-mandt + resb-rsnum + resb-rspos + resb-rsart
The object id AUFK and the ID is MATK.
INSERT = X
SAVEMODE_DIRECT = X
OWNER_SPECIFIED = space
LOCAL_CAT = space
When I call the FM I get a return code of 0 and when I do a READ_TEXT FM using this key I can see that the text exists in table STXH.
However, when I go to view the long text for the reservation component in IW32 there is no text there.
If I now manually add text to the long text and save, if I now run the SAVE_TEXT FM with the same key, the FM overwrites the value of the text which was manually entered with the value from the FM.
So, does anyone know why the FM writes an entry to STXH which isn't visible in IW32 prior to manually adding text, but is visible after manually adding text?
Has anyone experienced this problem before?
I would appreciate any help anyone could give me.