SAP Function Modules

GET_INTERNET_ORG_DEFAULTS SAP Function module







GET_INTERNET_ORG_DEFAULTS is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name GET_INTERNET_ORG_DEFAULTS into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: VAP1
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM GET_INTERNET_ORG_DEFAULTS - GET INTERNET ORG DEFAULTS





CALL FUNCTION 'GET_INTERNET_ORG_DEFAULTS' "
  EXPORTING
    land1 =                     " t500l-molga
    internal_appl =             "
    advertisement =             " p4001-offid
  IMPORTING
    persg =                     " p0001-persg
    persk =                     " p0001-persk
    werks =                     " p0001-werks
    btrtl =                     " p0001-btrtl
    sachp =                     " p0001-sachp
    iname =                     " p0105-usrid
    iserv =                     " p0105-usrid
    dynnr =                     " sy-dynnr
    resrf_mail =                " p0105-usrid
    spapl =                     " p4001-spapl
  TABLES
    regions =                   " pregion
  EXCEPTIONS
    NO_DEFAULT_FOUND = 1        "
    .  "  GET_INTERNET_ORG_DEFAULTS

ABAP code example for Function Module GET_INTERNET_ORG_DEFAULTS





The ABAP code below is a full code listing to execute function module GET_INTERNET_ORG_DEFAULTS including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
ld_persg  TYPE P0001-PERSG ,
ld_persk  TYPE P0001-PERSK ,
ld_werks  TYPE P0001-WERKS ,
ld_btrtl  TYPE P0001-BTRTL ,
ld_sachp  TYPE P0001-SACHP ,
ld_iname  TYPE P0105-USRID ,
ld_iserv  TYPE P0105-USRID ,
ld_dynnr  TYPE SY-DYNNR ,
ld_resrf_mail  TYPE P0105-USRID ,
ld_spapl  TYPE P4001-SPAPL ,
it_regions  TYPE STANDARD TABLE OF PREGION,"TABLES PARAM
wa_regions  LIKE LINE OF it_regions .


SELECT single MOLGA
FROM T500L
INTO @DATA(ld_land1).

DATA(ld_internal_appl) = 'some text here'.

DATA(ld_advertisement) = Check type of data required

"populate fields of struture and append to itab
append wa_regions to it_regions. . CALL FUNCTION 'GET_INTERNET_ORG_DEFAULTS' EXPORTING land1 = ld_land1 internal_appl = ld_internal_appl advertisement = ld_advertisement IMPORTING persg = ld_persg persk = ld_persk werks = ld_werks btrtl = ld_btrtl sachp = ld_sachp iname = ld_iname iserv = ld_iserv dynnr = ld_dynnr resrf_mail = ld_resrf_mail spapl = ld_spapl TABLES regions = it_regions EXCEPTIONS NO_DEFAULT_FOUND = 1 . " GET_INTERNET_ORG_DEFAULTS
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_persg  TYPE P0001-PERSG ,
ld_land1  TYPE T500L-MOLGA ,
it_regions  TYPE STANDARD TABLE OF PREGION ,
wa_regions  LIKE LINE OF it_regions,
ld_persk  TYPE P0001-PERSK ,
ld_internal_appl  TYPE STRING ,
ld_werks  TYPE P0001-WERKS ,
ld_advertisement  TYPE P4001-OFFID ,
ld_btrtl  TYPE P0001-BTRTL ,
ld_sachp  TYPE P0001-SACHP ,
ld_iname  TYPE P0105-USRID ,
ld_iserv  TYPE P0105-USRID ,
ld_dynnr  TYPE SY-DYNNR ,
ld_resrf_mail  TYPE P0105-USRID ,
ld_spapl  TYPE P4001-SPAPL .


SELECT single MOLGA
FROM T500L
INTO ld_land1.


"populate fields of struture and append to itab
append wa_regions to it_regions.
ld_internal_appl = 'some text here'.

ld_advertisement = Check type of data required

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name GET_INTERNET_ORG_DEFAULTS or its description.