Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

***INCLUDE MV45AFZZ .

************************************************************************
*
*
* This include is reserved for user modifications
*
*
*
* Forms for sales document processing
*
*
*
* The name of modification modules should begin with 'ZZ'.
*
*
*
************************************************************************
*---------------------------------------------------------------------*
*
FORM ZZEXAMPLE
*
*---------------------------------------------------------------------*
*
text......................................
*
*---------------------------------------------------------------------*
*FORM ZZEXAMPLE.
*

...

*ENDFORM.
*eject
*---------------------------------------------------------------------*
*
FORM USEREXIT_DELETE_DOCUMENT
*
*---------------------------------------------------------------------*
*
This userexit can be used to delete data in additional tables *
*
when a sales document is deleted.
*
*
*
*
This form is called in dialog at the end of form BELEG_LOESCHEN*
*
just before form BELEG_SICHERN is performed to delete the
*
*
datas on the database.
*
*
*
*---------------------------------------------------------------------*
form userexit_delete_document.
endform.
*eject
*---------------------------------------------------------------------*
*
FORM USEREXIT_FIELD_MODIFICATION
*
*---------------------------------------------------------------------*
*
This userexit can be used to modify the attributes of
*
*
screen fields.
*
*
This form is processed for each field in the screen.
*
*
*
*
The use of the fields screen-group1 to screen-group4 is:
*
*
*

*
Screen-group1: Automatic modification contolles by transaction*
*
MFAW.
*
*
Screen-group2: Contents 'LOO' for steploop-fields.
*
*
Screen-group3: Used for modififaction, which are dependent on *
*
control tables or other fix information.
*
*
Screen-group4: Unused
*
*
*
*
For field mofifications, which are dependent on the document *
*
status, you can use the status field in the workareas
*
*
XVBAP for item status and XVBUK for header status.
*
*
*
*
This form is called from module FELDAUSWAHL.
*
*
*
*---------------------------------------------------------------------*
form userexit_field_modification.
* CASE SCREEN-GROUP3.
*
WHEN '900'.
*
IF VBAK-VBTYP NE 'A'.
*
SCREEN-ACTIVE = 0.
*
ENDIF.
* ENDCASE.
* CASE SCREEN-NAME.
*
WHEN 'VBAK-VBELN'.
*
SCREEN-ACTIVE = 0.
* ENDCASE.
endform.
*eject
*---------------------------------------------------------------------*
*
FORM USEREXIT_MOVE_FIELD_TO_VBAK
*
*---------------------------------------------------------------------*
*
This userexit can be used to move some fields into the sales *
*
dokument header workaerea VBAK.
*
*
*
*
SVBAK-TABIX = 0: Create header
*
*
SVBAK-TABIX > 0: Change header
*
*
*
*
This form is called at the end of form VBAK_FUELLEN.
*
*
*
*---------------------------------------------------------------------*
form userexit_move_field_to_vbak.
*

vbak-zzfield = xxxx-zzfield2.

endform.
*eject

*---------------------------------------------------------------------*
*
FORM USEREXIT_MOVE_FIELD_TO_VBAP
*
*---------------------------------------------------------------------*
*
This userexit can be used to move some fields into the sales *
*
dokument item workaerea VBAP
*
*
*
*
SVBAP-TABIX = 0: Create item
*
*
SVBAP-TABIX > 0: Change item
*
*
*
*
This form is called at the end of form VBAP_FUELLEN.
*
*
*
*---------------------------------------------------------------------*
form userexit_move_field_to_vbap.
*

VBAP-zzfield = xxxx-zzfield2.

endform.
*eject
*---------------------------------------------------------------------*
*
FORM USEREXIT_MOVE_FIELD_TO_VBEP
*
*---------------------------------------------------------------------*
*
This userexit can be used to move some fields into the sales *
*
dokument schedule line workaerea VBEP
*
*
*
*
SVBEP-TABIX = 0: Create schedule line
*
*
SVBEP-TABIX > 0: Change schedule line
*
*
*
*
This form is called at the end of form VBEP_FUELLEN.
*
*
*
*---------------------------------------------------------------------*
form userexit_move_field_to_vbep.
*

VBEP-zzfield = xxxx-zzfield2.

endform.

You might also like