SAP Function Modules

SDCAS_MESSAGING SAP Function module







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

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


Pattern for FM SDCAS_MESSAGING - SDCAS MESSAGING





CALL FUNCTION 'SDCAS_MESSAGING' "
  EXPORTING
    fi_vbka =                   " vbka
    fi_tvkk =                   " tvkk
*   fi_message_determination = 'X'  "
*   fi_messages_update = ' '    "
*   fi_messages_rename = ' '    "
*   fi_handle_old =             " vbka-vbeln
    fi_objtype =                " swottree-objtype
* TABLES
*   fi_vbpa =                   " vbpavb
*   fi_part =                   " msgpa         Message Partner
    .  "  SDCAS_MESSAGING

ABAP code example for Function Module SDCAS_MESSAGING





The ABAP code below is a full code listing to execute function module SDCAS_MESSAGING 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:
it_fi_vbpa  TYPE STANDARD TABLE OF VBPAVB,"TABLES PARAM
wa_fi_vbpa  LIKE LINE OF it_fi_vbpa ,
it_fi_part  TYPE STANDARD TABLE OF MSGPA,"TABLES PARAM
wa_fi_part  LIKE LINE OF it_fi_part .

DATA(ld_fi_vbka) = 'Check type of data required'.
DATA(ld_fi_tvkk) = 'Check type of data required'.
DATA(ld_fi_message_determination) = 'some text here'.
DATA(ld_fi_messages_update) = 'some text here'.
DATA(ld_fi_messages_rename) = 'some text here'.

SELECT single VBELN
FROM VBKA
INTO @DATA(ld_fi_handle_old).


DATA(ld_fi_objtype) = some text here

"populate fields of struture and append to itab
append wa_fi_vbpa to it_fi_vbpa.

"populate fields of struture and append to itab
append wa_fi_part to it_fi_part. . CALL FUNCTION 'SDCAS_MESSAGING' EXPORTING fi_vbka = ld_fi_vbka fi_tvkk = ld_fi_tvkk * fi_message_determination = ld_fi_message_determination * fi_messages_update = ld_fi_messages_update * fi_messages_rename = ld_fi_messages_rename * fi_handle_old = ld_fi_handle_old fi_objtype = ld_fi_objtype * TABLES * fi_vbpa = it_fi_vbpa * fi_part = it_fi_part . " SDCAS_MESSAGING
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_fi_vbka  TYPE VBKA ,
it_fi_vbpa  TYPE STANDARD TABLE OF VBPAVB ,
wa_fi_vbpa  LIKE LINE OF it_fi_vbpa,
ld_fi_tvkk  TYPE TVKK ,
it_fi_part  TYPE STANDARD TABLE OF MSGPA ,
wa_fi_part  LIKE LINE OF it_fi_part,
ld_fi_message_determination  TYPE STRING ,
ld_fi_messages_update  TYPE STRING ,
ld_fi_messages_rename  TYPE STRING ,
ld_fi_handle_old  TYPE VBKA-VBELN ,
ld_fi_objtype  TYPE SWOTTREE-OBJTYPE .

ld_fi_vbka = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_fi_vbpa to it_fi_vbpa.
ld_fi_tvkk = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_fi_part to it_fi_part.
ld_fi_message_determination = 'some text here'.
ld_fi_messages_update = 'some text here'.
ld_fi_messages_rename = 'some text here'.

SELECT single VBELN
FROM VBKA
INTO ld_fi_handle_old.


ld_fi_objtype = 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 SDCAS_MESSAGING or its description.