USER EXIT in MIR7
Hi there. I've got such problem:
that in MIR7 there are 2 example documents:
700000001 - parked document
600000001 - posting document
I assume that 600000001 is generated from the 700000001
... and ...
line items texts of the 700000001 are kept in RBCO-SGTXT
whilst
line items texts of the 600000001 are kept in BSEG-SGTXT
And what I need to do is to modify MIR7 that parked document text (RBCO-SGTXT) will be moved to posting document text (BSEG-SGTXT)
I'm checking user exits in MIR7 but I think there is no dedicated user exit for such action.
But ...
I checked MIR7 in debugger and there is CALL CUSTOMER-FUNCTION '004' called every action in the screen. But now I've got a problem because I don't know how to catch the moment of saving document.
I'm thinking about checking the sy-ucomm. The button which post document has got BU function code assigned. But isn't it danger?
IF ( sy-ucomm EQ 'BU' ) .
... customer code
ENDIF .
There can be somewere in other sub-screens a button with the same function ocde which use could trigger some destructive action by calling customer code?
Maybe You have some suggestions? I'm really ambarassed about that topic.Greet.
I checked MIR7 in debugger and there is CALL CUSTOMER-FUNCTION '004' called every action in the screen. But now I've got a problem because I don't know when how to catch the moment of saving document.
I'm thinking about checking the sy-ucomm. The button which post document has got 'BU' function code assigned. But isn't it danger?
IF ( sy-ucomm EQ 'BU' ) .
... customer code
ENDIF .
There can be somewere in other sub-screens a button with the same function ocde which use could trigger some destructive action by calling customer code?
Maybe You have some suggestions? I'm really ambarassed about that topic.Greet.
Similar Messages
-
Find User Exit in MIR7 to validate Vendor info
When incoming invoice is being parked in transaction MIR7, I need to find user exit to add validation/warning if vendor has multiple PI partners in the vendor master. It has to happen when user types in PO number and hits enter key this is when vendor info is retrieved in top right corner of the screen.
Any suggestions/recommendations would be greatly appreciated.
G.B.It looks like function module MRM_HEADER_CHECK is called from fm MRM_INVOICE_CREATE during invoice creation. I tried to set break points there, but it does not seem to be executed when I need it.
I already know how to check for multiple PI partners ( table WYT3 ). What I need is to find a user exit in MIR7 with PO # available when user types in PO number and hits enter key and vendor info is retrieved in top right corner of the screen. I need something similar to routine USEREXIT_XKOMV_BEWERTEN_INIT in include RV61AFZB, but PO # is not available there. Any ideas?
Thanks in advance,
G.B. -
Hi all,
I need to implement a user exit for MIR7 similation . requirment is when user click on button simulate at the time of MIR7 the total amount of all line items should be displayed in popup or any small window. therefore any user is there for do that . and give some tips for inplement that. actualy i am new to user exits.
Thanks in advance
Jitendrahi,
You can use tcode 'smod' to navigate to one of these enchancement and choose the best EXIT Fm to do the calculation .
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
PS : to create the FM for this user exit , you can use tcode CMODE to create new project with the suitable enhancement and create the code for your calculation.
Thanks -
Hi Friends,
can i modify the field of the GSBER?
I have found the exit by tcode=se18 and the interface(AC_DOCUMENT) .
but parameters IM_DOCUMENT and EX_DOCUMENT is protected.
the code like this.
LOOP AT im_document-item ASSIGNING <fs6>.
<fs6>-GSBER = 'test'.
ENDLOOP.
return is the parameters is protected.
Can anyone give me a piece of advice.
thanks.hi,,,,,,,,
Please first check in debugger with the program and structure name that it contains teh value or not,
for ex rum T-code MIR7 in debugger and before reaching your screen in which you want to do modifications just check your structure consist of value or not.
for ex......
(SAPLMR1M)ACCIT-GSBER
and secondely you are playing with whole internal table, first concentrate on single field only like this.
field-symbols: <fs1> type any.
ASSIGN ('(SAPLMR1M)ACCIT-GSBER') TO <FS1>.
<FS1> = 'CW07'.
now your field GSBER consist of value "CWO7".
Note: This will put any value in your database table or any structrure initiallly, Firstly it will update the value on the screen and when you save then it will updat ethe value in tables,
If stiil after that your value doesn't appear on the screen, then This means that you are wrong structure or wrong programme, that is the common mistake which user makes.
Thanks
Saurabh -
Hi,
I am trying to find a user Exit in MIR7. I want specifically that user exit which would have data once the invoce/IR created in MIR7 is saved in the tables RSEG/MSEG. i.e. Commit work has been done, Invoice has been posted/parked/saved.
I need to have the line item data which are present in these two tables.
Its a bit <b>Urgent</b>.
Thanks and Regards,
Arnab Panigrahi.Hi,
You can try with the below enhancements.
LMR1M005 - EXIT_SAPLMRMC_002
MRMH0001 - EXIT_SAPLMRMH_002
MRMH0003 - EXIT_RMMR1MRB_002
LMR1M001 - EXIT_SAPLMR1M_002
Hope it helps.
Reward if it is useful.
Thanks,
Srinivas -
User exit or badi for item text in mir7 transaction
Hi Gurus,
Please provide me suitable user exit or enhancement or badi for this requirement.
client enter TEXT fied data in MIGO transaction for material document and purchase order in where tab.
in MIR7 i entered reference number as material document number and purchase order number after triggering enter button it gives the list of items but IT IS NOT GIVE THE ITEM TEXT DATA which we entered in MIGO transaction.
Please provide me suitable user exit or enhancement or BADI for this.
Thanks A lot in Advance.
With Regards,
Radhakrishna.Hi RadhaKrishna,
You can find the BADI by yourself just follow the below any methods you will get the appropriate BADI name..
Method 1:
Go to Tranaction: SE24.
open class CL_EXITHANDLER
Open the method " GetInstance"
Put Break point in the statement
call method cl_exithandler=>get_class_name_by_interface
Now execute the Transaction which you need teh BDC it will automatically stops at the the method. In debugging mode double click on the variable: " exit_name" It will return the BADI Name.
Method 2:
find the Package name and go to the tranaction SE84.
Enter the package name
inside the left navaigaiton panel there is one option " Enhancements" click on this enhancement and then enter the package name and execute it. you will get hte number of enhancement.
for your reference I am sending you the list of BADI present in MIRO transaction.
ARC_MM_MATBEL_CHECK --------Check AddOn-Specific Criteria for MM_MATBEL
ARC_MM_MATBEL_WRITE ---------- Archive AddOn-Specific Data for MM_MATBEL
MB_CHECK_LINE_BADI -------------- BAdI: Check Line Before Copying to the Blocking Tables
MB_CIN_LMBMBU04 --------------- posting of gr
MB_CIN_MM07MFB7 ---------------- BAdI for India Version exit in include MM07MFB7
MB_CIN_MM07MFB7_QTY ------------Proposal of quantity from Excise invoice in GR
MB_DOCUMENT_BADI --------------BAdIs when Creating a Material Document
MB_DOCUMENT_UPDATE -----------BADI when updating material document: MSEG and MKPF
MB_MIGO_BADI --------------------- BAdI in MIGO for External Detail Subscreens
MB_MIGO_ITEM_BADI ----------------BAdI in MIGO for Changing Item Data
MB_RESERVATION_BADI --------------MB21/MB22: Check and Complete Dialog Data
Thanks,
Chidanand -
BADI/User Exit to capture DELETED DATE - MIRO/MIR7
Hi Friends,
Could anybody help me out in finding a BADI or User Exit (or some other means) so as to get the actual deleted date for the documents parked through MIRO/MIR7 ?
(I have found a BTE to capture the deleted date for the documents parked through FB60/FV60.)
Thanks in advance.
Regards,
Saravanan SRHi Uday,
User exits are:
EXIT_SAPLMR1M_001 - MM08R002 - User exit for tolerance checks
EXIT_SAPLMR1M_002 - LMR1M001 - User exits in Logistics Invoice Verification
EXIT_SAPLMR1M_003 - LMR1M001 - User exits in Logistics Invoice Verification
BADI's are:
BADI_ENJ_ALT_ADR - Go to alternative vendor/customer data
MR_CIN_LMR1MI2G_SEL - BAdi in LIV for determining line selection
MR_CIN_LMR1MI2G - BAdI for India Version exit in include LMR1MI2G
Regards,
Sukhbold -
Add duplicate check on MIRO and MIR7 by modfying a user exit
Hi ABAP / SAP Gurus,
Good day!
For transaction code MIRO and MIR7, I need to add a check if there are invoice with the same details of VENDOR, CURRENCY, DOCUMENT DATE and AMOUNT on table RBKP. And If there are same invoice, a warning message should be issued.
I have modified an include program (ZXM08U14) in FM EXIT_SAPLMRME_003. Unfortunately, the warning message is being triggered after the "SAVE" button is clicked. In other words, the "Warning Message might be considered as something useless since the document will still be created without the user being informed of the "duplicate".
I need the duplicate check's warning message to be triggered even before the "SAVE" button is clicked.
In this light, i have some questions:
<b>(1) For MIRO, where can I put the duplicate check that will trigger a warning message (if a duplicate has been found) even bofore clicking the save button? Kindly give the User Exit / Program.
(2) For MIR7, where can I put the duplicate check that will trigger a warning message (if a duplicate has been found) even bofore clicking the save button? Kindly give the User Exit / Program.
(3) Can I use BADI for the said functionality? If yes, kindly provide a simple instruction on how to proceed.</b>
Thanks in advance!
And don't worry, I will give appropriate points for helpful answers.Hi,
Check the following Exits and BADI for both MIRO and MIR7:
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 doc
LMR1M005 Logistics Inv. Verification: Release Parked Doc. for Postin
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
reward if useful
regards,
Anji -
Issue with MIR7(BADI or User exit needed for stop SO data updating)
Hi,
While using MIR7 to post invoice, corresponding sales order item data is changed ,such as 'Billing date'.
We don't want this happen. Please let me know if there is any BADI or Uer exit for achieving this. Thanks in advance..
Regards..Hi,
These are all BADI/Exit of MIR7 transactions.
MRM_TRANSACT_DEFAULT
MRM_HEADER_DEFAULT
WRF_PREPAY_INVOICE
MRM_ITEM_CUSTFIELDS
BADI_FDCB_SUBBAS01
BADI_LAYER
BADI_FDCB_SUBBAS02
BADI_FDCB_SUBBAS03
BADI_FDCB_SUBBAS04
BADI_FDCB_SUBBAS05
PPA_CUST_BADI
FI_TRANS_DATE_DERIVE
Thanks ,
Abhijit -
Is there any BADI/Exit to gray out Inv. Party(vendor) field in the details tab of MIR7.
Please help.
Regards,
Sudhakar.Hi,
BAdI Definition Description
INVOICE_UPDATE Business Add-In: Logistics Invoice Verification
Exit name Short text
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
in future if you want to know any user exits or badi available for t-code..
go to ->se16-->enter table TSTC-> enter your t-code and get the pgm name..
get the package for pgm name...
go to se15--> expand the enhacements tab and enter package under user exits or badi ..
you will get the avaialable user eixts and badi for the t-code under that package.
Prabhudas -
Bapi or user-exit to create warning in invoice
Hi,
I was askes to create a warning whenever someone pushes delete within an invoice (mir7). The problem is that our users are not aware, that they are really going to delete not only the marked position within the invoice but the whole invoice.
I´ve tried to find a bapi or user-exit to place my coding but so far was unsuccessful, can anyone tell me if there is a badi or user-exit?Hi Ute!
Try BADI INVOICE_UPDATE (hope this is defined in your release).
It's help says:
"You can use the business add-in (INVOICE_UPDATE) to further process the following functions or, if necessary, forbid them:
Creating invoices (invoices, credit memos, subsequent debits, subsequent credits) in Logistics Invoice Verification
Parking documents in Logistics Invoice Verification, and making changes to these documents, for example, deleting them"
-> Exactly what you are looking for.
Regards,
Christian -
User exit on field Unplanned delivery cost - MIRO
Hello everybody,
I want to be able to put tolerences on the unplanned delivery cost, for example:
For Invoice amount = 1000
IF Unplanned delivery cost > 100 >>> Balance (Red) invoice blocked
Do you Kow some User exit for that ?
Thank youHello Jeyakanthan ,
I dont see any tax code field next to unplanned delivery cost in the MIR7 / MIRO .
I checked the screen layout , in that the field is there & is active . But it doesn't appear in MIRO / MIR7
what do i have to do in order activate the field ?
Regards
Anis -
User exit ZXPADU02 - evaluating SY-UCOMM
Hello everyone,
I am trying to display an error message whenever someone tries to create a new work schedule rule (P0007-SCHKZ) in infotype 7. However, the error message should just come up when the user is trying to save his data.
I am using user exit ZXPADU02 for this purpose. My problem is that SY-UCOMM does not seem to hold reliable data in this user exit, and SSCRFIELDS does not seem to be supported at all.
My code looks like this (only the relevant code snippet in ZXPADU02):
CASE INNNN-INFTY.
WHEN '0007'.
CALL METHOD CL_HR_PNNNN_TYPE_CAST=>PRELP_TO_PNNNN
EXPORTING PRELP = INNNN
IMPORTING PNNNN = P0007.
CALL METHOD CL_HR_PNNNN_TYPE_CAST=>PRELP_TO_PNNNN
EXPORTING PRELP = PSAVE
IMPORTING PNNNN = P0007_ALT.
IF P0007_ALT-SCHKZ <> P0007-SCHKZ
AND IPSYST-MASSN IS INITIAL " do not warn within an info group of a personnel action
AND SY-UCOMM = 'UPD'. " only warn when saving the data -> problem here <-
MESSAGE 'Do not change IT7 directly or else.' TYPE 'I' DISPLAY LIKE 'E'.
SHOW_DATA_AGAIN = 'X'.
ENDIF.
At first glance, the above works nicely. But this is what happens when I test more thoroughly:
I create a new period in IT 7, enter a P0007-SCHKZ other than the one that was previously valid, press F11. Some warnings appear (for different reasons), which I dismiss using the Enter key. Afterwards, the above code fires, the error message is being displayed, and I am thrown back into the data screen. So far, so good.
Now I simply alter the value in the field "Weekly hours" (P0007-WOSTD) and press Enter (!). Again a series of warnings appear, including one that a dataset is going to be deleted (seeing that an IT 7-period with just the same date range already exists). I confirm that with Enter, and the data is being saved. The above code does not fire because I have only pressed Enter - but the data is being saved anyway!
Looks like a pretty erroneous behavior on the side of the SAP system. The question is whether I have a chance to do something about it in the code.Mihir Nagar wrote:
Dear Petersen,
Your IF condition seems ok. I doubt on the message statement. Can you replace your message statement with type E.
MESSAGE 'Do not change IT7 directly or else.' TYPE 'E'.
ENDIF.
Hope this works.
Regards,
Mihir.
I did not expect this to work, because normally you use type 'E'-messages only in certain PAI-environments, but it does the job, thank you!
make use of field IOPER of the structure PSYST to check on the infotype actions INS, MOD, COP, DEL...
In this particular case I did not care, so I did not check that. IT 7 should only be maintained through personnel actions in our case.
Next you can check with sy-ucomm field the different between "enter" and "save". With "save" sy-ucomm will be 'UPD'.
That is what I did, but as I described, there was a situation when SY-UCOMM is SPACE, but the system saved anyway due to a prior save attempt. -
Using a variable not in the Export,Import, table Parameters in USER EXIT
Hi all,
During the Invoice Creation, I need to add an entry in the VBFS table, so that it will be displayed in the system log. In the FM 'RV_INVOICE_CREATE', the structure corresponding to it is XVBFS. There is a user-exit CALL CUSTOMER-FUNCTION '002', in this FM 'RV_INVOICE_CREATE'. But the import, export or Table Parameters does not have XVBFS.
How can I use XVBFS inside the User exit?..
Please help.
Regards,
AshaHi,
I dont know whether this will help u...
write this in user exit...to access variables/tables of main program..
FIELD-SYMBOLS: <komv>.
ASSIGN ('(SAPLMEPO)TKOMV[]') TO <komv>.
where.. SAPLMEPO is the main program...and TKOMV[] is a internal table in SAPLMEPO.
regards
Sukriti.... -
How to find out the user exit is implemented
Hi All,
Kindly let me know the process to be followed to find out the User exit is implemented in SAP system.
I have seen many senriors suggestions for some treads to check if there is any Exit is implemented in the process when the system is behaving differently rather standard.
Is it the only way with help of ABAP'er we can find out or the functional consultant also can find out through some procedure?
I tied in google for this doubt, but i could not get the relavant answer.Pleaea execuse me if this already answered.
Thanks,Hi Krishna/TW,
Thank you for your immediate replies. Sorry i think i have not explained correctly my requirment.
Let me explain my requirement once again.Let us say Comapny has implemented one Exit in the project, now i want to find out what exactly the Exit was implemented.
Example: In STO process user is able to increase the qty in delivery. As per the client requriement system should not allow.
This is not possible in standard to control even after maintainig check over delivery field in 0VLP.
For this comapny has already implemented one enahnceament.
User Exit : USER EXIT_READ_DOCUMENT
Program: MV50AFZ1
like this when any one joined in the project we do not know what are all the Exits are implemented in the SAP system where we are working.
So if i want to find out if there is any Exit or enhancement implemented, what is the process to find out?
I hope now am clear with my requirement.
Thanks in advance.
Maybe you are looking for
-
Forms application returns "ORA-01403 no data found" exception on Windows 7
Hi everyone, I am currently involved in an application compatibility project for an O/S migration from Windows XP to Windows 7. We have a legacy Oracle Dev6i P18 Forms application that has been working perfectly on Windows XP for the last decade or s
-
Problem with decode function while dispaly the data ( urgent )
Hi friends , I want the output like this. sample: CLIENT CODE: 00027 PLAN CODE: 01 SSN Last Name First Name TYPE Frequency Amount 123-45-6036 Perrault Julia D M 250.00 123-45-6036 Perrault Julia D Q 400.00 CLIENT CODE: 00027 PLAN CODE: 02 SSN Last Na
-
ID CS5 crashes when opening older ID file
I am attempting to open an ID file started in 2007 and edited in 2008. CS5 crashes after a few seconds in this attempt. Is there a magic bullet to fix this? This is not the first time, but I found an output pdf and used those compoments to rebuild th
-
Error-handling in form routines to be called from maintenance view
hello, i have created a table maint. dialog. Under 'enviroment->modification->events' you can create form-routines for your own coding. I have the maint.event '01 - Before saving the data in the database'. Here i do some checks if entered values in s
-
WRTU54G-TM T Mobile, works fine in wireless but does not work in WIRED connection
This is really weird. This router has worked fine for little over years. It has it's up's and downs but yesterday. It stopped working on the wired mode. I can see my computers connected on the DHCP list but it does not show internet. On my WIRED comp