I need to create a user exit that is able to capture the Purchase Requisition(PR) number (BANFN), document type field (BSART) and requisitioner field (AFNAM) after it is saved in ME51N. After that, the exit should call transaction 'TRIP' and assign the PR number into one of the fields there.
I have tried using enhancement MEREQ001 especially in particular EXIT_SAPMEREQ_006 and EXIT_SAPMEREQ_007.
I am able to call transaction 'TRIP' after the PR is saved with EXIT_SAPMEREQ_006 but cannot capture PR Number, etc.
With EXIT_SAPMEREQ_007, it is not fired during create PR. It is only fired when there is a Change PR.
What should I use to capture the PR number, etc after the PR Create is saved?
Please help. Thank you very much.