Need User Exit which wll allow to display a error message
Hello All,
i need a User Exit in Tx ME21N .
When user try to drag multiple PR for PO at that instant only there should be an User Exit which will restrict the user to doing so with a error message.
ME_CHECK_ALL_ITEMS
ME_CCP_ACTIVE_CHECK
MD_EXT_SUP
ME_DEFINE_CALCTYPE
MD_STOCK_TRANSFER
ME_PROCESS_PO_CUST
These are the BADIs gettting triggered while dragging the PR's to PO creation.
You can check any of these as per your requirement.
Check if the BADI 'ME_PROCESS_PO_CUST' is useful.
Similar Messages
-
User Exit which runs after pressing SAVE button at VF01 Screen.
Dear all,
I need user Exit which runs after pressing SAVE button at VF01 Screen.
Kind Regards,If you search the forum, you can find plenty of threads on this, for example Re: Badi or user exit for VF01 while save Can you let the forum know what exactly you want to achieve using user exit during saving of a billing document?
Regards, -
Need a badi or user exit which can trigger tr:AR31
need a badi or user exit which can trigger tr:AR31 ,based on ANLA-AKTIV,ANLB-AFABG.AND COULD ANY ONE explain indetail
There is no BADi for AR31 but you can use Exit:
AINT0002 Substitution of offsetting accounts in out- and inflow ...
AINT0003 Defining percentage/amount of repayment by invest. support -
To find a user exit which update the Invoice header data
Hi,
I need a user exit which will update the invoice header data. For eg I need to update the fields RBKP_V-ESRNR and RBKP_V-ESRRE in table RBKP_V. I was using this user exit EXIT_SAPLMRMP_010 (Program ZXM08U16).But this is not working fine as this has no exporting parameter nor tables of structure RBKP_V.
I need for transaction MIRO.
Kindly help ...
Points will be rewarded
Thanks in advanceHi jayasree,
with the help of the below given program you can find out the requried user exit by giving the T code (MIRO).
*& Report Z_USEREXIT_DISPLAY *
Title : Display UserExits *
Transport Request No : *
Modification Log *
ModNo Date Consultant Description of Change(s) *
REPORT z_userexit_temp
NO STANDARD PAGE HEADING
LINE-SIZE 200
MESSAGE-ID zz.
T A B L E D E C L A R A T I O N S *
TABLES: tftit,
e071,
e070.
S T R U C T U R E D E C L A R A T I O N S *
TYPES: BEGIN OF x_tstc,
tcode TYPE tcode,
pgmna TYPE program_id,
END OF x_tstc.
TYPES: BEGIN OF x_tadir,
obj_name TYPE sobj_name,
devclass TYPE devclass,
END OF x_tadir.
TYPES: BEGIN OF x_slog,
obj_name TYPE sobj_name,
END OF x_slog.
TYPES: BEGIN OF x_final,
name TYPE smodname,
member TYPE modmember,
include(15), "Include name
END OF x_final.
I N T E R N A L T A B L E D E C L A R A T I O N S *
DATA: it_tstc TYPE STANDARD TABLE OF x_tstc WITH HEADER LINE.
DATA: it_tadir TYPE STANDARD TABLE OF x_tadir WITH HEADER LINE.
DATA: it_jtab TYPE STANDARD TABLE OF x_slog WITH HEADER LINE.
DATA: it_final TYPE STANDARD TABLE OF x_final WITH HEADER LINE.
V A R I A B L E S D E C L A R A T I O N S *
U S E R I N P U T S S C R E E N *
S E L E C T I O N S C R E E N *
SELECTION-SCREEN: BEGIN OF BLOCK blk01 WITH FRAME TITLE text-t01.
PARAMETERS: p_tcode LIKE tstc-tcode OBLIGATORY.
SELECTION-SCREEN END OF BLOCK blk01.
S t a r t o f S e l e c t i o n *
START-OF-SELECTION.
PERFORM get_tcodes. "Get Tcodes
PERFORM get_objects. "Get Objects
E n d o f S e l e c t i o n *
END-OF-SELECTION.
PERFORM display_results. "Display Results
*& Form get_tcodes
Get Tcodes
FORM get_tcodes.
SELECT tcode
pgmna
INTO TABLE it_tstc
FROM tstc
WHERE tcode = p_tcode.
IF sy-subrc = 0.
SORT it_tstc BY tcode.
ENDIF.
ENDFORM. " get_tcodes
*& Form get_objects
Get Objects
FORM get_objects.
DATA: l_fname LIKE rs38l-name,
l_group LIKE rs38l-area,
l_include LIKE rs38l-include,
l_namespace LIKE rs38l-namespace,
l_str_area LIKE rs38l-str_area.
DATA: v_include LIKE rodiobj-iobjnm.
DATA: e_t_include TYPE STANDARD TABLE OF abapsource WITH HEADER LINE.
DATA: l_line TYPE string,
l_tabix LIKE sy-tabix.
IF NOT it_tstc[] IS INITIAL.
SELECT obj_name
devclass
INTO TABLE it_tadir
FROM tadir FOR ALL ENTRIES IN it_tstc
WHERE pgmid = 'R3TR' AND
object = 'PROG' AND
obj_name = it_tstc-pgmna.
IF sy-subrc = 0.
SORT it_tadir BY obj_name devclass.
SELECT obj_name
INTO TABLE it_jtab
FROM tadir FOR ALL ENTRIES IN it_tadir
WHERE pgmid = 'R3TR' AND
object = 'SMOD' AND
devclass = it_tadir-devclass.
IF sy-subrc = 0.
SORT it_jtab BY obj_name.
ENDIF.
ENDIF.
ENDIF.
*- Get UserExit names
LOOP AT it_jtab.
SELECT name
member
INTO (it_final-name, it_final-member)
FROM modsap
WHERE name = it_jtab-obj_name AND
typ = 'E'.
APPEND it_final.
CLEAR it_final.
ENDSELECT.
ENDLOOP.
*- Process it_final contents.
LOOP AT it_final.
l_tabix = sy-tabix.
CLEAR: l_fname,
l_group,
l_include,
l_namespace,
l_str_area.
l_fname = it_final-member.
CALL FUNCTION 'FUNCTION_EXISTS'
EXPORTING
funcname = l_fname
IMPORTING
group = l_group
include = l_include
namespace = l_namespace
str_area = l_str_area
EXCEPTIONS
function_not_exist = 1
OTHERS = 2.
IF sy-subrc = 0.
IF NOT l_include IS INITIAL.
*- Get Source code of include.
CLEAR: v_include, e_t_include, e_t_include[].
v_include = l_include.
CALL FUNCTION 'MU_INCLUDE_GET'
EXPORTING
i_include = v_include
TABLES
e_t_include = e_t_include.
IF sy-subrc = 0.
LOOP AT e_t_include.
IF e_t_include-line CS 'INCLUDE'.
CLEAR l_line.
l_line = e_t_include-line.
CONDENSE l_line NO-GAPS.
TRANSLATE l_line USING '. '.
l_line = l_line+7(9).
it_final-include = l_line.
MODIFY it_final INDEX l_tabix TRANSPORTING include.
ENDIF.
ENDLOOP.
ENDIF.
ENDIF.
ENDIF.
ENDLOOP.
ENDFORM. " get_objects
*& Form display_results
Display Results
FORM display_results.
FORMAT COLOR COL_HEADING.
WRITE:/1(150) sy-uline.
WRITE:/ sy-vline,
2(23) 'Extension Name',
24 sy-vline,
25(39) 'Exit Name',
64 sy-vline,
65(74) 'Description',
140 sy-vline,
141(9) 'Include',
150 sy-vline.
WRITE:/1(150) sy-uline.
FORMAT RESET.
SORT it_final BY name member.
LOOP AT it_final.
CLEAR tftit.
SELECT SINGLE stext
INTO tftit-stext
FROM tftit
WHERE spras = 'EN' AND
funcname = it_final-member.
WRITE:/ sy-vline,
it_final-name COLOR COL_KEY, 24 sy-vline,
25 it_final-member, 64 sy-vline,
65 tftit-stext, 140 sy-vline,
141 it_final-include, 150 sy-vline.
WRITE:/1(150) sy-uline.
ENDLOOP.
Regards
Srinivas -
need user exit name
which allow me to process my logic
when exactly the sales order is generated for VA01.
I want to process my logic at that time only.
points will be awarded for good answers.
Thanks
RajhI,
Check out this documentation.....
http://help.sap.com/saphelp_46c/helpdata/en/64/72369adc56d11195100060b03c6b76/frameset.htm
Under user exits>user exits in sales>user exits in sales document processing
Have a look at the following exits
For Header fields: Modify user exit in include MV45AFZZ(USEREXIT_MOVE_FIELD_TO_VBAK) to populate the new fields.
For Item level fields: Modify user exit in include MV45AFZZ(USEREXIT_MOVE_FIELD_TO_VBAP) to populate the new fields.
USEREXIT_SAVE_DOCUMENT_PREPARE
<b>Reward points</b>
Regards -
User exit / badi in spool list display
Hi, I have a little "problem" with spool lists: I'm looking at a spool list, generated by a Z-report in a Job. This is in maintenance planning: The job executes a first step to generate with ristra20 maintenance orders. In a second step my Z-report updates the orders generated in the first step. The next morning my maintenance planners can look into the spool generated by the job... but there is no easy, modification-free way to allow my maintenance planners to just double-click on of the order numbers and to sump into the order. For that I would need a user exit / badi in the spool list display. Now, I got some questions: Is there somebody else who would be supporting a user exit / badi in spool list display? How are development requests to be send to SAP nowadays with maximum probability to get implemented? Thanks for your time, Holger
Hi Holger,
If you go to class CL_EXITHANDLER, Method GET_INSTANCE, then put a breakpoint after 'call method cl_exithandler=>get_class_name_by_interface' i.e. at line 28 'case sy-subrc'; then run your transaction again and you will get many of the user exits and badis available. It will not show you the enhancement points, but all badis etc. will be there.
Hope this helps.
Glen -
Need User exit/BADI or BTE for FF_5
Hi,
My requirement is to enhance the automatic clearing rules for tcode ff_5.
Program RFEBKA00 will upload bank statement items based on the external transaction codes provided by the banks .
The standard posting rules will clear a GL bank account using a set of algorithms for further interpretation
set of standard algorithms do not meet the clearing criteria .hence i need user exit / badi/bte to enhance the automatic clearing rules.
EXIT ZXF01U01& or FEB_BADI are triggering before posting the document.hence i think we can not use these.
Please suggest me the alternate solution.Hi,
We are facing a similar requirement. We are trying to enhance the interpretation logarithm using search string. The requirement is to update the text field with a Constant Prefix + a number from the Notes to Payee field. For e.g.:
The BAI file transaction data is like:
16,169,94906,V,120108,0000,6008ABS43400024460,783517/
88,TBS EUROPE LTD 203647 10293164
88,/ENTRY-06 FEB
88,TRF/REF 6008ABS43400024475
88,783517 BANK GIRO CREDIT
We defined a search string to find the text 'TBS EUROPE LTD' and if it is found, the search string fetches the number '783517' from the Notes to Payee field and thereafter, at the time of posting, the text field has to be updated with '120108 TBS EUROPE LTD 783517', where 120108 is the validity date of the incoming money through this transaction and which does not form part of the Notes to Payee field.
Also, if just the number '783517' has to be updated in the text field.
Please suggest how to achieve this functionality.
Thanks in advance.
Regards
Sourabh -
Need User exit or BAdi for VF01
Hi.
I need User exit or Badi for VF01.
Condtion: After Successful Save of document number in database.
Please help me.
To be reward all helpfull answers.
Regards.
JayHi
The follwing user exits and badis available:
Enhancement
V05N0001
User Exits for Printing Billing Docs. using POR Procedure
V05I0001
User exits for billing index
SDVFX011
Userexit for the komkcv- and kompcv-structures
SDVFX010
User exit item table for the customer lines
SDVFX009
Billing doc. processing KIDONO (payment reference number)
SDVFX008
User exit: Processing of transfer structures SD-FI
SDVFX007
User exit: Billing plan during transfer to Accounting
V61A0001
Customer enhancement: Pricing
V60P0001
Data provision for additional fields for display in lists
V60A0001
Customer functions in the billing document
Business Add-in SD_CIN_LV60AU02
BADI for billing
VOR_WA_FAKTURA
Billing before Goods Issue
If it is helpful rewards points.
Regards
Pratap.M -
Scenario: Track employee id wise payments using SES ORDER field
A. To track employee Id in Service Entry Sheet (SES)
Payments such as Mobile bill, OYC allowance is made against Service Purchase Order.
1) In SES, user will enter employee Id in field AUFNR i.e. Order.
2) Create z-table to maintain Expense GL A/c
3) While Save, get Service POu2019s GL A/c, validate in Z-table. If exists, then validate entered employee id.
Is there any user exit which we can use while SAVING ML81N.Hi,
I would advice you to use the user defined fields in table ESLL instead, like
ESLL-USERF1_NUM User-Defined Field
ESLL-USERF2_NUM User-Defined Field
ESLL-USERF1_TXT User-Defined Field
ESLL-USERF2_TXT User-Defined Field
and develop a custom solution with the help of customer enhancement
SRVDET.
Regards,
Edit -
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 exits which can be called from the bapi BAPI_ALM_ORDER_MAINTAIN
Hi Experts,
I was trying to change work orders using the BAPI_ALM_ORDER_MAINTAIN, but this does not allow me to update the order address, one way of updating the address is using recording, but i was looking for a way in which we can use some user exit which will be called from the BAPI so that i can update the address number in the final structure before the work order is saved (without having to go for recording)?Hi,
you have restrictions to this .
Refurbishment orders are not supported.
The estimated costs cannot be processed - only the estimated overall costs of the order.
Notification data cannot be processed with the order BAPI, even if the settings in Customizing are such that the orders and notifications can be maintained on one screen. However, the system will create a notification with the order if this is specified in the Customizing settings.
Permits cannot be processed.
The order addresses cannot be processed.
Individual partner addresses cannot be maintained.
Regards -
User exit which gets triggered when a line item is deleted in va02
Hello all,
I am unable to find a User exit which gets trigerred when i delete a line item from va02.If I use the User Exits for saving data in Include MV45AFZZ the screen field VBAP-POSNR for line item is not getting accessed.All i need to compare the line item texts. Which means if any of these texts change then i need to write my logic. But the screen field name for all the texts is the same.Please guide me.Hello,
Whever you perform any actions on the line item, we have the user exit in MV45AFZZ, userexitxvbap. Whenever the the item is deleted the UPDKZ value in XVBAP value is set to 'D', else since you are using the transaction VA02, any change is recorded in YVBAP(for old values) and XVBAP(for new values), so using this two internal table you can write any necessary logic.
BR
Sudhakar. -
Need User Exits for Creation of Delivery and for Posting Goods Issue
Hi,
I need User Exits for
Creation of Delivery
Posting Goods Issue
I need to make some checks regarding customer license expiration and if checks fail, I need to stop Creation of Delivery and Posting Goods Issue.
Thanks in advance,
Will reward,
MindaugasIn the delivery you can use userexit USEREXIT_SAVE_DOCUMENT_PREPARE to make your checks and send an error message to the user in case they fail.
You can find this user exit (form routine) in include MV50AFZ1.
Hope that helps,
Michael -
Debug an USER-EXIT which is present inside an INCLUDE
Hi folks,
i want to debug a include ' LVEDFF0E.' which is present in the program 'SAPLVEDF.
my user exit 'ZXEDFU02' is present in the include LVEDFF0E . This exit is to change the IDOC segmants.
i want to debug my user exit which is present inside a include.i tried so many times but control is not going to that point.
can anybody tell me how to debug that exit???
correct answers will be rewarded.
Thanks & RegardsHi,
Try this way
/h> choose "breakpoints" from menu> breakpoint at >function module> enter EXIT_SAPLVEDF_002 and press enter press f8
a® -
Need user exit to put filter on field ( customer item due by ) in F110
i'm having the requirement to put filter on the transation f110 on the paramater tab of customer item due date that shoud consider only 10 days back date form the sy-datum . so i need user exit to pace the logic in automatic payment transaction.
Thanks
sarfrazHi used the BET for process 1820 copied the function module and configure it and i have put the break point but when i have process the transaction f110 its not triggering.
i have done as the below config
In FIBF Tcode, Products -> of Customer for BTE 1820 : created a ZZ<Product> and made Active
In Process Modules-> of Customer for BTE 00001820 : added ZZ<Function Module> and ZZ<Product>
Maybe you are looking for
-
Boot Camp Update from 1.4 (beta) on WinXP Pro
I need some help. I have a 17" MBP core 2 duo running WinXP through Boot Camp 1.4 (beta). On the Mac side I use OSX(10.4xxx) - Tiger NOT Leopard. I would really appreciate it if someone could post a 1,2,3... list of how to update my Boot Camp version
-
Hi - Under KM /Admin Guide / Content Management / Reports, I see a Statistics Report described: Use You can use this report to evaluate and search the content of KM repositories using different criteria. The report searches all repositories, regardle
-
Oracle 11g installation for Linux
Hello, I am new to Oracle and Linux and assigned the task to install Oracle 11g on Linux enterprise edition. How do I install 11g on Linux ? I am also planning to install Oracle Application Express on the Linux machine. How do I accomplish these task
-
Trigger mail(sending mail to respective person)when budget is release in PS
Dear Sir, I want to trigger mail ( sending mail to respective person ) when budget is release in PS. Please help for following : Option 1 : User exit Option 2: Workflow. Regards Vinu
-
A nice little touch I like with the video iPod. If You're, for instance, lying in bed having a listen, instead of turning the iPod off when you've finished listening, pull the headphone wire out. The iPod then pauses and switches off after a couple o