SAP G_PP_GET_ORGUNIT Function Module for









G_PP_GET_ORGUNIT is a standard g pp get orgunit 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 g pp get orgunit FM, simply by entering the name G_PP_GET_ORGUNIT into the relevant SAP transaction such as SE37 or SE38.

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



Function G_PP_GET_ORGUNIT 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 'G_PP_GET_ORGUNIT'"
EXPORTING
IN_REPORT = "

IMPORTING
RLDNR = "
TABNAME = "
STRUCTNAME = "
ORGNAME = "
ORGVALUE = "
ORGANIZATIONAL_INFO = "

TABLES
* ITKPP0M = "
* ITKPP0A = "
.



IMPORTING Parameters details for G_PP_GET_ORGUNIT

IN_REPORT -

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

EXPORTING Parameters details for G_PP_GET_ORGUNIT

RLDNR -

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

TABNAME -

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

STRUCTNAME -

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

ORGNAME -

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

ORGVALUE -

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

ORGANIZATIONAL_INFO -

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

TABLES Parameters details for G_PP_GET_ORGUNIT

ITKPP0M -

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

ITKPP0A -

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

Copy and paste ABAP code example for G_PP_GET_ORGUNIT 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_rldnr  TYPE GLU1-RLDNR, "   
lt_itkpp0m  TYPE STANDARD TABLE OF KPP0M, "   
lv_in_report  TYPE CHAR1, "   
lt_itkpp0a  TYPE STANDARD TABLE OF KPP0A, "   
lv_tabname  TYPE T881-TAB, "   
lv_structname  TYPE T8PL00-TABNAME, "   
lv_orgname  TYPE CHAR30, "   
lv_orgvalue  TYPE CHAR30, "   
lv_organizational_info  TYPE GLX_ORG_INFO. "   

  CALL FUNCTION 'G_PP_GET_ORGUNIT'  "
    EXPORTING
         IN_REPORT = lv_in_report
    IMPORTING
         RLDNR = lv_rldnr
         TABNAME = lv_tabname
         STRUCTNAME = lv_structname
         ORGNAME = lv_orgname
         ORGVALUE = lv_orgvalue
         ORGANIZATIONAL_INFO = lv_organizational_info
    TABLES
         ITKPP0M = lt_itkpp0m
         ITKPP0A = lt_itkpp0a
. " G_PP_GET_ORGUNIT




ABAP code using 7.40 inline data declarations to call FM G_PP_GET_ORGUNIT

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 RLDNR FROM GLU1 INTO @DATA(ld_rldnr).
 
 
 
 
"SELECT single TAB FROM T881 INTO @DATA(ld_tabname).
 
"SELECT single TABNAME FROM T8PL00 INTO @DATA(ld_structname).
 
 
 
 


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!