cancel
Showing results for 
Search instead for 
Did you mean: 

MR11 - Acc. Maintanance Document per PO Line

former_member380301
Discoverer
0 Kudos

Hi Experts

our client is looking for an enhancement to the standard MR11 transaction. Currently they run it in the background and system posts single account maintenance document for all identified purchase orders, what is an issue when reversal for single purchase order is required. Expectation is to post individual account maintenance documents for each identified purchase order or even purchase order line item.

After our investigation we couldn't find any enhancement place in the code.

Did any of you some enhancements to the MR11? What was it and how you handled it? Any suggestion will be highly appreciated!

Kind Regards,
Maciej

Accepted Solutions (1)

Accepted Solutions (1)

coleti
Active Contributor

Dear Maciej,

There is an standard SAP Logic to consolidate in groups of 199 documents. Check note 387954 - MR11: Error F5727 maximum number of items in FI reached. This is the standard behaviour of the MR11 program.

You can copy the program logic to a Z program and change the 199 to 2 to have this logic as you need. There is no exit to change that. Since this is a constant declaration you cannot change using programming logic.

Another logic is create a Z program to list the documents to be cleared and than you can use the BAPI's for MR11.

Check function group MR11_BAPI.

Best regards,

Gabriel Coleti

Answers (1)

Answers (1)

former_member380301
Discoverer
0 Kudos

Hi Gabriel,

thanks for help! We achieved expected behavior by setting max_lines value to "0".

Maciek

coleti
Active Contributor
0 Kudos

You are welcome. Good to know,.

Best regards,

Gabriel Coleti