Skip to Content
0
Former Member
Sep 04, 2013 at 06:22 AM

BADI ME_PURCHDOC_POSTED or ME_PROCESS_PO_CUST

1437 Views

Hello,

I want to do an insert in a Z-table after saving the PO.

I think the correct position of the implementation of the insert would be: BADI ME_PURCHDOC_POSTED, Method POSTED.

I have implemented the coding and it works (the insert in the z-table).

But I have one problem: I also want to show a message, when there are problems by Enqueue / Dequeue (if anybody uses Sm30 of this table):

MESSAGE e250 WITH enqkey space sy-msgv3 space.

I get an error:missing message-ID.


I think it isn`t allowed to post an message in BADI ME_PURCHDOC_POSTED, isn`t it?

Should I use BADI ME_PROCESS_PO_CUST, method PROCESS_ITEM?

There I have a problem: The PO isn`t created here yet. Do I have to Enqueue the table in ME_PROCESS_PO_CUST and Dequeue in ME_PURCHDOC_POSTED after insert here?

I hope anybody can help me.

Thank you very much.