SAP G_GET_ORGANIZATIONAL_DATA Function Module for









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

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



Function G_GET_ORGANIZATIONAL_DATA 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_GET_ORGANIZATIONAL_DATA'"
EXPORTING
I_RLDNR = "
I_ORGUNIT = "
* JOIN_OF_VALUTYP_AND_CURT = 'X' "
* SEND_ERROR_WHEN_DEPLD = ' ' "
* I_NEWGL_CURTP_LIKE_T001A = ' ' "

IMPORTING
ORGANIZATIONAL_INFO = "

EXCEPTIONS
NO_INFO_FOUND = 1 ERROR_IN_SETUP = 2 ERROR_IN_DEPLD = 3
.



IMPORTING Parameters details for G_GET_ORGANIZATIONAL_DATA

I_RLDNR -

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

I_ORGUNIT -

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

JOIN_OF_VALUTYP_AND_CURT -

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

SEND_ERROR_WHEN_DEPLD -

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

I_NEWGL_CURTP_LIKE_T001A -

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

EXPORTING Parameters details for G_GET_ORGANIZATIONAL_DATA

ORGANIZATIONAL_INFO -

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

EXCEPTIONS details

NO_INFO_FOUND -

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

ERROR_IN_SETUP -

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

ERROR_IN_DEPLD -

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

Copy and paste ABAP code example for G_GET_ORGANIZATIONAL_DATA 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_i_rldnr  TYPE T881-RLDNR, "   
lv_no_info_found  TYPE T881, "   
lv_organizational_info  TYPE GLX_ORG_INFO, "   
lv_i_orgunit  TYPE C, "   
lv_error_in_setup  TYPE C, "   
lv_error_in_depld  TYPE C, "   
lv_join_of_valutyp_and_curt  TYPE C, "   'X'
lv_send_error_when_depld  TYPE T881-DEPLD, "   ' '
lv_i_newgl_curtp_like_t001a  TYPE XFLAG. "   ' '

  CALL FUNCTION 'G_GET_ORGANIZATIONAL_DATA'  "
    EXPORTING
         I_RLDNR = lv_i_rldnr
         I_ORGUNIT = lv_i_orgunit
         JOIN_OF_VALUTYP_AND_CURT = lv_join_of_valutyp_and_curt
         SEND_ERROR_WHEN_DEPLD = lv_send_error_when_depld
         I_NEWGL_CURTP_LIKE_T001A = lv_i_newgl_curtp_like_t001a
    IMPORTING
         ORGANIZATIONAL_INFO = lv_organizational_info
    EXCEPTIONS
        NO_INFO_FOUND = 1
        ERROR_IN_SETUP = 2
        ERROR_IN_DEPLD = 3
. " G_GET_ORGANIZATIONAL_DATA




ABAP code using 7.40 inline data declarations to call FM G_GET_ORGANIZATIONAL_DATA

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 T881 INTO @DATA(ld_i_rldnr).
 
 
 
 
 
 
DATA(ld_join_of_valutyp_and_curt) = 'X'.
 
"SELECT single DEPLD FROM T881 INTO @DATA(ld_send_error_when_depld).
DATA(ld_send_error_when_depld) = ' '.
 
DATA(ld_i_newgl_curtp_like_t001a) = ' '.
 


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!