<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: GRC RFC Function Module GRAC_API_RISK_ANALYSIS no results in Financial Management Q&amp;A</title>
    <link>https://community.sap.com/t5/financial-management-q-a/grc-rfc-function-module-grac-api-risk-analysis-no-results/qaa-p/11904277#M219311</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;the dictionary is used because as you can see on some parameters there is a *_RANGE.&lt;/P&gt;&lt;P&gt;This is like a multiselection field in SAP GUI where you can set "from value" to "to value"&lt;/P&gt;&lt;P&gt;You have to change the last parameters to your needs.&lt;/P&gt;&lt;P&gt;Here is an example:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;def grc_analysis(rfc_user, rfc_pw, rfc_ashost, rfc_asnr, rfc_client, rolename):
       value1 = {u'SIGN':'I',u'OPTION':'EQ',u'LOW':'SYSTEMNAME'}
       value2 = {u'SIGN':'I',u'OPTION':'EQ',u'LOW':rolename}
       value3 = {u'SIGN':'I',u'OPTION':'EQ',u'LOW':'RULESETNAME'}
       conn = Connection(ashost=rfc_ashost, sysnr=rfc_asnr, client=rfc_client, user=rfc_user, passwd=rfc_pw)
       r = conn.call('GRAC_API_RISK_ANALYSIS',
                     IT_SYS_RANGE = [value1],
                     IT_OBJECT_RANGE = [value2],
                     IV_OBJECT_TYPE = 2,
                     IT_REPORT_TYPE = '01',
                     IT_RULESETID_RANGE = [value3], 
                     )
       print(r)&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 08 Apr 2021 07:06:59 GMT</pubDate>
    <dc:creator>daniel92</dc:creator>
    <dc:date>2021-04-08T07:06:59Z</dc:date>
    <item>
      <title>GRC RFC Function Module GRAC_API_RISK_ANALYSIS no results</title>
      <link>https://community.sap.com/t5/financial-management-q-a/grc-rfc-function-module-grac-api-risk-analysis-no-results/qaq-p/11904271</link>
      <description>&lt;P&gt;Hello everybody,&lt;/P&gt;
  &lt;P&gt;I want to access the Function Module GRAC_API_RISK_ANALYSIS by pyrfc.&lt;/P&gt;
  &lt;P&gt;The result of the call is:&lt;/P&gt;
  &lt;P&gt;{'ET_ACT_EXEC_SUM': [], 'ET_ACT_MGMT_SUM': [], 'ET_ACT_VIOL_DET': [], 'ET_ACT_VIOL_SUM': [], 'ET_ANALYTICAL_REPORT_SUM': [], 'ET_CRACT_EXEC_SUM': [], 'ET_CRACT_MGMT_SUM': [], 'ET_CRACT_VIOL_DET': [], 'ET_CRACT_VIOL_SUM': [], 'ET_CROLEPROF_VIOL_SUM': [], 'ET_CRPRM_EXEC_SUM': [], 'ET_CRPRM_MGMT_SUM': [], 'ET_CRPRM_VIOL_DET': [], 'ET_CRPRM_VIOL_SUM': [], 'ET_MITIGATION_SUM': [], 'ET_PRM_EXEC_SUM': [], 'ET_PRM_MGMT_SUM': [], 'ET_PRM_VIOL_DET': [], 'ET_PRM_VIOL_SUM': [], 'EV_RETURN_MSG': {'TYPE': 'S', 'ID': 'GRAC_SOD_MESSAGES', 'NUMBER': '300', 'MESSAGE': 'Risk analysis finished successfully', 'LOG_NO': '', 'LOG_MSG_NO': '000000', 'MESSAGE_V1': '', 'MESSAGE_V2': '', 'MESSAGE_V3': '', 'MESSAGE_V4': '', 'PARAMETER': '', 'ROW': 0, 'FIELD': '', 'SYSTEM': ''}}&lt;/P&gt;
  &lt;P&gt;As you can see, all the values are empty.&lt;/P&gt;
  &lt;P&gt;But for Users with Roles/Profiles like SAP_ALL there should be a lot of risks.&lt;/P&gt;
  &lt;P&gt;How could I use the Function Module to get correct results?&lt;/P&gt;
  &lt;P&gt;Used Python Code:&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;value1 = {u'SIGN':'I',u'OPTION':'EQ',u'LOW':'USERNAME'}
value2 = {u'SIGN':'I',u'OPTION':'EQ',u'LOW':'CLIENTNAME'}
value3 = {u'SIGN':'I',u'OPTION':'EQ',u'LOW':'Global'}
value4 = {u'SIGN':'I',u'OPTION':'EQ',u'LOW':'0',u'HIGH':'4'}
       
result = conn.call('GRAC_API_RISK_ANALYSIS',
                     IT_OBJECT_RANGE = [value1],
                     IT_SYS_RANGE = [value2],
                     IT_RULESETID_RANGE = [value3], 
                     IT_RISKLEVEL_RANGE = [value4],
                     IV_OBJECT_TYPE = 1,
                     #IT_USER_TYPE = 'A',
                     #IV_OFFLINE_ANALYSIS = 'X',
                     #IV_ANALYSIS_MODE = '01',
                     IT_REPORT_TYPE = '01',
                     )
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 16 Apr 2019 13:15:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/financial-management-q-a/grc-rfc-function-module-grac-api-risk-analysis-no-results/qaq-p/11904271</guid>
      <dc:creator>daniel92</dc:creator>
      <dc:date>2019-04-16T13:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: GRC RFC Function Module GRAC_API_RISK_ANALYSIS no results</title>
      <link>https://community.sap.com/t5/financial-management-q-a/grc-rfc-function-module-grac-api-risk-analysis-no-results/qaa-p/11904272#M219306</link>
      <description>&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;This function module works perfectly. Are you passing the following details highlighted? &lt;/P&gt;&lt;P&gt;Prerequisite: Just make sure rules are already setup in GRC system and are generated. Also cross check if you are able to get the risk analysis results when you execute the risk analysis directly from path NWBC -&amp;gt; Access Management -&amp;gt; User Level Analysis&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Input Values&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1666663-input-params.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Output Values&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1666664-output-values.png" /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Madhu&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2019 08:50:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/financial-management-q-a/grc-rfc-function-module-grac-api-risk-analysis-no-results/qaa-p/11904272#M219306</guid>
      <dc:creator>madhusap</dc:creator>
      <dc:date>2019-04-17T08:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: GRC RFC Function Module GRAC_API_RISK_ANALYSIS no results</title>
      <link>https://community.sap.com/t5/financial-management-q-a/grc-rfc-function-module-grac-api-risk-analysis-no-results/qaa-p/11904273#M219307</link>
      <description>&lt;P&gt;Hi Madhu,&lt;/P&gt;&lt;P&gt;thank you very much for your answer!&lt;/P&gt;&lt;P&gt;In NWBC I can execute the analysis successfully.&lt;BR /&gt;But in the SE80 Testsequence or by pyrfc I get no results.&lt;/P&gt;&lt;P&gt;I think my input parameters are wrong.&lt;BR /&gt;Could you please add a screenshot of your inputdata fields from the function model test?&lt;/P&gt;&lt;P&gt;My input variables are:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;value1 = {u'SIGN':'I',u'OPTION':'EQ',u'LOW':'A12CLNTXXX'}
value2 = {u'SIGN':'I',u'OPTION':'EQ',u'LOW':'DXXX'}
value3 = {u'SIGN':'I',u'OPTION':'EQ',u'LOW':'Global'}
#value4 = {u'CONNECTOR':'A12CLNTXXX',u'S':'EQ',u'LOW':''}

rseult = conn.call('GRAC_API_RISK_ANALYSIS',
                     IT_SYS_RANGE = [value1],
                     IT_OBJECT_RANGE = [value2],
                     IV_OBJECT_TYPE = 1,
                     IT_REPORT_TYPE = '01',
                     IT_USER_TYPE = 'A',
                     IT_RULESETID_RANGE = [value3], 
                     #IT_SIMULATION = [value4]

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 17 Apr 2019 15:32:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/financial-management-q-a/grc-rfc-function-module-grac-api-risk-analysis-no-results/qaa-p/11904273#M219307</guid>
      <dc:creator>daniel92</dc:creator>
      <dc:date>2019-04-17T15:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: GRC RFC Function Module GRAC_API_RISK_ANALYSIS no results</title>
      <link>https://community.sap.com/t5/financial-management-q-a/grc-rfc-function-module-grac-api-risk-analysis-no-results/qaa-p/11904274#M219308</link>
      <description>&lt;P&gt;Hi Madhu,&lt;/P&gt;&lt;P&gt;Could you please send me your import parameters?&lt;/P&gt;&lt;P&gt;Maybe I will have there a mistake.&lt;/P&gt;&lt;P&gt;Do I need to fill the parameter IT_SIMULATION?&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1678540-anmerkung-2019-04-29-105819.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" /&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2019 08:57:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/financial-management-q-a/grc-rfc-function-module-grac-api-risk-analysis-no-results/qaa-p/11904274#M219308</guid>
      <dc:creator>daniel92</dc:creator>
      <dc:date>2019-04-29T08:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: GRC RFC Function Module GRAC_API_RISK_ANALYSIS no results</title>
      <link>https://community.sap.com/t5/financial-management-q-a/grc-rfc-function-module-grac-api-risk-analysis-no-results/qaa-p/11904275#M219309</link>
      <description>&lt;P&gt;I´ve got the solution:&lt;/P&gt;&lt;P&gt;The IT_RULESETID_RANGE parameter needs the name of the vlue of the parameter in upper letters. So if your name of the rule id is "test" you need to set "TEST".&lt;/P&gt;&lt;P&gt;You can check the input parameters by SE30 old, if you run a program which uses the needed function module.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2019 13:15:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/financial-management-q-a/grc-rfc-function-module-grac-api-risk-analysis-no-results/qaa-p/11904275#M219309</guid>
      <dc:creator>daniel92</dc:creator>
      <dc:date>2019-04-29T13:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: GRC RFC Function Module GRAC_API_RISK_ANALYSIS no results</title>
      <link>https://community.sap.com/t5/financial-management-q-a/grc-rfc-function-module-grac-api-risk-analysis-no-results/qaa-p/11904276#M219310</link>
      <description>&lt;P&gt;HI, &lt;/P&gt;&lt;P&gt;can i know why you have declared the values for parameters (IT_OBJECT_RANGE, IT_SYS_RANGE, IT_RULESETID_RANGE,IT_RISKLEVEL_RANGE ) as a dictionary (key:value) pair. I am dealing with same scenario of using python to communicate with SAP and was getting empty values from SAP just like in your case. Can you please guide me what i should put as the key,value pair for my parameters&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 18:56:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/financial-management-q-a/grc-rfc-function-module-grac-api-risk-analysis-no-results/qaa-p/11904276#M219310</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2021-04-07T18:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: GRC RFC Function Module GRAC_API_RISK_ANALYSIS no results</title>
      <link>https://community.sap.com/t5/financial-management-q-a/grc-rfc-function-module-grac-api-risk-analysis-no-results/qaa-p/11904277#M219311</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;the dictionary is used because as you can see on some parameters there is a *_RANGE.&lt;/P&gt;&lt;P&gt;This is like a multiselection field in SAP GUI where you can set "from value" to "to value"&lt;/P&gt;&lt;P&gt;You have to change the last parameters to your needs.&lt;/P&gt;&lt;P&gt;Here is an example:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;def grc_analysis(rfc_user, rfc_pw, rfc_ashost, rfc_asnr, rfc_client, rolename):
       value1 = {u'SIGN':'I',u'OPTION':'EQ',u'LOW':'SYSTEMNAME'}
       value2 = {u'SIGN':'I',u'OPTION':'EQ',u'LOW':rolename}
       value3 = {u'SIGN':'I',u'OPTION':'EQ',u'LOW':'RULESETNAME'}
       conn = Connection(ashost=rfc_ashost, sysnr=rfc_asnr, client=rfc_client, user=rfc_user, passwd=rfc_pw)
       r = conn.call('GRAC_API_RISK_ANALYSIS',
                     IT_SYS_RANGE = [value1],
                     IT_OBJECT_RANGE = [value2],
                     IV_OBJECT_TYPE = 2,
                     IT_REPORT_TYPE = '01',
                     IT_RULESETID_RANGE = [value3], 
                     )
       print(r)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 08 Apr 2021 07:06:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/financial-management-q-a/grc-rfc-function-module-grac-api-risk-analysis-no-results/qaa-p/11904277#M219311</guid>
      <dc:creator>daniel92</dc:creator>
      <dc:date>2021-04-08T07:06:59Z</dc:date>
    </item>
  </channel>
</rss>

