Get document number in user exit EXIT_SAPLMRMC_001 (MIRO)
Hi, i'm implementing exit MM08R002, FM EXIT_SAPLMRMC_001(changing tolerance check). In this FM I need to get document number that the user is modifying. But in the import parameters i don't have the document number.
I have found FM (MRM_PROT_GET), where i can get messages from the transaction MIRO and this FM doesn´t need the document number. I'm looking for a FM like this, but to get document number that the user is modifying.
Thanks in advance.
Hi,
You can get that document no. using FIELD-SYMBOLS. Try these steps.
1. Press F1, where the user is modifying that document number. Get Program name, screen field structure from that.
2. declare one variable as field as field-symbols, in your exit.
FIELD-SYMBOLS: <lv_var> type any.
Assign '((SAP45MMA)BSIK-BELNR) to <lv_var>.
Here SAP45MMA is Program Name And BSIK-BELNR is field structure of your program screen.
in <lv_var> you will get the value, which user has modified.
Regards
Vishnu Gupta
Similar Messages
-
How to get document number in user created form?
Hi All,
I am creating a form.In that i want to maintain Document number for each form(each order)(like in sales order form (Document No. field)).
Please help me to maintain the document number either manually or by system generated.If u have code example please send.
I tried for Manage series and all.But i couldn't get.
Expecting ur reply soon
Thanks
V.RangarajanHi V.Rangarajan,
I haven't used this code yet, but herewith an extract from the SBO SDK Training material which I think is related to your problem.
// create a combo box for the series oItem=oForm.Items.Add("SeriesName",SAPbouiCOM.BoFormItemTypes.it_COMBO_BOX)
// fill the combo with relevant series
oComboBox.ValidValues.FillWithSeries(True, False, 0) new method
oComboBox.DataBind.SetBound(True, "@MATH", "Series")
// edit text to hold the numbering of the series
oItem = oForm.Items.Add("SrValue", SAPbouiCOM.BoFormItemTypes.it_EDIT)
oEditText.DataBind.SetBound(True, "@MATH", "DocNum")
// get the next series number in add mode
lNum = oForm.BusinessObject.GetNextSeriesNumber(CLng(str))
oEditText = oForm.Items.Item("SrValue").Specific()
oEditText.String = lNum
I don't know if this will solve your problem, but hopefully it will put you on the right track.
Hope it helps,
Adele -
Hi,
I am looking for a user exit in MIRO that allows me to stop the transaction before saving, retrieve the PO associated to the invoice and check against a customized workflow status before saving.
I found MRMN0001 that stops before saving but it does not give me the PO number associated with the invoice being processed.
Any suggestion?
MAC.Hi Nitin,
Thank you for your answer.
I tried it using component EXIT_SAPLMR1M_003.
My code only has a break point if it is my user id, to test where it stops and the data I have access, but it did not stop.
The note in the documentation says that it is obsolete since 4.5 and it is not supported anymore, but I guess we can still use it right?
Any idea why it may not stop with MIGO transaction?
Monica. -
Manual document number in User-Defined Object
Hi Experts,
I have a user-defined object of document type. I am trying to post a document using the General Service. However, I cannot assign manual document number. There is no handwritten property available. Is it possible to assign manual document number in user-defined objects using the DI API?
Thanks.
MelvinHi,
This issue has been resolved. For the benefit of those who will be encountering this error, it was resolved by manually assigning the Handwrtten field to 'Y'. Here is the code fragment:
shipmentHeader.SetProperty("Handwrtten", 'Y')'; -
Where can I get more information about User exits?
Where can I get more information about user exits,their related Tables and the source code of an User exit?
Thankswould you please give the Internet addresses of these places?
Mostly I want to get the source of some user exits in Oracle Application.
If you know how and where can I get these sources,I'll appriciate if you let me know.
Regards -
User exit for MIRO after pressing ENTER
Hello,
Is there a user exit in MIRO after entering PO, Invoice date and Reference and pressing ENTER?
I want to popup a message that relates to vendor data that does not appear in the screen
Thanks,
MosheHi,
BADI
class_name CL_EX_PPA_CUST_BADI
exit_name PPA_CUST_BADI
class_name CL_EX_FAGL_PERIOD_CHECK
exit_name FAGL_PERIOD_CHECK
class_name CL_EX_MRM_VARIANCE_TYPE
exit_name MRM_VARIANCE_TYPE
class_name CL_EX_MRM_HEADER_CHECK
exit_name MRM_HEADER_CHECK
Check which one is best.
Regards,
Clemens -
Getting the number of user into MRTG
Hi,
i try to get the number of users on aironet 1100 with the latest version 12.2(13)JA1.
snmpwalk with oid .1.3.6.1.4.1.522.3.6.1.1.1.11.2
the device did'nt answer to this string.
can you help me
10xo.k - it works now
the problem was the ap ios version
i downgrade it to lower version and it works. -
User exit for MIRO while saving
Hi
I need to validate the Company code in Txn MIRO with the company code of the PO that's been processed
Is there any user-exit which gets triggered while saving the document in txn MIRO.
I know the following BADI INVOICE_UPDATE gets triggered while saving the documents, as i am new to the BADI functionality, i am unable to proceed further with the implementation of it in the system.
Can some one let me know how to implement a BADI.
CheersHi Sushis ,
check this link abt badi
http://help.sap.com/saphelp_nw04/helpdata/en/ee/a1d548892b11d295d60000e82de14a/content.htm
and u have to choose this method is useful
<b>CHANGE_AT_SAVE Invoice Document at Save
CHANGE_BEFORE_UPDATE Invoice Document Before Update
CHANGE_IN_UPDATE Invoice Document During Update</b>
let me know if u required more info.
regards
Prabhu -
User Exit for MIRO versio ECC 5.0
Business Process u2013
STAGE 1: PO creation and release
STAGE 2: GRN
Material comes in Quality inspection stock
STAGE 3: Quality test and approval - Material shifts to Unrestricted use
Quality test and Rejection - Material shifts to Blocked stock.
STAGE 4: MIRO
regards
syamahi
here it is
STAGE 1: PO creation and release
PPCO0001 Application development: PP orders
PPCO0003 Check exit for order changes from sales order
PPCO0004 Sort and processing exit: Mass processing orders
PPCO0007 Exit when saving production order
PPCO0008 Enhancement in the adding and changing of components
PPCO0009 Enhancement in goods movements for
prod.process order
PPCO0010 Enhancement in make-to-order production - Unit of measu
PPCO0012 Production Order: Display/Change Order Header Data
PPCO0013 Change priorities of selection crit. for batch determin
PPCO0015 Additional check for document links from BOMs
PPCO0016 Additional check for document links from master data
PPCO0017 Additional check for online processing of document link
PPCO0018 Check for changes to production order header
PPCO0019 Checks for changes to order operations
PPCO0021 Release Control for Automatic Batch Determination
PPCO0022 Determination of Production Memo
PPCO0023 Checks Changes to Order Components
STATTEXT Modification exit for formatting status text lines.
STAGE 4: 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
LMR1M005 Logistics Inv. Verification: Release Parked Doc. for Po
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 Verifica
Cheers
Snehi -
Hi All,
Is there any user exit / field exit which gets activated when invoice party value ( in the detail tab of transaction MIRO ) gets filled (either manually or from PO ). The requirement is to display a warning message, once the invoice party is filled, if its a particular supplier.
Thanks in Advance.
Regards,
KiranHi,
Check the following user exits available 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
Rgds, -
Add FI document number to message M8 060 (MIRO)?
Hi
We have a user request to have the FI document no. added to the message when posting an invoice. The standard message shows only the MM document.
The user claims that it took 7 minutes to change it at her previous employer, but I can't see any way to change this without defining a new message and changing the code used by MIRO to look up the document number and issue the new message instead of the standard one. This would clearly be overkill.
Is there an easier way?Just follow these steps:
1) Transaction "su3"
2) Pane "Parameters"
3) Add a new line with these values:
"Parameter ID": ivfidisplay
"Parameter value": X
If you need to do this for another user, you must use transaction su01 instead.
The parameter was in our old 4.6c and is in our new ECC 6.0, so unless you are on a very old version I'm pretty sure you have it as well:-) -
User exit during MIRO with PO reference data
I have maintained dates Validity Star and End dates in Purchase order header data. My client wants that during MIRO system will throw error message if the posting date of IV crosses the Validity end date maintained in PO.
Is there any user exit for this so that during giving PO reference system will look for this data in PO and throw message or during simulate or post.
Regards,
SumanHello Suman,
Please follow this steps to get the list of Userexits for the TCODE MIRO read there short description to get the appropriate EXIT.
Steps.
1. Goto the Tcode
2. System-> Status.
3. Copy the program name, find the package for the program.
4. Go to SMOD (tccode) press F4 -> Click on "Information System" Push Button->
Enter the Package name-> and press the enter button.
5. Now you get the list of Userexits. Need to select one by looking into its short description.
Hope this solves your issue,
Cheers,
Suvendu -
Hi friends
My requirement is to do some validation in MIRO when user will press the save button. For this I am using EXIT_SAPLMRMP_010 fm exit in LMR1M001enhancement. But the problem is when I am trying to validate that and show some messages it is not showing my error message and processing is still going on. Please suggest me how to show that message and stop the processing on that point. I am using ECC 5.0 version and already checked the BADI INVOICE_UPDATE but it is also not working.
regards
shiba duttaHi,
Put the breakpoint in each of the userexit that are provided and check whether processing is going at that step.
If it is so then put the logic in that userexit.
Exit Name Description
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
Regards,
Sonika -
Hi,
In MIRO FI entry passed
Vendor Cr.
GRIR Clearing Dr.
Now We are having a scenario where above entries should be
GL code Cr.
GRIR Clearing Dr.
Now it should be automatic that when we click Post that Vendor should automatic substituted with GL.
Please help me with user exits/badi/enhancement if any
Regards
NikeHi,
You can use the BAdI "INVOICE_UPDATE" having below methods.
CHANGE_AT_SAVE Invoice Document at Save
CHANGE_BEFORE_UPDATE Invoice Document Before Update
CHANGE_IN_UPDATE Invoice Document During Update
Thanks
Gangadhar -
Hello All,
Our requirement is to change line item data in the MIRO before save. It would be a great help if you can provide any BAdI or User Exits.
Thanks
AnuragHave a look at below code
http://www.erpgenie.com/sap/abap/code/abap26.htm
which gives the list of exits for a tcode.
Also have a look at below code which lists the BADI for particular tcode.
*& Report ZNEGI16 *
REPORT ZNEGI16 .
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.
I hope this helps.
Best Regards,
Vibha
*Please mark all the helpful answers
Maybe you are looking for
-
Slim "Id "x" respawning too fast: disabled for 5 minutes"
Hello Everyone, Slim "Id "x" respawning too fast: disabled for 5 minutes" This error drives my crazy I changed to slim after the recent change of gdm. Since I changed, when I boot my PC this error always occurs. Only solution so far is either to wait
-
My granddaughter set my ipad2 up with her name and apple I'd thinking she would change it later to cry info so that I could use iTunes for purchases,etc. it comes up with her name and asks for her password and I can't change it. Can anyone help a n
-
USB Sync stopping Windows 7 upgrade
When I purchased my Compaq CQ5110F (Vista) it was just immediately before Windows 7 came out but my previous one crashed so I couldn't wait and was given a Windows 7 upgrade package. As Vista suited me and I've been working with it until now ok but d
-
BlackBerry Desktop Software 6 doesn't go along with Windows 7 ?
I tried to install applications using BlackBerry Desktop Software 6 on my Windows 7 laptop, a weird thing happened: after selected applications to install and hit apply button, the software wouldn't go downloading or do anything, just went back right
-
Very annoying music problem with slideshow
I have been trying the whole afternoon to solve a perplexing problem when trying to set up a slideshow: Initial problem: When selecting one or more songs, using various methods such as directly selecting the song, using a playlist from iTunes or a "c