cancel
Showing results for 
Search instead for 
Did you mean: 

Fill header text at purchase order creation

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

raymond_giuseppi
Active Contributor
0 Kudos

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.