SAP Function Modules

GRPCRTA_SEND_XML SAP Function module - Send Control Result Back to GRC







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

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


Pattern for FM GRPCRTA_SEND_XML - GRPCRTA SEND XML





CALL FUNCTION 'GRPCRTA_SEND_XML' "Send Control Result Back to GRC
  EXPORTING
    i_caller =                  " rfcdest       Logical destination (specified in function call)
    i_jobid =                   " guid_32       GUID in 'CHAR' format in uppercase
    i_job_step =                " grpcrta_job_step  Job Step
    i_connector =               " rfcdest       Logical destination (specified in function call)
    i_username =                " name_text     Complete personal name
    is_compliance =             " grpcrta_s_compliance_params  Single-character flag
*   i_xstring =                 " xstring
  TABLES
*   it_result =                 " grpcrta_s_report_outout  GRC Deficiency Report Output in XML Format
*   it_result_data =            " abaplist      SAPscript: text lines
    et_message =                " bapiret2_t    Return parameter table
    .  "  GRPCRTA_SEND_XML

ABAP code example for Function Module GRPCRTA_SEND_XML





The ABAP code below is a full code listing to execute function module GRPCRTA_SEND_XML 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_it_result  TYPE STANDARD TABLE OF GRPCRTA_S_REPORT_OUTOUT,"TABLES PARAM
wa_it_result  LIKE LINE OF it_it_result ,
it_it_result_data  TYPE STANDARD TABLE OF ABAPLIST,"TABLES PARAM
wa_it_result_data  LIKE LINE OF it_it_result_data ,
it_et_message  TYPE STANDARD TABLE OF BAPIRET2_T,"TABLES PARAM
wa_et_message  LIKE LINE OF it_et_message .

DATA(ld_i_caller) = 'Check type of data required'.
DATA(ld_i_jobid) = 'Check type of data required'.
DATA(ld_i_job_step) = 'Check type of data required'.
DATA(ld_i_connector) = 'Check type of data required'.
DATA(ld_i_username) = 'Check type of data required'.
DATA(ld_is_compliance) = 'Check type of data required'.
DATA(ld_i_xstring) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_result to it_it_result.

"populate fields of struture and append to itab
append wa_it_result_data to it_it_result_data.

"populate fields of struture and append to itab
append wa_et_message to it_et_message. . CALL FUNCTION 'GRPCRTA_SEND_XML' EXPORTING i_caller = ld_i_caller i_jobid = ld_i_jobid i_job_step = ld_i_job_step i_connector = ld_i_connector i_username = ld_i_username is_compliance = ld_is_compliance * i_xstring = ld_i_xstring TABLES * it_result = it_it_result * it_result_data = it_it_result_data et_message = it_et_message . " GRPCRTA_SEND_XML
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_i_caller  TYPE RFCDEST ,
it_it_result  TYPE STANDARD TABLE OF GRPCRTA_S_REPORT_OUTOUT ,
wa_it_result  LIKE LINE OF it_it_result,
ld_i_jobid  TYPE GUID_32 ,
it_it_result_data  TYPE STANDARD TABLE OF ABAPLIST ,
wa_it_result_data  LIKE LINE OF it_it_result_data,
ld_i_job_step  TYPE GRPCRTA_JOB_STEP ,
it_et_message  TYPE STANDARD TABLE OF BAPIRET2_T ,
wa_et_message  LIKE LINE OF it_et_message,
ld_i_connector  TYPE RFCDEST ,
ld_i_username  TYPE NAME_TEXT ,
ld_is_compliance  TYPE GRPCRTA_S_COMPLIANCE_PARAMS ,
ld_i_xstring  TYPE XSTRING .

ld_i_caller = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_result to it_it_result.
ld_i_jobid = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_result_data to it_it_result_data.
ld_i_job_step = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_et_message to it_et_message.
ld_i_connector = 'Check type of data required'.
ld_i_username = 'Check type of data required'.
ld_is_compliance = 'Check type of data required'.
ld_i_xstring = '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 GRPCRTA_SEND_XML or its description.