SAP GET_INTERNET_ORG_DEFAULTS Function Module for
GET_INTERNET_ORG_DEFAULTS is a standard get internet org defaults 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 get internet org defaults FM, simply by entering the name GET_INTERNET_ORG_DEFAULTS into the relevant SAP transaction such as SE37 or SE38.
Function Group: VAP1
Program Name: SAPLVAP1
Main Program:
Appliation area: P
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function GET_INTERNET_ORG_DEFAULTS 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 'GET_INTERNET_ORG_DEFAULTS'".
EXPORTING
LAND1 = "
INTERNAL_APPL = "
ADVERTISEMENT = "
IMPORTING
PERSG = "
SPAPL = "
PERSK = "
WERKS = "
BTRTL = "
SACHP = "
INAME = "
ISERV = "
DYNNR = "
RESRF_MAIL = "
TABLES
REGIONS = "
EXCEPTIONS
NO_DEFAULT_FOUND = 1
IMPORTING Parameters details for GET_INTERNET_ORG_DEFAULTS
LAND1 -
Data type: T500L-MOLGAOptional: No
Call by Reference: Yes
INTERNAL_APPL -
Data type:Optional: No
Call by Reference: Yes
ADVERTISEMENT -
Data type: P4001-OFFIDOptional: No
Call by Reference: Yes
EXPORTING Parameters details for GET_INTERNET_ORG_DEFAULTS
PERSG -
Data type: P0001-PERSGOptional: No
Call by Reference: No ( called with pass by value option)
SPAPL -
Data type: P4001-SPAPLOptional: No
Call by Reference: Yes
PERSK -
Data type: P0001-PERSKOptional: No
Call by Reference: No ( called with pass by value option)
WERKS -
Data type: P0001-WERKSOptional: No
Call by Reference: No ( called with pass by value option)
BTRTL -
Data type: P0001-BTRTLOptional: No
Call by Reference: No ( called with pass by value option)
SACHP -
Data type: P0001-SACHPOptional: No
Call by Reference: No ( called with pass by value option)
INAME -
Data type: P0105-USRIDOptional: No
Call by Reference: No ( called with pass by value option)
ISERV -
Data type: P0105-USRIDOptional: No
Call by Reference: No ( called with pass by value option)
DYNNR -
Data type: SY-DYNNROptional: No
Call by Reference: Yes
RESRF_MAIL -
Data type: P0105-USRIDOptional: No
Call by Reference: Yes
TABLES Parameters details for GET_INTERNET_ORG_DEFAULTS
REGIONS -
Data type: PREGIONOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_DEFAULT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for GET_INTERNET_ORG_DEFAULTS 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_land1 | TYPE T500L-MOLGA, " | |||
| lv_persg | TYPE P0001-PERSG, " | |||
| lt_regions | TYPE STANDARD TABLE OF PREGION, " | |||
| lv_no_default_found | TYPE PREGION, " | |||
| lv_spapl | TYPE P4001-SPAPL, " | |||
| lv_persk | TYPE P0001-PERSK, " | |||
| lv_internal_appl | TYPE P0001, " | |||
| lv_werks | TYPE P0001-WERKS, " | |||
| lv_advertisement | TYPE P4001-OFFID, " | |||
| lv_btrtl | TYPE P0001-BTRTL, " | |||
| lv_sachp | TYPE P0001-SACHP, " | |||
| lv_iname | TYPE P0105-USRID, " | |||
| lv_iserv | TYPE P0105-USRID, " | |||
| lv_dynnr | TYPE SY-DYNNR, " | |||
| lv_resrf_mail | TYPE P0105-USRID. " |
|   CALL FUNCTION 'GET_INTERNET_ORG_DEFAULTS' " |
| EXPORTING | ||
| LAND1 | = lv_land1 | |
| INTERNAL_APPL | = lv_internal_appl | |
| ADVERTISEMENT | = lv_advertisement | |
| IMPORTING | ||
| PERSG | = lv_persg | |
| SPAPL | = lv_spapl | |
| PERSK | = lv_persk | |
| WERKS | = lv_werks | |
| BTRTL | = lv_btrtl | |
| SACHP | = lv_sachp | |
| INAME | = lv_iname | |
| ISERV | = lv_iserv | |
| DYNNR | = lv_dynnr | |
| RESRF_MAIL | = lv_resrf_mail | |
| TABLES | ||
| REGIONS | = lt_regions | |
| EXCEPTIONS | ||
| NO_DEFAULT_FOUND = 1 | ||
| . " GET_INTERNET_ORG_DEFAULTS | ||
ABAP code using 7.40 inline data declarations to call FM GET_INTERNET_ORG_DEFAULTS
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 MOLGA FROM T500L INTO @DATA(ld_land1). | ||||
| "SELECT single PERSG FROM P0001 INTO @DATA(ld_persg). | ||||
| "SELECT single SPAPL FROM P4001 INTO @DATA(ld_spapl). | ||||
| "SELECT single PERSK FROM P0001 INTO @DATA(ld_persk). | ||||
| "SELECT single WERKS FROM P0001 INTO @DATA(ld_werks). | ||||
| "SELECT single OFFID FROM P4001 INTO @DATA(ld_advertisement). | ||||
| "SELECT single BTRTL FROM P0001 INTO @DATA(ld_btrtl). | ||||
| "SELECT single SACHP FROM P0001 INTO @DATA(ld_sachp). | ||||
| "SELECT single USRID FROM P0105 INTO @DATA(ld_iname). | ||||
| "SELECT single USRID FROM P0105 INTO @DATA(ld_iserv). | ||||
| "SELECT single DYNNR FROM SY INTO @DATA(ld_dynnr). | ||||
| "SELECT single USRID FROM P0105 INTO @DATA(ld_resrf_mail). | ||||
Search for further information about these or an SAP related objects