SAP PIE_SPLIT_FORMULA Function Module for NOTRANSL: PI Editor: Teilen von langen Formeln (240 Z.) in 8x 30 Zeichen









PIE_SPLIT_FORMULA is a standard pie split formula 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: PI Editor: Teilen von langen Formeln (240 Z.) in 8x 30 Zeichen 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 pie split formula FM, simply by entering the name PIE_SPLIT_FORMULA into the relevant SAP transaction such as SE37 or SE38.

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



Function PIE_SPLIT_FORMULA 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 'PIE_SPLIT_FORMULA'"NOTRANSL: PI Editor: Teilen von langen Formeln (240 Z.) in 8x 30 Zeichen
EXPORTING
* LONG_FORMULA = "Validation method (formula/function)

IMPORTING
LONG_FORMULA_1 = "Formula line
LONG_FORMULA_2 = "Formula line
LONG_FORMULA_3 = "Formula line
LONG_FORMULA_4 = "Formula line
LONG_FORMULA_5 = "Formula line
LONG_FORMULA_6 = "Formula line
LONG_FORMULA_7 = "Formula line
LONG_FORMULA_8 = "Formula line
SPLIT_FAILED = "General Flag

TABLES
* FORMULA_LINES = "PI Editor: Auxiliary Structure for Formula Table
.



IMPORTING Parameters details for PIE_SPLIT_FORMULA

LONG_FORMULA - Validation method (formula/function)

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

EXPORTING Parameters details for PIE_SPLIT_FORMULA

LONG_FORMULA_1 - Formula line

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

LONG_FORMULA_2 - Formula line

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

LONG_FORMULA_3 - Formula line

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

LONG_FORMULA_4 - Formula line

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

LONG_FORMULA_5 - Formula line

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

LONG_FORMULA_6 - Formula line

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

LONG_FORMULA_7 - Formula line

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

LONG_FORMULA_8 - Formula line

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

SPLIT_FAILED - General Flag

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

TABLES Parameters details for PIE_SPLIT_FORMULA

FORMULA_LINES - PI Editor: Auxiliary Structure for Formula Table

Data type: RPIE_FORMULA
Optional: Yes
Call by Reference: Yes

Copy and paste ABAP code example for PIE_SPLIT_FORMULA 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_long_formula  TYPE RPIE_CHINT-INPVAL, "   
lt_formula_lines  TYPE STANDARD TABLE OF RPIE_FORMULA, "   
lv_long_formula_1  TYPE RPIE_SCRN-LONG1_FORM, "   
lv_long_formula_2  TYPE RPIE_SCRN-LONG1_FORM, "   
lv_long_formula_3  TYPE RPIE_SCRN-LONG1_FORM, "   
lv_long_formula_4  TYPE RPIE_SCRN-LONG1_FORM, "   
lv_long_formula_5  TYPE RPIE_SCRN-LONG1_FORM, "   
lv_long_formula_6  TYPE RPIE_SCRN-LONG1_FORM, "   
lv_long_formula_7  TYPE RPIE_SCRN-LONG1_FORM, "   
lv_long_formula_8  TYPE RPIE_SCRN-LONG1_FORM, "   
lv_split_failed  TYPE FLAG. "   

  CALL FUNCTION 'PIE_SPLIT_FORMULA'  "NOTRANSL: PI Editor: Teilen von langen Formeln (240 Z.) in 8x 30 Zeichen
    EXPORTING
         LONG_FORMULA = lv_long_formula
    IMPORTING
         LONG_FORMULA_1 = lv_long_formula_1
         LONG_FORMULA_2 = lv_long_formula_2
         LONG_FORMULA_3 = lv_long_formula_3
         LONG_FORMULA_4 = lv_long_formula_4
         LONG_FORMULA_5 = lv_long_formula_5
         LONG_FORMULA_6 = lv_long_formula_6
         LONG_FORMULA_7 = lv_long_formula_7
         LONG_FORMULA_8 = lv_long_formula_8
         SPLIT_FAILED = lv_split_failed
    TABLES
         FORMULA_LINES = lt_formula_lines
. " PIE_SPLIT_FORMULA




ABAP code using 7.40 inline data declarations to call FM PIE_SPLIT_FORMULA

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 INPVAL FROM RPIE_CHINT INTO @DATA(ld_long_formula).
 
 
"SELECT single LONG1_FORM FROM RPIE_SCRN INTO @DATA(ld_long_formula_1).
 
"SELECT single LONG1_FORM FROM RPIE_SCRN INTO @DATA(ld_long_formula_2).
 
"SELECT single LONG1_FORM FROM RPIE_SCRN INTO @DATA(ld_long_formula_3).
 
"SELECT single LONG1_FORM FROM RPIE_SCRN INTO @DATA(ld_long_formula_4).
 
"SELECT single LONG1_FORM FROM RPIE_SCRN INTO @DATA(ld_long_formula_5).
 
"SELECT single LONG1_FORM FROM RPIE_SCRN INTO @DATA(ld_long_formula_6).
 
"SELECT single LONG1_FORM FROM RPIE_SCRN INTO @DATA(ld_long_formula_7).
 
"SELECT single LONG1_FORM FROM RPIE_SCRN INTO @DATA(ld_long_formula_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!