10-20-2016 2:41 PM
Hi Gurus,
New blogger here, hope you are all great!
I have a request to add a Pop Up with some fields to complete once you run the MRRL transaction (and before the result is shown). I have to save this information in a Z table, along with some of the values that are already on the MRRL at that point (vales from RBKP to be more specific).
I was using the Exit: EXIT_SAPLMRMH_001 asi it has RBKP, but the problem I'm facing at this point is that RBKP-BELNR is not generated yet.
I tried BTE events 1120 and 1050 with the same issue, not having RBKP values available.
Is there any way I can get the RBKP-BELNR value while executing MRRL transaction?
Regards,
Agustin.
10-20-2016 6:05 PM
Hi
The BTE 00001050 should be ok, but here you have accounting data (not incoming invoice), you can get the RBKP-BELNR from header data of accounting document,
The information about the logistic document has generated the accouting one are in field BKPF-AWTYP and BKPF-AWKEY
I dont' know transaction MRRL, but for incoming invoice:
BKPF-AWTYP = RMRP
BKPF-AWKEY = RBKP-BELNR+RBKP-GJAHR.
Max
10-21-2016 1:40 PM
Hi,
maybe with badi INVOICE_UPDATE method CHANGE_AT_SAVE?
(or enhancement spot INVOICE_UPDATE)
Best regards,
Pablo
10-21-2016 2:25 PM
Right I've forgotten that BADI
but probably the method CHANGE_BEFORE_UPDATE (just called before posting the data) or CHANGE_IN_UPDATE (just called while posting the data) are better in order to save some data in own custom table