Skip to Content
avatar image
Former Member

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

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Oct 19, 2015 at 05: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.


    set_text.JPG (43.9 kB)
    Add comment
    10|10000 characters needed characters exceeded