SAP MC_PG_TRANSFER_PBED_IS Function Module for NOTRANSL: Übergabe Absatz- bzw. Produktionsgrobplan an Primärbedarfspflege









MC_PG_TRANSFER_PBED_IS is a standard mc pg transfer pbed is 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: Übergabe Absatz- bzw. Produktionsgrobplan an Primärbedarfspflege 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 mc pg transfer pbed is FM, simply by entering the name MC_PG_TRANSFER_PBED_IS into the relevant SAP transaction such as SE37 or SE38.

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



Function MC_PG_TRANSFER_PBED_IS 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_TRANSFER_PBED_IS'"NOTRANSL: Übergabe Absatz- bzw. Produktionsgrobplan an Primärbedarfspflege
EXPORTING
* IDATUB = '00000000' "'To' date for product group disaggregation
* IDATUV = '00000000' "'From' date for product group disaggregation
* IFLGDI = 'X' "Space: Proportion of PG, else: directly from matl
IMATNR = "Material number
* IMEINS = ' ' "Target Unit of Measure
* IVRSIO = ' ' "Planned version in prod. plan
IWERKS = "Plant
* IGSTRU = 'S076' "
* IKZA01 = ' ' "

IMPORTING
EALLD0 = "All data 0, IPGABS empty, but version exists
EDATUM = "Date of last change to rough-cut planning
EUZEIT = "Time of last change to rough-cut planning

TABLES
IPGABS = "Sales plan / production plan

EXCEPTIONS
DATE_INVALID_FOR_WEEK_CALC = 1 FACTORY_CAL_READ_NOT_POSSIBLE = 2 NO_DATA_FOUND = 3 PERIOD_READ_NOT_POSSIBLE = 4 PG_FOR_MATERIAL_NOT_FOUND = 5 PLANTCODE_NOT_IN_T001W = 6 UNIT_CONVERSION_NOT_POSSIBLE = 7 WEEK_INVALID_FOR_DATE_CALC = 8
.




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_SAPLMCP2_008 User Exit: Processing Header Data in a Purchase Order from an IDoc
EXIT_SAPLMCP2_009 User Exit: Processing Item Data in a Purchase Order from an IDoc

IMPORTING Parameters details for MC_PG_TRANSFER_PBED_IS

IDATUB - 'To' date for product group disaggregation

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

IDATUV - 'From' date for product group disaggregation

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

IFLGDI - Space: Proportion of PG, else: directly from matl

Data type: CHAR01
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

IMATNR - Material number

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

IMEINS - Target Unit of Measure

Data type: MARA-MEINS
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

IVRSIO - Planned version in prod. plan

Data type: P445V-VRSIO
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

IWERKS - Plant

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

IGSTRU -

Data type: RMCP2-GSTRU
Default: 'S076'
Optional: Yes
Call by Reference: No ( called with pass by value option)

IKZA01 -

Data type: RMCP2-KZA01
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for MC_PG_TRANSFER_PBED_IS

EALLD0 - All data 0, IPGABS empty, but version exists

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

EDATUM - Date of last change to rough-cut planning

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

EUZEIT - Time of last change to rough-cut planning

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

TABLES Parameters details for MC_PG_TRANSFER_PBED_IS

IPGABS - Sales plan / production plan

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

EXCEPTIONS details

DATE_INVALID_FOR_WEEK_CALC - Invalid date for week calculation

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

FACTORY_CAL_READ_NOT_POSSIBLE - Error Reading Factory Calendar

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

NO_DATA_FOUND - Version not in P445V --> No planning data exists

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

PERIOD_READ_NOT_POSSIBLE - Error setting up posting periods

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

PG_FOR_MATERIAL_NOT_FOUND - Trans. as prop. - cannot determine PG for matl

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

PLANTCODE_NOT_IN_T001W - No entry for plant in table 001W

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

UNIT_CONVERSION_NOT_POSSIBLE - Not possible to convert units

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

WEEK_INVALID_FOR_DATE_CALC - Invalid week for calculating first day of week

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

Copy and paste ABAP code example for MC_PG_TRANSFER_PBED_IS 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_ealld0  TYPE CHAR01, "   
lv_idatub  TYPE SY-DATUM, "   '00000000'
lt_ipgabs  TYPE STANDARD TABLE OF PGABS, "   
lv_date_invalid_for_week_calc  TYPE PGABS, "   
lv_edatum  TYPE SY-DATUM, "   
lv_idatuv  TYPE SY-DATUM, "   '00000000'
lv_factory_cal_read_not_possible  TYPE SY, "   
lv_euzeit  TYPE SY-UZEIT, "   
lv_iflgdi  TYPE CHAR01, "   'X'
lv_no_data_found  TYPE CHAR01, "   
lv_imatnr  TYPE MARA-MATNR, "   
lv_period_read_not_possible  TYPE MARA, "   
lv_imeins  TYPE MARA-MEINS, "   ' '
lv_pg_for_material_not_found  TYPE MARA, "   
lv_ivrsio  TYPE P445V-VRSIO, "   ' '
lv_plantcode_not_in_t001w  TYPE P445V, "   
lv_iwerks  TYPE PGMI-WERKS, "   
lv_unit_conversion_not_possible  TYPE PGMI, "   
lv_igstru  TYPE RMCP2-GSTRU, "   'S076'
lv_week_invalid_for_date_calc  TYPE RMCP2, "   
lv_ikza01  TYPE RMCP2-KZA01. "   ' '

  CALL FUNCTION 'MC_PG_TRANSFER_PBED_IS'  "NOTRANSL: Übergabe Absatz- bzw. Produktionsgrobplan an Primärbedarfspflege
    EXPORTING
         IDATUB = lv_idatub
         IDATUV = lv_idatuv
         IFLGDI = lv_iflgdi
         IMATNR = lv_imatnr
         IMEINS = lv_imeins
         IVRSIO = lv_ivrsio
         IWERKS = lv_iwerks
         IGSTRU = lv_igstru
         IKZA01 = lv_ikza01
    IMPORTING
         EALLD0 = lv_ealld0
         EDATUM = lv_edatum
         EUZEIT = lv_euzeit
    TABLES
         IPGABS = lt_ipgabs
    EXCEPTIONS
        DATE_INVALID_FOR_WEEK_CALC = 1
        FACTORY_CAL_READ_NOT_POSSIBLE = 2
        NO_DATA_FOUND = 3
        PERIOD_READ_NOT_POSSIBLE = 4
        PG_FOR_MATERIAL_NOT_FOUND = 5
        PLANTCODE_NOT_IN_T001W = 6
        UNIT_CONVERSION_NOT_POSSIBLE = 7
        WEEK_INVALID_FOR_DATE_CALC = 8
. " MC_PG_TRANSFER_PBED_IS




ABAP code using 7.40 inline data declarations to call FM MC_PG_TRANSFER_PBED_IS

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 DATUM FROM SY INTO @DATA(ld_idatub).
DATA(ld_idatub) = '00000000'.
 
 
 
"SELECT single DATUM FROM SY INTO @DATA(ld_edatum).
 
"SELECT single DATUM FROM SY INTO @DATA(ld_idatuv).
DATA(ld_idatuv) = '00000000'.
 
 
"SELECT single UZEIT FROM SY INTO @DATA(ld_euzeit).
 
DATA(ld_iflgdi) = 'X'.
 
 
"SELECT single MATNR FROM MARA INTO @DATA(ld_imatnr).
 
 
"SELECT single MEINS FROM MARA INTO @DATA(ld_imeins).
DATA(ld_imeins) = ' '.
 
 
"SELECT single VRSIO FROM P445V INTO @DATA(ld_ivrsio).
DATA(ld_ivrsio) = ' '.
 
 
"SELECT single WERKS FROM PGMI INTO @DATA(ld_iwerks).
 
 
"SELECT single GSTRU FROM RMCP2 INTO @DATA(ld_igstru).
DATA(ld_igstru) = 'S076'.
 
 
"SELECT single KZA01 FROM RMCP2 INTO @DATA(ld_ikza01).
DATA(ld_ikza01) = ' '.
 


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!