UserExit for MIRO transaction
Dear All,
I have to Change the Base Line Date in MIRO transaction with the GR Posting Date while booking the Incoming Invoice..i.e BSIK-ZFBDT date i have to change it with MKPF-BLDAT...
I have tried all of the UserExits for MIRO transactions. but did not work...
Can any body tell me any alternate way.e.g BADI or something..
Regards,
Rushikesh
Have a look at below code which lists BADI for particular tcode. It might help you.
*& Report ZBADI *
REPORT zbadi .
TABLES : tstc,
tadir,
modsapt,
modact,
trdir,
tfdir,
enlfdir,
sxs_attrt ,
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,
p_pgmna LIKE tstc-pgmna .
DATA wa_tadir TYPE tadir.
START-OF-SELECTION.
IF NOT p_tcode IS INITIAL.
SELECT SINGLE * FROM tstc WHERE tcode EQ p_tcode.
ELSEIF NOT p_pgmna IS INITIAL.
tstc-pgmna = p_pgmna.
ENDIF.
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 IN ('SMOD', 'SXSD')
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:/(105) sy-uline.
FORMAT COLOR COL_HEADING INTENSIFIED ON.
Sorting the internal Table
SORT jtab BY object.
DATA : wf_txt(60) TYPE c,
wf_smod TYPE i ,
wf_badi TYPE i ,
wf_object2(30) TYPE c.
CLEAR : wf_smod, wf_badi , wf_object2.
Get the total SMOD.
LOOP AT jtab INTO wa_tadir.
AT FIRST.
FORMAT COLOR COL_HEADING INTENSIFIED ON.
WRITE:/1 sy-vline,
2 'Enhancement/ Business Add-in',
41 sy-vline ,
42 'Description',
105 sy-vline.
WRITE:/(105) sy-uline.
ENDAT.
CLEAR wf_txt.
AT NEW object.
IF wa_tadir-object = 'SMOD'.
wf_object2 = 'Enhancement' .
ELSEIF wa_tadir-object = 'SXSD'.
wf_object2 = ' Business Add-in'.
ENDIF.
FORMAT COLOR COL_GROUP INTENSIFIED ON.
WRITE:/1 sy-vline,
2 wf_object2,
105 sy-vline.
ENDAT.
CASE wa_tadir-object.
WHEN 'SMOD'.
wf_smod = wf_smod + 1.
SELECT SINGLE modtext INTO wf_txt
FROM modsapt
WHERE sprsl = sy-langu
AND name = wa_tadir-obj_name.
FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
WHEN 'SXSD'.
For BADis
wf_badi = wf_badi + 1 .
SELECT SINGLE text INTO wf_txt
FROM sxs_attrt
WHERE sprsl = sy-langu
AND exit_name = wa_tadir-obj_name.
FORMAT COLOR COL_NORMAL INTENSIFIED ON.
ENDCASE.
WRITE:/1 sy-vline,
2 wa_tadir-obj_name HOTSPOT ON,
41 sy-vline ,
42 wf_txt,
105 sy-vline.
AT END OF object.
WRITE : /(105) sy-uline.
ENDAT.
ENDLOOP.
WRITE:/(105) sy-uline.
SKIP.
FORMAT COLOR COL_TOTAL INTENSIFIED ON.
WRITE:/ 'No.of Exits:' , wf_smod.
WRITE:/ 'No.of BADis:' , wf_badi.
ELSE.
FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
WRITE:/(105) 'No userexits or BADis exist'.
ENDIF.
ELSE.
FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
WRITE:/(105) 'Transaction does not exist'.
ENDIF.
AT LINE-SELECTION.
DATA : wf_object TYPE tadir-object.
CLEAR wf_object.
GET CURSOR FIELD field1.
CHECK field1(8) EQ 'WA_TADIR'.
READ TABLE jtab WITH KEY obj_name = sy-lisel+1(20).
MOVE jtab-object TO wf_object.
CASE wf_object.
WHEN 'SMOD'.
SET PARAMETER ID 'MON' FIELD sy-lisel+1(10).
CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.
WHEN 'SXSD'.
SET PARAMETER ID 'EXN' FIELD sy-lisel+1(20).
CALL TRANSACTION 'SE18' AND SKIP FIRST SCREEN.
ENDCASE.
Best Regards,
Vibha
*Please mark all the helpful answers
Similar Messages
-
How to check what are the enhancement done for MIRO transaction
Hi Experts,
Please help me out, how to check what are the enhancement done for MIRO transaction.
Thanks in advance.
Thanks,
BasanagoudaHi
Use the BADI
Please refer these documents: [Enhancements required in MIGO|Enhancements required in MIGO; and
[Enhancement in MIGO for Goods Movement|Enhancement in MIGO for Goods Movement;
Hope this helps!!
Regards
Vijay -
Regarding Email address - Userexit for VF02 transaction
Once you enter a VF02 transaction, If you goto header partners and double click on the partner number it would take you to the customer master data screen in which we have an option for Email address this is in Display mode my requirement demands to make it Visible so that the enduser would enter the email address which finally reflects in the printoutput.
I would like to know the correct exit for resolving this issue
Any suggestions are appreciated........................
Naveen.Hi Naveen,
Check all Exits for VF02
Transaction Code - VF02 Change Billing Document
Exit Name Description
SDVFX007 User exit: Billing plan during transfer to Accounting
SDVFX008 User exit: Processing of transfer structures SD-FI
SDVFX009 Billing doc. processing KIDONO (payment reference number)
SDVFX010 User exit item table for the customer lines
SDVFX011 Userexit for the komkcv- and kompcv-structures
V05I0001 User exits for billing index
V05N0001 User Exits for Printing Billing Docs. using POR Procedure
V60A0001 Customer functions in the billing document
V60P0001 Data provision for additional fields for display in lists
V61A0001 Customer enhancement: Pricing
No of Exits: 10
Rewards if useful...............
Minal -
Subsitution Exit for MIRO transaction
Dear Sir,
We are required to write a subsituion-exit for MIRO , so that during the MIRO Assignment field can be populated with the PO-Number .
We request SAP experts to kindly guide us about the code to be written for such a subsitution-exit . We willl be highly greatful for the help please .
We assure to give full points for the suggested solution pl .
Regards
B MittalHi,
in enhancement LMR1M001 if you read the documentation of component *EXIT_SAPLMR1M_003 it says:
As of Release 4.6A, transaction MR1M is no longer supported. Therefore this customer exit and its functions are obsolete.
Being this the case i would consider using badi BADI_FDCB_SUBBAS04 (if it´s not already implemented).
If you have a look at badi BADI_FDCB_SUBBAS01 in se18 you´ll see that there is an example implementation class named CL_EXM_IM_BADI_FDCB_SUBBAS01 .
Read carefully as well the documentation of BADI_FDCB_SUBBAS01.
Best regards. -
SAP script for MIRO transaction
Hi,
Please give me the standard sap script available for MIRO transactionHi,
Arun: The program name is RM08NAST
The form name is MR_PRINT
You can get the details by going thru' NACE transaction or TNAPR Table.
Reddy: Please understand MIRO is for invoice posting. As you said its not for GR, PO or any other blah blah.
Arun, hope its enough. Feel free to revert back.
--Ragu -
Outbound IDOC for MIRO transaction
Hi Experts,
What would be steps innolved in trigerring an (outbound ) IDOC when an inovice is posted using MIRO transaction.
How can I send the idoc automatically in the outbound ALE layer. Is theres any message type to set up or any program to be execute.
Basically certain information in the Invoice has to be captured in the IDOC.
RegardsHi Raghvendra,
I my scenario, i will be creating the inovice in SAP manually using t.code MIRO and once the invoice is posted i need to capture the details in IDOC. The EDI customization would come into picture for receiving invoices through EDI.
Regards -
FI Number ranges for MIRO transaction
Dear All,
My client has requirement for same number for MIRO as that is in FI.
Kindly suggestYou can do this by inserting the same number range in your FI document type linked to LIV and make this range external (see OSS 203522). However as one of the other experts pointed out that in FI number range is at company code level but at client level in MM so gaps may occur. This is a common problem since 4.6 when SAP introduced two separate number ranges in LIV and FI and there are many OSS notes on the subject. Having the same number is part of the Release Notes on 4.6 please check there on the method.
I used note 634744 to solve this
Hope this helps
Siva -
USEREXIT FOR vf01 TRANSACTION IN INTER COMpany billing
Hi guys ,
Could you please suggest a closest userexit for Intercompany billing where the requirement is It should take iv billing type automatically before pgi is done.one sap note is applied which is allowing billing to take place with out pgi ,but we have to select manually ,the requirement is it should propose automatically.Please help.
Regards
vinod sunkariHi,
Check below link.
https://wiki.sdn.sap.com/wiki/display/ERPLO/SDUserexits
Best regards,
Anupa -
User Exit/BADI's for MIRO Transaction
Hi All,
I need to modify the header text field in DETAILS Tab of MIRO transaction. This text needs to be populated based on the line item conditions. I am not able to find any proper BADI or user exit where in i can get both header and line items details so that i can modify Header Text Field.
Please help me out in same.
Regards,
JayantHi,
in badi MRM_HEADER_CHECK try something like:
* Get line item conditions
CONSTANTS: c_ydrseg(18) TYPE c VALUE '(SAPLMR1M)YDRSEG[]'.
DATA: wa_drseg TYPE mmcr_drseg.
CLEAR wa_drseg.
FIELD-SYMBOLS: <fs_ydrseg> TYPE table.
ASSIGN (c_ydrseg) TO <fs_ydrseg>.
DATA: lt_ydrseg TYPE STANDARD TABLE OF t_mmcr_drseg.
lt_ydrseg[] = <fs_ydrseg>.
IF NOT lt_dyrseg[] IS INITIAL.
LOOP AT lt_ydrseg INTO wa_drseg.
IF wa_drseg-mwskz = 'WHATEVER'. "HERE GOES YOUR CONDITION
* Modify Header text
CONSTANTS: c_bktxt(21) TYPE c VALUE '(SAPLMR1M)RBKPV-BKTXT'.
FIELD-SYMBOLS: <fs_bktxt> TYPE ANY.
ASSIGN (c_bktxt) TO <fs_bktxt>.
<fs_bktxt> = 'HERE_GOES_YOUR_VALUE'.
ENDIF.
ENDLOOP.
ENDIF.
Best regards. -
Regarding userexit for pa40 transaction for validating position and persona
when iam entering the position and personal area in pa40 transaction , this position is should matched with personal area of the pa13 screen,and that personal area should match with pa40 presoanl area, for this requiremetnt which userexit is suitable.
please any one worked on this type of requirement please help me on this.k
-
Standard variable of PO for MIRO Transaction
hi,
durinf transaction MIRO, when we hit pricing procedures then i want the standard variable for PO(ekko/ekpo) flowing in the pricing procedure so that i can use it in pricing procedure.
Thanks,
GauravHi gibi,
You can check both PO price and changed invoice value in ME80FN report.
1.Execute ME80FN with relevant PO number.
2.On the ALV icon list last icon u can change your view, change it to "Purchase Order History"
3.Then you wll get the PO history.
4.Now click "Change Layout" icon and add "Invoice Value in FC" field in to your display list.
5. Now you can compare your PO price - "Amount" with "Invoice value in FC"
Hope this will helpful.
thanks
Sandun -
I need to automaticaly change Payment conditions depending on some conditions on item level. There is algorithm which we got from our customer for this calculation. So, i need userexit or badi where I can implement enhancement.
Hello,
Following user exits are present in MIRO
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
No of Exits: 10
Saurabh -
Hello Experts,
I need to capture the Serial Number during invoice entry and stored in a custom table. It is key to note that an invoice line item with a multiple quantity will require multiple serial numbers.
I am looking for a BADI to enhance the screen to provide a input option for Serial Numbers.
I figure out a BADI MRM_ITEM_CUSTFIELDS but not sure this is the best suitable one or not.
Please provide your input.Abdul,
General instructions for finding BAdI calls and when they happen:
Go to transaction SE80 in a client where you can experiment with the transaction that you are interested in.
Go to class CL_EXITHANDLER. [Select Class / Interface from the drop-down, and put CL_EXITHANDLER for the class.]
Go to method get_instance. [Press RETURN to ensure that the contents of the Object Name frame are for CL_EXITHANDLER. Expand the Methods node. Double-click on GET_INSTANCE.]
Insert a breakpoint just after the call to the method cl_exithandler=>get_class_name_by_interface.
Use the transaction in which you are BAdI-hunting.
Examine the contents of the field exit_name whenever the processing stops at the breakpoint. I have found a case where exit_name was an unknown field. Then class_name gave a good clue to the name of the BAdI.
Hope this helps,
John -
BADI or userexit for MIGO transaction
hi All,
I have a requirement to enhance the MIGO transaction subscreen 304.
In subscreen 304 there is only check box ITEM_OK.
In the MIGO at the bottom of the screen ,whenver we click on item_OK check box and press enter, in the line item it will automatically checks.
After the first check it has to get disabled in the screen.
I am trying to find the BADI for this..still trying
Please let me know how to achieve this functionality.Hi,
Try below BAdi's :
MB_MIGO_ITEM_BADI or
MB_MIGO_BADI
MB_DOCUMENT_BADI.
Also these will be of help furthur.
Enhancement/ Business Add-in Description
Enhancement
MB_CF001 Customer Function Exit in the Case of Updating a Mat. Doc.
MBCF0011 Read from RESB and RKPF for print list in MB26
MBCF0010 Customer exit: Create reservation BAPI_RESERVATION_CREATE1
MBCF0009 Filling the storage location field
MBCF0007 Customer function exit: Updating a reservation
MBCF0006 Customer function for WBS element
MBCF0005 Material document item for goods receipt/issue slip
MBCF0002 Customer function exit: Segment text in material doc. item
Business Add-in
MB_RESERVATION_BADI MB21/MB22: Check and Complete Dialog Data
MB_QUAN_CHECK_BADI BAdI: Item Data at Time of Quantity Check
MB_PHYSINV_INTERNAL Connection: Core Inventory and Retail AddOn
MB_MIGO_ITEM_BADI BAdI in MIGO for Changing Item Data
MB_MIGO_BADI BAdI in MIGO for External Detail Subscreens
MB_DOC_BADI_INTERNAL BAdIs when Creating a Material Document (SAP Internal)
MB_DOCUMENT_UPDATE BADI when updating material document: MSEG and MKPF
MB_DOCUMENT_BADI BAdIs when Creating a Material Document
MB_CIN_MM07MFB7_QTY Proposal of quantity from Excise invoice in GR
MB_CIN_MM07MFB7 BAdI for India Version exit in include MM07MFB7
MB_CIN_LMBMBU04 posting of gr
MB_CHECK_LINE_BADI BAdI: Check Line Before Copying to the Blocking Tables
ARC_MM_MATBEL_WRITE Check Add-On-Specific Data for MM_MATBEL
ARC_MM_MATBEL_CHECK Check Add-On-Specific Criteria for MM_MATBEL
hope this will help you.
Regards,
Kiran -
BADI or Userexit for MIRO and FB60 for displaying an error message
Hello,
Could you please let me know the BADI or User Exit validation Bank House field and displaying an error message in MIRO and FB60?
Thanks,
MdHi,
you can try with badi MRM_HEADER_CHECK.
in method HEADERDATA_CHECK you can do something like:
IF sy-tcode = 'FB60' OR sy-tcode = 'MIRO'.
IF I_RBKPV-HBKID = 'WHATEVER'.
* for the message in MIRO you can use this fm
DATA: gt_errtab0 TYPE TABLE OF mrm_errprot,
gs_errtab0 TYPE mrm_errprot.
CLEAR gs_errtab0.
gs_errtab0-msgty = 'E'.
gs_errtab0-msgid = 'ZXX'.
gs_errtab0-msgno = '030'.
gs_errtab0-source = 'Q'.
APPEND gs_errtab0 TO gt_errtab0.
CALL FUNCTION 'MRM_PROT_FILL'
TABLES
t_errprot = gt_errtab0.
ENDIF.
ENDIF.
Best regards.
Maybe you are looking for
-
I want to transfer my photos from the PC (windows explorer) to my Ipad. The problem is that a keep my photos in different categories and they are in one large folder and several subfolders (2 or 3 levels of subfolders).When I sent it to the Ipad, it
-
Problems submitting form with Adobe Reader X?
Our agency created a PDF fillable form, and recently three respondants using Adobe Reader X (on PCs) have contacted us to say that the submit button is not working and they are unable to save the contents of the form to a file on their computer. The
-
How to Send Purchase Order through EDI/IDOC.
Hi Experts, We are using SAP ECC.5. And intending to send the Purchase Order to Supplier through EDI/IDOC and Receive the Inbound Acknowledgement. Appreciate, if you could help me, the required Configuration details for outbound and inbound (PO & Ack
-
Como insertar marcos en dreamweaver CC
Marcos
-
I'd like to contribute to the "Stupid Question of the Day." Is there a way to convert a .pdf file back to its original Excel form using Acrobat 9.0, please? Go easy on me - first time poster.