SAP CP_00_PLPOB_PLPOD_TRANSFER Function Module for Fill PLPOD structure from PLPOB structure









CP_00_PLPOB_PLPOD_TRANSFER is a standard cp 00 plpob plpod transfer SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Fill PLPOD structure from PLPOB structure 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 cp 00 plpob plpod transfer FM, simply by entering the name CP_00_PLPOB_PLPOD_TRANSFER into the relevant SAP transaction such as SE37 or SE38.

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



Function CP_00_PLPOB_PLPOD_TRANSFER 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 'CP_00_PLPOB_PLPOD_TRANSFER'"Fill PLPOD structure from PLPOB structure
EXPORTING
* FLG_CLAS = ' ' "Look up class
* VORNR_MAIN_IMP = ' ' "Operation number of main operation for sub-operations
* FLG_PHASE_WORK = 'X' "Ind.: read work center from operation in phases
* ARBID_MAIN_IMP = 00000000 "Work center of superior operation in phases
* FLG_QUAL = ' ' "Ind.: read qualification data
* FLG_MGVRG = ' ' "Read operation quantity from material quantity calculation
* FLG_BZW = ' ' "Check whether operation has object dependencies
* FLG_KLA = ' ' "Check whether operation is classified
* FLG_TIME_DEP_DATA = ' ' "
* FLG_EXTR = 'X' "Look up external production data
* FLG_WORK = 'X' "Look up work center data
* FLG_WORK_NO_PLNTY = ' ' "Read work center without task list check
* MESSAGE_TYPE_IMP = 'S' "Type of error message
PLPOB_IMP = "Operation document table structure
* PLPOD_IMP = "Operation dialog structure entry
* STTAG_IMP = ' ' "Key date for work center access
* AENNR_IMP = ' ' "

IMPORTING
NO_EXTR = "External processing data cannot be read
NO_WORK = "Work center cannot be read
PLPOD_EXP = "Operation dialog structure output
RC27F_EXP = "External data operation record
RCR01_EXP = "Work center
WORK_HAS_WRONG_PLNTY = "Work center not allowed for this task list type
.



IMPORTING Parameters details for CP_00_PLPOB_PLPOD_TRANSFER

FLG_CLAS - Look up class

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

VORNR_MAIN_IMP - Operation number of main operation for sub-operations

Data type: PLPO-VORNR
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

FLG_PHASE_WORK - Ind.: read work center from operation in phases

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

ARBID_MAIN_IMP - Work center of superior operation in phases

Data type: PLPO-ARBID
Default: 00000000
Optional: Yes
Call by Reference: No ( called with pass by value option)

FLG_QUAL - Ind.: read qualification data

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

FLG_MGVRG - Read operation quantity from material quantity calculation

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

FLG_BZW - Check whether operation has object dependencies

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

FLG_KLA - Check whether operation is classified

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

FLG_TIME_DEP_DATA -

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

FLG_EXTR - Look up external production data

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

FLG_WORK - Look up work center data

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

FLG_WORK_NO_PLNTY - Read work center without task list check

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

MESSAGE_TYPE_IMP - Type of error message

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

PLPOB_IMP - Operation document table structure

Data type: PLPOB
Optional: No
Call by Reference: Yes

PLPOD_IMP - Operation dialog structure entry

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

STTAG_IMP - Key date for work center access

Data type: RC271-STTAG
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

AENNR_IMP -

Data type: RC271-AENNR
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for CP_00_PLPOB_PLPOD_TRANSFER

NO_EXTR - External processing data cannot be read

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

NO_WORK - Work center cannot be read

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

PLPOD_EXP - Operation dialog structure output

Data type: PLPOD
Optional: No
Call by Reference: Yes

RC27F_EXP - External data operation record

Data type: RC27F
Optional: No
Call by Reference: Yes

RCR01_EXP - Work center

Data type: RCR01
Optional: No
Call by Reference: Yes

WORK_HAS_WRONG_PLNTY - Work center not allowed for this task list type

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

Copy and paste ABAP code example for CP_00_PLPOB_PLPOD_TRANSFER 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_no_extr  TYPE STRING, "   
lv_flg_clas  TYPE STRING, "   SPACE
lv_vornr_main_imp  TYPE PLPO-VORNR, "   SPACE
lv_flg_phase_work  TYPE PLPO, "   'X'
lv_arbid_main_imp  TYPE PLPO-ARBID, "   00000000
lv_flg_qual  TYPE PLPO, "   SPACE
lv_flg_mgvrg  TYPE PLPO, "   SPACE
lv_flg_bzw  TYPE PLPO, "   SPACE
lv_flg_kla  TYPE PLPO, "   SPACE
lv_flg_time_dep_data  TYPE PLPO, "   SPACE
lv_no_work  TYPE PLPO, "   
lv_flg_extr  TYPE PLPO, "   'X'
lv_flg_work  TYPE PLPO, "   'X'
lv_plpod_exp  TYPE PLPOD, "   
lv_rc27f_exp  TYPE RC27F, "   
lv_flg_work_no_plnty  TYPE RC27F, "   SPACE
lv_rcr01_exp  TYPE RCR01, "   
lv_message_type_imp  TYPE RCR01, "   'S'
lv_plpob_imp  TYPE PLPOB, "   
lv_work_has_wrong_plnty  TYPE PLPOB, "   
lv_plpod_imp  TYPE PLPOD, "   
lv_sttag_imp  TYPE RC271-STTAG, "   SPACE
lv_aennr_imp  TYPE RC271-AENNR. "   SPACE

  CALL FUNCTION 'CP_00_PLPOB_PLPOD_TRANSFER'  "Fill PLPOD structure from PLPOB structure
    EXPORTING
         FLG_CLAS = lv_flg_clas
         VORNR_MAIN_IMP = lv_vornr_main_imp
         FLG_PHASE_WORK = lv_flg_phase_work
         ARBID_MAIN_IMP = lv_arbid_main_imp
         FLG_QUAL = lv_flg_qual
         FLG_MGVRG = lv_flg_mgvrg
         FLG_BZW = lv_flg_bzw
         FLG_KLA = lv_flg_kla
         FLG_TIME_DEP_DATA = lv_flg_time_dep_data
         FLG_EXTR = lv_flg_extr
         FLG_WORK = lv_flg_work
         FLG_WORK_NO_PLNTY = lv_flg_work_no_plnty
         MESSAGE_TYPE_IMP = lv_message_type_imp
         PLPOB_IMP = lv_plpob_imp
         PLPOD_IMP = lv_plpod_imp
         STTAG_IMP = lv_sttag_imp
         AENNR_IMP = lv_aennr_imp
    IMPORTING
         NO_EXTR = lv_no_extr
         NO_WORK = lv_no_work
         PLPOD_EXP = lv_plpod_exp
         RC27F_EXP = lv_rc27f_exp
         RCR01_EXP = lv_rcr01_exp
         WORK_HAS_WRONG_PLNTY = lv_work_has_wrong_plnty
. " CP_00_PLPOB_PLPOD_TRANSFER




ABAP code using 7.40 inline data declarations to call FM CP_00_PLPOB_PLPOD_TRANSFER

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.

 
DATA(ld_flg_clas) = ' '.
 
"SELECT single VORNR FROM PLPO INTO @DATA(ld_vornr_main_imp).
DATA(ld_vornr_main_imp) = ' '.
 
DATA(ld_flg_phase_work) = 'X'.
 
"SELECT single ARBID FROM PLPO INTO @DATA(ld_arbid_main_imp).
DATA(ld_arbid_main_imp) = 00000000.
 
DATA(ld_flg_qual) = ' '.
 
DATA(ld_flg_mgvrg) = ' '.
 
DATA(ld_flg_bzw) = ' '.
 
DATA(ld_flg_kla) = ' '.
 
DATA(ld_flg_time_dep_data) = ' '.
 
 
DATA(ld_flg_extr) = 'X'.
 
DATA(ld_flg_work) = 'X'.
 
 
 
DATA(ld_flg_work_no_plnty) = ' '.
 
 
DATA(ld_message_type_imp) = 'S'.
 
 
 
 
"SELECT single STTAG FROM RC271 INTO @DATA(ld_sttag_imp).
DATA(ld_sttag_imp) = ' '.
 
"SELECT single AENNR FROM RC271 INTO @DATA(ld_aennr_imp).
DATA(ld_aennr_imp) = ' '.
 


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!