MIRO User exit - processing order
Hi
I've had a user request to try to copy the text line entered in the header part of MIRO into the posted transactions in BSEG so that when GL account analysis jobs are run eg FS10N, relevant text info is shown as well (as it does when manual invoices are posted). I've worked on the User exits available and with the Export/Import to memory option I thought that I'd cracked it.
I used the Export option in EXIT_SAPLMRMP_010 as required input data is available there. Then I used the Import option in EXIT_SAPLMRMP_004 as that exit is used to post data to the accounting functions. For testing I put a breakpoint into each of them.
During testing, I was surprised to find that EXIT_SAPLMRMP_004 was actually processed before EXIT_SAPLMRMP_010 during MIRO although I proved that the concept would work would work by manually keying some text into the relevant field at the breakpoint as it appeared in BSEG afterwards.
Can anyone please advise if there is an easy way to discover the order of processing of the exits available to MIRO (dozens of includes in SAPLMR1M!!) so I can put the Export option into the correct place.
Thanks
Jim Jackson
Hi Jim,
You can try with BTE (Business Transaction Events).
Goto SE37 - SAMPLE_PROCESS_00001120 (this is the standard BTE for account document posting). copy this with ZSAMPLE_PROCESS_00001120.
In this you cannot modify the tables t_bkpf and t_bseg. you can use t_bkpfsub and t_bsegsub.
For this a little bit config is required.
1) Goto t-code FIBF-> settings->Products->... of a customer.
Click new entries -> product name- ZPRODUCT , text - any text, RFC dest - ZSAMPLE_PROCESS_00001120, A - enable check box -> save.
2) Go back -> settings -> P/S Modules -> ... of a customer.
Click new entries -> event - 00001120, Product - ZPRODUCT, Ctr - Country key, Appl - FI-FI, Function module - ZSAMPLE_PROCESS_00001120 -> save.
3) Go back -> settings -> Process Modules -> ... of a customer.
Click new entries ->Process - 00001120, Ctr - Country key, Appl - FI-FI, Func module - ZSAMPLE_PROCESS_00001120, Product - ZPRODUCT -> save.
Now goto SE37->ZSAMPLE_PROCESS_00001120
logic.
loop at t_bkpf.
loop at t_bkpfsub.
move 'your value' to t_bkpfsub-value.
modify t_bkpfsub index sy-tabix.
endloop.
endloop.
loop at t_bseg.
loop at t_bsegsub.
move 'your value' to t_bsegsub-value.
modify t_bsegsub index sy-tabix.
endloop.
endloop.
''your value' is imported value.
no need to worry abt modified values. after execution of BTE it will go to standard prog and copy the values of t_bkpfsub[] and t_bsegsub[] to SAP tables. so pls be perfect with code. SAP wouldn't allow change the values in t_bkpf[] and t_bseg[] values. you can add your own fields in bkpf_subst and bseg_subst.
But make sure that, pls write the code in FM with conditions like cocode doc type etc. bcz this BTE is very important. it will executes before acc doc is posted.if you do not specify any conditions it will execute for all co codes in acc doc. it will affect business. you can debug this BTE. put a break point in FM and see the values while post the MIRO.
once import the values free memory id and clear the variables what ever u used in BTE.
Best Regards,
Mohan.
Similar Messages
-
How to find the user exit for order cancellation
I want to find the user exit for order cancellation. And also to ensure that no one amends the order once the canellation has taken place. The cancellation shall be deemed to be affected only if the vendor has confirmed the acknowledgement of the order cancellation.
I have got a Zreport where this order should not come as open order item.
Please tell me the method of finding the users exit for order cancellation and stop the order from getting modified. And also how to find the tables in which the data has to be updated that the order has to be cancelled.
In the PO header i want an additional tab <cancellation> by which the user by the help of userid and password should be able to cancel the order. An order once cancelled cannot be undone. A new order has to be placed. The new order can be placed refencing the cancelled purchased order.
My client has got a very stringent requirement. In the past cancelled order has been undone and caused lot of problems.
Regards.hi
pls tell me t.code so that i will send all user exits related to that particular t.codes
Thanks & Regards
phaneendra -
MIRO : User-exit to block an invoice
Hello,
I try all miro user-exits and badi and nothing works.
I need to block some invoices in MIRO. The badi is good but no export parameters (I try dynamic assignment but it dumped !!)
I you've any idea, I will reward
ThanksHi Fabrice,
Please take a look at these threads..
User Exit for FB60 ( Enter Vendor Invoice )
Please help me find a User exit to block a Vendor
cheers,
Prashanth
P.S : Please mark helpful answers -
BADI/User Exit for Order processing
Hi Experts,
I have a requirement that whenever someone modifies the order belonging to a specific order category then some error/ warning is issued. Can you please suggest some User Exit/BADI in APO for the same.Hi Tiago,
My requirement is to block the processing of Released process order from both Product view and Detailed Scheduling Board.
If I am getting you correctly then in the mentioned BAdI and Method --I should call FM --/SAPAPO/OM_PEG_CAT_GET_ORDERS (to fetch orders by order category) to see whether the order category is for released process order or not.
If its Released process Order --then I should block the change. Is that correct for both Product View and Planning Board? -
Transfer data from the PO to the invoice header data in MIRO (user exits)
Hi.
We are trying to transfer some basic information from the PO to the invoice header data by the time we process the logistic invoice verification (transaction MIRO).
The information we want to transfer is:
1. PO Text (screen field DRSEG-TXZ01) -
> should be transferred to Header text field (screen field INVFO-SGTXT) located in the tab u2018Basic Datau2019.
2. Purchasing Document Number (screen field DRSEG-EBELN) -
> should be transferred to Assignment field (screen field INVFO-ZUONR) located in tab u2018Detailsu2019.
The exits we had listed for this tasks are:
EXIT_SAPLMR1M_002: Change Proposed Account Assignment
EXIT_SAPLMR1M_003: Pass On Document Header Data
EXIT_SAPLMR1M_004: Change the Withholding Tax- and Split Table
EXIT_SAPLMRMP_010: Analyze Document Header and Item Data
The second one, EXIT_SAPLMR1M_003, should have stopped at by the time we processed the information, but it didnu2019t.
Iu2019ve heard EXIT_SAPLMRMP_010 would no longer be functional from version 4.6c.
Users enter the information in MIRO following this chronological order:
1.Invoice date
2.Reference
3.Purchase order number ---> operation which u201Ccallsu201D the PO to the screen.
4.Amount
5.Flag u201Ccalculate taxu201D field (if mandatory)
6.Tax on sales/purchases code (if mandatory)
And then they post. Thatu2019s all.
Weu2019ve tried to get this data from the time we u201Ccallu201D the PO to the screen, just to see if we can get it before we saved the document, and we werenu2019t capable of doing it. The second option is to get the data right after we process the document (post it), so weu2019ve reached bapi INVOICE_UPDATE but we cannot locate the exact place to put the references to the dynpro (although, weu2019re not 100% sure if this bapi would solve the problem).
Thanks in advance.
SebastianHi Sunil.
Function MRM_INVOICE_CHECK doesn't exist in system 4.6c. Also I've searched for it in ECC 5 and I got the same result. Are you sure about the name of the function?
From the function group MRMC, I found this:
MRM_BADI_INVOICE_CHECK
MRM_DUPLICATE_INVOICE_CHECK
I haven't still check them. But for what I know, the second one (...DUPLICATE...) processes a control to avoid a double entry of the invoice, I not sure it will work. I'll let you know.
Thanks for answering.
Sebas -
MIRO User - Exit to Change the Profit Centre..?
I need to change the Profit Centre in the Accounting document(for Vendor Line Item) and Profit Centre Accounting Document(For Payable Line Item) Created by MIRO Transaction.Can any one let me know if there is anyuser-exit or badi to achieve the same
Thanks a lot for your help .
Regards,
Gopi.Khi
These are all the user exits avalilable for MIRO transaction.
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
I think you can use this exit.
LMR1M002
Regards.
Lavanya. -
MIRO user exit at material document creation
I need to find out where or how material documents are created. Right now we have one material document per day per invoice so a single document can have many payments made against it (if they are made in the same day). What I need to do is change it so that each payment has its own material document. If you have 3 payments against invoice 001 in the same day then you have three material documents against that invoice instead of just one.
I am assuming this is done, or can be changed, in a user exit. If not is this a configuration issue?
Regards,
DavisHere is the list of User Exits and BADIs for MIRO.
Enhancement/ Business Add-in Description
Enhancement
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
Business Add-in
INVOICE_UPDATE Business Add-In: Logistics Invoice Verification -
MIRO - User Exit during SAVE: Read items & Update header
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
BADI - When saving in MIRO the following BAdI were passed...
PPA_CUST_BADI
/CCIS/FICLRDC_ENH
INVOICE_UPDATE << only read no update
ME_DP_CLEARING
AC_DOCUMENT
FI_LIMIT_PROCESS
AC_QUANTITY_GET
FMRE_BUS_PROCESS
EXIT_XFMPRI_001
CO_DOCUMENT_INFO
INVOICE_UPDATE (method change_before_update ) << only read no update
MRM_RANSACT_DEFAULT
MRM_HEADER_DEFAULT
Other BAdI's
MRM_HEADER_CHECK - Bara ingående värden för kontroll
MRM_HEADER_DEFAULT - Tyvärr sätter bara XBLNR precis när man går in i MIRO...dvs för tidigt.
MRM_ERS_HDAT_MODIFY - EJ anropad...
Would be greatful for any ideas on this matter...
Best regards
HenrikHello Henrik,
In BADI INVOICE_UPDATE there are 3 methods CHANGE_AT_SAVE, 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.
We can't use CHANGE_BEFORE_UPDATE and CHANGE_IN_UPDATE methods as they are called after INSERT / UPDATE statements are executed and before COMMIT.
You can update RBKP-XBLNR through INVOICE_UPDATE~CHANGE_AT_SAVE method using call stack technique like below. You can replace 'VALUE' in the below code with the value based on your calculation using other variables like s_rbkp_new, ti_rseg_new etc.
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.
ASSIGN (lv_name_xblnr) TO <fs_rbkpv>.
IF <fs_rbkpv> IS ASSIGNED.
<fs_rbkpv>-xblnr = 'VALUE'.
ENDIF.
endmethod.
Best regards,
Vishnu Tallapragada -
Hi ALL,
i have implenented LMR1M001---- EXIT_SAPLMRMP_010 user exit, but while miro it does not hit expression:
I put break-point in EXIT_SAPLMRMP_010- ZXM08U16.
I have created project in following way.
In tcode CMOD create project ZMIRO.
In enhancement assigment create LMR1M001.
In exit EXIT_SAPLMRMP_010-ZXM08U16.
I write code.
and activated both project and include.
and i set debug mode active.
But while running miro. it does not hit:
In miro i am doing following operation.
select subsequent debit.
In Basic data tab i insert
date.
In Detail tab i insert Un
planned delevery cose
Insert
Purchase order no.
And press Enter.
After Pressing
enter, It exutue directly without calling user exit.
Please help me,
Thanks,Hi,
May be this exit is not called for your scenario or the condition to trigger that exit may not have met.
Just activate your SQL Trace and then run MIRO. Just check in the tace log whether your exit is called. Else you may use another one.
Regards,
Renjith Michael. -
User exit sales order change (VA02)
Hi
For certain users , field shipping conditions VSBED (Header) needs to be in display mode only in T-code Va02
i am creating a security object and that will be assigned to those user roles.
I need user exit which can be used to trigger this change ( executing security object)
SriHi Please check these
Userexit
SDTRM001 Reschedule schedule lines without a new ATP check
V60F0001 SD Billing plan (customer enhancement) diff. to billing plan
V46H0001 SD Customer functions for resource-related billing
V45W0001 SD Service Management: Forward Contract Data to Item
V45S0004 Effectivity type in sales order
V45S0003 MRP-relevance for incomplete configuration
V45S0001 Update sales document from configuration
V45P0001 SD customer function for cross-company code sales
V45L0001 SD component supplier processing (customer enhancements)
V45E0002 Data transfer in procurement elements (PRreq., assembly)
V45E0001 Update the purchase order from the sales order
V45A0004 Copy packing proposal
V45A0003 Collector for customer function modulpool MV45A
V45A0002 Predefine sold-to party in sales document
V45A0001 Determine alternative materials for product selection
Business Add-in
BADI_SD_SCH_GETWAGFZ Scheduling Agreement: Read WAGFZ from S073
BADI_SD_V46H0001 SD Customer functions for resource-related billing -
Hello
Questions
Is there any userexit to use if i need to add data to controlrecord edi_dc40 in idoc orders03 BEFORE the idoc creates ?
Heres the process
A customer who runs sap sends one orderidoc to my client via ftp
this must be handled via fm EDI_DATA_INCOMING to create an order
to have this process to work i have to add data to controlrecord edi_dc40 for idoctype orders03 because information is missing
Is there a user exit somewhere i can use to add / change data in the control record in the infile before the idoc is created. ?
hope you understand my issue
shHi,
You can try to code in CALL CUSTOMER-FUNCTION '007'.
As this is the intial poit of the processing.
Regards,
sasi -
USER-EXIT - sales order, credit block
Moderator message: moved to correct forum. In future please use meaningful subject.
my requiremnet is, Delivery for an sales order should be created even if it is a credit block i.e even the credit check is unsuccessful the order should be deliverd when we deliver the order from salesdocument->deliver.
i need a user-exit for this to put this check.
can ne one help me.
regards,
pavan,Hi,
According to Std SAP if in case credit mgmt is activated system will check for credit limit for that customer before delivery.You will be trying to change the std scenario which is not advisable.
However,
Try user exit MV45AFZZ & in that
FORM USEREXIT_SAVE_DOCUMENT_PREPARE.
Also check other exits related to delivery & credit mgmt from
SPRO->Sales & Distr-> System Modifications->User Exits
and check out the documentation part next to each exit in that category.
Regards,
Amit -
New include proram -user exit- sales order
hi
i have to create a new screen which has to be displayed as a pop up
from the user exit "<u>userexit_save_document_prepare"</u> which is present in MV45AFZZ
the processing logic for the screen should be written in include program which is to be included in the specified userexit.
the include program which i created while syntax checking shows
"include <u>prg-name</u> is not accesible".
why this is occuring.
Another question is whether can i write the modules for pbo,pai and the subroutines i.e form & end-form all in the include program which iam creating.
It is showing incorrect nesting. write end-form for the form before moduele.
whether i have to write PBO,PAI,subroutines in independent include programs.
Please give reply ASAP.in that case then
call like this
perform check (in program).
<b>what i am thinking is THIS program in Update Mode may be bcos of that.</b>
Regards
prabhu
Message was edited by:
Prabhu Peram -
User-Exit-- Notification & order
Hi all.
Notification with order --> IW51 transaction
for eg.
i am creating notification in iw51 with some 5 items. ven i am click the sales orders button which is @ iw51. what are the items found in notification is not copied to order, so i am again adding the items manually in order .
so what i need is , i need the user-exits r anytin to solve the problem
my probelm is
if i create notification with 5 items in IW51 transaction, ven i click the order button which is @ notification, all the items which is at notification (here v have 5 items in notification),that has to copy to order also..
again again, i dont want to add all the things in which is @ notification..
Points vil be rewarded
apart from this exit, i dnt think, this belowed exit worked out.
IWO10026
IWO10027
IWOC0001
IWOC0002
IWOC0003
IWOC0004Hi,
I found the exit . Its EXIT_SAPLCOIH_009. The warning message is showing up now.
Regards,
Dikshitha -
User-Exits-Notification & Order
Hi all.
Notification with order --> IW51 transaction
for eg.
i am creating notification in iw51 with some 5 items. ven i am click the sales orders button which is @ iw51. what are the items found in notification is not copied to order, so i am again adding the items manually in order .
so what i need is , i need the user-exits r anytin to solve the problem
my probelm is
if i create notification with 5 items in IW51 transaction, ven i click the order button which is @ notification, all the items which is at notification (here v have 5 items in notification),that has to copy to order also..
again again, i dont want to add all the things in which is @ notification..
be clear :
what ever items @ notification, that should be copied to Order.
that all.
Points vil be rewarded
APart from this exit , i want, i dnt think, this vil be useful
IWO10026
IWO10027
IWOC0001
IWOC0002
IWOC0003
IWOC0004Hi Shiva
Kindly let me know which field or internal table i can capture the user status value in the exit.I put the break point in exit and not able to find the checked user status value.
Thanks
Maybe you are looking for
-
Duplicate payment and download failure
Hello, I tried to buy a software two days ago (and yes, I already sent a communication about it to Nokia through the normal way, no answer) but couldn't. I tried to finish the payment twice, and both times it ended in failure (i never could start the
-
Double Byte Characters in the URL
Hi I am working on a sample code that uploads and file and lists the file after upload as a link. Users can download files by right clicking on the filename(link) and use the browser's options to download the file. I am having problems with files tha
-
Pin connector for front headphone ja
The front headphone jack cable connection on my Dell 4600 is incompatible with my new Xtreme Gamer soundcard's male pin connection. Can anyone tell me where to find the correct female pin connector, and how do I know which leads go to which pin slots
-
Safari make and error every time i open. Only for second restricted user
Hi, i have a question, i try to don't disturb, but I have a trouble. Lion 10.7.5 and Safari 6.01. Only for second restricted user i have this error every time i open safari. Safari ack to me to ri-open windows or not, but make me error Many thanks gi
-
Hi All, In our business scenario credit check is activated Next Credit review date. The next credit review date is stored in the credit data in the customer master record. Where and how to see the credit review date in Customer master? could you plea