SAP Function Modules

BRIEFINGBOOK_INSERT SAP Function module - Import reports to report portfolio







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

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


Pattern for FM BRIEFINGBOOK_INSERT - BRIEFINGBOOK INSERT





CALL FUNCTION 'BRIEFINGBOOK_INSERT' "Import reports to report portfolio
  EXPORTING
    applclass =                 " tkeb1-applclass
    source =                    " t242e-herku   Program, which created the report
    variant =                   " t242e-selset  Variant with which the report was created
*   bi_smode = '2'              " rkb1d-smode
  IMPORTING
    report_name =               " t242e-brcht   Name, under which the report is stored
  TABLES
    i_t242e =                   " cft2412e      Report portfolio parameters
    text_tab =                  " tline         Report format in SAPscript
  EXCEPTIONS
    D_NUMBRES_EXPIRED = 1       "
    H_NUMBRES_EXPIRED = 2       "
    NO_REPORT_INSERT = 3        "
    .  "  BRIEFINGBOOK_INSERT

ABAP code example for Function Module BRIEFINGBOOK_INSERT





The ABAP code below is a full code listing to execute function module BRIEFINGBOOK_INSERT 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_report_name  TYPE T242E-BRCHT ,
it_i_t242e  TYPE STANDARD TABLE OF CFT2412E,"TABLES PARAM
wa_i_t242e  LIKE LINE OF it_i_t242e ,
it_text_tab  TYPE STANDARD TABLE OF TLINE,"TABLES PARAM
wa_text_tab  LIKE LINE OF it_text_tab .


SELECT single APPLCLASS
FROM TKEB1
INTO @DATA(ld_applclass).


SELECT single HERKU
FROM T242E
INTO @DATA(ld_source).


SELECT single SELSET
FROM T242E
INTO @DATA(ld_variant).


DATA(ld_bi_smode) = some text here

"populate fields of struture and append to itab
append wa_i_t242e to it_i_t242e.

"populate fields of struture and append to itab
append wa_text_tab to it_text_tab. . CALL FUNCTION 'BRIEFINGBOOK_INSERT' EXPORTING applclass = ld_applclass source = ld_source variant = ld_variant * bi_smode = ld_bi_smode IMPORTING report_name = ld_report_name TABLES i_t242e = it_i_t242e text_tab = it_text_tab EXCEPTIONS D_NUMBRES_EXPIRED = 1 H_NUMBRES_EXPIRED = 2 NO_REPORT_INSERT = 3 . " BRIEFINGBOOK_INSERT
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 3. "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_report_name  TYPE T242E-BRCHT ,
ld_applclass  TYPE TKEB1-APPLCLASS ,
it_i_t242e  TYPE STANDARD TABLE OF CFT2412E ,
wa_i_t242e  LIKE LINE OF it_i_t242e,
ld_source  TYPE T242E-HERKU ,
it_text_tab  TYPE STANDARD TABLE OF TLINE ,
wa_text_tab  LIKE LINE OF it_text_tab,
ld_variant  TYPE T242E-SELSET ,
ld_bi_smode  TYPE RKB1D-SMODE .


SELECT single APPLCLASS
FROM TKEB1
INTO ld_applclass.


"populate fields of struture and append to itab
append wa_i_t242e to it_i_t242e.

SELECT single HERKU
FROM T242E
INTO ld_source.


"populate fields of struture and append to itab
append wa_text_tab to it_text_tab.

SELECT single SELSET
FROM T242E
INTO ld_variant.


ld_bi_smode = some text here

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