Skip to Content
0

How can I get RBKP-BELNR running MRRL?

Oct 20, 2016 at 01:41 PM

62

avatar image

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 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

max bianchi Oct 20, 2016 at 05:05 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded
Pablo Casamayor Oct 21, 2016 at 12:40 PM
0

Hi,

maybe with badi INVOICE_UPDATE method CHANGE_AT_SAVE?

(or enhancement spot INVOICE_UPDATE)

Best regards,

Pablo

Share
10 |10000 characters needed characters left characters exceeded
max bianchi Oct 21, 2016 at 01:25 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded