当前位置:网站首页>User exit and customer exit in SAP ABAP -015

User exit and customer exit in SAP ABAP -015

2022-06-22 16:22:00 Boating in rainy days

SAP ABAP User exits and customer exits in -015

What is customer exit ?

The customer export is SAP In many standard procedures 、 Screens and menus “ hook ”, Customers can use these programs 、 On the screen and in the menu “ Hang up ” Customize functions to meet business needs . More on this later …

In this tutorial , You will learn :

  • Type of customer exit
  • Customer exit example
  • Find the customer exit
  • Create a customer exit
  • What is a user exit ?

Type of customer exit

There are three main types of customer exits :

  1. Function module exits
  2. The screen exits
  3. Menu exit

Function module exits : Allow customers to pass SAP Add code to function modules at specific locations in the application

Syntax: CALL CUSTOMER-FUNCTION '004'

The screen exits : It allows customers to add fields to... Through sub screens SAP Screen in program . The sub screen calls... In the flow logic of the standard screen .

Format: CALL CUSTOMER-SUBSCREEN CUSTSCR2

Menu exit : It allows customers to add items to the standard SAP In the drop-down menu of the program . These items can be used to invoke add in programs or customize screens .

Format: +CUS ( additional item in GUI status )

Customer exit example

Screen exit example :

In trade CAT2 – Schedule input ,HR Want to include an interactive confirmation , That is, deliberately submitting incorrect data is the reason for dismissal .
 Insert picture description here

Menu exit example :

In the transaction SE38 – ABAP Editor , The development team wants to include a pointing transaction SE80 – Menu links for the object navigator , For ease of use .

before

 Insert picture description here

after
 Insert picture description here

Function module exit example :

The company wants the supplier's bank details to become mandatory during supplier creation . therefore , It must flash an error message ,“ Please enter bank details ”

before

 Insert picture description here

after

 Insert picture description here

Find the customer exit

In trade SMOD in , Check the details -

 Insert picture description here

Or in business SE81 in , You can use the corresponding application area

 Insert picture description here

Create a customer exit

To create a customer exit , You need to start with the transaction CMOD Create a project

 Insert picture description here

later , You will “ Customer export ” Items assigned to you .

What is a user exit ?

The purpose of user export is the same as that of customer export , But they only apply to SD modular . Exit is implemented as a call to a function module . The code is written by the developer .

as everyone knows ,SD The user exit in is MV45AFZZ

  • USEREXIT_FIELD_MODIFICATION – Modify screen properties
  • USEREXIT_SAVE_DOCUMENT – Click... On the user “ preservation ” Perform the operation when
  • USEREXIT_SAVE_DOCUMENT_PREPARE
  • USEREXIT_MOVE_FIELD_TO_VBAK – When user header changes are moved to the header workspace .
  • USEREXIT_MOVE_FIELD_TO_VBAP – When user item changes are moved to SAP Item workspace
原网站

版权声明
本文为[Boating in rainy days]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/173/202206221500488784.html