SAP RSB_GUI_MAINTAIN_OHD Function Module for Processing of the new Open Hub Destination
RSB_GUI_MAINTAIN_OHD is a standard rsb gui maintain ohd SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Processing of the new Open Hub Destination 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 rsb gui maintain ohd FM, simply by entering the name RSB_GUI_MAINTAIN_OHD into the relevant SAP transaction such as SE37 or SE38.
Function Group: RSB_GUI
Program Name: SAPLRSB_GUI
Main Program: SAPLRSB_GUI
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function RSB_GUI_MAINTAIN_OHD 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 'RSB_GUI_MAINTAIN_OHD'"Processing of the new Open Hub Destination.
EXPORTING
* I_OHDEST = "Open Hub Destination
* I_OBJNM = "Object Name in Object Directory
* I_DISPLAY_ONLY = "Only indication of the destination is allowed
* I_INFOAREA = "InfoArea
* I_MODE = RSAWC_C_TFC-DISPLAY "Function Code that Triggered PAI
* I_R_NAVIGATOR = "Access to AWB Navigator
* I_HEADER_DETAIL = "Boolean
* I_AWBN = "Boolean
* I_OBJVERS = RS_C_OBJVERS-MODIFIED "Object Version
* I_TXTLG = "Long Description
* I_TLOGO = "BW: Object Type (TLOGO)
IMPORTING
E_R_REQUEST = "AWB Navigation Request
CHANGING
* C_R_MAINTAIN = "Editing the Open Hub Destination
EXCEPTIONS
NOT_FOUND = 1 INPUT_INVALID = 2 CANCELLED = 3 NOT_AUTHORIZED = 4
IMPORTING Parameters details for RSB_GUI_MAINTAIN_OHD
I_OHDEST - Open Hub Destination
Data type: RSOHDESTOptional: Yes
Call by Reference: Yes
I_OBJNM - Object Name in Object Directory
Data type: SOBJ_NAMEOptional: Yes
Call by Reference: Yes
I_DISPLAY_ONLY - Only indication of the destination is allowed
Data type: RS_BOOLOptional: Yes
Call by Reference: Yes
I_INFOAREA - InfoArea
Data type: RSINFOAREAOptional: Yes
Call by Reference: Yes
I_MODE - Function Code that Triggered PAI
Data type: SYUCOMMDefault: RSAWC_C_TFC-DISPLAY
Optional: No
Call by Reference: Yes
I_R_NAVIGATOR - Access to AWB Navigator
Data type: IF_RSAWBN_NAVIGATOROptional: Yes
Call by Reference: Yes
I_HEADER_DETAIL - Boolean
Data type: RS_BOOLOptional: Yes
Call by Reference: Yes
I_AWBN - Boolean
Data type: RS_BOOLOptional: Yes
Call by Reference: Yes
I_OBJVERS - Object Version
Data type: RSOBJVERSDefault: RS_C_OBJVERS-MODIFIED
Optional: Yes
Call by Reference: Yes
I_TXTLG - Long Description
Data type: RSTXTLGOptional: Yes
Call by Reference: Yes
I_TLOGO - BW: Object Type (TLOGO)
Data type: RSTLOGOOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for RSB_GUI_MAINTAIN_OHD
E_R_REQUEST - AWB Navigation Request
Data type: CL_RSAWBN_REQUESTOptional: No
Call by Reference: Yes
CHANGING Parameters details for RSB_GUI_MAINTAIN_OHD
C_R_MAINTAIN - Editing the Open Hub Destination
Data type: CL_RSB_GUI_MAINTAINOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
NOT_FOUND - No Transformation Rule Found
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INPUT_INVALID - Invalid Entry
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
CANCELLED - Interruption by user when calling transport
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NOT_AUTHORIZED - No Display Authorization
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RSB_GUI_MAINTAIN_OHD 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_ohdest | TYPE RSOHDEST, " | |||
| lv_not_found | TYPE RSOHDEST, " | |||
| lv_e_r_request | TYPE CL_RSAWBN_REQUEST, " | |||
| lv_c_r_maintain | TYPE CL_RSB_GUI_MAINTAIN, " | |||
| lv_i_objnm | TYPE SOBJ_NAME, " | |||
| lv_i_display_only | TYPE RS_BOOL, " | |||
| lv_i_infoarea | TYPE RSINFOAREA, " | |||
| lv_input_invalid | TYPE RSINFOAREA, " | |||
| lv_i_mode | TYPE SYUCOMM, " RSAWC_C_TFC-DISPLAY | |||
| lv_cancelled | TYPE SYUCOMM, " | |||
| lv_i_r_navigator | TYPE IF_RSAWBN_NAVIGATOR, " | |||
| lv_not_authorized | TYPE IF_RSAWBN_NAVIGATOR, " | |||
| lv_i_header_detail | TYPE RS_BOOL, " | |||
| lv_i_awbn | TYPE RS_BOOL, " | |||
| lv_i_objvers | TYPE RSOBJVERS, " RS_C_OBJVERS-MODIFIED | |||
| lv_i_txtlg | TYPE RSTXTLG, " | |||
| lv_i_tlogo | TYPE RSTLOGO. " |
|   CALL FUNCTION 'RSB_GUI_MAINTAIN_OHD' "Processing of the new Open Hub Destination |
| EXPORTING | ||
| I_OHDEST | = lv_i_ohdest | |
| I_OBJNM | = lv_i_objnm | |
| I_DISPLAY_ONLY | = lv_i_display_only | |
| I_INFOAREA | = lv_i_infoarea | |
| I_MODE | = lv_i_mode | |
| I_R_NAVIGATOR | = lv_i_r_navigator | |
| I_HEADER_DETAIL | = lv_i_header_detail | |
| I_AWBN | = lv_i_awbn | |
| I_OBJVERS | = lv_i_objvers | |
| I_TXTLG | = lv_i_txtlg | |
| I_TLOGO | = lv_i_tlogo | |
| IMPORTING | ||
| E_R_REQUEST | = lv_e_r_request | |
| CHANGING | ||
| C_R_MAINTAIN | = lv_c_r_maintain | |
| EXCEPTIONS | ||
| NOT_FOUND = 1 | ||
| INPUT_INVALID = 2 | ||
| CANCELLED = 3 | ||
| NOT_AUTHORIZED = 4 | ||
| . " RSB_GUI_MAINTAIN_OHD | ||
ABAP code using 7.40 inline data declarations to call FM RSB_GUI_MAINTAIN_OHD
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_i_mode) | = RSAWC_C_TFC-DISPLAY. | |||
| DATA(ld_i_objvers) | = RS_C_OBJVERS-MODIFIED. | |||
Search for further information about these or an SAP related objects