SAP CN_PP_FPLA_COPY Function Module for NOTRANSL: Kopieren von Teilrechnungplänen innerhalb PS (Vorlage, Simulatio
CN_PP_FPLA_COPY is a standard cn pp fpla copy 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: Kopieren von Teilrechnungplänen innerhalb PS (Vorlage, Simulatio 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 cn pp fpla copy FM, simply by entering the name CN_PP_FPLA_COPY into the relevant SAP transaction such as SE37 or SE38.
Function Group: CNPP
Program Name: SAPLCNPP
Main Program: SAPLCNPP
Appliation area: C
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function CN_PP_FPLA_COPY 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 'CN_PP_FPLA_COPY'"NOTRANSL: Kopieren von Teilrechnungplänen innerhalb PS (Vorlage, Simulatio.
EXPORTING
I_FPLNR_SOURCE = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* I_FPLNR_TARGET = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* I_BEDAT = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* I_AUFPL = '0000000000' "DE-EN-LANG-SWITCH-NO-TRANSLATION
* I_APLZL = '00000000' "DE-EN-LANG-SWITCH-NO-TRANSLATION
* I_RSNUM = '0000000000' "DE-EN-LANG-SWITCH-NO-TRANSLATION
* I_RSPOS = '0000' "DE-EN-LANG-SWITCH-NO-TRANSLATION
IMPORTING
E_FPLNR = "DE-EN-LANG-SWITCH-NO-TRANSLATION
EXCEPTIONS
NOT_FOUND = 1
IMPORTING Parameters details for CN_PP_FPLA_COPY
I_FPLNR_SOURCE - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: FPLA-FPLNROptional: No
Call by Reference: No ( called with pass by value option)
I_FPLNR_TARGET - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: FPLA-FPLNROptional: Yes
Call by Reference: No ( called with pass by value option)
I_BEDAT - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: FPLA-BEDATOptional: Yes
Call by Reference: No ( called with pass by value option)
I_AUFPL - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: AFVC-AUFPLDefault: '0000000000'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_APLZL - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: AFVC-APLZLDefault: '00000000'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_RSNUM - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: RESB-RSNUMDefault: '0000000000'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_RSPOS - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: RESB-RSPOSDefault: '0000'
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for CN_PP_FPLA_COPY
E_FPLNR - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: FPLA-FPLNROptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NOT_FOUND - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CN_PP_FPLA_COPY 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_e_fplnr | TYPE FPLA-FPLNR, " | |||
lv_not_found | TYPE FPLA, " | |||
lv_i_fplnr_source | TYPE FPLA-FPLNR, " | |||
lv_i_fplnr_target | TYPE FPLA-FPLNR, " | |||
lv_i_bedat | TYPE FPLA-BEDAT, " | |||
lv_i_aufpl | TYPE AFVC-AUFPL, " '0000000000' | |||
lv_i_aplzl | TYPE AFVC-APLZL, " '00000000' | |||
lv_i_rsnum | TYPE RESB-RSNUM, " '0000000000' | |||
lv_i_rspos | TYPE RESB-RSPOS. " '0000' |
  CALL FUNCTION 'CN_PP_FPLA_COPY' "NOTRANSL: Kopieren von Teilrechnungplänen innerhalb PS (Vorlage, Simulatio |
EXPORTING | ||
I_FPLNR_SOURCE | = lv_i_fplnr_source | |
I_FPLNR_TARGET | = lv_i_fplnr_target | |
I_BEDAT | = lv_i_bedat | |
I_AUFPL | = lv_i_aufpl | |
I_APLZL | = lv_i_aplzl | |
I_RSNUM | = lv_i_rsnum | |
I_RSPOS | = lv_i_rspos | |
IMPORTING | ||
E_FPLNR | = lv_e_fplnr | |
EXCEPTIONS | ||
NOT_FOUND = 1 | ||
. " CN_PP_FPLA_COPY |
ABAP code using 7.40 inline data declarations to call FM CN_PP_FPLA_COPY
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 FPLNR FROM FPLA INTO @DATA(ld_e_fplnr). | ||||
"SELECT single FPLNR FROM FPLA INTO @DATA(ld_i_fplnr_source). | ||||
"SELECT single FPLNR FROM FPLA INTO @DATA(ld_i_fplnr_target). | ||||
"SELECT single BEDAT FROM FPLA INTO @DATA(ld_i_bedat). | ||||
"SELECT single AUFPL FROM AFVC INTO @DATA(ld_i_aufpl). | ||||
DATA(ld_i_aufpl) | = '0000000000'. | |||
"SELECT single APLZL FROM AFVC INTO @DATA(ld_i_aplzl). | ||||
DATA(ld_i_aplzl) | = '00000000'. | |||
"SELECT single RSNUM FROM RESB INTO @DATA(ld_i_rsnum). | ||||
DATA(ld_i_rsnum) | = '0000000000'. | |||
"SELECT single RSPOS FROM RESB INTO @DATA(ld_i_rspos). | ||||
DATA(ld_i_rspos) | = '0000'. | |||
Search for further information about these or an SAP related objects