‎2007 Apr 16 11:27 AM
‎2007 Apr 16 11:34 AM
Hi Naga,
Go through this info it is there step by step process hoe to create cusomer exit.
Creating Custom Screen in XD01
Go to Transaction SPRO à Logistics General à Business Partner à Customers à Control à Adoption of Customers own Master Data fields à Prepare Modification à Free enhancement of Customer Master Record.
Following screen appears:
Go to CHANGE mode and Click New Entries button. Then add a Screen Group (SK here)and meaningful description. Save the entry and then SELECT that entry and Click on Label Tab Pages.
Add a Label Tab Page i.e. enter a Screen Number, Function Code and Meaningful Description.
Save the entry and come back to the SPRO screen. Click Business Add-in: Processing Master Data Enhancements
Create one Implementation by giving implementation name (must start with Z. ZSURESHKUMAR here). Give meaningful description and press enter. The following screen appears.
Go to Interface and Click on CHECK_ADD_ON_ACTIVE method. Add the following code and save.
method IF_EX_CUSTOMER_ADD_DATA~CHECK_ADD_ON_ACTIVE .
data: l_flg_active type BOOLE-BOOLE.
if i_screen_group = 'SK'.
e_add_on_active = 'X'.
endif.
endmethod.
Activate that and come back to SPRO initial screen. Click Business Add-in: Customer Subscreens
The following screen will appear. Create one implementation (ZSURESHKUMAR1 here).
Press enter. The following screen will come. Enter a meaningful Description and Screen Group (which we created earlier) as shown below.
Then go to Interface
Create a Function Pool SAPLZSURESHKUMAR. (See the code of the program for other details). Create a Screen 1111 with field old Customer Number screen group PSK (SE51)
Click on GET_TAXI_SCREEN method and add the following code.
method IF_EX_CUSTOMER_ADD_DATA_CS~GET_TAXI_SCREEN .
case i_taxi_fcode.
when 'SK_TAB'.
e_screen = '1111'. "Eart + Objekt
e_program = 'SAPLZSURESHKUMAR'.
e_headerscreen_layout = ' '.
endcase.
endmethod.
Activate and leave the transaction.
Go to KNA1 (Customer Master) table and add a custom field as shown below. Activate the table.
Now go to XD01 transaction.
The screen we created will appear as shown in the above screen-shot. Click the button. The following screen will appear.
Enter a customer number and save the transaction. Now go to KNA1 table and check the value of the Old Customer Number fields value. The value you entered in this screen will appear on there.
Until now, we wrote code for creating the Custom field. Now we need to disable that field when we are opening the transaction in DISPLAY mode.
Go to include LZSURESHKUMARTOP and enter the following code and activate the program.
Now execute the Transaction in display mode and check the output.
Reword points for good answers.
Rgds,
P.Naganjana Reddy
‎2007 Apr 16 11:30 AM
Hi Naga Mrudula,
<b>Customer exit</b> - The R/3 enhancement concept allows you to add your own functionality to SAPs standard business applications without having to modify the original applications. SAP creates customer exits for specific programs, screens, and menus within standard R/3 applications. These exits do not contain any functionality. Instead, the customer exits act as hooks. You can hang your own add-on functionality onto these hooks.
SAP creates customer exits for specific programs, screens, and menus within standard applications. These exits do not contain any functionality. Instead, the customer exits act as hooks. You can hang your own add-on functionality onto these hooks.
If you want to enhance the functionality of your SAP System, you should take advantage of the exits available in standard applications. There are two main reasons why you should use exits rather than modifying SAP software yourself. Add-ons attached to exits have the advantage that:
They do not affect standard SAP source code
When you add new functionality to your SAP System using SAPs exits, you do not alter the source code of standard SAP programs in any way. The code and screens you create are encapsulated as separate objects. These customer objects are linked to standard applications, but exist separately from SAPs standard software package.
They do not affect software updates
When you add new functionality to your SAP System using SAPs exits, your objects (called customer objects) must adhere to strict naming conventions. When it comes time to upgrade a to a new software release, customer objects names ensure that they will not be affected by any changes or new additions to the standard software package.
Customer exits are not available for all programs and screens found in the SAP System. You can only use customer exits if they already exist in the SAP System. You can find more information about locating applications with pre-defined exits in Locating Applications that have Exits
For information on Exits, check these links
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.sappoint.com/abap/userexit.pdfUser-Exit
http://www.planetsap.com/userexit_main_page.htm
Hope this resolves your query.
Reward all the helpful answers.
Regards
‎2007 Apr 16 11:31 AM
Hi mrudula,
Customer exit - The R/3 enhancement concept allows you to add your own functionality to SAPs standard business applications without having to modify the original applications. SAP creates customer exits for specific programs, screens, and menus within standard R/3 applications. These exits do not contain any functionality. Instead, the customer exits act as hooks. You can hang your own add-on functionality onto these hooks.
regards
keerti
‎2007 Apr 16 11:32 AM
Hi,
Customer Exit is nothing but, in some of the Std programs provision was given to enhance the functionality by writing the required code.
they were mentioned in the code like CUSTOMER FUNCTION..
You have to double click and have to write the code.
This is similar to the other User exits which we create using the CMOD(project) and SMOD(enhancements) and the Custom includes.
see the doc:
http://www.erpgenie.com/sap/abap/code/abap26.htm
which gives the list of exits for a tcode
http://help.sap.com/saphelp_nw04/helpdata/en/bf/ec079f5db911d295ae0000e82de14a/frameset.htm
For information on Exits, check these links
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.planetsap.com/userexit_main_page.htm
reward if useful
regards,
Anji
‎2007 Apr 16 11:34 AM
Hi Naga,
Go through this info it is there step by step process hoe to create cusomer exit.
Creating Custom Screen in XD01
Go to Transaction SPRO à Logistics General à Business Partner à Customers à Control à Adoption of Customers own Master Data fields à Prepare Modification à Free enhancement of Customer Master Record.
Following screen appears:
Go to CHANGE mode and Click New Entries button. Then add a Screen Group (SK here)and meaningful description. Save the entry and then SELECT that entry and Click on Label Tab Pages.
Add a Label Tab Page i.e. enter a Screen Number, Function Code and Meaningful Description.
Save the entry and come back to the SPRO screen. Click Business Add-in: Processing Master Data Enhancements
Create one Implementation by giving implementation name (must start with Z. ZSURESHKUMAR here). Give meaningful description and press enter. The following screen appears.
Go to Interface and Click on CHECK_ADD_ON_ACTIVE method. Add the following code and save.
method IF_EX_CUSTOMER_ADD_DATA~CHECK_ADD_ON_ACTIVE .
data: l_flg_active type BOOLE-BOOLE.
if i_screen_group = 'SK'.
e_add_on_active = 'X'.
endif.
endmethod.
Activate that and come back to SPRO initial screen. Click Business Add-in: Customer Subscreens
The following screen will appear. Create one implementation (ZSURESHKUMAR1 here).
Press enter. The following screen will come. Enter a meaningful Description and Screen Group (which we created earlier) as shown below.
Then go to Interface
Create a Function Pool SAPLZSURESHKUMAR. (See the code of the program for other details). Create a Screen 1111 with field old Customer Number screen group PSK (SE51)
Click on GET_TAXI_SCREEN method and add the following code.
method IF_EX_CUSTOMER_ADD_DATA_CS~GET_TAXI_SCREEN .
case i_taxi_fcode.
when 'SK_TAB'.
e_screen = '1111'. "Eart + Objekt
e_program = 'SAPLZSURESHKUMAR'.
e_headerscreen_layout = ' '.
endcase.
endmethod.
Activate and leave the transaction.
Go to KNA1 (Customer Master) table and add a custom field as shown below. Activate the table.
Now go to XD01 transaction.
The screen we created will appear as shown in the above screen-shot. Click the button. The following screen will appear.
Enter a customer number and save the transaction. Now go to KNA1 table and check the value of the Old Customer Number fields value. The value you entered in this screen will appear on there.
Until now, we wrote code for creating the Custom field. Now we need to disable that field when we are opening the transaction in DISPLAY mode.
Go to include LZSURESHKUMARTOP and enter the following code and activate the program.
Now execute the Transaction in display mode and check the output.
Reword points for good answers.
Rgds,
P.Naganjana Reddy
‎2007 Apr 16 12:12 PM
‎2007 Apr 16 12:17 PM
‎2007 Apr 16 12:17 PM
Hi naga,
In spro we will find the logistics general.
Why u want that what is the requirement.
Rgds,
P.Nag