Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

ME_PROCESS_PO_CUST->POST method not updating the line item texts on using set_text method

0 Kudos

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

1 REPLY 1

former_member289261
Active Contributor
0 Kudos

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.