MIRO - User exit or BADI
Hi frnds,
i need to pass default values in MIRO transaction.
i have found MRM_HEADER_DEFAULT Badi and LMR1M001 user exit, for this. but i am not able to pass the values here. can u help on this? or can u give any userexist for this?
Badi Code:
I_RBKPV-WAERS = 'INR'.
I_RBKPV-BUPLA = '1000'.
I_RBKPV-SECCO = '1000'.
User Exit Code:
the same above code i have used in EXIT_SAPLMR1M_003.
Thanks in advance.
Points will be rewarded for helpful answers.
Regards,
Balu
Hi,
Have you passed the values that you want to set to the export parameters in the BAdI:
E_BLART Document Type
E_BKTXT Document Header Text
E_XBLNR Reference Document Number
E_BLDAT Document Date in Document
E_REINDAT Invoice Receipt Date
E_XBNK Planned Delivery Costs Indicator
E_XWARE Goods Invoice/Service Indicator
In the BAdI source code you must pass values to these parameters that you want to set.If you have done this and still you are not getting the desired result then can you send the source code.
Hope this helps.
Pravat
<i>*Reward points if helpful</i>
Similar Messages
-
Hi all,
How can i control MIRO referans field during saving Vendor Invoices? What is the name of User Exit or BADI name?
Best regards,
Munur EBCIOGLUSE18 > INVOICE_UPDATE >
based in ur requirement you can use:
Methods:
CHANGE_AT_SAVE Invoice Document at Save
CHANGE_BEFORE_UPDATE Invoice Document Before Update
CHANGE_IN_UPDATE Invoice Document During Update -
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 -
USER EXIT or BADI for Vendor field in MIRO
Hi Experts,
In MIRO transaction vendor field gets defaulted from Purchase Order. So my requirement is to changes that vendor with alternate payee.
To <u>replace the vendor with alternate payee</u> I need the <b>USER EXIT or BADI</b>, kindly help me on this will be useful for us.
Thanks in Advance.
SAP ConsultantTransaction Code - MIGO Goods Movement
Exit Name Description
MBCF0002 Customer function exit: Segment text in material do
MBCF0005 Material document item for goods receipt/issue slip
MBCF0006 Customer function for WBS element
MBCF0007 Customer function exit: Updating a reservation
MBCF0009 Filling the storage location field
MBCF0010 Customer exit: Create reservation BAPI_RESERVATION_
MBCF0011 Read from RESB and RKPF for print list in MB26
MB_CF001 Customer Function Exit in the Case of Updating a Ma
No of Exits: 8
BAPI-step by step procedure
http://www.sapgenie.com/abap/bapi/example.htm
list of all BAPI's
http://www.planetsap.com/LIST_ALL_BAPIs.htm
Rewards if useful.................
Minal -
User Exit or BADI used to block the payment in MIRO
Hi all,
Is there any user exit or BADI to block the payment in MIRO . please give me in detail with all methods used.
Thanks
babucan anybody give me any answer. thanks.
-
User exit or BAdI for MIRO(before save)
Hi all,
My requirement is for tcode MIRO to change the table control data, 'amount' field in po reference tab for drseg as soon as the user hits 'enter' after putting the po number.
plz suggest if there is any user exit or badi to achieve the same.
Thanks n regards,
Mukesh YadavHi,
Check the following.
<exit farm removed by moderator>
Moderator message: please reply with specific information only.
Edited by: Thomas Zloch on Jun 3, 2011 10:20 AM -
User Exit or BADI for MIRO after save
Hi
I want to show a message in MIRO once the invoice document is create but I am unable to find a user exit or BADI after save of the MIRO transaction.
Please guide me in this aspect.
Regardstry to run the below codes in a new program,it can help you to find all user exits of a t-code:
TABLES : tstc, tadir, modsapt, modact, trdir, tfdir, enlfdir.
TABLES : tstct.
DATA : jtab LIKE tadir OCCURS 0 WITH HEADER LINE.
DATA : field1(30).
DATA : v_devclass LIKE tadir-devclass.
PARAMETERS : p_tcode LIKE tstc-tcode OBLIGATORY.
SELECT SINGLE * FROM tstc WHERE tcode EQ p_tcode.
IF sy-subrc EQ 0.
SELECT SINGLE * FROM tadir WHERE pgmid = 'R3TR'
AND object = 'PROG'
AND obj_name = tstc-pgmna.
MOVE : tadir-devclass TO v_devclass.
IF sy-subrc NE 0.
SELECT SINGLE * FROM trdir WHERE name = tstc-pgmna.
IF trdir-subc EQ 'F'.
SELECT SINGLE * FROM tfdir WHERE pname = tstc-pgmna.
SELECT SINGLE * FROM enlfdir WHERE funcname =
tfdir-funcname.
SELECT SINGLE * FROM tadir WHERE pgmid = 'R3TR'
AND object = 'FUGR'
AND obj_name EQ enlfdir-area.
MOVE : tadir-devclass TO v_devclass.
ENDIF.
ENDIF.
SELECT * FROM tadir INTO TABLE jtab
WHERE pgmid = 'R3TR'
AND object = 'SMOD'
AND devclass = v_devclass.
SELECT SINGLE * FROM tstct WHERE sprsl EQ sy-langu AND
tcode EQ p_tcode.
FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
WRITE:/(19) 'Transaction Code - ',
20(20) p_tcode,
45(50) tstct-ttext.
SKIP.
IF NOT jtab[] IS INITIAL.
WRITE:/(95) sy-uline.
FORMAT COLOR COL_HEADING INTENSIFIED ON.
WRITE:/1 sy-vline,
2 'Exit Name',
21 sy-vline ,
22 'Description',
95 sy-vline.
WRITE:/(95) sy-uline.
LOOP AT jtab.
SELECT SINGLE * FROM modsapt
WHERE sprsl = sy-langu AND
name = jtab-obj_name.
FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
WRITE:/1 sy-vline,
2 jtab-obj_name HOTSPOT ON,
21 sy-vline ,
22 modsapt-modtext,
95 sy-vline.
ENDLOOP.
WRITE:/(95) sy-uline.
DESCRIBE TABLE jtab.
SKIP.
FORMAT COLOR COL_TOTAL INTENSIFIED ON.
WRITE:/ 'No of Exits:' , sy-tfill.
ELSE.
FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
WRITE:/(95) 'No User Exit exists'.
ENDIF.
ELSE.
FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
WRITE:/(95) 'Transaction Code Does Not Exist'.
ENDIF.
AT LINE-SELECTION.
GET CURSOR FIELD field1.
CHECK field1(4) EQ 'JTAB'.
SET PARAMETER ID 'MON' FIELD sy-lisel+1(10).
CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN. -
HI
We have a special situation where SAP MIRO is proposing values for freight at MIRO which is in variance with freight clearing account values at GR stage. Is there some user exit or BADI that I can call to substitute the system proposed value with another value?
Or some exit or BADI to atleast give a warning message to users along the lines in such situation?
Sriram
Message was edited by:
Sriram ChundiHi,
Before you try using BADIs or user exits it is worth understanding why you think there is a problem?
This functionality is being used world wide and does not cause a problem for many other users?
Have you determined why it is using a different value at GR to Invoice receipt stage? The only situation that I can think of is for exchange rate differences if foreign currencies are being used.
If it is not a foreign currency and so the difference is not down to fluctuation exchange rates then the two values should be the same. (i.e the value posted to the clearing account at GR will equal the value proposed at MIRO stage).
So please can you check WHY there is a difference because it is probably working as it should.
As for using a different value via a user exit, where would that value come from? How woould you calculate it? The problem is that the whole MIRO has to balance exactly, if you manually (via a BADI or user exit) change a value there is a real danger of causing corruption, because the system is using the value it has calculated with a complex equation.
Steve B -
User Exit or BADI for payment block in MIRO
Hi all,
I need a User Exit or BADI for payment block in MIRO for line item. please help.
Thanks
babuHi,
Check the components in enhancement "LMR1M001".
Regards
Vinod -
Hi
I need add some validations to data entry in MIRO for send their respective error messages and stop data saving.
Does somebody knows some User Exit or Badi for make validations in MIRO ?
Regards
FrankHi,
you can use badi MRM_HEADER_CHECK. In order to put error message you can use function module
PROT_FILL.
* If there is any error do not allow posting
DATA: gt_errtab TYPE TABLE OF mrm_errprot,
gs_errtab TYPE mrm_errprot.
CONSTANTS: c_errprot(23) TYPE c VALUE '(SAPLMRMF)TAB_ERRPROT[]'.
FIELD-SYMBOLS: <fs_errprotj_dt> TYPE table.
ASSIGN (c_errprot) TO <fs_errprotj_dt>.
REFRESH gt_errtab[].
gt_errtab[] = <fs_errprotj_dt>[].
IF NOT gt_errtab[] IS INITIAL.
READ TABLE gt_errtab INTO gs_errtab WITH KEY msgty = 'E'.
IF sy-subrc = 0.
DATA: c_okqx(17) TYPE c VALUE '(SAPLMR1M)OK-CODE'.
FIELD-SYMBOLS: <fs_okqx> TYPE ANY.
ASSIGN (c_okqx) TO <fs_okqx>.
CASE <fs_okqx>.
WHEN 'BU'. "POST
* This is optional: you can either search for a particular message or
* do not allow any error message
* Here search for the message triggered in badi INVOICE UPDATE
READ TABLE gt_errtab INTO gs_errtab WITH KEY msgty = 'E'
msgid = 'ZXX' msgno = '030'.
IF sy-subrc = 0.
CLEAR <fs_okqx>.
MESSAGE s030(zxx). "While errors exist document will not be posted
ENDIF.
ENDCASE.
ENDIF.
ENDIF.
This is used to give error message in case before posting the document.
KR Jaideep, -
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 -
User Exit or BADI for F-43 Validations
Hi
I need to add some validations to F-43 tcode , the validations are over some header (company, currency..) and detail (postink key, account,..) data (BKPF and BSEG) and send the user the corresponding Z errors before save and generate the document.
Does somebody knows some user exit or Badi wich i can use to make F-43 data validations ?
Thanks
FrankHi Max
FI Validations was just my first option because i need to make this same validations in several creating tcodes like F-43, FB02 and MIRO, but in my validations i have about 14 messages errors depending of data and , if i do not make a mistake, in FI Validations there is only a message for step .
The point is in my validations i use data that i read according i'm going validating so if i use N steps , one step for each error message , i would have to repet the data read in each step.
Am i right, in FI Validations there is only a message for step and the message is the predefinded in the step itself ? or i can make severeal validations and send differents error messages in one same step ?
Thanks a lot
Frank -
User Exit or BADI on saving of Sales order cost estimate (CK51N)
Hi,
Can any one share with me what are the User Exit or BADI that gets triggered on saving of Sales order cost estimate (CK51N).
Regards,
BijayHi
Check the link
Need Enhancement Spot or BADI for transaction ck51n
Regards
Sanil -
F110 - Automatic Payment (User Exit, BTE, BADI)
I have requirement after generating payment document by F110 automatic payment. I need to send data to other system.
How to get all payment documents? Can I use a BTE, User Exit or BADI? Kindly help me.Hi ,
You can create a DMEE or genrate Idoc to another system .
If you want to send excel file then you can create a dmee file in transaction DMEE with same formt provided by bank/ another system .
many Thanks
Maybe you are looking for
-
IDOC to be generated after Rescheduling of a sale order
Dear Experts, Rescheduling of a sale order with separate message i.e. your sale order has been rescheduled for delivery from 10.11.09 to 15.11.2009, Sorry for the incontinence, Thank you.u201D Clarification : U can create SO in SAP with TC
-
Windows 7 Pro 64-bit - backup processes?
I just moved one of our editing systems from CS4 on 64-bit Vista Business to CS5 on 64-bit Windows 7 Pro. I'm re-visiting how we do backups. Currently we image C: drives regularly using Acronis and actually keep imaged C: drive spares ready to swap
-
Unsuccessful Apple TV (3rd generation) SW update
Hi I already bought an apple TV (3rd generation),after connected it I checked it's current SW version and founded it's running an older IOS version 6.1.1 and when i an the update process over wireless, it downloaded the latest SW but it failed to com
-
How to make pricing field as output only in sales order header and item lev
Hi , I want to make the field PRICING DATE as output only both at header and item level. How can i do pls guide me in detail. Regards Sunaina
-
Unable to alter leading is weird
I am unable to alter leading in any text in a document. I have trashed preferences and checked all settings. I can not adjust leading downwards but when I try above 12ponit it will adjust upwards. The weird thing is it works okay on the pasteboard.