User exit to find sy-comm when user select a tab at item level data in VA02
Hi Gurus,
is there any user exit in VA02 in which we can find the command button pressed in the sale order line item data where we find sales A sales B .....and condition tab in the screen.
rewards for sure.
thanks
Dear Mandy,
How to find user exits:
Display the program where you are searching for and exit and search for CALL CUSTOMER-EXIT
If you know the Exit name, go to transaction CMOD.
Choose menu Utillities->SAP Enhancements. Enter the exit name and press enter.
You will now come to a screen that shows the function module exits for the exit.
3. Using Project management of SAP Enhancements, we want to create a project to enahance trasnaction VA01 .
- Go to transaction CMOD
- Create a project called ZVA01
- Choose the Enhancement assign radio button and press the Change button
In the first column enter V45A0002 Predefine sold-to party in sales document.
Note that an enhancement can only be used in 1 project. If the enhancement is already in use, and error message will be displayed
Press Save
Press Components. You can now see that enhancement uses user exit EXIT_SAPMV45A_002. Double click on the exit.
Now the function module is displayed. Double click on include ZXVVAU04 in the function module
Insert the following code into the include: E_KUNNR = '2155'.
Activate the include program. Go back to CMOD and activate the project.
Goto transaction VA01 and craete a salesorder.
Finding the user-exits of a SAP transaction code
* Finding the user-exits of a SAP transaction code
* Enter the transaction code in which you are looking for the user-exit
* and it will list you the list of user-exits in the transaction code.
* Also a drill down is possible which will help you to branch to SMOD.
report zuserexit no standard page heading.
tables : tstc, tadir, modsapt, modact, trdir, tfdir, enlfdir.
tables : 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 obligatory.
select single * from tstc where tcode eq p_tcode.
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 = '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.
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.
*---End of Program
Best Regards,
Rajesh
<b>Please award points if found helpful.</b>
Similar Messages
-
Is it have some User exits for Vendor master trigger when click some field
Dear Experts,
I would like to know Is it have User exit for Vendor master trigger when click some field in Vendor master? not just User exit for Prior Save . Please kindly let me know some solution for this case.
Many thank.Hi,
check may this bapi will be useful your requirements, BAPI_VENDOR_CREATE
below links may helpful for you:
BADI http://help.sap.com/saphelp_erp2005/helpdata/en/73/7e7941601b1d09e10000000a155106/frameset.htm http://support.sas.com/rnd/papers/sugi30/SAP.ppt http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/abapindx.htm http://members.aol.com/_ht_a/skarkada/sap/ http://www.ct-software.com/reportpool_frame.htm http://www.saphelp.com/SAP_Technical.htm http://www.kabai.com/abaps/q.htm http://www.guidancetech.com/people/holland/sap/abap/ http://www.planetsap.com/download_abap_programs.htm http://help.sap.com/saphelp_nw04/helpdata/en/c8/1975cc43b111d1896f0000e8322d00/content.htm /people/thomas.weiss/blog/2006/04/03/how-to-define-a-new-badi-within-the-enhancement-framework--part-3-of-the-series /people/thomas.weiss/blog/2006/04/18/how-to-implement-a-badi-and-how-to-use-a-filter--part-4-of-the-series-on-the-new-enhancement-framework http://esnips.com/doc/e06e4171-29df-462f-b857-54fac19a9d8e/ppt-on-badis.ppt http://esnips.com/doc/43a58f51-5d92-4213-913a-de05e9faac0d/Business-Addin.doc http://esnips.com/doc/10016c34-55a7-4b13-8f5f-bf720422d265/BADIs.pdf http://esnips.com/doc/1e10392e-64d8-4181-b2a5-5f04d8f87839/badi.doc http://esnips.com/doc/365d4c4d-9fcb-4189-85fd-866b7bf25257/customer-exits--badi.zip http://esnips.com/doc/3b7bbc09-c095-45a0-9e89-91f2f86ee8e9/BADI-Introduction.ppt http://help.sap.com//saphelp_470/helpdata/EN/eb/3e7cee940e11d295df0000e82de14a/frameset.htm USER EXIT http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm http://www.sapgenie.com/abap/code/abap26.htm http://www.sap-img.com/abap/what-is-user-exits.htm http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction http://www.easymarketplace.de/userexit.php http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm http://www.sappoint.com/abap/userexit.pdfUser-Exit http://www.sap-img.com/ab038.htm http://help.sap.com/saphelp_46c/helpdata/en/64/72369adc56d11195100060b03c6b76/frameset.htm http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm http://www.sap-img.com/abap/what-is-user-exits.htm http://expertanswercenter.techtarget.com/eac/knowledgebaseAnswer/0,295199,sid63_gci982756,00.html Rewards if useful......... Minal
still if you not find any solution go for custom exit, means in standard program only ABAP consultant change the program where you required, it is little risk, you have to do the more testing for this
BR:
Venkat.Gurram -
User exit to change item level data in purchase order
Hi,
Can anyone let me know the user exit to change item level data in purchase order . there is a badi ME_PROCESS_PO_CUST for this but the issue is its method process_item gets triggered only when the item is changed. My requirment is
For purchase order document types u201CZSOu201D and u201CZCOu201D, where the purchase order is a u201CLimits Orderu201D only i.e. no materials or services on the purchase order, the print price indicator field should be set to u201Cblanku201D (unchecked). now i cant use ME_PROCESS_PO_CUST because process_item wont get triggered if there is no change in itemlevel data.
Regards,
RahulHi Rahul,
Probably EXIT_SAPLMEKO_002.
hope it helps,
Edgar -
Help - User exit to change item level data in Purchase Order
Hi,
Can anyone let me know the user exit to change item level data in purchase order . there is a badi ME_PROCESS_PO_CUST for this but the issue is its method process_item gets triggered only when the item is changed. My requirement is For purchase order document types u201CZSOu201D and u201CZCOu201D, where the purchase order is a u201CLimits Orderu201D only i.e. no materials or services on the purchase order, the print price indicator field should be set to u201Cblanku201D (unchecked). now i cant use ME_PROCESS_PO_CUST because process_item wont get triggered if there is no change in item level data.
Thanks,
RahulHi Rahul,
Probably EXIT_SAPLMEKO_002.
hope it helps,
Edgar -
User EXIT to suppress or disable "Conditions" tab at item level in va02
hi gurus,
well i have very urgent requirement to suppress Condotion tab at item level in va02 based upon authority object, did you know where i can disable the function code "T\05" or suppress subscreen.
my requirement is that when a user press on condotion tab he should not be able to see pricing detail data.
will reward points for sure
mandyHi Mandy,
I think you can do through SHD0 Transaction by creating transaction variants.
If not possible there could be some customization from SPRO, consult with your functional guy.
Check this enhancement MV45AFZZ
PERFORM USEREXIT_FIELD_MODIFICATION, I think in this perform you may disable, check this
Regards,
Satish
Message was edited by:
Satish Panakala -
How do I keep the find bar open when scrolling through multiple tabs?
The newest update of Firefox doesn't allow me to keep the find bar open when shifting through multiple tabs. I've tried Findbar tweak however that erases the search criteria as soon as I try to scroll down the page to the next location. Anyone know how to keep the find bar open when i shift from one tab to the next?
There is a more up-to-date "beta" version of FindBar Tweak you could try, if you haven't tested it already. You can find it on the extension's "Versions" page here:
https://addons.mozilla.org/firefox/addon/findbar-tweak/versions/
I did see one other extension with a similar purpose (I haven't tried it myself):
https://addons.mozilla.org/firefox/addon/globalfindbar/ -
User Exit or BADI for IW31 when Saving the Service Order
Dear ABAPers,
I would like to add one more line in Service order item when saving the Service order in (IW31) at runtime.Is there User Exit or BAdI.It is very Urgent Please help me.
Thanks & Regards,
Ashok.Hi
U can go through the tansaction.
System/ Status
Double click on program name.
For badis:
Search for the Phrase:
cl_exithandler=>get_instance.
U will the badi definitions.
For User exits:
search for the phrase: CALL CUSTOMER-FUNCTION
u will get the user exits.
If it is helpful rewards points.
Regards
Pratap.M -
User Exit to Create Production Order when creating of Purchase Order
Hi Guru's,
I want to create the Production Order when creating the Purchase Order. i want to know is there any user exit exists for that??
My scenario is as follows.
we are converting the Purchase Requisition to the Purchase Order , while doing this we want to create the Production Order.. Is this possible??
If possible how can we do that???Please suggest me the possible solution.
Thanks in advance.
Thank you,
Adi.Teja,
My Scenario is as follows.
P1- Manufacturing Plant
P2 - WareHouse Plant (Procures Material from P1 using STO)
When we run the MRP in P2, it creates a Purchase Requisition, that Purc.Req is going to be convert as STO (Stock Transport Order) in P1 Plant.
When converting the Purchase Req to STO, we need to create a Production Order in P1 Plant.
we know that system will creae the Purchase Order only, is there any possibility that,For creating the Production Order is there any user Exit/BADI or any other procedure while creating the Purchase Order????
Thanks,
Adi. -
User Exit/BADI after database commit in VA01/VA02
Hi All,
Can you tell me an user exit/BADI in VA01/VA02 which I can utilize AFTER the database commit but still utilize the tables/structures like xvbap, xvbkd etc? Thanks.
Best Regards,
AvimanyuHi Sengupta,
Usually there are no user-exits after COMMIT.
What you need to do is register a call which will be executed after COMMIT, from one of the available user-exits.
To do this, SAP provides 2 methods:
1. PERFORM xxx ON COMMIT
2. Function Module with attribute "Update Module"
Check ABAP keyword help for more information for PERFORM xxx ON COMMIT.
<a href="http://help.sap.com/saphelp_46c/helpdata/en/34/8e72cc6df74873e10000009b38f9b8/frameset.htm">http://help.sap.com/saphelp_46c/helpdata/en/34/8e72cc6df74873e10000009b38f9b8/frameset.htm</a>
Hope this helps.
Regards,
Sumant.
PS: Reward points if this is helpful. -
Finder window opens when user logs in
I apologize if this has been answered previously - I can't find anything on this topic.
Every time a user logs in to one of my eMacs - OS 10.4.10 (whether it be a local or network user) a new finder window opens that displays the users home. I would like this window to stop opening. I've read some responses that say to close the window then log out and the window should be gone when you log back in. That is not the case. I thought this solution my work on my local users but it doesn't work for either type of user.
I'm trying to avoid writing a script to close the window. I'd like the window to just stop opening in the first place. I tried editing the finder.plist file and I can change what the window opens to, but I can't "turn off" the actual opening of the window.
Any suggestions are greatly appreciated!
Thanks!I do not have anything checked in the login items. This is happening for both local and network accounts. I'm more concerned about this issue for my network users.
I've discovered that the problem seems to have something to do with a script I had running via a login hook. Is there any way to run a script when a network user logs in without adding it to a login hook?
We have a program on our eMacs that resets the computer back t o its original state every time the computer is restarted. For this reason network user profiles are never stored on the eMac they are recreated from the default user template every time a user logs in.
Maybe this extra information will help!
Thanks! -
Any user exit for updating VBRK-XBLNR when the billing is created?
Hi all,
I understand that in VTFL, there are 4 options for Reference number.
But if i want it has a special value, how i can achieve it?
Thanks,
JamesHi,
See Note 301077 - User exits for the interface to accounting. I think that EXIT_SAPLV60B_001 is the right option.
Regards
Eduardo
PD: althought perhaps USEREXIT_FILL_VBRK_VBRP in RV60AFZC fits better for your requirement.
Edited by: E_Hinojosa on Jan 25, 2011 9:08 AM -
User exit / BADI for updating STO when change in subcontracting PO
Hi
The requirement is to update the STO (stock transfer order ) when their any change in subcontracting PO at item level. Is there any exit or BADI available where STO quantity and delivery date will be updated after any change in PO at item level ?
Thanks
ManasDeepak, Exits for MB1B are
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. -
User exit/BADI for tracing change of User Status in IW22
Hello,
I am looking for a user exit or BADI that triggers whenever ther's a change made to User status field.
eg. changing user status to APTC(Approved to be executed)
I then need the exit/badi to trigger my workflow to send mails to list of reviewers. I can handle that but I am not able to find the suitable exit.
I have seen BADI IQS0_STATUS_MAINTAIN, but no use.
Can anyone help?Hi..
Transaction Code - IW22 Change PM Notification
Enhancement/ Business Add-in Description
Enhancement
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 allowed
IWOC0003 PM/SM authorization check of ref. object and planner group
IWOC0004 Change single-level list editing PM/QM/SM ALV settings
Business Add-in
WOC_FL_DETERMINE Determine Date for Determining Installation Loc. Equi.
NOTIF_AUTHORITY_01 Additional Authorization Checks for the Notification
IWOC_OBJECTINFO_CHNG Changes to Data of Object Info Screen
IWOC_LIST_TUNING Performance Tuning for Lists in PM/CS
IWO1_SUBSCREEN_0170 Display Additional Data on Object Screen 0170 PhysicalSample
IQS_MASS_CHANGE BadI for Mass Changes to Notifications
IQS0_STATUS_MAINTAIN Control of Changeability of User Status
No.of Exits: 6
No.of BADis: 7
Arunima -
User exit for pricing to calculate net sales value and tax at billing level
Hi,
Can anyone give the solution for below thing.
I have written the code for to calculate the net sale a value and tax value based on condition types YTN1 & YTN2 and with pricing procedure "ZXTNIC" under user exit "userexit_field_modification" in include program LV69AFZZ
Calculation as per below
FD:
The user exit will run on the values of the line item and the header of the pricing conditions
The user exit will subtract the current net value from the value of the conditions YTN1 & YTN2, also the Tax value will be added to the value of the conditions YTN1 & YTN2.
Need the Net value = 8,032 and not 8,882 " here 8832 value is before calculation
This value will be calculated as follows = Current Net u2013 YTN1 u2013 YTN2 = 8,882 u2013 0,773 u2013 0,077 = 8,032
Need the Tax value = 2,395 and not 1,545 " here 1545 value is before calculation.
This value will be calculated as follows = Current Tax + YTN1 + YTN2 = 1,545 + 0,773 + 0, 077 = 2,395
When i will execute the VF01 transaction there in initial screen values are not updating automatically.Once we will select item line and then clicking on " item pricing condition" icon i.e., item level , then only the values are updating both in item level and header level.
But when we will execute the VF02 and VF03 the values are updating automatically as per condition.
So please suggest me is there any exit for this requirement.
Regards,
JayaramHi,
You should implement your logic in VOFM Copying routine for billing document.
Regards
Prasenjit -
BDC in user exit CONFPP05 - Material already used by User
I have requirement to create 551 movement Scrap from CO11N tcode whener user enters value for 'Yield' and 'Reason for variance' and press save button( Post).
I am unable to use BAPI because BAPI_GOODSMVT_CREATE (GMCODE 03= MB1A) since 551 mvmt can be done only through custom Tcode ZMB1A due to customization. Only option left was calling BDC for ZMB1A ( Call trasnaction been used) .
Problem:
BDC works outside as report program , but hen I call FM ( BDC) within userexit , it says Material lock by the user( Which is Me).
Calling from UserEXIT CONFPP05
CALL FUNCTION 'Z_POST_SCRAP_GI' ( Nothing but BDC call tran)
EXPORTING
MODE = 'N'
UPDATE = 'L'
bwart = mseg-bwart
werks = mseg-werks
grund = mseg-grund
lgort = afpo-lgort
matnr = mseg-matnr
erfmg = mseg-erfmg
erfme = mseg-erfme
aufnr = afpo-aufnr
TABLES
MESSTAB = MESSTAB .
This one works as report and not inside Userexit ( Returs errmsg already used by User which is myself).Here is the Dump, I am taking about after calling FM with Update Task
Category ABAP Programming Error
Runtime Errors POSTING_ILLEGAL_STATEMENT
ABAP Program SAPLY_FGRP
Application Component Not Assigned
Date and Time 03/06/2012 11:55:13
Short text
Statement "CALL TRANSACTION" is not allowed in this form.
|What happened?
Error in the ABAP Application Program
The current ABAP program "SAPLY_FGRP" had to be terminated because it has
come across a statement that unfortunately cannot be executed.
What can you do?
Note down which actions and inputs caused the error.
To process the problem further, contact you SAP system
administrator.
Using Transaction ST22 for ABAP Dump Analysis, you can look
at and manage termination messages, and you can also
keep them for a long time.
Error analysis
There is probably an error in the program
"SAPLY_FGRP".
This program is triggered in the update task. There, the
following ABAP/4 statements are not allowed:
- CALL SCREEN
- CALL DIALOG
- CALL TRANSACTION
- SUBMIT
How to correct the error
Probably the only way to eliminate the error is to correct the program.
If the error occures in a non-modified SAP program, you may be able to
find an interim solution in an SAP Note.
If you have access to SAP Notes, carry out a search with the following
keywords:
"POSTING_ILLEGAL_STATEMENT" " "
"SAPLY_FGRP" or "Y_ZMB1A_BDCREXCY"
"BDC_TRANSACTION"
If you cannot solve the problem yourself and want to send an error
notification to SAP, include the following information:
1. The description of the current problem (short dump)
To save the description, choose "System->List->Save->Local File
(Unconverted)".
2. Corresponding system log
Display the system log by calling transaction SM21.
Restrict the time interval to 10 minutes before and five minutes
after the short dump. Then choose "System->List->Save->Local File
(Unconverted)".
3. If the problem occurs in a problem of your own or a modified SAP
program: The source code of the program
In the editor, choose "Utilities->More
Utilities->Upload/Download->Download".
4. Details about the conditions under which the error occurred or which
actions and input led to the error.
Source Code Extract
Line
SourceCde
27
HOLDDATE = P_HOLDDATE.
28
ENDIF.
29
*ENDFORM.
30
31
32
end batchinput session *
33
34
*FORM CLOSE_GROUP USING P_CTU LIKE APQI-PUTACTIVE.
35
IF P_CTU <> 'X'.
36
close batchinput group
37
CALL FUNCTION 'BDC_CLOSE_GROUP'.
38
ENDIF.
39
*ENDFORM.
40
41
42
Start new transaction according to parameters *
43
44
FORM BDC_TRANSACTION TABLES P_MESSTAB
45
USING P_TCODE
46
P_CTU
47
P_MODE
48
P_UPDATE.
49
DATA: L_SUBRC LIKE SY-SUBRC.
50
51
IF P_CTU <> 'X'.
52
CALL FUNCTION 'BDC_INSERT'
53
EXPORTING TCODE = P_TCODE
54
TABLES DYNPROTAB = BDCDATA
55
EXCEPTIONS OTHERS = 1.
56
ELSE.
>>>>>
CALL TRANSACTION P_TCODE USING BDCDATA
58
MODE P_MODE
59
UPDATE CUPDATE
60
MESSAGES INTO P_MESSTAB.
61
ENDIF.
62
L_SUBRC = SY-SUBRC.
63
REFRESH BDCDATA.
64
SY-SUBRC = L_SUBRC.
65
ENDFORM.
66
67
68
Start new screen *
69
70
FORM BDC_DYNPRO USING PROGRAM DYNPRO.
71
CLEAR BDCDATA.
72
BDCDATA-PROGRAM = PROGRAM.
73
BDCDATA-DYNPRO = DYNPRO.
74
BDCDATA-DYNBEGIN = 'X'.
75
APPEND BDCDATA.
76
ENDFORM.
Active Calls/Events
No. Ty. Program Include Line
Name
7 FORM SAPLY_FGRP Y_ZMB1A_BDCREXCY 57
BDC_TRANSACTION
6 FUNCTION SAPLY_FGRP LY_FGRPU02 81
Y_POST_SCRAP_GI
5 FORM SAPLY_FGRP LY_FGRPU02 1
Y_POST_SCRAP_GI
4 FORM RSM13000 RSM13000 5513
VB_CALL_FUNC
3 FORM RSM13000 RSM13000 5219
VB_V1_EXEC
2 FORM RSM13000 RSM13000 3952
VB_V1_NORMAL
1 MODULE (PBO) RSM13000 RSM13000 3801
VBEXEC
Chosen variables
Maybe you are looking for
-
How to go for a JCO connection
Hi All, I want to establish a jco connection. How can I proceed for the same . Can any one give me a step by step description. Regards DK
-
Photoshop Elements 12 or Premiere Elements 12 closes a second after opening program.
Hi, I got Photoshop Elements and Premiere Elements 12 as part of a bundle with a printer (Canon MG6620). I installed it and put in the serial numbers as provided. I click on Adobe Photoshop Elements 12 in my start menu, I get the start-up window that
-
Tableview rendering changes with SP50
Hi, last week we upgraded from SP47 to SP50 and noticed some changes in the tableview rendering. Take a look at these screenshots (demo application SBSPEXT_HTMLB): https://weblogs.sdn.sap.com/weblogs/images/32510/sp47.jpg https://weblogs.sdn.sap.com
-
Hello All, Running on a MacMini running 10.7. Running Photoshop CS4 11.0.2. Running a brand new MacMini that came with 10.7 installed. I restored from a backup that was running on 10.6. Photoshop will run if I only click the app. Howeve
-
Deploying selected projects to the server for testing?
I have an application that is comprised of several self-contained projects. Is there a way to deploy two of the projects within the application without deploying the rest of them? For example, one of the projects is a stub while the other is the real