10-17-2015 9:48 AM
Hi Guys,
I am adding the long text during the save operation of the PO using the POST method and calling im_itm->IF_LONGTEXTS_MM~SET_TEXT method and populating the TDID and textlines table and passing them. On debugging I could see the save_text being called and returning a sy-subrc = 0 but the text is not seen in PO item long texts.
On further investigating I found that it is referring the parameters of the TTXOB table for EKPO(tdobject field) and the savemode is set as V(Changes in the text file are carried out via update task) if I change this parameter to D(Changes in the text file are carried out online) in the table then the text gets perfectly updated in the PO item. I also read from the documentation of the BADI to specifically avoid a COMMIT in the POST method.
Can you suggest me a better way of updating the long text.
Thanks
Priya
10-19-2015 6:40 AM
Hi,
Why not use it in method CHECK instead of POST ? I have used it in CHECK and it works as expected.
Replace the TDID with your text's TDID.