SAP EHSB_INT_DET_RFC_DESTINATION Function Module for NOTRANSL: EHS-BAS: Bestimmen der RFC-Destination aus Umgebungsparam.zu ein









EHSB_INT_DET_RFC_DESTINATION is a standard ehsb int det rfc destination SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: EHS-BAS: Bestimmen der RFC-Destination aus Umgebungsparam.zu ein 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 ehsb int det rfc destination FM, simply by entering the name EHSB_INT_DET_RFC_DESTINATION into the relevant SAP transaction such as SE37 or SE38.

Function Group: EHSB_INT
Program Name: SAPLEHSB_INT
Main Program: SAPLEHSB_INT
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function EHSB_INT_DET_RFC_DESTINATION 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 'EHSB_INT_DET_RFC_DESTINATION'"NOTRANSL: EHS-BAS: Bestimmen der RFC-Destination aus Umgebungsparam.zu ein
EXPORTING
I_RFC_ENVPARAM = "Environment parameters
* I_WAPLANT = "

IMPORTING
E_RFC_DESTINATION = "RFC Destination

EXCEPTIONS
PARAM_NOT_FOUND = 1 WRONG_OBJECT = 2 WRONG_FIELD = 3 INTERNAL_ERROR = 4
.



IMPORTING Parameters details for EHSB_INT_DET_RFC_DESTINATION

I_RFC_ENVPARAM - Environment parameters

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

I_WAPLANT -

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

EXPORTING Parameters details for EHSB_INT_DET_RFC_DESTINATION

E_RFC_DESTINATION - RFC Destination

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

EXCEPTIONS details

PARAM_NOT_FOUND -

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

WRONG_OBJECT -

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

WRONG_FIELD -

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

INTERNAL_ERROR -

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

Copy and paste ABAP code example for EHSB_INT_DET_RFC_DESTINATION 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_rfc_envparam  TYPE TCGENV-PARAM, "   
lv_param_not_found  TYPE TCGENV, "   
lv_e_rfc_destination  TYPE RFC_DEST, "   
lv_i_waplant  TYPE CCIHE_WAPLANT, "   
lv_wrong_object  TYPE CCIHE_WAPLANT, "   
lv_wrong_field  TYPE CCIHE_WAPLANT, "   
lv_internal_error  TYPE CCIHE_WAPLANT. "   

  CALL FUNCTION 'EHSB_INT_DET_RFC_DESTINATION'  "NOTRANSL: EHS-BAS: Bestimmen der RFC-Destination aus Umgebungsparam.zu ein
    EXPORTING
         I_RFC_ENVPARAM = lv_i_rfc_envparam
         I_WAPLANT = lv_i_waplant
    IMPORTING
         E_RFC_DESTINATION = lv_e_rfc_destination
    EXCEPTIONS
        PARAM_NOT_FOUND = 1
        WRONG_OBJECT = 2
        WRONG_FIELD = 3
        INTERNAL_ERROR = 4
. " EHSB_INT_DET_RFC_DESTINATION




ABAP code using 7.40 inline data declarations to call FM EHSB_INT_DET_RFC_DESTINATION

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 PARAM FROM TCGENV INTO @DATA(ld_i_rfc_envparam).
 
 
 
 
 
 
 


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!