SAP HRWPC_RFC_OADP_GET_ORGVIEW Function Module for









HRWPC_RFC_OADP_GET_ORGVIEW is a standard hrwpc rfc oadp get orgview 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 hrwpc rfc oadp get orgview FM, simply by entering the name HRWPC_RFC_OADP_GET_ORGVIEW into the relevant SAP transaction such as SE37 or SE38.

Function Group: HRWPC_OADP_UI
Program Name: SAPLHRWPC_OADP_UI
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function HRWPC_RFC_OADP_GET_ORGVIEW 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 'HRWPC_RFC_OADP_GET_ORGVIEW'"
EXPORTING
ORGVIEW = "
* LANGU = SY-LANGU "

IMPORTING
ORGVIEWTEXT = "
OBJSEARCHCLASS = "
OBJSEARCHPARAMGRP = "
OBJSEARCHPARAMGRPTEXT = "
DATAVIEWGRP = "
DATAVIEWGRPTEXT = "
OBJSEL = "
OBJSELTEXT = "
ROOTSELRULE = "
ROOTSELRULETEXT = "
NAVSELRULE = "
NAVSELRULETEXT = "
OBJSELRULE = "
OBJSELRULETEXT = "

TABLES
* T_DATAVIEWS = "

EXCEPTIONS
ORGVIEW_NOT_FOUND = 1 OBJSEL_NOT_FOUND = 2 DATAVIEWGRP_NOT_FOUND = 3
.



IMPORTING Parameters details for HRWPC_RFC_OADP_GET_ORGVIEW

ORGVIEW -

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

LANGU -

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

EXPORTING Parameters details for HRWPC_RFC_OADP_GET_ORGVIEW

ORGVIEWTEXT -

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

OBJSEARCHCLASS -

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

OBJSEARCHPARAMGRP -

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

OBJSEARCHPARAMGRPTEXT -

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

DATAVIEWGRP -

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

DATAVIEWGRPTEXT -

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

OBJSEL -

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

OBJSELTEXT -

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

ROOTSELRULE -

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

ROOTSELRULETEXT -

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

NAVSELRULE -

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

NAVSELRULETEXT -

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

OBJSELRULE -

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

OBJSELRULETEXT -

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

TABLES Parameters details for HRWPC_RFC_OADP_GET_ORGVIEW

T_DATAVIEWS -

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

EXCEPTIONS details

ORGVIEW_NOT_FOUND -

Data type:
Optional: No
Call by Reference: Yes

OBJSEL_NOT_FOUND -

Data type:
Optional: No
Call by Reference: Yes

DATAVIEWGRP_NOT_FOUND -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for HRWPC_RFC_OADP_GET_ORGVIEW 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_orgview  TYPE HRWPC_ORGVIEW, "   
lv_orgviewtext  TYPE TWPC_ORGVW_T-ORGVIEWTEXT, "   
lt_t_dataviews  TYPE STANDARD TABLE OF HRWPC_S_OADP_DATAVIEW, "   
lv_orgview_not_found  TYPE HRWPC_S_OADP_DATAVIEW, "   
lv_objsearchclass  TYPE HRWPC_OBJSEARCHCLASS, "   
lv_objsearchparamgrp  TYPE HRWPC_PARAMGRP, "   
lv_objsearchparamgrptext  TYPE TWPC_PARAMGRP_T-PARAMGRPTEXT, "   
lv_dataviewgrp  TYPE HRWPC_DATAVIEWGRP, "   
lv_dataviewgrptext  TYPE TWPC_DATAVWGRP_T-DATAVIEWGRPTEXT, "   
lv_langu  TYPE SY-LANGU, "   SY-LANGU
lv_objsel  TYPE HRWPC_OBJSEL, "   
lv_objsel_not_found  TYPE HRWPC_OBJSEL, "   
lv_objseltext  TYPE TWPC_OBJSEL_T-OBJSELTEXT, "   
lv_dataviewgrp_not_found  TYPE TWPC_OBJSEL_T, "   
lv_rootselrule  TYPE HRWPC_OBJSELRULE, "   
lv_rootselruletext  TYPE TWPC_OBJSELRUL_T-OBJSELRULETEXT, "   
lv_navselrule  TYPE HRWPC_OBJSELRULE, "   
lv_navselruletext  TYPE TWPC_OBJSELRUL_T-OBJSELRULETEXT, "   
lv_objselrule  TYPE HRWPC_OBJSELRULE, "   
lv_objselruletext  TYPE TWPC_OBJSELRUL_T-OBJSELRULETEXT. "   

  CALL FUNCTION 'HRWPC_RFC_OADP_GET_ORGVIEW'  "
    EXPORTING
         ORGVIEW = lv_orgview
         LANGU = lv_langu
    IMPORTING
         ORGVIEWTEXT = lv_orgviewtext
         OBJSEARCHCLASS = lv_objsearchclass
         OBJSEARCHPARAMGRP = lv_objsearchparamgrp
         OBJSEARCHPARAMGRPTEXT = lv_objsearchparamgrptext
         DATAVIEWGRP = lv_dataviewgrp
         DATAVIEWGRPTEXT = lv_dataviewgrptext
         OBJSEL = lv_objsel
         OBJSELTEXT = lv_objseltext
         ROOTSELRULE = lv_rootselrule
         ROOTSELRULETEXT = lv_rootselruletext
         NAVSELRULE = lv_navselrule
         NAVSELRULETEXT = lv_navselruletext
         OBJSELRULE = lv_objselrule
         OBJSELRULETEXT = lv_objselruletext
    TABLES
         T_DATAVIEWS = lt_t_dataviews
    EXCEPTIONS
        ORGVIEW_NOT_FOUND = 1
        OBJSEL_NOT_FOUND = 2
        DATAVIEWGRP_NOT_FOUND = 3
. " HRWPC_RFC_OADP_GET_ORGVIEW




ABAP code using 7.40 inline data declarations to call FM HRWPC_RFC_OADP_GET_ORGVIEW

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 ORGVIEWTEXT FROM TWPC_ORGVW_T INTO @DATA(ld_orgviewtext).
 
 
 
 
 
"SELECT single PARAMGRPTEXT FROM TWPC_PARAMGRP_T INTO @DATA(ld_objsearchparamgrptext).
 
 
"SELECT single DATAVIEWGRPTEXT FROM TWPC_DATAVWGRP_T INTO @DATA(ld_dataviewgrptext).
 
"SELECT single LANGU FROM SY INTO @DATA(ld_langu).
DATA(ld_langu) = SY-LANGU.
 
 
 
"SELECT single OBJSELTEXT FROM TWPC_OBJSEL_T INTO @DATA(ld_objseltext).
 
 
 
"SELECT single OBJSELRULETEXT FROM TWPC_OBJSELRUL_T INTO @DATA(ld_rootselruletext).
 
 
"SELECT single OBJSELRULETEXT FROM TWPC_OBJSELRUL_T INTO @DATA(ld_navselruletext).
 
 
"SELECT single OBJSELRULETEXT FROM TWPC_OBJSELRUL_T INTO @DATA(ld_objselruletext).
 


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!