MB1C user exit - SAVE button
Hi!
I want to know if there is an user exit for the SAVE button in tcode MB1C.
I tried the following exits BUT NONE of the include passes the save button.
Please help me so I can put my new logic after user clicks the save buttong.
Thanks!
Exit Name Description
MBCF0002 Customer function exit: Segment text in material doc. item
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_CREATE1
MBCF0011 Read from RESB and RKPF for print list in MB26
MB_CF001 Customer Function Exit in the Case of Updating a Mat. Doc.
Edited by: ravolarte on Jun 8, 2009 11:00 AM
check BADI
MB_DOCUMENT_UPDATE
mb_migo_badi
mb_document_badi
Check User Exit
EXIT_SAPLMBMB_001
Similar Messages
-
I dont want to commit master-detail form untill user press save button
We have department-employee kind of master detail form.
1) We click on any record on department block.
2) Then we change / insert /delete record in employee block.
3) then we move to anothe department.
4) now it ask for saving the changes. THIS WE DO NOT WANT.
5) WE WANT TO SAVE CHANGES WHEN USER CLICK ON SAVE BUTTON.
6) If user make changes to various employees of various department,
we want user to cancel changes when ever user wants.
IN SHORT WHAT WE WANT IS
No record should be saved untill user press save button below.
and If user press cancel all changes made must be undo.
PLEASE DO NOT SUGGEST DO_COMMIT in clear block details,
We know that and we dont want that option.
Regards
UpendraHi URTRIVEDI
but it gives "could not reserve record (x tries), keep trying?" error.The problem is not within the code given by Francois but in sessions u opened.
pls make sure u r not running more than one instance of ur form with in one session.
e.g. FireFox is opening more than one tab at a time every modification u made > compile > Generate , Save & Run only one Form instance
Hope this helps...
Regards,
Amatu Allah -
Mblnr field for mb1c user exit on save
Hello All,
Im using user exit, "EXIT_SAPMM07M_001" in enhancement package "MBCF0002".
I want to use MBLNR field but when i run program and fall into this user exit, i check local variables but MBLNR field is empty.
How can i get this field?
Any ideas?Hi,
It has 'I_MSEG' structure which 'mblnr' field. did you check this field. it should have value because that is main key in determining material document.
i think my understanding of the issue is in right path.
Thx,
krishna -
User exit: save PM order
Dear all,
I'm looking for an user exit that will be actived during order save. However, it seems most exits just for check, I can not change any data.
The requirement is: if user save certain order, then field function area 'CAUFVD-FUNC_AREA' is filled automatically. This fiels in the order header.
Thanks,
BenHi,
Orders
User Exits BBPK0001
Description Exit for determining the external procurement profile
User Exits CNEX0013
Description Default item category for component assignment
User Exits CNEX0026
Description Customer enhancement for general inspection of material
User Exits CNEX0027
Description Customer enhancement: Plant, storage loc. finding for comp.
User Exits CNEX0037
Description Check new component
User Exits COCCA002
Description Customer Functions for Organizational Authorization Checks (SETTLEMENT)
User Exits COI20001
Description Changing of person found
User Exits COI20002
Description Alternative procurement of HR availability data
User Exits COOM0001
Description Customer Functions for Overhead Percentages
User Exits COOPA_01
Description Customer check modules for internal orders
User Exits COOPA002
Description Customer function for master data maintenance - internal orders
User Exits COOPA003
Description User-Defined Fields in the Order Master
User Exits COOPA004
Description Customer function: Print order master data
User Exits COPCP005 (see: 1, )
Description Material Costing: User exit for material valuation (strategy U)
User Exits CY190001
Description Capacity Planning: Change order operation
User Exits COZF0001
Description Change purchase req. for externally processed operation
User Exits COZF0002
Description Change purchase req. for externally procured component
User Exits CYPP0001
Description Change sequence criteria and sequencing
User Exits ICSV0001
Description Display of geographic location data
User Exits ICSV0002
Description Automatic task determination for service notifications
User Exits ICSV0003
Description Partner selection
User Exits ICSV0004
Description Check PM object and display object information
User Exits ICSV0005
Description Determining reason for rejection - resource-related billing
User Exits ICSV0008
Description Validation of additional partner types
User Exits IWMI0001
Description User exits for SM/PM IDOCs
User Exits IWO10001
Description Create a PM sub-order
User Exits IWO10002
Description Customer check for order release
User Exits IWO10004
Description Customer check for order completion
User Exits IWO10005
Description Customer specific determination of profit centre
User Exits IWO10006
Description FCode exclusion through customer enhancement
User Exits IWO10007
Description Customer enhancement - permits in the order
User Exits IWO10008
Description Customer enhancement: Determination of tax jurisdiction code
User Exits IWO10009
Description Customer Check for 'Save' Event
User Exits IWO10010
Description Customer enhancement for determining WBS element
User Exits IWO10011
Description Customer enhancement for component selection
User Exits IWO10012
Description Priority handling on central header
User Exits IWO10015
Description F4 Help for user fields on operation
User Exits IWO10016
Description Customer enhancement to check operation user fields
User Exits IWO10017
Description Determine external order number by customer logic
User Exits IWO10018
Description User fields on order header
User Exits IWO10020
Description Automatically include task list
User Exits IWO10021
Description Automatic task list transfer when creating order from notification
User Exits IWO10022
Description Determine calendar from user exit
User Exits IWO10023
Description Service order: Change header data for advance shipment document
User Exits IWO10024
Description Service order: Changes to items for advance shipment
User Exits IWO10025
Description Finding responsible cost centre
User Exits IWO10026
Description User check on setting status 'Do not perform'
User Exits IWO10027
Description User exit: Generate user-defined settlement rule
User Exits IWO10029
Description Inclusion of bill of material in PM/SM order
User Exits IWO10030
Description Predefining the fields for the profitability segment
User Exits IWO10031
Description Hide personnel number in PM/SM order
User Exits IWO10033
Description Customer-Specific Authorization Check PM/CS Order
User Exits IWO10034
Description Operation status based on the status of capacity requirements
User Exits IWO20001
Description User exit to pass routing/task list to order
User Exits IWOC0003
Description PM/SM authorization check of ref. object and planner group
User Exits M06B0002
Description Change communication structure for purchase requisition release
User Exits MGA00003
Description Material Master (Industry and Retail): Number Display
User Exits PPCO0001
Description Application development: PP orders
User Exits PPCO0005
Description Storage location/backflushing when order is created
User Exits PPCO0023
Description Checks changes to components
regards,
Venkatesan Anandan -
RFQ or Quotation User Exit Save - Help
Hi,
Can you please tell me , what user exit is used to save RFQ ? While using ME41 to create a RFQ, which user exit is used to Save ?
Appreciate your help & Will reward with points
Thanks
PrithivTry this.
goto se24, enter class cl_exithandler, goto method get_instance. Set breakpoint on the first if sy-subrc statement after the "get exit name". Run transaction when it is in debug window, check field exit_name
Cheers.
...Reward if useful. -
Hi SDN,
I am posting document using MB1C transaction. I want to update SGTXT and EXBWR fields in MSEG table while updating; is it possible..? Which user exit can be used to achieve this..?
Regds,
Vinsa.RHi,
check the enhancement : <b>MBCF0002</b>
documentation :
The user exit MBCF0002 includes a function module that is called up when
you enter a goods movement for each item.
It enables you to fill in the item text in the material document item,
depending on the following data:
o MKPF (Material document header)
o MSEG (Material document item)
o VM07M (Additional data for material document item)
o DM07M (Additional data for material document item)
The item text is also stored in the accounting document.
Examples
Goods receipt for a purchase order assigned to an account: since the
purchase order number does not contain a material number, the material
description entered in the purchase order is used as an item text (field
MSEG-SGTXT).
Example of source text:
IF I_MSEG-MATNR IS INITIAL.
E_SGTXT = I_DM07M-MAKTX.
ENDIF.
If the material description is to be used as the item text for all goods
movements, the source text has the following line only:
E_SGTXT = I_DM07M-MAKTX.
Regards,
Sandeep Kaushik -
Availability check run requirement in the Sales order Save user Exit.
Hi Gurus,
As per the requirment we are using a user exit SAVE SALE ORDER PREPARE for BOM purpose to reconfirm the confirmation qty.
Now we need to add one more logic in the same user exit, which will run the availabilty check run for each of the line items of the BOM and consider latest confirmation qty from it. So my concern is it possible that we can call the availabilty check run event with in the user exit SAVE SALE ORDER PREPARE or this not advisable?
Please let me know..
Regards,
BabsHI Venkat,
Thanks for your reply.Yes you are right availability check runs automatically at sub item level.
But please note the customer requirment iteself is is little different from std BOM configuration.
Currently the availabilty check is activated both at header and sub item level. They are maintaining the stock for header and sub item level.Also the these sub items are some time being sold as invidual materials. hence there exist a mismatch in the stock value between header and sub items.
when a sales order is created both header and sub items will have confirmation with different value between each and the same mismatched values are being passed in to delivery. But the deliveries can not be processed for PGI because of the mismatched confirmation qty between header and item level.
I guess now you the rrequirment.
So we are using the SAVE SALE ORDER exit which will re check the confirmed qty between header and item and takes lowest confirmed qty and change the confirmed quantities from all the line items to lowest one, so that confirmation qty among all the line items are same. This is the first logic we are planning.
Further there is one more additional process BOP need to be run for this header and sub items, which will change the confirmed qty based on the latest stock for individual line item. even in this case also the user exit SAVE Sale order is being called but we need to run the availability check run additionally because of which our requirment will be taken care.
Regards,
Babs -
User exits for FI module in ECC 5.0 Version
Hello,
Can someone help me on this..i need to find a userexit in ECC 5.0 and this is in FI module(please provide me the steps to find as well). I need to do some validations and the exit should trigger at the end of document creation and just before the user clicks save button..Its urgent so i would appreciate a quick reply from anyone who knows about this.
Thanks,
MohsinHi Mohsin,
Welcome to SDN.
You can create new custom program in your ECC 5.0 (Developmen Instance) by cut and paste the following sample program. This program will allow you to find user exist based on transaction code i.e FB50.
REPORT z_find_userexit NO STANDARD PAGE HEADING.
*& Enter the transaction code that you want to search through in order
*& to find which Standard SAP User Exits exists.
*& Tables
TABLES : tstc, "SAP Transaction Codes
tadir, "Directory of Repository Objects
modsapt, "SAP Enhancements - Short Texts
modact, "Modifications
trdir, "System table TRDIR
tfdir, "Function Module
enlfdir, "Additional Attributes for Function Modules
tstct. "Transaction Code Texts
*& Variables
DATA : jtab LIKE tadir OCCURS 0 WITH HEADER LINE.
DATA : field1(30).
DATA : v_devclass LIKE tadir-devclass.
*& Selection Screen Parameters
SELECTION-SCREEN BEGIN OF BLOCK a01 WITH FRAME TITLE text-001.
SELECTION-SCREEN SKIP.
PARAMETERS : p_tcode LIKE tstc-tcode OBLIGATORY.
SELECTION-SCREEN SKIP.
SELECTION-SCREEN END OF BLOCK a01.
*& Start of main program
START-OF-SELECTION.
* Validate Transaction Code
SELECT SINGLE * FROM tstc
WHERE tcode EQ p_tcode.
* Find Repository Objects for transaction code
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 = enlfdir-area.
MOVE : tadir-devclass TO v_devclass.
ENDIF.
ENDIF.
* Find SAP Modifactions
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.
* Take the user to SMOD for the Exit that was selected.
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.
Hope this will help.
Regards,
Ferry Lianto -
User Exit or BADI to get the Total Tax Amount in a New PO (ME21M)
Hi,
Can somebody tell me any user exit or BADI I can look at to get the total Tax amount of a new PO, after user press SAVE button and before data is written to tables (EKKO, EKPO etc).
Key requirement here is AFTER save button is pressed and before data is written to tables. I want to do some validation before data goes in the table.
Thanks in advance. Please help me.Dear MiniSap..
Maybe you can use function PRICING or CALCUALTE_TAX_ITEM .
Best regards,
Ale -
User Exit name for Vendor Master
Hi ABAPers,
What is the name of User-Exit that changing the Vendor master data?
Thanks.
MunurEBCIOGLUHi
This Exit (SAPMF02K) will trigger when the user selects save button in the transaction. When this exit triggers then uses INCLUDE ZXF05U01 in function exit EXIT_SAPMF02K_001 to code the necessary enhancement. In function exit (EXIT_SAPMF02K_001) I_LFA1 is a structure which holds all user entered customer information in the transaction (Customer Master).
Please assign the points if you are OK with this solution.
Thanks & Regards,
Sivaram.K -
Help needed: user exit for CO02
I have a problem with user exit. I need to display an error message when the quantity of a specific component of a material is changed in CO02 and user hits save button.
I inserted my code in include program ZXCO1U01. Based on the material type if the user changes the quantity I will display a message. But the problem is the documentation shows that we cant insert a error message in this exit. Its giving a dump if I do that.
I am calling a new screen to display a message but if I try to execute CO02 again for the same order its displaying error messages as that component will remain locked.
Please help me regarding this.
ThanksHi Bobby,
We had similar issue and we have added a code to send an e-mail message to the user is any error occurs.
You can't insert an error meesage in this user exit.
Lanka -
User exit for contract release order.......
Hi All,
I have a question...
when we create a sales order and type the sold-to party the system dispalys(pop-up screen) the open contracts against the customer. It is up to us wheather we can copy any one of the contacts into the sales order and create a release order or we can just cancel the pop-up screen and create a new sales order with out reference to a sales order.
<u>HERE my requirement is as follows</u>.
1) <b>When a customer has open contacts and validity period we should make user to copy any one of the the existing contracts in the pop-up screen.</b>
2) <b>At the same time if the customer has got no contracts against him he should be allowed to cerate a plain sales order.</b>
I have tried with user exit Change document & User exit Save document in include <b>MV45AFZZ</b> but our code (user exit) should fire before or at the time of pop-up screen(containing the open contracts against the customer) which is just not happening.
Has any one of you came across of any solution for this kind of scenario...
One last option i have got is to disable the close push button taking the access key and changing the standard code........but this will effect the other places where this close button is used.
Please let me know how to go about it.
Thanks in advance......for your valuable time & precious knowledge.
With regards,
<b>Pavan</b>Have you tried applying code to EXIT_SAPLV46H_001 - Customer Function When Creating Item?
Or EXIT_SAPLV46H_002 - Customer Function for Partner Changes? -
User exit for IW31 which capture screen field Po number
Hi all
I have the requirement that when we save work order created by IW31. It shud trigger any user exit or BADI.
In that we have to validate the screen field Purchase order number BSTKD from the Ztable entries.
My problem is that no user exit passes this value as export parameter. so without that how can I get this value in the include program. Please let me know the user exit which hit after save and passes PO value so I can validate this field. Thanks!!!
Quick answer will highly be appreciated!!
Nikhilesh VyasHello Kiran
Thanks for ur reply
But this Badi does not have purchase order number as parameter in any method which call after user press save button.
Please let me know any other alternative if u have ...thanks!! -
Need Badi/user exit-migo-update batch classification
Hello all,
I need to update revision level and country of origin in batch classification tab in migo while posting GR.
I've already done using exit "EXIT_SAPLV01Z_014".
But this exit triggers only when classification tab is clicked in migo.
But i need to also update rev level and country of origin when GR is posted(Save button is pressed).
I tried MB_CF001,MB_CF001,MBCF0002,MBCF0005,MBCF0006,MBCF0007,MBCF0009,MBCF0010,MBCF0011
and badis
MB_DOCUMENT_BADI,CACL_VALUE_CHANGE.
Please someone help me
Thanks in advanceHi Sriram,
If you want to add logic on particular action you need to search for exact BADI.
e.g.
As you are expecting that your code need to be trigger when user press SAVE button (Time of Posting) so at that time you need to check which BADI get trigger ( I am assuming that you have knowledge on how to search BADI)
List down the BADI name and check the methods. You will get exact method name in listed BADI's.
I am hoping that while checking badi you will find MB_MIGO_BADI just check and use method [POST_DOCUMENT] for your logic.
Also in User Exit you will see multiple function modules in component those function modules are behaving like PAI and PBO. so you need to find out whcih function module will trigger as per your requirement.
please find below link which will help you to understand how to search User Exit.
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/0041d4e6-1e43-2e10-0db4-9386abe98fe6?overridelayout=t…
Please let me know if its work for you.
Regards,
Nikhil -
User-Exit or BAdI when saving an asset?
Hi experts,
I would describe our problem and I wish you could guide us to the best solution.
We have create a Workflow that synchronises the creation of a functional location with the asset (because we don't find any user-exit that allowed this requirement). The process is the following:
1.- First of all, Workflow validates that WBS Element of the functional location exists. In afirmative case, it continues to step nº 2. Otherwise, WorkItem is cancelled.
2.- We create a functional location with tx. IL01 and as a result of that, a WorkItem is created related to some specific user. He opens the SAP Business Workplace and approve it.
3.- Then, when he approves that WorkItem we call to the method BAPI_FIXEDASSET_CREATE1 that creates the asset.
Now we would like to get some User-Exit or BAdI that makes our data persisted before the user press SAVE button, because i have to inform the asset and subnumer to the functional location with the number of the asset we have just created.
Could that be possible?
Lots of thanks.
JaviHi,
I am still having trouble with this topic...
No enhancements posted at the message before solved the described problem. So I started to think in another way...
At the Workflow circuit defined to synchronise functional locations with asset master, we would like some function like "CreateBright" in Object "EQUI_EXT" (tx. SWO1). Inside the code, there is a call function to "AAPM_AA_SYNC_BY_WORKFLOW" that automatically creates the equipment and join the asset master.
In functional locations, we don't have this function so what can I do to have the same concept in functional creations and not equipments? Any idea?
Lots of thanks for the answers.
Javi
Maybe you are looking for
-
Browse Data & Parameter flds no longer fully populated after upgd SQL 2005
I upgrade our SQL 2000 Server last weekend to SQL 2005 (sp2). Now our Crystal reports that access SQL data are not working correctly. Parameter Fields are showing little to no data, where before the upgrade we were seeing many more rows in the list.
-
HP pavilion DV6 - Factory OS recovery fail
Dear/All I've little pit serious issue and I wish o receive the answer here. my Laptop is DV6-2105ee and I formatted the HD fully (I mean recovery partition also deleted) and becomes one partition only with 500GB capacity Luckly, I have a set of 3 r
-
What are the versions in workflow?
Hi, What are the versiond in workflow and what is the difference between the versions? Regards, Chow
-
Hi, I am having a time trying to get the Dreamweaver rollover function with layers to work in creating webpage menus that you can rollover and hyperlink to. The page I am working on is at http://anne.swva.net/pcof/ , and if you scroll over Worship yo
-
My version of Numbers is up to date (3.0.1) and I have a few spreadsheets that were working and able to open just a few hours ago. Now when I try to open some of them I get notified that I need to have a newer version of Numbers downloaded from the