Skip to Content

Fill header text at purchase order creation

Sep 29, 2017 at 02:38 PM


avatar image

Helle everyone,

I need to populate a header text at the save of a PO, to do this, I've written my code in BADI's method if_ex_me_process_po_cust~post then I use the method im_header->if_longtexts_mm~set_text

But when I save PO, the header text is not created and I don't know why.

However, if I change my PO in me22n and then save, the text is created.

Any suggestion ?

Thank you

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Raymond Giuseppi
Oct 02, 2017 at 12:13 PM

Read again the BAdI documentation, you are not allowed to change standard data in POST method, only your own database tables: 'The POST method enables you to post your own data.'

Move your code to either PROCESS_HEADER or CHECK methods, the last method is always executed before the POST final one.

10 |10000 characters needed characters left characters exceeded