Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How can I get RBKP-BELNR running MRRL?

Former Member
0 Kudos

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.

3 REPLIES 3

Former Member
0 Kudos

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

former_member182371
Active Contributor
0 Kudos

Hi,

maybe with badi INVOICE_UPDATE method CHANGE_AT_SAVE?

(or enhancement spot INVOICE_UPDATE)

Best regards,

Pablo

Former Member
0 Kudos

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