SAP MC_PG_PGAN_UPDATE Function Module for









MC_PG_PGAN_UPDATE is a standard mc pg pgan update SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 mc pg pgan update FM, simply by entering the name MC_PG_PGAN_UPDATE into the relevant SAP transaction such as SE37 or SE38.

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



Function MC_PG_PGAN_UPDATE 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 'MC_PG_PGAN_UPDATE'"
EXPORTING
* IMANDT = SY-MANDT "Mandant für XPRA mit übergeben, sonst sy-mandt

TABLES
* T_PGMI_D = "
* T_PGZU_D = "
T_PGMI_U = "
T_PGZU_U = "
T_PGMI_I = "
T_PGZU_I = "

EXCEPTIONS
PG_OR_MATERIAL_NOT_FOUND = 1 ERROR_WITH_INT_NUMBER = 2
.



IMPORTING Parameters details for MC_PG_PGAN_UPDATE

IMANDT - Mandant für XPRA mit übergeben, sonst sy-mandt

Data type: SY-MANDT
Default: SY-MANDT
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for MC_PG_PGAN_UPDATE

T_PGMI_D -

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

T_PGZU_D -

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

T_PGMI_U -

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

T_PGZU_U -

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

T_PGMI_I -

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

T_PGZU_I -

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

EXCEPTIONS details

PG_OR_MATERIAL_NOT_FOUND -

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

ERROR_WITH_INT_NUMBER -

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

Copy and paste ABAP code example for MC_PG_PGAN_UPDATE 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_imandt  TYPE SY-MANDT, "   SY-MANDT
lt_t_pgmi_d  TYPE STANDARD TABLE OF PGMI, "   
lv_pg_or_material_not_found  TYPE PGMI, "   
lt_t_pgzu_d  TYPE STANDARD TABLE OF PGZU, "   
lv_error_with_int_number  TYPE PGZU, "   
lt_t_pgmi_u  TYPE STANDARD TABLE OF PGMI, "   
lt_t_pgzu_u  TYPE STANDARD TABLE OF PGZU, "   
lt_t_pgmi_i  TYPE STANDARD TABLE OF PGMI, "   
lt_t_pgzu_i  TYPE STANDARD TABLE OF PGZU. "   

  CALL FUNCTION 'MC_PG_PGAN_UPDATE'  "
    EXPORTING
         IMANDT = lv_imandt
    TABLES
         T_PGMI_D = lt_t_pgmi_d
         T_PGZU_D = lt_t_pgzu_d
         T_PGMI_U = lt_t_pgmi_u
         T_PGZU_U = lt_t_pgzu_u
         T_PGMI_I = lt_t_pgmi_i
         T_PGZU_I = lt_t_pgzu_i
    EXCEPTIONS
        PG_OR_MATERIAL_NOT_FOUND = 1
        ERROR_WITH_INT_NUMBER = 2
. " MC_PG_PGAN_UPDATE




ABAP code using 7.40 inline data declarations to call FM MC_PG_PGAN_UPDATE

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.

"SELECT single MANDT FROM SY INTO @DATA(ld_imandt).
DATA(ld_imandt) = SY-MANDT.
 
 
 
 
 
 
 
 
 


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!