Use of field exit for validation of KNTTP in ME51N
Hi All,
I've a client who is still running on SAP 4.6C. There is a requirement to validate the Account Assignment Field KNTTP based on the document type, and if the validation fails, to raise an error message. As there is no standard user exit that I've been able to find for this field, and we don't want to modify standard screens, I've created a field exit against the KNTTP field and generated the FM FIELD_EXIT_KNTTP, and activated it, but it doesn't work.
As this is the first Field Exit I've coded could someone please assist me with understanding the following: in the parameters list is the value of INPUT the value of, in this instance, the KNTTP field and also is it possible to read other screen data within this FM, for example, if the KNTTP value eq 9, can I read the BSART field of the current transaction, and if so, how do I reference it (BSART, EKKO-BSART, MEREQ_TOPLINE-BSART, parameter id BSA, etc)?
Any suggestions on how to debug the process would be greatly appreciated as well.
Any help would be greatly appreciated.
Regards,
Steve
Due to lack of assistance, we were unable to pursue this requirement - the users were not happy, but what can you do, huh!
Similar Messages
-
Using Field Exit for a field in table KNA1
Hi everyone,
I am working on a ticket, the problem is we have a field called STRAS in table KNA1 which holds the address of the customer but now we want to increase the length of this field from 35 charachters to 55 due to some business requirement. SO my question is if this can be done using Field Exit and if yes.. can you please tell me how as I have never used Field exits.
Thanks,
RajeevHi,
Using field exit, you can only validate the data entry for the field (either globally or on a particular screen field)
This is usually done by implementing the field exit for the data element corresponding to the field(in your case STRAS_GP)
Hence you cannot increase the length of the field using the concept of the field exits...
Please note that after SAP R/3 4.6c, SAP has stopped the creation of field exits and there will be no support for any new ones created.
Regards
Shiva -
Hello ,
I have Implemented a field exit for Data element WADAT, but my requrement is, The value In the field LIKP-WADAT in VLO2n/VLO1N TRansaction should not be allowed to change even a single time.
Is there any user exit do statisfy my requirement
cheers.Field exit can be used to validate a user entry and not restrict a user entry. Even if you implement field exit user can always go and change the contents of field and in field exit ( only triggered in PAI ) there is no way to determine if field value was changed .
You should make the field output only in case you dont want users to change it.
Check if you have BADI LE_SHP_DELIVERY_PROC in your system. In this BADI you can use method CHANGE_FIELD_ATTRIBUTES to set the attributes of LIKP-WADAT in parameter CT_FIELD_ATTRIBUTES to disable input .
Cheers.
Sanjay -
Hi to all experts,
I need to assign F4 help to a headertext field for MIGO tcode . I have searched all the exits but couldnt find field exit for it. What are the different options fulfilling this requirement.Please help me outHi,
The following are the enhancement/Business Add ins, Please use the appropriate exit for your requirement
Enhancement/ Business Add-in Description
Enhancement
MB_CF001 Customer Function Exit in the Case of Updating a Mat. Doc.
MBCF0011 Read from RESB and RKPF for print list in MB26
MBCF0010 Customer exit: Create reservation BAPI_RESERVATION_CREATE1
MBCF0009 Filling the storage location field
MBCF0007 Customer function exit: Updating a reservation
MBCF0006 Customer function for WBS element
MBCF0005 Material document item for goods receipt/issue slip
MBCF0002 Customer function exit: Segment text in material doc. item
Business Add-in
MB_DOCUMENT_UPDATE BADI when updating material document: MSEG and MKPF
MB_DOC_BADI_INTERNAL BAdIs During Creation of a Material Document (SAP Internal)
MB_ME_CSGMT_BADI_SAP BAdI: Consignment Processing - Stock Transfer
MB_MIGO_BADI BAdI in MIGO for External Detail Subscreens
MB_MIGO_ITEM_BADI BAdI in MIGO for Changing Item Data
MB_PHYSINV_INTERNAL Connection: Core Inventory and Retail AddOn
MB_QUAN_CHECK_BADI BAdI: Item Data at Time of Quantity Check
MB_RESERVATION_BADI MB21/MB22: Check and Complete Dialog Data
MB_RESERVATION_SCR Screen BAdI for Retrofit DFPS
MB_RESERVATION_UPCHD BAdI for Creation and Changing of Manual Reservations
MB_RES_BAPI_CHANGE BAdI: Execution of Changes to Reservation Fields
MB_RES_BAPI_CREATE1 BAdI: Adoption of Customer's Own Fields as Reserv. Fields
MB_RES_BAPI_DETAIL1 BAdI: Display of Customer's Own Fields in Reservations
MB_STOR_LOC_BADI_GTS BADI to Check and Change Storage Location (GTS Fct. Only)
MB_DOCUMENT_BADI_SAP BADI for Creation and Changing of a Material Document
ARC_MM_EBAN_CHECK BAdI: Enhancement of Archivability Check (MM_EBAN)
ARC_MM_EBAN_PRECHECK BAdI: Enhancement of Archivability Check (MM_EBAN)
ARC_MM_EBAN_WRITE BAdI: Enhancement of Scope of Archiving (MM_EBAN)
ARC_MM_EINA_CHECK BAdI: Enhancement of Archivability Check (MM_EINA)
ARC_MM_EINA_WRITE BAdI: Enhancement of Scope of Archiving (MM_EINA)
ARC_MM_INVBEL_CHECK BAdI: Enhancement of Archivability Check (MM_INVBEL)
ARC_MM_INVBEL_WRITE BAdI: Enhancement of Scope of Archiving (MM_INVBEL)
ARC_MM_MATBEL_CHECK Prüfung ADD-ON-spezifischer Kriterien für MM_MATBEL
ARC_MM_MATBEL_WRITE Check Add-On-Specific Data for MM_MATBEL
MB_CHECK_LINE_BADI BAdI: Check Line Before Copying to the Blocking Tables
MB_CIN_LMBMBU04 posting of gr
MB_CIN_MM07MFB7 BAdI for India Version exit in include MM07MFB7
MB_CIN_MM07MFB7_QTY Proposal of quantity from Excise invoice in GR
MB_DOCUMENT_BADI BAdIs During Creation of a Material Document -
Using 2 field exits in 1 screen
Hi,
Is it possible to use 2 field exits in only one screen? i have activated 2 field exits for the POS tab of MM42. What happened was the other field exit doesn't work anymore. The new one works just fine.
What is the reason behind this?
Thanks!Hi,
Yes you can do it.
Regs,
Venkat Ramanan -
Field exit for VA02 / for GOTO- HEADER- SHIPPING
Hello ,
Please help me out with field exit for GOTO->HEADER->SHIPPING in VA02 transaction .
I have to check if the shipping condition enetered against values in TVARV variable .
If unequal i need to display a warining messge .
But the requirement is it needs to be checked against field exit .
Thanks ,
RahulDear Sheo
I know OMJN can set the material Slip mandatory. but my question is how to seperate by company code.
for example:
company code D001 mandatory
company code D002 Input
regards,
Yang -
Hi experts,
I´m looking for a field exit for transaction IFCU for the first screen.
Does anyone know one?
Best regards,
Fernando MontenegroHi Pete,
The first screen for transaction IFCU, shows two fields: The equipment we are trying to record a consumption for and a GasStation field.
The Gas Stations we have configured have this mask: XNN, in which X: is a letter which stands for the company, for example "A" and a number NN for the GasStation belonging to the company in which we will consume fuel, for example 22.
So the GasStation´s name is "A22".
We wish to develop a field in which the user will only have to input the number (for example: "22"), and the system, depending on the company code of the equipment input in the first field, will concatenate the first letter of the company with the number input by the user.
Example:
1.User inputs Equipment that belongs to company "A". <<Enter>>
(System reads Equipment company code, in this case "A")
2.User only inputs "22".
(System concatenates A+22 internally for the GasStation entry)
3.User goes into the next screen to fuel an equipment with the A22 GasStation.
We are trying to find a field/user exit that will do this concatenation internally in the first screen.
I hope I gave you a good idea of what we ´re trying to do.
Thanks a lot and best regards,
Fernando -
hi friends,
i am new to field exit.i want to write field exit for ebeln.
when user tries to change po number error message should get display.
what logic i have to write in function module.
can any any one help me plz .
sonuin se38 execute report RSMOPRF ...
there you give element name of EBELN field...
and execute..
you'l get field exit created for EBELN...
in this field exit do your coding....
activate the fields exit...
in se38 again execute RSMODPRF.. and w/o giving any element name... execute...
you'l get list of all the field exits ...
there select exit for EBELN... and activate it...
Regards,
Sharayu -
Hello Guru's
I am facing a unique problem. I have created a field exit for the data element BSTKD_E. I have done the follwoing steps
1) SE38-executed RSMODPRF with data element BSTKD_E.
i have successfully created the FM for the same. Activated it.
2) Now again i Executed the program RSMODPRF by Keeping Data element field blank.
Now the data element BSTKD_E should be visible there, so that i can assign the screen number and program to it.
but i am not able to see the data element there.
can you put some light into the same, like whats happening?You should probably post this question in the ABAP forum.
-
Field exits for non-editable field
Hi All,
can I write field exit for non-editable field?
Thanks in advance...
bye.hi,
i think you can, just try it.
But when you have to change it, because of a certain exception in the fieldexit, it is impossible to change the field.
Hans -
Field Exit for Sales Document Type in VA01
hi
i want to do field exit for Sales Document Type in VA01.
but i dont know to find the correct exit.
pls tell the exit name and the steps to find it.
thank uHi,
Goto this link u will get the information u required....
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/9cd334f3-0a01-0010-d884-f56120039915
Check the numerous threads that already exist in SDN :
CMOD and SMOD
http://www.sap-img.com/abap/what-is-user-exits.htm
Regards,
Manish -
HI Experts,
I want to implement the Field Exit for Changing the Field discription for Standard sap field for XD01 and MK01.
could any one tell me what are the ( Exits )Field Exits for above T Codes.
Thanks in Advance.
sudeer.hi,
cherck this link.
http://www.****************/Tutorials/ABAP/XD01/XD01.htm
these r exits available in xd01.
Transaction Code - XD01 Create Customer (Centrally)
Enhancement/ Business Add-in Description
Enhancement
SAPMF02D User exits: Customer master data
Business Add-in
CUSTOMER_ADDRSCR_CHG Change Address Screen in the Master Data Maintenance
CUSTOMER_ADD_DATA Additional Data at Customers
CUSTOMER_ADD_DATA_BI Additional Data at Customers (Batch Input and ALE)
CUSTOMER_ADD_DATA_CS Additional Data at Customers (Subscreen Container 4000) -
Customer exit for validation of PO fields in ME21N / ME22N - After pressing enter & save button
Hi,
I am looking to validate the standard fields(EKKO-IHREZ, Your reference under communication) of Purchase order . So for this I used the customer exit EXIT_SAPMM06E_012 under the enhancement MM06E005 . I am able to validate but it is triggering only when SAVE selected.
1. Can we implement the same when we press enter button ?
2. How to log error message using macro for the field EKKO-IHREZ with error message ? As of now I am using message 'asdfasdfasdf' type 'E' which is appearing now in the log messages.
Regards,
Praveen CHITTURI .Better use methods like PROCESS_HEADER or PROCESS_ITEM of BAdI ME_PROCESS_PO_CUST.
There are many threads and documents on this BAdI at scn.
In the chosen methods use Macros mmpur_metafield to attach error to a field (defined in type-pool MMMFD, mmmfd_ref_1 ?) and mmpur_message_forced to raise error message and add it to log.
include mm_messages_mac.
im_item->invalidate( ).
mmpur_metafield mmmfd_matnr.
mmpur_message_forced 'E' 'ZFSM' '613' ls_item-matnr ls_item-werks ls_header-bsart ls_material_plant-mmsta.
Regards,
Raymond -
BADI/User Exit for validation in WAK1
Hi,
I need to put validations in transaction WAK1.
for the Site Groups under the site groups TAB.
Please suggest if any BADI or User Exit is available to do this.
I checked there are BADI's "WAKT_BADI_001" to "WAKT_BADI_008" but they are for SAP Internal Use only.
Regards
AnkurHi
Below are some of BADIs available for WAK1. Please check.
Exit
WCOUP001 User exit for coupon processing in POS inbound
BADIs
RDM_BAPI_PROMO_CREATE - Enhancement Spot (RDM_OPT_PROMO_IN)
RDM_PROMO_POST - Enhancement Spot
RDM_PROMOTION_WAK1 - Enhancement Spot
WAKT_BADI_001 -
~~~Ganesh Kumar K. -
Alternatives to Field Exit for executing a transaction?
Hello,
i'm looking for a way to add code to an existing dynpro, so that a double-click on a field executes a different transaction. As far as i know this is not allowed in a field exist. If there's also no BADI-method defined, what else can be used? Is there any other way than changing the current code of the application itself?
TIA!Hi,
The alternative for field exits after R/3 4.6C has been the enhancement Points...
Check in debugging if there exists an implicit enhancement point in the PAI of the screen,
If so you can add your code to call a new transaction...
Regards
Shiva
Maybe you are looking for
-
Loading an "MXML Component" at run-time creates a null object.
Hello! I have a simple Flex 3 project with an MXML application file (the parent) and an MXML component file (the child). At run-time I create childs of this component, and I add it to the stage using a simple "this.addChild()" call. Now, besides that
-
NOT using xp_cmdshell, Can we check free space of drives in windows servers?
Hello all, I have a strange situation here(may not be to you), as per client security standards, I should NOT use xp_cmdshell. Adding to this, I was asked to generate a report daily about drives and their free spaces. Having with xp_cmshell, we have
-
S/MIME in Outlook Web App 2013
I have followed the steps on how to enable S/MIME in OWA, I have downloaded and install the controls into IE, I can see the menu options to sign or encrypt, but if I try to sign an email I receive a message stating "No certificate was found. If you
-
Tree component flash cs3 multiline/wordwrap
Hi All, I have a tree component customized ..now i am stuck at the length of the text ..i need to have the text in the tree node to word warp for lengthy text.. thank you for the help in advance.. kakas
-
Participate in an Oracle Usability Study at Redwood Shores, CA (Study Dev1401)
The Oracle Usability group is seeking participants to take part in usability studies. These studies will take place from January 14 to early February at the usability labs in Redwood Shores, CA (Highway 101 - Marine World Parkway exit). Participation