SAP Function Modules

CRS_NOTIF_SEND_TO_SERVER SAP Function module







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

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


Pattern for FM CRS_NOTIF_SEND_TO_SERVER - CRS NOTIF SEND TO SERVER





CALL FUNCTION 'CRS_NOTIF_SEND_TO_SERVER' "
  EXPORTING
    i_download_header =         " bapicrmdh2
    i_key_word_in =             " crm_para-keyword_in
    i_destination =             " crm_para-rfcserver
    i_server_release =          " crm_para-server_rel
*   i_trfc_queue =              " bapicrmdh1-rfc_queue
  IMPORTING
    e_status =                  " bapicrmexp-status_ext
* TABLES
*   t_key_info =                " bapicrmkey
*   t_messages =                " bapicrmmsg
*   t_other_info =              " bapiextc
*   t_init_filter =             " crmselstr
*   t_viqmel =                  " viqmel
*   t_viqmel_old =              " viqmel
*   t_viqmfe =                  " wqmfe
*   t_viqmfe_old =              " wqmfe
*   t_viqmur =                  " wqmur
*   t_viqmur_old =              " wqmur
*   t_viqmsm =                  " wqmsm
*   t_viqmsm_old =              " wqmsm
*   t_viqmma =                  " wqmma
*   t_viqmma_old =              " wqmma
*   t_ihpa =                    " ihpavb
*   t_ihpa_old =                " ihpavb
*   t_stxh =                    " stxh
*   t_stxl =                    " itxtl
*   t_jest =                    " jest
*   t_jsto =                    " jsto
*   t_adrc =                    " vadrc
*   t_adr2 =                    " vadr2
*   t_adr3 =                    " vadr3
    .  "  CRS_NOTIF_SEND_TO_SERVER

ABAP code example for Function Module CRS_NOTIF_SEND_TO_SERVER





The ABAP code below is a full code listing to execute function module CRS_NOTIF_SEND_TO_SERVER 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_status  TYPE BAPICRMEXP-STATUS_EXT ,
it_t_key_info  TYPE STANDARD TABLE OF BAPICRMKEY,"TABLES PARAM
wa_t_key_info  LIKE LINE OF it_t_key_info ,
it_t_messages  TYPE STANDARD TABLE OF BAPICRMMSG,"TABLES PARAM
wa_t_messages  LIKE LINE OF it_t_messages ,
it_t_other_info  TYPE STANDARD TABLE OF BAPIEXTC,"TABLES PARAM
wa_t_other_info  LIKE LINE OF it_t_other_info ,
it_t_init_filter  TYPE STANDARD TABLE OF CRMSELSTR,"TABLES PARAM
wa_t_init_filter  LIKE LINE OF it_t_init_filter ,
it_t_viqmel  TYPE STANDARD TABLE OF VIQMEL,"TABLES PARAM
wa_t_viqmel  LIKE LINE OF it_t_viqmel ,
it_t_viqmel_old  TYPE STANDARD TABLE OF VIQMEL,"TABLES PARAM
wa_t_viqmel_old  LIKE LINE OF it_t_viqmel_old ,
it_t_viqmfe  TYPE STANDARD TABLE OF WQMFE,"TABLES PARAM
wa_t_viqmfe  LIKE LINE OF it_t_viqmfe ,
it_t_viqmfe_old  TYPE STANDARD TABLE OF WQMFE,"TABLES PARAM
wa_t_viqmfe_old  LIKE LINE OF it_t_viqmfe_old ,
it_t_viqmur  TYPE STANDARD TABLE OF WQMUR,"TABLES PARAM
wa_t_viqmur  LIKE LINE OF it_t_viqmur ,
it_t_viqmur_old  TYPE STANDARD TABLE OF WQMUR,"TABLES PARAM
wa_t_viqmur_old  LIKE LINE OF it_t_viqmur_old ,
it_t_viqmsm  TYPE STANDARD TABLE OF WQMSM,"TABLES PARAM
wa_t_viqmsm  LIKE LINE OF it_t_viqmsm ,
it_t_viqmsm_old  TYPE STANDARD TABLE OF WQMSM,"TABLES PARAM
wa_t_viqmsm_old  LIKE LINE OF it_t_viqmsm_old ,
it_t_viqmma  TYPE STANDARD TABLE OF WQMMA,"TABLES PARAM
wa_t_viqmma  LIKE LINE OF it_t_viqmma ,
it_t_viqmma_old  TYPE STANDARD TABLE OF WQMMA,"TABLES PARAM
wa_t_viqmma_old  LIKE LINE OF it_t_viqmma_old ,
it_t_ihpa  TYPE STANDARD TABLE OF IHPAVB,"TABLES PARAM
wa_t_ihpa  LIKE LINE OF it_t_ihpa ,
it_t_ihpa_old  TYPE STANDARD TABLE OF IHPAVB,"TABLES PARAM
wa_t_ihpa_old  LIKE LINE OF it_t_ihpa_old ,
it_t_stxh  TYPE STANDARD TABLE OF STXH,"TABLES PARAM
wa_t_stxh  LIKE LINE OF it_t_stxh ,
it_t_stxl  TYPE STANDARD TABLE OF ITXTL,"TABLES PARAM
wa_t_stxl  LIKE LINE OF it_t_stxl ,
it_t_jest  TYPE STANDARD TABLE OF JEST,"TABLES PARAM
wa_t_jest  LIKE LINE OF it_t_jest ,
it_t_jsto  TYPE STANDARD TABLE OF JSTO,"TABLES PARAM
wa_t_jsto  LIKE LINE OF it_t_jsto ,
it_t_adrc  TYPE STANDARD TABLE OF VADRC,"TABLES PARAM
wa_t_adrc  LIKE LINE OF it_t_adrc ,
it_t_adr2  TYPE STANDARD TABLE OF VADR2,"TABLES PARAM
wa_t_adr2  LIKE LINE OF it_t_adr2 ,
it_t_adr3  TYPE STANDARD TABLE OF VADR3,"TABLES PARAM
wa_t_adr3  LIKE LINE OF it_t_adr3 .

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

DATA(ld_i_key_word_in) = some text here

DATA(ld_i_destination) = some text here

DATA(ld_i_server_release) = some text here

DATA(ld_i_trfc_queue) = some text here

"populate fields of struture and append to itab
append wa_t_key_info to it_t_key_info.

"populate fields of struture and append to itab
append wa_t_messages to it_t_messages.

"populate fields of struture and append to itab
append wa_t_other_info to it_t_other_info.

"populate fields of struture and append to itab
append wa_t_init_filter to it_t_init_filter.

"populate fields of struture and append to itab
append wa_t_viqmel to it_t_viqmel.

"populate fields of struture and append to itab
append wa_t_viqmel_old to it_t_viqmel_old.

"populate fields of struture and append to itab
append wa_t_viqmfe to it_t_viqmfe.

"populate fields of struture and append to itab
append wa_t_viqmfe_old to it_t_viqmfe_old.

"populate fields of struture and append to itab
append wa_t_viqmur to it_t_viqmur.

"populate fields of struture and append to itab
append wa_t_viqmur_old to it_t_viqmur_old.

"populate fields of struture and append to itab
append wa_t_viqmsm to it_t_viqmsm.

"populate fields of struture and append to itab
append wa_t_viqmsm_old to it_t_viqmsm_old.

"populate fields of struture and append to itab
append wa_t_viqmma to it_t_viqmma.

"populate fields of struture and append to itab
append wa_t_viqmma_old to it_t_viqmma_old.

"populate fields of struture and append to itab
append wa_t_ihpa to it_t_ihpa.

"populate fields of struture and append to itab
append wa_t_ihpa_old to it_t_ihpa_old.

"populate fields of struture and append to itab
append wa_t_stxh to it_t_stxh.

"populate fields of struture and append to itab
append wa_t_stxl to it_t_stxl.

"populate fields of struture and append to itab
append wa_t_jest to it_t_jest.

"populate fields of struture and append to itab
append wa_t_jsto to it_t_jsto.

"populate fields of struture and append to itab
append wa_t_adrc to it_t_adrc.

"populate fields of struture and append to itab
append wa_t_adr2 to it_t_adr2.

"populate fields of struture and append to itab
append wa_t_adr3 to it_t_adr3. . CALL FUNCTION 'CRS_NOTIF_SEND_TO_SERVER' EXPORTING i_download_header = ld_i_download_header i_key_word_in = ld_i_key_word_in i_destination = ld_i_destination i_server_release = ld_i_server_release * i_trfc_queue = ld_i_trfc_queue IMPORTING e_status = ld_e_status * TABLES * t_key_info = it_t_key_info * t_messages = it_t_messages * t_other_info = it_t_other_info * t_init_filter = it_t_init_filter * t_viqmel = it_t_viqmel * t_viqmel_old = it_t_viqmel_old * t_viqmfe = it_t_viqmfe * t_viqmfe_old = it_t_viqmfe_old * t_viqmur = it_t_viqmur * t_viqmur_old = it_t_viqmur_old * t_viqmsm = it_t_viqmsm * t_viqmsm_old = it_t_viqmsm_old * t_viqmma = it_t_viqmma * t_viqmma_old = it_t_viqmma_old * t_ihpa = it_t_ihpa * t_ihpa_old = it_t_ihpa_old * t_stxh = it_t_stxh * t_stxl = it_t_stxl * t_jest = it_t_jest * t_jsto = it_t_jsto * t_adrc = it_t_adrc * t_adr2 = it_t_adr2 * t_adr3 = it_t_adr3 . " CRS_NOTIF_SEND_TO_SERVER
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_status  TYPE BAPICRMEXP-STATUS_EXT ,
ld_i_download_header  TYPE BAPICRMDH2 ,
it_t_key_info  TYPE STANDARD TABLE OF BAPICRMKEY ,
wa_t_key_info  LIKE LINE OF it_t_key_info,
ld_i_key_word_in  TYPE CRM_PARA-KEYWORD_IN ,
it_t_messages  TYPE STANDARD TABLE OF BAPICRMMSG ,
wa_t_messages  LIKE LINE OF it_t_messages,
ld_i_destination  TYPE CRM_PARA-RFCSERVER ,
it_t_other_info  TYPE STANDARD TABLE OF BAPIEXTC ,
wa_t_other_info  LIKE LINE OF it_t_other_info,
ld_i_server_release  TYPE CRM_PARA-SERVER_REL ,
it_t_init_filter  TYPE STANDARD TABLE OF CRMSELSTR ,
wa_t_init_filter  LIKE LINE OF it_t_init_filter,
ld_i_trfc_queue  TYPE BAPICRMDH1-RFC_QUEUE ,
it_t_viqmel  TYPE STANDARD TABLE OF VIQMEL ,
wa_t_viqmel  LIKE LINE OF it_t_viqmel,
it_t_viqmel_old  TYPE STANDARD TABLE OF VIQMEL ,
wa_t_viqmel_old  LIKE LINE OF it_t_viqmel_old,
it_t_viqmfe  TYPE STANDARD TABLE OF WQMFE ,
wa_t_viqmfe  LIKE LINE OF it_t_viqmfe,
it_t_viqmfe_old  TYPE STANDARD TABLE OF WQMFE ,
wa_t_viqmfe_old  LIKE LINE OF it_t_viqmfe_old,
it_t_viqmur  TYPE STANDARD TABLE OF WQMUR ,
wa_t_viqmur  LIKE LINE OF it_t_viqmur,
it_t_viqmur_old  TYPE STANDARD TABLE OF WQMUR ,
wa_t_viqmur_old  LIKE LINE OF it_t_viqmur_old,
it_t_viqmsm  TYPE STANDARD TABLE OF WQMSM ,
wa_t_viqmsm  LIKE LINE OF it_t_viqmsm,
it_t_viqmsm_old  TYPE STANDARD TABLE OF WQMSM ,
wa_t_viqmsm_old  LIKE LINE OF it_t_viqmsm_old,
it_t_viqmma  TYPE STANDARD TABLE OF WQMMA ,
wa_t_viqmma  LIKE LINE OF it_t_viqmma,
it_t_viqmma_old  TYPE STANDARD TABLE OF WQMMA ,
wa_t_viqmma_old  LIKE LINE OF it_t_viqmma_old,
it_t_ihpa  TYPE STANDARD TABLE OF IHPAVB ,
wa_t_ihpa  LIKE LINE OF it_t_ihpa,
it_t_ihpa_old  TYPE STANDARD TABLE OF IHPAVB ,
wa_t_ihpa_old  LIKE LINE OF it_t_ihpa_old,
it_t_stxh  TYPE STANDARD TABLE OF STXH ,
wa_t_stxh  LIKE LINE OF it_t_stxh,
it_t_stxl  TYPE STANDARD TABLE OF ITXTL ,
wa_t_stxl  LIKE LINE OF it_t_stxl,
it_t_jest  TYPE STANDARD TABLE OF JEST ,
wa_t_jest  LIKE LINE OF it_t_jest,
it_t_jsto  TYPE STANDARD TABLE OF JSTO ,
wa_t_jsto  LIKE LINE OF it_t_jsto,
it_t_adrc  TYPE STANDARD TABLE OF VADRC ,
wa_t_adrc  LIKE LINE OF it_t_adrc,
it_t_adr2  TYPE STANDARD TABLE OF VADR2 ,
wa_t_adr2  LIKE LINE OF it_t_adr2,
it_t_adr3  TYPE STANDARD TABLE OF VADR3 ,
wa_t_adr3  LIKE LINE OF it_t_adr3.

ld_i_download_header = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_key_info to it_t_key_info.

ld_i_key_word_in = some text here

"populate fields of struture and append to itab
append wa_t_messages to it_t_messages.

ld_i_destination = some text here

"populate fields of struture and append to itab
append wa_t_other_info to it_t_other_info.

ld_i_server_release = some text here

"populate fields of struture and append to itab
append wa_t_init_filter to it_t_init_filter.

ld_i_trfc_queue = some text here

"populate fields of struture and append to itab
append wa_t_viqmel to it_t_viqmel.

"populate fields of struture and append to itab
append wa_t_viqmel_old to it_t_viqmel_old.

"populate fields of struture and append to itab
append wa_t_viqmfe to it_t_viqmfe.

"populate fields of struture and append to itab
append wa_t_viqmfe_old to it_t_viqmfe_old.

"populate fields of struture and append to itab
append wa_t_viqmur to it_t_viqmur.

"populate fields of struture and append to itab
append wa_t_viqmur_old to it_t_viqmur_old.

"populate fields of struture and append to itab
append wa_t_viqmsm to it_t_viqmsm.

"populate fields of struture and append to itab
append wa_t_viqmsm_old to it_t_viqmsm_old.

"populate fields of struture and append to itab
append wa_t_viqmma to it_t_viqmma.

"populate fields of struture and append to itab
append wa_t_viqmma_old to it_t_viqmma_old.

"populate fields of struture and append to itab
append wa_t_ihpa to it_t_ihpa.

"populate fields of struture and append to itab
append wa_t_ihpa_old to it_t_ihpa_old.

"populate fields of struture and append to itab
append wa_t_stxh to it_t_stxh.

"populate fields of struture and append to itab
append wa_t_stxl to it_t_stxl.

"populate fields of struture and append to itab
append wa_t_jest to it_t_jest.

"populate fields of struture and append to itab
append wa_t_jsto to it_t_jsto.

"populate fields of struture and append to itab
append wa_t_adrc to it_t_adrc.

"populate fields of struture and append to itab
append wa_t_adr2 to it_t_adr2.

"populate fields of struture and append to itab
append wa_t_adr3 to it_t_adr3.

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