SAP Function Modules

FTB_BUPA_DARK_MAINTAIN_REL SAP Function module







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

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


Pattern for FM FTB_BUPA_DARK_MAINTAIN_REL - FTB BUPA DARK MAINTAIN REL





CALL FUNCTION 'FTB_BUPA_DARK_MAINTAIN_REL' "
  EXPORTING
    i_aktyp =                   " tbz0k-aktyp
*   i_but050 =                  " but050
*   i_but050_old =              " but050
*   i_but051 =                  " but051
*   i_but053 =                  " but053
  IMPORTING
    e_xerror =                  " bus000flds-char1
* TABLES
*   t_data =                    " bussdi
*   t_message =                 " bus0msg1
*   t_keyvalue =                " busskeyval
    .  "  FTB_BUPA_DARK_MAINTAIN_REL

ABAP code example for Function Module FTB_BUPA_DARK_MAINTAIN_REL





The ABAP code below is a full code listing to execute function module FTB_BUPA_DARK_MAINTAIN_REL 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_e_xerror  TYPE BUS000FLDS-CHAR1 ,
it_t_data  TYPE STANDARD TABLE OF BUSSDI,"TABLES PARAM
wa_t_data  LIKE LINE OF it_t_data ,
it_t_message  TYPE STANDARD TABLE OF BUS0MSG1,"TABLES PARAM
wa_t_message  LIKE LINE OF it_t_message ,
it_t_keyvalue  TYPE STANDARD TABLE OF BUSSKEYVAL,"TABLES PARAM
wa_t_keyvalue  LIKE LINE OF it_t_keyvalue .


SELECT single AKTYP
FROM TBZ0K
INTO @DATA(ld_i_aktyp).

DATA(ld_i_but050) = 'Check type of data required'.
DATA(ld_i_but050_old) = 'Check type of data required'.
DATA(ld_i_but051) = 'Check type of data required'.
DATA(ld_i_but053) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_data to it_t_data.

"populate fields of struture and append to itab
append wa_t_message to it_t_message.

"populate fields of struture and append to itab
append wa_t_keyvalue to it_t_keyvalue. . CALL FUNCTION 'FTB_BUPA_DARK_MAINTAIN_REL' EXPORTING i_aktyp = ld_i_aktyp * i_but050 = ld_i_but050 * i_but050_old = ld_i_but050_old * i_but051 = ld_i_but051 * i_but053 = ld_i_but053 IMPORTING e_xerror = ld_e_xerror * TABLES * t_data = it_t_data * t_message = it_t_message * t_keyvalue = it_t_keyvalue . " FTB_BUPA_DARK_MAINTAIN_REL
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_e_xerror  TYPE BUS000FLDS-CHAR1 ,
ld_i_aktyp  TYPE TBZ0K-AKTYP ,
it_t_data  TYPE STANDARD TABLE OF BUSSDI ,
wa_t_data  LIKE LINE OF it_t_data,
ld_i_but050  TYPE BUT050 ,
it_t_message  TYPE STANDARD TABLE OF BUS0MSG1 ,
wa_t_message  LIKE LINE OF it_t_message,
ld_i_but050_old  TYPE BUT050 ,
it_t_keyvalue  TYPE STANDARD TABLE OF BUSSKEYVAL ,
wa_t_keyvalue  LIKE LINE OF it_t_keyvalue,
ld_i_but051  TYPE BUT051 ,
ld_i_but053  TYPE BUT053 .


SELECT single AKTYP
FROM TBZ0K
INTO ld_i_aktyp.


"populate fields of struture and append to itab
append wa_t_data to it_t_data.
ld_i_but050 = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_message to it_t_message.
ld_i_but050_old = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_keyvalue to it_t_keyvalue.
ld_i_but051 = 'Check type of data required'.
ld_i_but053 = '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 FTB_BUPA_DARK_MAINTAIN_REL or its description.