Documente Academic
Documente Profesional
Documente Cultură
| SCN
Getting Started New sletters Store
Hi there!
During MIRO after pressing save...
I search for an user-exit or BAdI, to READ ITEM DATA and UPDATE HEADER DATA (XBLNR) after
SAVE but before UPDATE.
I have searched this forum, but with no luck. Many more then me seem to have the same problem.
The most common answer have been to try BAdI INVOICE_UPDATE, but that BAdI only give READ
access and NO UPDATE, so no luck there..
To summarize all my searching here and findings... I list all exits I have tested...
User-Exits
LMR1M001 User exits in Logistics Invoice Verification
LMR1M002 Account grouping for GR/IR account maintenance
LMR1M003 Number assignment in Logistics Invoice Verification
LMR1M004 Logistics Invoice Verification: item text for follow-on docs
LMR1M005 Logistics Inv. Verification: Release Parked Doc. for Posting
LMR1M006 Logistics Invoice Verification: Process XML Invoice
MRMH0001 Logistics Invoice Verification: ERS procedure
MRMH0002 Logistics Invoice Verification: EDI inbound
MRMH0003 Logistics Invoice Verification: Revaluation/RAP
MRMN0001 Message output and creation: Logistics Invoice Verification
Other BAdI's
MRM_HEADER_CHECK - Bara ingende vrden fr kontroll
MRM_HEADER_DEFAULT - Tyvrr stter bara XBLNR precis nr man gr in i MIRO...dvs fr tidigt.
MRM_ERS_HDAT_MODIFY - EJ anropad...
Best regards
Henrik
Correct Answer
by Vishnu Tallapragada on Jan 22, 2012 10:22 PM
Hello Henrik,
http://scn.sap.com/thread/2121789 1/3
25/5/2014 MIRO - User Exit during SAVE: Read items & ... | SCN
CHANGE_BEFORE_UPDATE and CHANGE_IN_UPDATE.
Of these CHANGE_AT_SAVE is called before INSERT / UPDATE statements are executed. We can
use this to update RBKP-XBLNR.
method IF_EX_INVOICE_UPDATE~CHANGE_AT_SAVE.
DATA: lv_name_xblnr(30) TYPE c VALUE '(SAPLMRMP)RBKPV'.
FIELD-SYMBOLS: <fs_rbkpv> TYPE mrm_rbkpv.
Best regards,
Vishnu Tallapragada
5809 View s
Average User Rating
(0 ratings)
Vishnu Tallapragada Jan 22, 2012 10:04 PM (in response to Henrik Andersson)
Re: MIRO - User Exit during SAVE: Read items & Update header
This is an interesting situation. BADI INVOIC_UPDATE provides you both header and item data of the
MIRO invoice but won't let you change them (all import variables). BADIs like
MRM_HEADER_DEFAULT will allow you to change XBLNR but you don't get the item data and it is
too early as this triggers as soon as the user enters data in MIRO.
You can update RBKP-XBLNR with INVOICE_UPDATE BADI. But you have to use call stack
technique. We have done similar thing in our project. I will let you know when I can access my
system.
Best regards,
Vishnu Tallapragada
Like (0)
Vishnu Tallapragada Jan 22, 2012 10:22 PM (in response to Henrik Andersson)
Correct Answer Re: MIRO - User Exit during SAVE: Read items & Update header
Hello Henrik,
Of these CHANGE_AT_SAVE is called before INSERT / UPDATE statements are executed. We can
use this to update RBKP-XBLNR.
method IF_EX_INVOICE_UPDATE~CHANGE_AT_SAVE.
DATA: lv_name_xblnr(30) TYPE c VALUE '(SAPLMRMP)RBKPV'.
FIELD-SYMBOLS: <fs_rbkpv> TYPE mrm_rbkpv.
Best regards,
Vishnu Tallapragada
http://scn.sap.com/thread/2121789 2/3
25/5/2014 MIRO - User Exit during SAVE: Read items & ... | SCN
Like (0)
Henrik Andersson Jan 23, 2012 8:18 AM (in response to Vishnu Tallapragada)
Re: MIRO - User Exit during SAVE: Read items & Update header
Hi dear Vishnu!
Best regards
Henrik
Like (0)
Henrik Andersson Jan 23, 2012 8:22 AM (in response to Vishnu Tallapragada)
Re: MIRO - User Exit during SAVE: Read items & Update header
Hi again Vishnu
You get both "Solved problem" 10p AND "Very helpful" 6p = total 16p ....Yihaaaa!!!!!
best reg
Henrik
Like (0)
http://scn.sap.com/thread/2121789 3/3