SAP KEO_GEN_GET_COAREA_TO_ORGUNIT Function Module for









KEO_GEN_GET_COAREA_TO_ORGUNIT is a standard keo gen get coarea to 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 keo gen get coarea to orgunit FM, simply by entering the name KEO_GEN_GET_COAREA_TO_ORGUNIT into the relevant SAP transaction such as SE37 or SE38.

Function Group: KEO_GEN_REL
Program Name: SAPLKEO_GEN_REL
Main Program: SAPLKEO_GEN_REL
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function KEO_GEN_GET_COAREA_TO_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 'KEO_GEN_GET_COAREA_TO_ORGUNIT'"
EXPORTING
* ORGPLVAR = "
ORGOTYPE = "
ORGOBJID = "
* BEGDA = SY-DATUM "
* ENDDA = SY-DATUM "
* BUFFER_MODE = 'X' "
* TEXTFLAG = "
* UP = 'X' "
* STRUC_INF = "

TABLES
* REL_COAREA_OBJ = "
* RELATED_COAREA = "

EXCEPTIONS
NOTHING_FOUND = 1
.



IMPORTING Parameters details for KEO_GEN_GET_COAREA_TO_ORGUNIT

ORGPLVAR -

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

ORGOTYPE -

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

ORGOBJID -

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

BEGDA -

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

ENDDA -

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

BUFFER_MODE -

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

TEXTFLAG -

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

UP -

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

STRUC_INF -

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

TABLES Parameters details for KEO_GEN_GET_COAREA_TO_ORGUNIT

REL_COAREA_OBJ -

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

RELATED_COAREA -

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

EXCEPTIONS details

NOTHING_FOUND -

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

Copy and paste ABAP code example for KEO_GEN_GET_COAREA_TO_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_orgplvar  TYPE PLVAR, "   
lv_nothing_found  TYPE PLVAR, "   
lt_rel_coarea_obj  TYPE STANDARD TABLE OF OBJEC, "   
lv_orgotype  TYPE OTYPE, "   
lt_related_coarea  TYPE STANDARD TABLE OF STRUC, "   
lv_orgobjid  TYPE STRUC, "   
lv_begda  TYPE BEGDATUM, "   SY-DATUM
lv_endda  TYPE ENDDATUM, "   SY-DATUM
lv_buffer_mode  TYPE FLAG, "   'X'
lv_textflag  TYPE FLAG, "   
lv_up  TYPE FLAG, "   'X'
lv_struc_inf  TYPE FLAG. "   

  CALL FUNCTION 'KEO_GEN_GET_COAREA_TO_ORGUNIT'  "
    EXPORTING
         ORGPLVAR = lv_orgplvar
         ORGOTYPE = lv_orgotype
         ORGOBJID = lv_orgobjid
         BEGDA = lv_begda
         ENDDA = lv_endda
         BUFFER_MODE = lv_buffer_mode
         TEXTFLAG = lv_textflag
         UP = lv_up
         STRUC_INF = lv_struc_inf
    TABLES
         REL_COAREA_OBJ = lt_rel_coarea_obj
         RELATED_COAREA = lt_related_coarea
    EXCEPTIONS
        NOTHING_FOUND = 1
. " KEO_GEN_GET_COAREA_TO_ORGUNIT




ABAP code using 7.40 inline data declarations to call FM KEO_GEN_GET_COAREA_TO_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.

 
 
 
 
 
 
DATA(ld_begda) = SY-DATUM.
 
DATA(ld_endda) = SY-DATUM.
 
DATA(ld_buffer_mode) = 'X'.
 
 
DATA(ld_up) = 'X'.
 
 


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!