Академический Документы
Профессиональный Документы
Культура Документы
KUMAR
Reply
If you are in 4.7 and up follow this 1. Run report RSMODPRF 2. Run on the selection screen 3. In list Field Exit > Create 4. Give your data element 5.System will generate the FM FIELD_EXIT_XXXXX 6. Activate it. 7. Select your field exit and assign to your program and screen 8. Select again .. Field exit > Activate If you are in version below 4.7 1. CMOD 2. Go to >Text enhancment > Field exit then follow the same step from 3 onwards as given above. Regards, Naimesh Patel
SURESH KUMAR
Posts: 141 Registered: 10/21/07
Reply
Hi Naimesh, I followed ur steps, till FM I came, where as for the next step, how to select the program and assign it to screen? is it pgm of our TCODE? (system->status->program, screen) if yes where and how to assign them? Does the field exit require access keys? I m working in ECC5 version. Pls extend ur suggestion.... thanks in advance....
Naimesh Patel
Posts: 4,816 Registered: 5/19/05
Reply
Oh sorry.. I forgot to metion. Start program again..RSMODPRF.. run it and in the list follow this step
For this example I am using dta element 'EBELN' from table EKKO. Step 1: Execute program RSMODPRF , entering the data element of the field Step 2: Create function module when prompted, and add you code to the source section using the parameter 'INPUT as the field value you are checking. Step 3: Save and activate Function and execute transaction CMOD . Step 4: Choose option: Goto-> Text Enhancements->Data elements->New DE cust docu. Step 5: Enter data element Step 6: Save and activate Step 7: Execute program RSMODPRF again but this time leave data element field blank. Step 8: Select the checkbox for the data element you have just created and choose option: Field exit->Activate This will now be active for all instances of this data element, but you can assign specific program and screen combinations by pressing the Assign prog./screen button. You can also change the code you entered in the field exit function module by pressing the Edit FM button. Maintenance transaction for creating and activating field exits As part of the extension concept, SAP allows you to install a field exit for each screen field. Similar to the conversion exit, the system branches at the field exit at DCI (DATA COMMUNICATIONS INPUT) to a function module, if the field is an input field and a function code was triggered. The function module must adhere to the following naming convention: Prefix: FIELD_EXIT_ Infix: <Data element name> Suffix: _0 to _9 (optional), _A to _Z The interface is automatically generated during the creation of the function module, and has 2 parameters: Import parameter: INPUT Export parameter: OUTPUT After a function code has been triggered the contents of the field are made available to the FB via the "INPUT" import parameter. You can edit this and, when changed, make it available to the ABAP/4 processor in "OUTPUT". The input field contents are usually passed on: you can simply write OUTPUT = INPUT.
Step 2: Create function module when prompted, and add you code to the source section using the parameter INPUT as the field value you are checking.
Step 3: Save and activate Function and execute transaction CMOD. Step 4: Choose option: Goto-> Text Enhancements->Data elements->New DE cust docu. Step 5: Enter data element
Step 6: Save and activate Step 7: Execute program RSMODPRF again but this time leave data element field blank. Step 8: Select the checkbox for the data element you have just created and choose option: Field exit->Activate This will now be active for all instances of this data element, but you can assign specific program and screen combinations by pressing the Assign prog./screen button. You can also change the code you entered in the field exit function module by pressing the Edit FM button.