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 Scott
The 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.
Similar Messages
-
Hello SAP Guru,
We are having the challenging in performing posting to multiple G/L accounts per shipment. This is required, for example, if customer, interplant, and/or inbound orders are combined onto one shipment.
We found this BADI that allows system to work the way we want; however, BADI is not support in 4.5B.
This BADI is linked to enhancement LMR1M002 and function module MR_ACCOUNT_ASSIGMENT. Please refer to note 64204.
Please advise, I am looking something similar that work in SAP 4.5B.
Regards,
SongHi,
Please try this:
Enhancement LMR1M002 Account grouping for GR/IR account maintenance
Enhancement MRMH0001 Logistics Invoice Verification: ERS procedure
Enhancement LMR1M001 User exits in Logistics Invoice Verification
Enhancement LMR1M005 Logistics Inv. Verification: Release Parked Doc. for Posting
Enhancement LMR1M004 Logistics Invoice Verification: item text for follow-on docs
I hope this may helpfull and let me know wht exactly the business needs so I can give you some more exits.
Thank you,
Thanks,
AMS -
Hello,
I'm looking for an enhancement which will allow me to add fields to the table control in transaction MB26 (Screen 130)
Thanks
Ziv.The program is PP_PICK_LIST, doubt there will be an exit in it.
Easiest to create a Z copy and update as you like. -
Looking for user exit in PO outbound process.
HI all,
I am trying to deploy ALE scenario between two SAP systems.
Application is PO to SO conversion .
I have this Message at receiver End.
Hope some one can help ,
1)how should i specify ? these values(in my case it can
be constant values).
If i am not wrong i should go the MM06E001.
But under this i found few other modules.
Can you tell me, which is the include or module to place these values.
Thanks in Advance
Satheesh.
<b>VKORG, VTWEG, SPART cannot be determined for customer 0000002000 , vendor 0000005000</b>
Message no. VG204
<b>Diagnosis</b>
No sales organization, distribution channel or division were sent to the IDOC. This data is necessary if a sales order is to be added automatically. If this data is unavailable, you cannot create a sales order document.
<b>Procedure</b>
If data on the sales organization, distribution channel and division have not been entered in the IDOC, it must be determined using a user exit defined in the program.Thanks Elisabet ,
Wow, it really helped me.
But now i have the <b>Status</b> code of <b>62</b>
after using <b>WE19</b>.
Not a serious error(i guess), but certainly idoc has
not posted.
Can i expect a reply towards solving this case?
Regards
Satheesh -
Hi,
I have a task here that needs to send external email to the employee's manager whenever the approver set the status from 'released for approval' to 'approve'.
which is status 20 to 30 in CATSDB-STATUS thru transaction code CAT4 or
CATS_APPR_LITE.
Can anyone give some help here?
Thanks in advance.Hi,
there are mainly three ways to trigger a workflow:
- linked to a change document, because in standard function module to write change documents a trigger for a workflow is pre-designed. With workflow-customizing you can activate an active trigger.
- linked to output messages. There is a medium 9, which is the workflow trigger.
- linked to status changes. Maybe not all status change functions include a pre-designed workflow trigger, but at least for status in table JEST it should be possible to make workflow-customizing to activate a trigger.
- 'manually' with a function module SWE_EVENT_CREATE.
It's also possible to define filters (e.g. only status = approved), so your example was perfectly fitting workflow possibilities. If no other option is fitting, have a look at above mentioned exit.
Then you still have the question, should you try to define a workflow or just create a mail by FM. There I can't help you, this depends more on your skills and time.
Regards,
Christian -
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 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 PMHere 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( -
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 -
Value for user-exit variable is invalid
Hi Gurus,
My Value for a Fiscal Year Prd returns a invalid value for the 12th month of each year( for Example 12/2004, returns the error "Value 200313 for User-exit variable is invalid.
This is the code that is being used.
*Rolling 12 months for entered month
when 'ZCALM12'.
clear: v_mth, v_yr.
REFRESH E_T_RANGE.
CLEAR L_S_RANGE.
LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE
WHERE VNAM = 'ZCALMON'.
exit.
endloop.
v_yr = LOC_VAR_RANGE-LOW+0(4) - 1.
v_mth = LOC_VAR_RANGE-LOW+4(2) + 1.
L_S_RANGE-SIGN = 'I'.
L_S_RANGE-OPT = 'BT'.
concatenate v_yr v_mth into L_S_RANGE-LOW.
L_S_RANGE-HIGH = LOC_VAR_RANGE-LOW.
APPEND L_S_RANGE TO E_T_RANGE.
Thanks in Advance.Hi Ravi,
when 'ZCALM12'.
clear: v_mth, v_yr.
REFRESH E_T_RANGE.
CLEAR L_S_RANGE.
LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE
WHERE VNAM = 'ZCALMON'.
exit.
endloop.
<b>-->> Here, you are not checking any thing.</b> <i>On which logic you are reducing year by one and increasing month by 1..?</i>
v_yr = LOC_VAR_RANGE-LOW+0(4) - 1.
v_mth = LOC_VAR_RANGE-LOW+4(2) + 1.
-->><i>IF month is 200512 you will get output from above code is :</i> please check.
v_yr = 2005 - 1 = 2004
v_mth = 12 +1 = 13.
L_S_RANGE-SIGN = 'I'.
L_S_RANGE-OPT = 'BT'.
concatenate v_yr v_mth into L_S_RANGE-LOW.
L_S_RANGE-HIGH = LOC_VAR_RANGE-LOW.
APPEND L_S_RANGE TO E_T_RANGE.
Try to debug the code by keeping break point after When. and execute the report, you will be debugging mode.
Hope it Helps
Srini -
Need help for user exit mereq001
Hi,
I need help for user exit mereq001. I think I messed up with include table CI_EBANDB and CI_EBANMEM. And When I tried to check the syntax . It gives me error like : <b>Class IF_PURCHASE_REQUISITION. Inconsistency in the dictionary for the structure mereq_item_s_cust_data.</b> Anyone had experience for this exit? I just need to extract costcenter information of the each item from the requisition and block the requisiton if the costcenter are differents from each other before the requisition is saved. Any one has idea about it?
Thanks.biao,
Have you checked this struture consistency from SE11. Also check the activation log.
If there are any errors and you are not able to rectify the same use RSDDCHECK program, give your table name and run the report.
This will list down the error structures releated this table and also prompts for you to activate it.
Regds
Manohar -
hello
can you please let me the know the enhancement for user exit:exit_sapliqs0_001
regards
anikHi,
these are teh enhancements that r available...u need to check each of them.
IWO10026 User check on setting status 'Do not perform'
IWO10027 User exit: Generate user-defined settlement rule
IWOC0001 Create PM/SM notification: Determine reference object
IWOC0002 PM/SM notification: Check whether status change is allo
IWOC0003 PM/SM authorization check of ref. object and planner gr
IWOC0004 Change single-level list editing PM/QM/SM ALV settings
Regards,
nagaraj -
Hi is there any code for user exits in bw
can you help me out with user exits in bw reporting pls
http://abapcode.blogspot.comHi Amit,
i have good document for user exits in bw. pls send me ur email i will send the document.
hope that will help you to resolve.
<b>Reward pts if found usefull:)</b>
Regards
Sathish -
hey guys i want the code for user-exits for inclusion of Excise Chapter ID mandatory in PO .....
regards,
Naveenwhich user exit u are using ?
check the BADI for the same .
SE15->Enhancements->BADI--->definations -
>search on Package = ME.
and see BADI definition called Process _cust.
Regards
Peram -
Hi all,
the requirement is...
In MIRO,the Incoimg invoice should not be posted without an empty field of amount(WRBTR) in the Basic Data.Currently as per std,it's not a mandatory field and can be posted by not entering any amount in that.So, either we have to make it as a mandatory field or should restrict not to saving the data if posting of empty field.(Not giving any amount)***seems,it tells the user to give the amount as mandatory.
How to do this.....if its coming under the USER Exit object...pls post both how to get the std program and enhancement assignment(it asks while creating user exit in CMOD) also for user exit.
thanks & regards
sankar.hi
Program name is SAPLMR1M
For MIRO tcode, you have below user exits.
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
EXIT_SAPLMR1M_003 may useful to you. Check with this.
Reward if it dose
Thanks
Siva Kumar. -
Can anyone tell me what are the precautions to be taken for user exits?
i mean...what are the ABAP statements that are not used in user exits...
can anybody plz suggest me?Hi,
Welcome to SDN.
COMMIT WORK should not be used in a user exit. This reason is that it could/will commit all work done by the entire transaction and could possibily create data inconsistancy.
Also LEAVE TO TRANSACTION and SUBMIT statements should also be not used. It will terminate the current LUW.
Regards,
Ferry Lianto
Please reward points if helpful.
Maybe you are looking for
-
Mac Mini mid.2011 8GB to 16GB RAM,is it possible?
Hello everybody, could you please assist to resolve my question. (sorry for my bad english) ok, lets try)) - i have mac mini mid.2011,i5 2.3GHz,8RAM,IntelHD3000-256MB,Mavericks. i want to upgrade my RAM 1333Mhz DDR3 from 8 GM to 16GB. will it work? B
-
Odd GREP results (CS4 Mac, CS3 PC)
Hi all I'm using a series of expressions strung together in a JavaScript to format the copy supplied for a Contents page. The copy is supplied as basically a list separated by returns, eg; Jeremy Smith Made Up Name, National Gallery, London Brian Smi
-
Creative Zen Touch won't start up or char
I've had this player for over two years now with no issues. However, i allowed the battery charge to run down completely and now it will not charge when i connect to the USB charger (to the wall or the PC). It will not turn on at all and the "chargin
-
package Elevator; public class Direction{ public static Direction UP = new Direction("UP"); public static Direction DOWN = new Direction("DOWN"); private String a; private Direction( String a ) { this.a = a; pu
-
Costomize user to connect with rman except SYS
Hi Experts, i need your help. actually we are taking backup by RMAN by scripts and in scripts we are using connect string as below rman target sys/oracle@testdb in this connect string we want to change this user mean we want we use a costmise user wi