SAP GRPCRTA_DATA_TO_XML_CONVERT Function Module for Convert Automated Control Result to XML Format









GRPCRTA_DATA_TO_XML_CONVERT is a standard grpcrta data to xml convert SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Convert Automated Control Result to XML Format processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for grpcrta data to xml convert FM, simply by entering the name GRPCRTA_DATA_TO_XML_CONVERT into the relevant SAP transaction such as SE37 or SE38.

Function Group: GRPCRTA_UI_COMMON
Program Name: SAPLGRPCRTA_UI_COMMON
Main Program: SAPLGRPCRTA_UI_COMMON
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function GRPCRTA_DATA_TO_XML_CONVERT pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'GRPCRTA_DATA_TO_XML_CONVERT'"Convert Automated Control Result to XML Format
EXPORTING
IS_HEADER = "PC Download header
I_PTYPE = "Period Type
I_RULEVERSION = "CCS Rule Version
* I_HIGH = "High Deficiency Count
* I_MED = "Medium Deficiency Count
* I_LOW = "Low Deficiency Count
* I_CCI_CNT = "Pending View Deficiency Count
I_SAMT = "Value field 13(25) characters with 2 decimal places
I_CURRKEY = "Currency key
I_JOBID = "GUID in 'CHAR' format in uppercase
IS_COMPLIANCE = "Rules Analysis
IS_XML_HEADER = "Structure for XML Header Data
I_CCI = "Single-character flag
I_TITLE = "Screens, title text
I_FROMDATE = "Date and time, current (application server) date
I_TODATE = "Date and time, current (application server) date
I_YEAR = "Period Year
I_PERIOD = "Period

IMPORTING
E_DEFICIENCY = "Deficiency Type
E_USERNAME = "Complete personal name
EV_XML_XSTRING = "
ES_COMPLIANCE = "Control Complicance

TABLES
IT_TRANS = "Rules Analysis
* IT_FIELDCAT = "ALV control: Field catalog
* IT_DATA = "
* ET_RESULT = "GRC Deficiency Report Output in XML Format
.



IMPORTING Parameters details for GRPCRTA_DATA_TO_XML_CONVERT

IS_HEADER - PC Download header

Data type: GRPCRTA_S_HEADER
Optional: No
Call by Reference: Yes

I_PTYPE - Period Type

Data type: GRPCRTA_FREQ
Optional: No
Call by Reference: Yes

I_RULEVERSION - CCS Rule Version

Data type: GRPCRTA_S_RULE-VERSION
Optional: No
Call by Reference: Yes

I_HIGH - High Deficiency Count

Data type: GRPCRTA_DEFICIENCY_HIGH
Optional: Yes
Call by Reference: Yes

I_MED - Medium Deficiency Count

Data type: GRPCRTA_DEFICIENCY_MEDIUM
Optional: Yes
Call by Reference: Yes

I_LOW - Low Deficiency Count

Data type: GRPCRTA_DEFICIENCY_LOW
Optional: Yes
Call by Reference: Yes

I_CCI_CNT - Pending View Deficiency Count

Data type: GRPCRTA_DEFICIENCY_PENDING
Optional: Yes
Call by Reference: Yes

I_SAMT - Value field 13(25) characters with 2 decimal places

Data type: WERTV13
Optional: No
Call by Reference: Yes

I_CURRKEY - Currency key

Data type: WAERS_CURC
Optional: No
Call by Reference: Yes

I_JOBID - GUID in 'CHAR' format in uppercase

Data type: GUID_32
Optional: No
Call by Reference: Yes

IS_COMPLIANCE - Rules Analysis

Data type: GRPCRTA_S_COMPPAR
Optional: No
Call by Reference: Yes

IS_XML_HEADER - Structure for XML Header Data

Data type: GRPCRTA_XML_HEADER
Optional: No
Call by Reference: Yes

I_CCI - Single-character flag

Data type: CHAR1
Optional: No
Call by Reference: Yes

I_TITLE - Screens, title text

Data type: SY-TITLE
Optional: No
Call by Reference: Yes

I_FROMDATE - Date and time, current (application server) date

Data type: SY-DATUM
Optional: No
Call by Reference: Yes

I_TODATE - Date and time, current (application server) date

Data type: SY-DATUM
Optional: No
Call by Reference: Yes

I_YEAR - Period Year

Data type: GRPCRTA_YEAR
Optional: No
Call by Reference: Yes

I_PERIOD - Period

Data type: GRPCRTA_TIMEFRAME
Optional: No
Call by Reference: Yes

EXPORTING Parameters details for GRPCRTA_DATA_TO_XML_CONVERT

E_DEFICIENCY - Deficiency Type

Data type: GRPCRTA_DEFTYPE
Optional: No
Call by Reference: Yes

E_USERNAME - Complete personal name

Data type: NAME_TEXT
Optional: No
Call by Reference: Yes

EV_XML_XSTRING -

Data type: XSTRING
Optional: No
Call by Reference: Yes

ES_COMPLIANCE - Control Complicance

Data type: GRPCRTA_S_COMPLIANCE_PARAMS
Optional: No
Call by Reference: Yes

TABLES Parameters details for GRPCRTA_DATA_TO_XML_CONVERT

IT_TRANS - Rules Analysis

Data type: GRPCRTA_TRANS
Optional: No
Call by Reference: No ( called with pass by value option)

IT_FIELDCAT - ALV control: Field catalog

Data type: LVC_S_FCAT
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_DATA -

Data type:
Optional: Yes
Call by Reference: No ( called with pass by value option)

ET_RESULT - GRC Deficiency Report Output in XML Format

Data type: GRPCRTA_S_REPORT_OUTOUT
Optional: Yes
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for GRPCRTA_DATA_TO_XML_CONVERT Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.

DATA:
lt_it_trans  TYPE STANDARD TABLE OF GRPCRTA_TRANS, "   
lv_is_header  TYPE GRPCRTA_S_HEADER, "   
lv_e_deficiency  TYPE GRPCRTA_DEFTYPE, "   
lv_i_ptype  TYPE GRPCRTA_FREQ, "   
lv_i_ruleversion  TYPE GRPCRTA_S_RULE-VERSION, "   
lv_i_high  TYPE GRPCRTA_DEFICIENCY_HIGH, "   
lv_i_med  TYPE GRPCRTA_DEFICIENCY_MEDIUM, "   
lv_i_low  TYPE GRPCRTA_DEFICIENCY_LOW, "   
lv_i_cci_cnt  TYPE GRPCRTA_DEFICIENCY_PENDING, "   
lv_i_samt  TYPE WERTV13, "   
lv_i_currkey  TYPE WAERS_CURC, "   
lv_i_jobid  TYPE GUID_32, "   
lv_e_username  TYPE NAME_TEXT, "   
lt_it_fieldcat  TYPE STANDARD TABLE OF LVC_S_FCAT, "   
lv_is_compliance  TYPE GRPCRTA_S_COMPPAR, "   
lt_it_data  TYPE STANDARD TABLE OF GRPCRTA_S_COMPPAR, "   
lv_is_xml_header  TYPE GRPCRTA_XML_HEADER, "   
lv_ev_xml_xstring  TYPE XSTRING, "   
lv_i_cci  TYPE CHAR1, "   
lt_et_result  TYPE STANDARD TABLE OF GRPCRTA_S_REPORT_OUTOUT, "   
lv_es_compliance  TYPE GRPCRTA_S_COMPLIANCE_PARAMS, "   
lv_i_title  TYPE SY-TITLE, "   
lv_i_fromdate  TYPE SY-DATUM, "   
lv_i_todate  TYPE SY-DATUM, "   
lv_i_year  TYPE GRPCRTA_YEAR, "   
lv_i_period  TYPE GRPCRTA_TIMEFRAME. "   

  CALL FUNCTION 'GRPCRTA_DATA_TO_XML_CONVERT'  "Convert Automated Control Result to XML Format
    EXPORTING
         IS_HEADER = lv_is_header
         I_PTYPE = lv_i_ptype
         I_RULEVERSION = lv_i_ruleversion
         I_HIGH = lv_i_high
         I_MED = lv_i_med
         I_LOW = lv_i_low
         I_CCI_CNT = lv_i_cci_cnt
         I_SAMT = lv_i_samt
         I_CURRKEY = lv_i_currkey
         I_JOBID = lv_i_jobid
         IS_COMPLIANCE = lv_is_compliance
         IS_XML_HEADER = lv_is_xml_header
         I_CCI = lv_i_cci
         I_TITLE = lv_i_title
         I_FROMDATE = lv_i_fromdate
         I_TODATE = lv_i_todate
         I_YEAR = lv_i_year
         I_PERIOD = lv_i_period
    IMPORTING
         E_DEFICIENCY = lv_e_deficiency
         E_USERNAME = lv_e_username
         EV_XML_XSTRING = lv_ev_xml_xstring
         ES_COMPLIANCE = lv_es_compliance
    TABLES
         IT_TRANS = lt_it_trans
         IT_FIELDCAT = lt_it_fieldcat
         IT_DATA = lt_it_data
         ET_RESULT = lt_et_result
. " GRPCRTA_DATA_TO_XML_CONVERT




ABAP code using 7.40 inline data declarations to call FM GRPCRTA_DATA_TO_XML_CONVERT

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

 
 
 
 
"SELECT single VERSION FROM GRPCRTA_S_RULE INTO @DATA(ld_i_ruleversion).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
"SELECT single TITLE FROM SY INTO @DATA(ld_i_title).
 
"SELECT single DATUM FROM SY INTO @DATA(ld_i_fromdate).
 
"SELECT single DATUM FROM SY INTO @DATA(ld_i_todate).
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!