Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

user exit for CUSTOMER NUMBER RANGE

Former Member
0 Kudos

Hi Experts,

Please help me by telling....

What is the procedure to find user exit for CUSTOMER NUMBER RANGE?

Thanks & Regards

Sohel

3 REPLIES 3

Former Member
0 Kudos

Hi Sohel,

The Procedure to investigate the user exit used in the transaction:

1. Running the transaction (ex: ME21), fill in the data needed, and determine in which screen the user exit will be needed.

2. While on the screen of the transaction, drill down the u201CSystem>Statusu201D and the screen will pop up then we can get the program name used in this screen (ex: SAPMM06E).

3. Then we open the u201Cse38u2033 transaction and we fill in the program name we got from the procedure No.2, choose u201CAttributesu201D, choose u201CDisplayu201D, get the u201CDev. Classu201D of the program (ex: ME).

4. Go to the transaction u201CCMODu201D > u201CUtilitiesu201D > u201CSAP Enhancementu201D > fill in the u201CDev. Classu201D (according the procedure 3) > then u201CExecuteu201D.

5. After procedure 4, the u201Clist of the Exitsu201D will show up (ex: M06E0005)

Example of List of Exits:

Exit name Short text

AMPL0001 User subscreen for additional data on AMPL

MM06E001 User exits for EDI inbound and outbound purchasing documents

MM06E003 Number range and document number

MM06E004 Control import data screens in purchase order

MM06E005 Customer fields in purchasing document

6. Give the u201CChecku201D in the checkbox (ex: MM06E005) > u201CDisplayu201D.

7. After the procedure 6, there will be the u201Clists of the components in SAP Enhancementu201D of MM06E005.

8. In this case there are: u201CFunction Module Exitsu201D, and u201CScreen Areasu201D. Beside those also there are the u201CFunction Codesu201D and u201CIncludesu201D.

9. Things needed for the investigation (in terms to find the correct includes that will be useful for the enhancement) :

- Importing value contained in u201CFunction Module Exitsu201D.

- In the function module, there will be one or more than one include, and we can try by giving the u201Cbreak-pointu201D to be tested in every u201Cincludesu201D in every u2018Function Module Exitsu201D.

Example:

Break-point.

- After giving the u201Cbreak-pointu201D if this include is the one of many include that will be called in the transaction (in this case ME21), after clicking something (Save button), then will go to the debugger.

- In this case this include is the correct include.

10. If we want to maintain the global data for the function module, In u201CFunction Module Exitsu201D>u201DGo Tou201D>u201DGlobal Datau201D> we can maintain the global data here

Creating the User Exit

1. Create the new u2018Projectu2019. Fill the u201CAttributeu201D with the Short text and Development Class

2. Fill the u2018Enhancement Assignmentu2019 based on the procedure Find The User Exit , In this case the example would be LMR1M002.

3. Automatically, the component of the Function Exit of LMR1M002 will be assigned in the u201CComponentu201D .

4. In each Function Exit consist one or many of includes. In this Includes we can make some modification, make some coding in this Includes. After coding the Includes, we activate the Includes and then activate the Function Exit (p.s. You can trace the use Function Exit by their Importing value and the Exporting Valueu2026 in terms the field you will be needed in your project).

Thanks

anurag

0 Kudos

Dear anurag,

Thanks for whatever u tried.

I want specific procedure....for solving this.

Thanks

Sohel

Former Member
0 Kudos

Hi Mosiur,

Use the BADI CUST_ADD_DATA for ENhance the Customer Number Range. Use the Method MODIFY_ACCOUNT_NUMBER to change the customer number.

Example code :

C_KUNNR = '1234'.

CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'

EXPORTING

input = C_KUNNR

IMPORTING

OUTPUT = C_KUNNR .

(code}

Your one of the query was how to find user exit...please use google or previously posted sdn topic for this kind of questions.

I am sure it will solve ur problem of customer number enhancement.

Thanks

Shibashis.

Edited by: CONTACTSANKU on Dec 26, 2009 9:47 AM