SAP Function Modules

SBCS_DOC_ATTRIBUTES SAP Function module







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

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


Pattern for FM SBCS_DOC_ATTRIBUTES - SBCS DOC ATTRIBUTES





CALL FUNCTION 'SBCS_DOC_ATTRIBUTES' "
  EXPORTING
*   iv_function = 'DISP'        " sy-ucomm
    iv_attributes =             " bcss_doc_attributes
*   iv_start_col = 50           " i
*   iv_start_row = 1            " i
    iv_is_attachment =          " abap_bool
    iv_folrg =                  " so_fol_rg
    iv_docsent =                " so_obj_snd
*   it_excl_fields =            " bcst_excl_fields
  IMPORTING
    ev_function =               " sy-ucomm
    es_attributes =             " bcss_doc_attributes
    .  "  SBCS_DOC_ATTRIBUTES

ABAP code example for Function Module SBCS_DOC_ATTRIBUTES





The ABAP code below is a full code listing to execute function module SBCS_DOC_ATTRIBUTES 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_ev_function  TYPE SY-UCOMM ,
ld_es_attributes  TYPE BCSS_DOC_ATTRIBUTES .

DATA(ld_iv_function) = 'some text here'.
DATA(ld_iv_attributes) = 'some text here'.
DATA(ld_iv_start_col) = 'some text here'.
DATA(ld_iv_start_row) = 'some text here'.
DATA(ld_iv_is_attachment) = 'some text here'.
DATA(ld_iv_folrg) = 'some text here'.
DATA(ld_iv_docsent) = 'some text here'.
DATA(ld_it_excl_fields) = 'some text here'. . CALL FUNCTION 'SBCS_DOC_ATTRIBUTES' EXPORTING * iv_function = ld_iv_function iv_attributes = ld_iv_attributes * iv_start_col = ld_iv_start_col * iv_start_row = ld_iv_start_row iv_is_attachment = ld_iv_is_attachment iv_folrg = ld_iv_folrg iv_docsent = ld_iv_docsent * it_excl_fields = ld_it_excl_fields IMPORTING ev_function = ld_ev_function es_attributes = ld_es_attributes . " SBCS_DOC_ATTRIBUTES
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_ev_function  TYPE SY-UCOMM ,
ld_iv_function  TYPE SY-UCOMM ,
ld_es_attributes  TYPE BCSS_DOC_ATTRIBUTES ,
ld_iv_attributes  TYPE BCSS_DOC_ATTRIBUTES ,
ld_iv_start_col  TYPE I ,
ld_iv_start_row  TYPE I ,
ld_iv_is_attachment  TYPE ABAP_BOOL ,
ld_iv_folrg  TYPE SO_FOL_RG ,
ld_iv_docsent  TYPE SO_OBJ_SND ,
ld_it_excl_fields  TYPE BCST_EXCL_FIELDS .

ld_iv_function = 'some text here'.
ld_iv_attributes = 'some text here'.
ld_iv_start_col = 'some text here'.
ld_iv_start_row = 'some text here'.
ld_iv_is_attachment = 'some text here'.
ld_iv_folrg = 'some text here'.
ld_iv_docsent = 'some text here'.
ld_it_excl_fields = '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 SBCS_DOC_ATTRIBUTES or its description.