11 - Enhancements & Modifications - Customer Exit - Function Module Exit Part1

SAP ABAP by Rahul Mehta
23 Nov 202208:29

Summary

TLDRThis video introduces customer exits in SAP, a method to enhance SAP functionality using a customer namespace. It explains three types of exits: function module, menu, and screen exits. The focus is on function module exits, which allow adding custom code to SAP programs through a specific syntax 'CALL CUSTOMER-FUNCTION' followed by a three-digit number. The video demonstrates how to implement a function module exit in an SAP program and hints at a future example involving a customer requirement for automatically populating the 'Sold-to Party' field in the VA01 transaction code.

Takeaways

  • 😀 The session introduces the concept of 'customer exit' in SAP, which is a method to enhance SAP functionality using a customer namespace.
  • 🔍 There are three types of customer exits discussed: function module exit, menu exit, and screen exit.
  • 📚 The function module exit allows users to add custom code to SAP programs by utilizing function modules.
  • 📝 Function module exits have a specific syntax, 'CALL CUSTOMER-FUNCTION', followed by a three-digit number ranging from 000 to 999.
  • 💡 The video script provides an example of how to use a function module exit to navigate to a specific function module within an SAP program.
  • 🛠️ The function module exit is part of the SAP program, meaning any custom logic written will trigger within the program's context.
  • 🔑 The script mentions a customer requirement to automatically populate the 'Sold-to Party' field in transaction code VA01, which SAP does not provide by default.
  • 🚀 The next video will demonstrate how to achieve the customer's requirement of automatically populating the 'Sold-to Party' using a function module exit.
  • 📈 The video script serves as an educational resource, guiding viewers through the process of enhancing SAP programs for specific customer needs.
  • 🔄 The process of enhancing SAP programs involves writing custom code in function modules, which is then integrated into the existing SAP program.
  • 🎯 The summary emphasizes the importance of understanding customer exits, particularly function module exits, for customizing SAP to meet unique business requirements.

Q & A

  • What is the main topic of the video script?

    -The main topic of the video script is discussing customer exits in SAP, which are enhancements to SAP functionality using a customer namespace.

  • What are the three types of customer exits mentioned in the script?

    -The three types of customer exits mentioned are function module exit, menu exit, and screen exit.

  • What is a function module exit and how is it used in SAP?

    -A function module exit is a type of customer exit that allows users to add their own code to SAP programs through function modules. It is used to enhance SAP functionality by inserting custom logic into the program flow.

  • What is the specific syntax used for function module exits?

    -The specific syntax used for function module exits is 'CALL CUSTOMER-FUNCTION' followed by a three-digit number ranging from 000 to 999.

  • How does the function module exit enhance SAP programs?

    -The function module exit enhances SAP programs by allowing users to write their own code into function modules, which then triggers within the SAP program, adding custom functionality.

  • What is an example of a requirement that might be fulfilled using a function module exit?

    -An example requirement is automatically populating the 'Sold to Party' field in the VA01 transaction code, which is a custom enhancement not provided by SAP out-of-the-box.

  • What transaction code is used to create sales orders in SAP, as mentioned in the script?

    -The transaction code used to create sales orders in SAP is VA01.

  • How does the script suggest to address the customer's requirement for automatic population of the 'Sold to Party' field?

    -The script suggests that this requirement can be addressed by writing custom code using a function module exit in the relevant SAP program.

  • What is the purpose of the 'customer hyphen function' syntax in the context of function module exits?

    -The 'customer hyphen function' syntax is used to call a specific function module exit, allowing the insertion of custom code into the SAP program for enhancement purposes.

  • How does the script indicate that the explanation of fulfilling the customer's requirement will continue?

    -The script indicates that the explanation will continue in the next video, where they will likely demonstrate how to achieve the requirement of automatically populating the 'Sold to Party' field using a function module exit.

  • What is the significance of the three-digit number in the 'CALL CUSTOMER-FUNCTION' syntax?

    -The three-digit number in the 'CALL CUSTOMER-FUNCTION' syntax is an identifier for a specific function module exit, allowing for up to 1000 unique exits to be defined.

Outlines

00:00

🛠️ SAP Enhancement Through Customer Exits

This paragraph introduces the concept of customer exits in SAP, a method for enhancing SAP functionality using a customer namespace. It explains that enhancements are achieved by using names starting with 'Z' or 'Y'. The speaker discusses three types of customer exits: function module exit, menu exit, and screen exit. The focus is on the function module exit, which allows for the addition of custom code to SAP programs via function modules. The paragraph also introduces the specific syntax for function module exits, 'CALL CUSTOMER-FUNCTION', followed by a three-digit number ranging from 000 to 999. The speaker provides an example of how to navigate to a function module within an SAP program and emphasizes the role of this syntax in future SAP programming.

05:04

📝 Implementing Custom Logic with Function Module Exit

The second paragraph delves into the practical application of function module exits by discussing a customer requirement for automatically populating the 'Sold-to Party' field in the VA01 transaction code, used for creating sales orders. The speaker explains that SAP does not provide this feature by default, necessitating custom code. The paragraph outlines the approach to achieving this requirement through function module exits, where custom code is written into function modules that are part of the SAP program. The speaker promises to demonstrate how to fulfill this specific requirement in the next video, concluding with a summary of the discussed customer exits and their purposes.

Mindmap

Keywords

💡Customer Exit

Customer Exit refers to a method of enhancing SAP functionality by using a customer namespace, which typically starts with 'Z' or 'Y'. In the video, it is the main theme as it discusses the different types of exits available for customization. The script mentions that there are three types of customer exits, which are essential for SAP program enhancement.

💡Function Module Exit

A Function Module Exit is one of the types of customer exits that allows users to add custom code to SAP programs. The script explains that this is done by utilizing function modules, and it provides an example of the syntax 'CALL CUSTOMER-FUNCTION' followed by a three-digit number, which can range from 000 to 999.

💡Menu Exit

Menu Exit is another type of customer exit mentioned in the script, which is used to enhance the SAP menu structure. Although not detailed in the provided transcript, it is one of the three types of exits that can be used for customization within the SAP system.

💡Screen Exit

Screen Exit is the third type of customer exit discussed in the video script. It allows for the enhancement of SAP screens, enabling users to modify the display or behavior of the screen based on their requirements. The script does not provide a detailed explanation of screen exits but mentions it as part of the customer exit types.

💡SAP Enhancement

SAP Enhancement is the overarching theme of the video, which involves modifying the standard SAP software to meet specific business requirements. The script describes how customer exits, such as function module exits, are used to enhance SAP functionality by adding custom code.

💡Syntax

Syntax, in the context of the video, refers to the specific structure of code that must be followed when implementing a customer exit. The script emphasizes the importance of the syntax 'CALL CUSTOMER-FUNCTION' for function module exits, which is crucial for the correct implementation of enhancements.

💡Function Modules

Function Modules are pre-defined pieces of code within SAP that can be called upon to perform specific tasks. The script explains that with the help of function module exits, custom code can be added to these modules, thereby enhancing the SAP program's capabilities.

💡VA01 Transaction Code

VA01 is a specific transaction code in SAP used for creating sales orders. The script uses VA01 as an example to illustrate a customer requirement where the 'Sold-to Party' field should be automatically populated, demonstrating how SAP enhancements can meet unique business needs.

💡Custom Code

Custom Code is the unique, user-written code that is added to SAP programs to fulfill specific business requirements that are not met by the standard software. The video script discusses how function module exits allow the insertion of custom code into SAP's function modules.

💡SAP Include

An SAP Include, denoted by the 'M' prefix in the script, is a part of the SAP program structure where code can be included and reused. The script mentions that function module exits are part of the SAP program, which includes the function modules themselves.

💡Customer Requirement

Customer Requirement refers to the specific needs of a business that may not be met by the standard SAP software. In the script, an example is given where a customer requires the 'Sold-to Party' to be automatically populated in the VA01 transaction, which is addressed through SAP enhancement techniques.

Highlights

Introduction to the concept of 'customer exit' as a method to enhance SAP functionality.

Explanation of the three types of customer exits: function module exit, menu exit, and screen exit.

Function module exit allows adding custom code to SAP programs using customer namespace.

Custom code is added to function modules, starting with 'Z' or 'Y'.

Syntax for function module exit is 'CALL CUSTOMER-FUNCTION' followed by a three-digit number.

The range of the three-digit number in the syntax is from 000 to 999.

Demonstration of how to navigate to a function module exit within an SAP program.

Writing custom logic in a function module as part of an SAP program.

The automatic triggering of custom logic within the SAP program through function module exit.

A customer requirement for automatically populating the 'Sold to Party' field in transaction code VA01.

The process of achieving customer-specific requirements through function module exits.

The importance of understanding the function module exit's dedicated syntax for SAP enhancement.

An example of enhancing the SAP program by writing custom code for a specific business requirement.

The significance of function module exits in customizing SAP to meet unique business needs.

A preview of the next video, which will continue to explore achieving the 'Sold to Party' requirement.

Summary of the video, emphasizing the three types of customer exits and their applications in SAP.

A conclusion that thanks the viewers and provides an overview of the video's content.

Transcripts

play00:02

hello everyone now we will start with

play00:05

our next enhancement our next

play00:09

enhancement is customer exit

play00:13

in the previous videos we finished our

play00:16

implicit and explicit enhancements now

play00:20

we will come on to customer exit yes

play00:24

what is customer exit it is also an

play00:28

enhancement enhancement means we will

play00:31

enhance the sap functionality using

play00:36

customer namespace we will enhance the

play00:39

sap functionality in customer namespace

play00:42

means name should start with Z or Y

play00:46

now we have three types of customer exit

play00:51

but this first type of customer exit

play00:54

function module exit and many time

play00:58

people will simply use the word function

play01:01

exit so function module exit or function

play01:05

exit button the same thing

play01:08

second type of customer exit is menu

play01:11

exit

play01:12

and the third type of customer exit is

play01:16

screen exit we will go into detail of

play01:20

each and every type of exit and we will

play01:25

start with the first type of customer

play01:27

exit that is function module X

play01:32

now what is function module accept

play01:36

with the help of function module exit

play01:40

will we can add our code to sap programs

play01:45

with the help of function module with

play01:49

the help of function module exit you can

play01:53

add your code to the sap programs now

play01:57

the question comes where where you will

play02:00

add your code you will add your code in

play02:04

the view will add your code in the

play02:06

function modules

play02:08

so with the help of function module exit

play02:12

you can add your code to the sap

play02:15

programs with the help of what with the

play02:18

help of function modules

play02:21

now we will discuss one syntax and then

play02:24

I will show you how so every function

play02:28

module exit has a dedicated syntax has a

play02:33

specific syntax and this syntax is the

play02:36

most important one and it will play a

play02:39

vital role in the future in any sap

play02:43

program the function module exit has a

play02:47

dedicated syntax but is the syntax

play02:50

called customer hyphen function and we

play02:54

have a three digit number this three

play02:57

digit number can varies from 0 0 to 999

play03:02

it means if I will go for the example

play03:05

the function module exits will be

play03:08

available like call customer hyphen

play03:13

function001002 and it can go up to 999

play03:17

so what is function module exit with the

play03:21

help of function module exit you can add

play03:25

your code to sap programs it means you

play03:28

are enhancing sap programs if you are

play03:31

adding your code to the sap programs it

play03:35

means you are enhancing sap programs and

play03:38

how you will enhance with the help of

play03:41

function modules so we will write our

play03:45

code in the function modules every

play03:48

function module exit has a dedicated

play03:51

syntax and the syntax is call customer

play03:54

hyphen function and we have a three

play03:57

digit number

play03:59

now what I will do I will show you one

play04:02

program so that you can get a clear

play04:05

picture what I'm talking about suppose

play04:08

this is sap program

play04:11

this is one of the sap include because

play04:14

it starts with m it means it is a sap

play04:17

include do we have a function module

play04:21

exit available you can see yes we have a

play04:24

function module except because we have a

play04:27

call customer hyphen function and we

play04:31

have a three digit number if I will

play04:34

double click on to this three digit

play04:36

number is it navigating to one function

play04:39

module yes it is navigating to one

play04:42

function module so what we will do we

play04:46

will write our own code to this function

play04:49

module we will write our own code to

play04:52

this function module and is this

play04:55

function module is the part of this sap

play04:59

program yes this function module exit is

play05:04

the part of this sap program so whatever

play05:07

your logic whatever the logic you will

play05:11

write into this sap function module will

play05:15

it trigger in the sap program yes that's

play05:18

why we are saying we will in case of

play05:21

function module exit we will write our

play05:25

code in the function modules

play05:28

we will write our code into this

play05:31

function module and this function module

play05:34

is the this function module exit is the

play05:37

part of this sap program so our logic

play05:40

will automatically trigger

play05:43

now what we will do we will take a

play05:47

requirement and we will achieve that

play05:49

requirement full flash through function

play05:53

module exit now what is our requirement

play05:58

I will go to va01 transaction code that

play06:02

is va01 transaction code with the help

play06:06

of va01 transaction code you can create

play06:10

sales order

play06:12

I'm giving some order type and I am

play06:15

pressing enter

play06:17

now we have a requirement from the

play06:21

customer but customer is saying I have

play06:25

only one soul to party

play06:27

so I will not fill sold to party it

play06:31

should be automatically populated and

play06:34

you can just see what is this

play06:36

requirement sap has not provided this

play06:40

it's a additional requirement from the

play06:43

customer in sap transaction code va01 it

play06:47

means in this sap transaction code or in

play06:51

this sap program we have to write our

play06:55

own code to fill this sold to party and

play06:59

just now few minutes back we covered if

play07:03

you want to write your own code can we

play07:06

achieve this requirement through

play07:08

function module exit yes because

play07:11

function module exit allows us to add

play07:15

our own code to the sap programs so this

play07:20

particular part that how we will go for

play07:23

this particular requirement and how we

play07:25

will achieve this requirement we we will

play07:28

go for the next video we'll continue in

play07:31

the next video so what is the summary of

play07:34

this video

play07:35

we discussed customer exit is of three

play07:38

types so we have function module exit we

play07:42

have screen exit and we have menu exit

play07:45

function module exit with the help of

play07:48

function module exit you can write your

play07:51

own code to the sap programs with the

play07:55

help of function modules so every

play07:58

function module exit has a dedicated

play08:01

syntax called customer hyphen function

play08:04

and we have a three digit number

play08:07

that three digit number will varies from

play08:10

zero zero zero to nine nine nine and

play08:13

then we took one requirement that

play08:16

customer wants sold to party by default

play08:19

in va01 we will achieve this requirement

play08:23

in the next video thank you

Rate This

5.0 / 5 (0 votes)

関連タグ
SAP EnhancementsCustomer ExitFunction ModulesSAP ProgrammingCustom CodeSAP NamespaceSAP ModulesBusiness SolutionsSAP CustomizationSAP Tutorial
英語で要約が必要ですか?