SAP DG70_CHANGE_MAT_PAPER Function Module for NOTRANSL: GGA: Userexit für Materialtausch und Komponentenauflösung









DG70_CHANGE_MAT_PAPER is a standard dg70 change mat paper SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: GGA: Userexit für Materialtausch und Komponentenauflösung processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for dg70 change mat paper FM, simply by entering the name DG70_CHANGE_MAT_PAPER into the relevant SAP transaction such as SE37 or SE38.

Function Group: DG70
Program Name: SAPLDG70
Main Program: SAPLDG70
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function DG70_CHANGE_MAT_PAPER pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'DG70_CHANGE_MAT_PAPER'"NOTRANSL: GGA: Userexit für Materialtausch und Komponentenauflösung
EXPORTING
* I_CHK_LIKP = "
* I_CHK_VBAK_WA = "Sales Document: Header Data
* I_CHK_VTTKVB_WA = "Shipment Header for Logging
* I_CHK_LIPS = "
* I_DG_CHK_START = "2-Digit Numeric Value

TABLES
* I_CHK_VBAPTAB = "Document Structure for XVBAP/YVBAP
* I_CHK_VBEPTAB = "Structure of Document for XVBEP/YVBEP
* I_CHK_VTRLPTAB = "Delivery in Shipment: Item
X_CHG_MATTAB = "DG: Structure for Material Exchange and Mult. Comp. Explos.

EXCEPTIONS
MATERIAL_CHANGE_FAILED = 1 MATERIAL_COMP_FAILED = 2
.




Customer Function user exits

Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.
EXIT_SAPLDG70_001 DG: Individual Determ. Countries/Mode of Transport Categories in Shipment
EXIT_SAPLDG70_002 DG: User Exit to Modify Internal Table (Countries/MTCs)
EXIT_SAPLDG70_003 DG: User Exit for Material Exchange and Component Explosion
EXIT_SAPLDG70_004 DG: Determine Countries/Mode of Trans. Cats in Shipping/Sales Individually

IMPORTING Parameters details for DG70_CHANGE_MAT_PAPER

I_CHK_LIKP -

Data type: VLGGT_LIKPVB_S
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_CHK_VBAK_WA - Sales Document: Header Data

Data type: VBAK
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_CHK_VTTKVB_WA - Shipment Header for Logging

Data type: VTTKVB
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_CHK_LIPS -

Data type: VLGGT_LIPSVB_T
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_DG_CHK_START - 2-Digit Numeric Value

Data type: NUM2
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for DG70_CHANGE_MAT_PAPER

I_CHK_VBAPTAB - Document Structure for XVBAP/YVBAP

Data type: VBAPVB
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_CHK_VBEPTAB - Structure of Document for XVBEP/YVBEP

Data type: VBEPVB
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_CHK_VTRLPTAB - Delivery in Shipment: Item

Data type: VTRLP
Optional: Yes
Call by Reference: No ( called with pass by value option)

X_CHG_MATTAB - DG: Structure for Material Exchange and Mult. Comp. Explos.

Data type: RDGCHANGE
Optional: No
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

MATERIAL_CHANGE_FAILED -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

MATERIAL_COMP_FAILED -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for DG70_CHANGE_MAT_PAPER Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.

DATA:
lv_i_chk_likp  TYPE VLGGT_LIKPVB_S, "   
lt_i_chk_vbaptab  TYPE STANDARD TABLE OF VBAPVB, "   
lv_material_change_failed  TYPE VBAPVB, "   
lv_i_chk_vbak_wa  TYPE VBAK, "   
lt_i_chk_vbeptab  TYPE STANDARD TABLE OF VBEPVB, "   
lv_material_comp_failed  TYPE VBEPVB, "   
lt_i_chk_vtrlptab  TYPE STANDARD TABLE OF VTRLP, "   
lv_i_chk_vttkvb_wa  TYPE VTTKVB, "   
lv_i_chk_lips  TYPE VLGGT_LIPSVB_T, "   
lt_x_chg_mattab  TYPE STANDARD TABLE OF RDGCHANGE, "   
lv_i_dg_chk_start  TYPE NUM2. "   

  CALL FUNCTION 'DG70_CHANGE_MAT_PAPER'  "NOTRANSL: GGA: Userexit für Materialtausch und Komponentenauflösung
    EXPORTING
         I_CHK_LIKP = lv_i_chk_likp
         I_CHK_VBAK_WA = lv_i_chk_vbak_wa
         I_CHK_VTTKVB_WA = lv_i_chk_vttkvb_wa
         I_CHK_LIPS = lv_i_chk_lips
         I_DG_CHK_START = lv_i_dg_chk_start
    TABLES
         I_CHK_VBAPTAB = lt_i_chk_vbaptab
         I_CHK_VBEPTAB = lt_i_chk_vbeptab
         I_CHK_VTRLPTAB = lt_i_chk_vtrlptab
         X_CHG_MATTAB = lt_x_chg_mattab
    EXCEPTIONS
        MATERIAL_CHANGE_FAILED = 1
        MATERIAL_COMP_FAILED = 2
. " DG70_CHANGE_MAT_PAPER




ABAP code using 7.40 inline data declarations to call FM DG70_CHANGE_MAT_PAPER

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

 
 
 
 
 
 
 
 
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!