USER-EXIT on SAVE event for IE01
Hi,
I need USER-EXIT on SAVE event for t-code IE01.
EXIT IEQM0003 work only first time after pressing "SAVE".
IF i press "SAVE" second time equipment will be created.
Edited by: andriy.hulyk on Jan 26, 2012 12:45 PM
Here is my code:
IF DATA_ILOA-TPLNR IS INITIAL.
AUTHORITY-CHECK OBJECT 'ZZ_MC_FLC'
ID 'ZZFLC' FIELD '*'.
CASE SY-SUBRC.
WHEN 0."SAP-ALL User
EXIT."OK
WHEN 12."User without restriction
EXIT."OK
WHEN OTHERS.
AUTHORITY-CHECK OBJECT 'ZZ_MC_FLC'
ID 'ZZFLC' FIELD '01'.
CASE SY-SUBRC.
WHEN 0."Create eq. only with FL for some work centers
MESSAGE E250(ZPM) WITH 'test' RAISING POSTING_NOT_ALLOWED_EXT.
ENDCASE.
ENDCASE.
ENDIF.
If i press "SAVE" firs time it work great. But next pressing just create new equipment. My restriction does not work(
Similar Messages
-
User exit on SAVE event in tranasaction CS01
Hi all,
Please tell me user exit on save event in transaction cs01.
Thank you.Hi,
Check the following user exits.
PCSD0001 Applications development R/3 BOMS
PCSD0002 BOMs: Customer fields in item
PCSD0003 BOMs: Customer fields in header
PCSD0004 BOM comparison
PCSD0005 BOMs: component check for material items
PCSD0006 Mass changes user exit
PCSD0007 Check changes in STKO
PCSD0008 WBS BOM: Customer-specific explosion for creating
PCSD0009 Order/WBS BOM, determine URL page
PCSD0010 Order/WBS BOM, determine explosion date
PCSD0011 Knowledge-based order BOM, parallel update
PCSD0012 Customer - Mat. number/mat. number during material exchange
PCSD0013 Customer-specific processing of an explosion for BOM browser
hope it helps
Regards
Rajesh Kumar -
Hi,
Is there any user-exit at save for transaction KL01.
Here is my requirement.
Where ever am employee is hired in HR ( transaction PA40; Action = Hire) i have to automatically create an Activity Type ( t.code : KL01 ). I am doing this in user-exit PBAS0001, component EXIT_SAPFP50M_002 on HR side.
The next this is, once activity type is created using transaction KL01, i have to automatically trigger a activity type planning, transaction KP26.
So, i need a user exit at Save in transaction KL01, so that i can trigger KP26 from there. I found one exit COOMKS02, but i its not triggeting from KL01.
Does any one know any user-exit in KL01 which trigger at save. Please let me know
Thanks,
PratikHi Sharad,
Thanks for your reply.
I always have an option for executing both KL01 and KP26 fron PBAS0001, but what i was thinking that if there is any exit available at save in KL01, i can trigger KP26 from there.
If i could not find any exit, i will call both KL01 and KP26 from PBAS0001 itself.
Thanks,
Pratik -
User exit at item level for billing block field default for VA41 or VA42
Hi All,
I want user exit at item level for contract (VA41or VA42) for the field Billing Block in the Billing document tab
which has to populate with some default value.
Which user exit i need to check.
Regards
JaiHi,
Use subroutine USEREXIT_FIELD_MODIFICATION in Include MV45AFZZ.
Make sure this is for only tcodes VA41 and VA42 because this wil trigger for sales order also.
Regards,
Ashok. -
User-Exit/Badi/Funtion Module for update Batch in transaction CORK
Hi Gurus,
when an IDoc 'Z' is executed to do a confirmation using the FM CO_RU_ORDER_CONFIRMATION, the values of transaction CORK are modified.
I'd like to update the field batch number so when you enter a process order in transaction CORK and then you click on Components, you'll see the list of component and the batch number updated throught the custom IDoc.
Does anyone knows any user-exit or Badi or maybe a FM to implement so when the first confirmation is done, the batch numbers are updated?
Thanks in advance.Hi,
You can copy and paste the Report code below. This will give the list of User Exits and BADIs available for the Transcation code. Very usefull program.
Below code will give a list of BADIs for particular transaction.
=============START
*& 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.
================END
<b>Reward POints if this helps.
Manish</b> -
User exit or a badi for checking the vendor email id in me22n on me29n
hi all,
can anybody suggest me a user exit or a badi for checking the email id of the vendor in me21n or me22n or me29n.
i.e. a user exit or a BADI which gets hit either at the time of creation or release of a purchase order.
plz suggest me a solution its urgent.
regards,
santoshHi Santosh,
Have you looked BADI <b>ME_PROCESS_PO_CUST</b> or user exits <b>EXIT_SAPMM06E_016</b> / <b>EXIT_SAPMM06E_017</b>?
Hope this will help.
Regards,
Ferry Lianto
Please reward points if helpful. -
User-exit on APO side for the deliveries that are coming from R/3
Hi,
When a delivery is created in ECC for a VMI customer, it creates an EI order in APO. We need to record some details of these orders on the APO side. Can you please let me know the user exit/BADI that gets triggered when a delivery comes to APO through CIF which we can use for our requirement?
Thanks in advance.Hi,
You can use APOCF006(EXIT_/SAPAPO/SAPLCIF_PU_001) CIF User exit on APO side for CF_OBJECTTYPE = B(Delivery).
I hope this will help you.
Regards,
Saurabh -
User exit in VLPOD transaction for populating difference quantity
Hi All,
I have to update populate and validate the different quantity in sales unit (TVPODVB-LFIMG_DIFF) and the corresponding reason while creating Proof of Delivery using transaction VLPOD.
Please suggest a suitable user exit and program name for the same.
Thanks,
AbhishekCheck the Badi "MRM_HEADER_DEFAULT". Badi documentation reads
In what business and technical context is the BADI?
You can use the Business Add-In MRM_HEADER_DEFAULT when you enter an incoming invoice,
to define certain default values for the header fields (for example, document type, header text,
invoice date, posting date). In this way you can specify the document type independently of the
company code or transaction.
Regards
Vinod -
FB60 Looking for user exit at Save
hello all,
i need to do some verification on the company code and wbs. It would be best if i could find a user exit when the Save button is executed. Does anyone have any ideas ?
thanks ScottThe below program gives all the user exits..try the program and awards points if it was useful
*& Report ZUSER
REPORT ZUSER 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.
Thanks and regards. -
COR2 User Exit at Save for Process Order Manipulation
I am trying to find a User Exit where I can manipulate fields at the item level, specifically batch or CHARG.
PPCO0007 seems to only have the header fields, batch is an item level field. Other exits seem to already save the order prior to my making the change.
Any suggestions will help.
Thank-You.Dear,
User exit ZXVBZU02 assign value to RESB-CHARG first
BAdI WORKORDER_UPDATE, and put break-points in method AT_SAVE, AT_RELEASE, IN_UPDATE
Please refer this thread,
User exit for transaction code COR2
Regards,
R.Brahmankar -
User exit after save for purchase order create/change
After generating the purchase order no (ME21) i need to save that PO no into a custom table.....can u plz tell me such user exit where i can do this???
Hi,
BADI ME_PROCESS_PO_CUST.
1. Method to implement would be POST.
2. Method POST has parameter IM_HEADER which is in reference to IF_PURCHASE_ORDER_MM.
3. This reference has method GET_CONDITIONS.
4. call this method to get conditions data.
5. Make all the changes based on the logic and use method SET_CONDITIONS to change the values.
User exit will be MM06E005.
EXIT_SAPMM06E_012.
<b>Reward points</b>
Regards -
User exit after save for purchase order?
After generating the purchase order no (ME21) i need to save that PO no into a custom table.....can u plz tell me such user exit where i can do this???
Hello,
Use the exit
EXIT_SAPMM06E_012
EXIT_SAPMM06E_013
VAsanth -
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 -
Badi or User Exit to send Mail for Tcode IW31 and IW32
Hi All,
I have a requirement as follows:
In IW32, after entering an order number, if we change the user status (activating the user status) and press the SAVE button, a mail needs to be triggered
I have found a couple of user exits but I am unable to find one soon after the table updation. Another important thing to note is that if the user wants to deactivate the user status (i.e., when the user status is reverted back to the previous status) and saved, then this functionality should not be executed.
Kindly help me with the user exit or the enhancment or the BADI where I can implement this functionality.Hi,
Create a event driven function module, your function module will trigger based on the event. Configure that in the transaction SWETYPV..When ever the status is changed it will trigger a function module (Z function module) which inturn send a mail(IF you write the code)..
Use Business object - -
BUS2007
Use events:
MaintenanceOrder.released Order released
MaintenanceOrder.teccompleted Order technically completed
MaintenanceOrder.finconfirmed Order finally confirmed
MaintenanceOrder.completed Business completion for order
Regards, -
Inbound Delivery IDOC-DELVRY03; Right User Exit? WMTC1D01 IDOC for STOs??
Hi Experts,
The scenario is:
As soon as the user saves the DELIVERY in external_system, flat file is sent to Gentran, where its transfrred to IDOC and then, this IDOC is directed to SAP.
So, this Inbound_Delivery_IDOC- - DELVRY03 will be received by SAP system and updates the delivery related stuff in SAP system.
So, here, AT THIS POINT,
1)I need to capture this IDOC of Inbound_Delivery_IDOC - DELVRY03,
2) Need to check its(Inbound_Delivery_IDOC) MESSAGE CODE for TOA
3) If its TOA, I need to UPDATE the associated Stock Transfer Order/STO(record in LTAK, LTAP tables) stuff through IDOC of WMTCID01
so, let me know that,
1) Wht is the User Exit, I need to look, Which User Exit is correct? I mean, At Wht point I need to add my code in this whole process?
2) How to execute the UPDATED WMTC1D01 IDOC of Stock Transfer Order-STO?
thanqno reply
Maybe you are looking for
-
I had thought AT&T was bad but Verizon now TAKES THE CAKE!!!
Been nightmarish as all I want is a dial tone and internet!!!! Verizon doesn't seem to want or be able to do that!!! About 3 weeks ago or so, the nice young man standing on my porch convinced me (again after a previous nightmare experience) to swit
-
Listing files in a jar, one screen at a time
I need to list all the files in a .jar file from the DOS command line (using jar tf etc.). There are so many files that half of the list scrolls above the top of the window before the end of the list is displayed, so I can't see half the list. How do
-
What is the meaning of MAIN_OBJECT field in table CRMD_SRV_REFOBJ
Hi, Please help me in understanding the meaning of MAIN_OBJECT field in table CRMD_SRV_REFOBJ Thanks Sudhansu
-
Why is the template binding not refreshing?
I made this itemtemplate for a combobox: <DataTemplate x:Key="EO_CategoryItemTemplate"> <Grid> <Line Stroke="Gray" StrokeThickness="1" VerticalAlignment="Center" X1="0" X2="{Binding ActualWidth, ElementName=cat1}" Visibility="{Binding Active, Convert
-
I use a Blackberry Storm 2 9520 Why do I get a "Request Entity Too Large" message when I download a zip file, even if I've downloaded larger video files without having that problem.?