SAP BAPI_ORGUNITEXT_DATA_GET Function Module for Get data on organizational unit









BAPI_ORGUNITEXT_DATA_GET is a standard bapi orgunitext data get SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Get data on organizational unit 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 bapi orgunitext data get FM, simply by entering the name BAPI_ORGUNITEXT_DATA_GET into the relevant SAP transaction such as SE37 or SE38.

Function Group: RH_ORGPUB_APP
Program Name: SAPLRH_ORGPUB_APP
Main Program:
Appliation area: H
Release date: 09-Jun-1999
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function BAPI_ORGUNITEXT_DATA_GET 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 'BAPI_ORGUNITEXT_DATA_GET'"Get data on organizational unit
EXPORTING
* PLVAR = "Plan Variant
* OTYPE = 'O ' "Type of Root Object
OBJID = "ID of root object
* KEYDATE = SY-DATUM "Key date for evaluation
* SCENARIO = 'MDT1' "Scenario (for report and query, see long text)
* EVALPATH = "Evaluation path (see long text)
* EVALDEPTH = 0 "Reporting Depth

IMPORTING
RETURN = "Return structure for BAPI

TABLES
* ACTORTAB = "Table of agents for workflow tasks
* STRUCTURALDATA = "Data of structure evaluation
* OBJECTSDATA = "Object data for structure evaluation
* FIELDCATALOGUE = "Field catalogs for queries
* FIELDDATA = "Field contents of queries
.



IMPORTING Parameters details for BAPI_ORGUNITEXT_DATA_GET

PLVAR - Plan Variant

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

OTYPE - Type of Root Object

Data type: BAPI_ORGCHART-OTYPE
Default: 'O '
Optional: Yes
Call by Reference: No ( called with pass by value option)

OBJID - ID of root object

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

KEYDATE - Key date for evaluation

Data type: BAPI_ORGCHART-KEYDATE
Default: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)

SCENARIO - Scenario (for report and query, see long text)

Data type: BAPI_ORGCHART-SCENARIO
Default: 'MDT1'
Optional: Yes
Call by Reference: No ( called with pass by value option)

EVALPATH - Evaluation path (see long text)

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

EVALDEPTH - Reporting Depth

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

EXPORTING Parameters details for BAPI_ORGUNITEXT_DATA_GET

RETURN - Return structure for BAPI

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

TABLES Parameters details for BAPI_ORGUNITEXT_DATA_GET

ACTORTAB - Table of agents for workflow tasks

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

STRUCTURALDATA - Data of structure evaluation

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

OBJECTSDATA - Object data for structure evaluation

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

FIELDCATALOGUE - Field catalogs for queries

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

FIELDDATA - Field contents of queries

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

Copy and paste ABAP code example for BAPI_ORGUNITEXT_DATA_GET 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_plvar  TYPE BAPI_ORGCHART-PLVAR, "   
lv_return  TYPE BAPIRET2, "   
lt_actortab  TYPE STANDARD TABLE OF BAPI_SWHACTOR, "   
lv_otype  TYPE BAPI_ORGCHART-OTYPE, "   'O '
lt_structuraldata  TYPE STANDARD TABLE OF BAPI_STRUC, "   
lv_objid  TYPE BAPI_ORGCHART-OBJID, "   
lt_objectsdata  TYPE STANDARD TABLE OF BAPI_OBJEC, "   
lv_keydate  TYPE BAPI_ORGCHART-KEYDATE, "   SY-DATUM
lt_fieldcatalogue  TYPE STANDARD TABLE OF BAPI_HRAQFIELDDESCRIPTION, "   
lv_scenario  TYPE BAPI_ORGCHART-SCENARIO, "   'MDT1'
lt_fielddata  TYPE STANDARD TABLE OF BAPI_HRFIELDDATA, "   
lv_evalpath  TYPE BAPI_ORGCHART-EVALPATH, "   
lv_evaldepth  TYPE BAPI_ORGCHART-EVALDEPTH. "   0

  CALL FUNCTION 'BAPI_ORGUNITEXT_DATA_GET'  "Get data on organizational unit
    EXPORTING
         PLVAR = lv_plvar
         OTYPE = lv_otype
         OBJID = lv_objid
         KEYDATE = lv_keydate
         SCENARIO = lv_scenario
         EVALPATH = lv_evalpath
         EVALDEPTH = lv_evaldepth
    IMPORTING
         RETURN = lv_return
    TABLES
         ACTORTAB = lt_actortab
         STRUCTURALDATA = lt_structuraldata
         OBJECTSDATA = lt_objectsdata
         FIELDCATALOGUE = lt_fieldcatalogue
         FIELDDATA = lt_fielddata
. " BAPI_ORGUNITEXT_DATA_GET




ABAP code using 7.40 inline data declarations to call FM BAPI_ORGUNITEXT_DATA_GET

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 PLVAR FROM BAPI_ORGCHART INTO @DATA(ld_plvar).
 
 
 
"SELECT single OTYPE FROM BAPI_ORGCHART INTO @DATA(ld_otype).
DATA(ld_otype) = 'O '.
 
 
"SELECT single OBJID FROM BAPI_ORGCHART INTO @DATA(ld_objid).
 
 
"SELECT single KEYDATE FROM BAPI_ORGCHART INTO @DATA(ld_keydate).
DATA(ld_keydate) = SY-DATUM.
 
 
"SELECT single SCENARIO FROM BAPI_ORGCHART INTO @DATA(ld_scenario).
DATA(ld_scenario) = 'MDT1'.
 
 
"SELECT single EVALPATH FROM BAPI_ORGCHART INTO @DATA(ld_evalpath).
 
"SELECT single EVALDEPTH FROM BAPI_ORGCHART INTO @DATA(ld_evaldepth).
 


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!