SAP Function Modules

BBP_USER_GET_HELPVALUES SAP Function module







BBP_USER_GET_HELPVALUES 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 BBP_USER_GET_HELPVALUES into the relevant SAP transaction such as SE37 or SE80.

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


Pattern for FM BBP_USER_GET_HELPVALUES - BBP USER GET HELPVALUES





CALL FUNCTION 'BBP_USER_GET_HELPVALUES' "
* EXPORTING
*   personflag =                " flag
  IMPORTING
    default_country =           " bapibus1006_address-country
* TABLES
*   country_help =              " bbp_cntryf4
*   region_help =               " bbp_regionf4
*   title_help =                " bbp_titlef4
*   title_aca_help =            " bbp_titleacaf4
*   return =                    " bapiret2
*   dateformat_help =           " dd07v
*   dcpformat_help =            " dd07v
    .  "  BBP_USER_GET_HELPVALUES

ABAP code example for Function Module BBP_USER_GET_HELPVALUES





The ABAP code below is a full code listing to execute function module BBP_USER_GET_HELPVALUES 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_default_country  TYPE BAPIBUS1006_ADDRESS-COUNTRY ,
it_country_help  TYPE STANDARD TABLE OF BBP_CNTRYF4,"TABLES PARAM
wa_country_help  LIKE LINE OF it_country_help ,
it_region_help  TYPE STANDARD TABLE OF BBP_REGIONF4,"TABLES PARAM
wa_region_help  LIKE LINE OF it_region_help ,
it_title_help  TYPE STANDARD TABLE OF BBP_TITLEF4,"TABLES PARAM
wa_title_help  LIKE LINE OF it_title_help ,
it_title_aca_help  TYPE STANDARD TABLE OF BBP_TITLEACAF4,"TABLES PARAM
wa_title_aca_help  LIKE LINE OF it_title_aca_help ,
it_return  TYPE STANDARD TABLE OF BAPIRET2,"TABLES PARAM
wa_return  LIKE LINE OF it_return ,
it_dateformat_help  TYPE STANDARD TABLE OF DD07V,"TABLES PARAM
wa_dateformat_help  LIKE LINE OF it_dateformat_help ,
it_dcpformat_help  TYPE STANDARD TABLE OF DD07V,"TABLES PARAM
wa_dcpformat_help  LIKE LINE OF it_dcpformat_help .

DATA(ld_personflag) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_country_help to it_country_help.

"populate fields of struture and append to itab
append wa_region_help to it_region_help.

"populate fields of struture and append to itab
append wa_title_help to it_title_help.

"populate fields of struture and append to itab
append wa_title_aca_help to it_title_aca_help.

"populate fields of struture and append to itab
append wa_return to it_return.

"populate fields of struture and append to itab
append wa_dateformat_help to it_dateformat_help.

"populate fields of struture and append to itab
append wa_dcpformat_help to it_dcpformat_help. . CALL FUNCTION 'BBP_USER_GET_HELPVALUES' * EXPORTING * personflag = ld_personflag IMPORTING default_country = ld_default_country * TABLES * country_help = it_country_help * region_help = it_region_help * title_help = it_title_help * title_aca_help = it_title_aca_help * return = it_return * dateformat_help = it_dateformat_help * dcpformat_help = it_dcpformat_help . " BBP_USER_GET_HELPVALUES
IF SY-SUBRC EQ 0. "All OK 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_default_country  TYPE BAPIBUS1006_ADDRESS-COUNTRY ,
ld_personflag  TYPE FLAG ,
it_country_help  TYPE STANDARD TABLE OF BBP_CNTRYF4 ,
wa_country_help  LIKE LINE OF it_country_help,
it_region_help  TYPE STANDARD TABLE OF BBP_REGIONF4 ,
wa_region_help  LIKE LINE OF it_region_help,
it_title_help  TYPE STANDARD TABLE OF BBP_TITLEF4 ,
wa_title_help  LIKE LINE OF it_title_help,
it_title_aca_help  TYPE STANDARD TABLE OF BBP_TITLEACAF4 ,
wa_title_aca_help  LIKE LINE OF it_title_aca_help,
it_return  TYPE STANDARD TABLE OF BAPIRET2 ,
wa_return  LIKE LINE OF it_return,
it_dateformat_help  TYPE STANDARD TABLE OF DD07V ,
wa_dateformat_help  LIKE LINE OF it_dateformat_help,
it_dcpformat_help  TYPE STANDARD TABLE OF DD07V ,
wa_dcpformat_help  LIKE LINE OF it_dcpformat_help.

ld_personflag = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_country_help to it_country_help.

"populate fields of struture and append to itab
append wa_region_help to it_region_help.

"populate fields of struture and append to itab
append wa_title_help to it_title_help.

"populate fields of struture and append to itab
append wa_title_aca_help to it_title_aca_help.

"populate fields of struture and append to itab
append wa_return to it_return.

"populate fields of struture and append to itab
append wa_dateformat_help to it_dateformat_help.

"populate fields of struture and append to itab
append wa_dcpformat_help to it_dcpformat_help.

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 BBP_USER_GET_HELPVALUES or its description.