Customer Exit-Function Module Exit with Example
Function Module exit/Function Exit :
The function module exit allows us to add our code to the SAP programs with the help of function modules.
Syntax:CALL CUSTOMER-FUNCTION 'Three digit number'.
The three digit number in the above syntax varies from 000 to 999.
Example: CALL CUSTOMER-FUNCTION '001'.
link:Ways to find the Function Module Exit
Example: Passing default value to sold-to-party field in 'VA01' T-code.
1.Go to T-code 'CMOD'.
2.Provide a project name and click crete.
3.Enter short description.
4.click on 'Enhancement Assignment' button.
5.Enter 'customer Exit' name (Eg:).
6.click on 'Components' button.(It shows the available function module exits)
7.Double click on the required function module exit which navigates to the function module.
8.Write the logic in the Z include of that function module. (E_KUNNR is in the export parameters of this function module.)
9.Activate the code and activate the project.
Result:
1.Go to t-code 'VA01'.
2.Select order type.
3.press enter.(You can the default value 1122 in the sold-to-party field.
Comments
Post a Comment