<?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: Function module RSAU_READ_MASTER_DATA in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/function-module-rsau-read-master-data/qaa-p/3170353#M1286610</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;0SOLD_to is reference char to 0customer. You can directly read /BI0/MCUSTOMER to read attribute values.. for a particular sold to value..instead of using FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--S@A&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Dec 2007 21:19:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-12T21:19:14Z</dc:date>
    <item>
      <title>Function module RSAU_READ_MASTER_DATA</title>
      <link>https://community.sap.com/t5/technology-q-a/function-module-rsau-read-master-data/qaq-p/3170346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am using a FM in the update rule to read master data. Am using the FM &lt;/P&gt;&lt;P&gt;RSAU_READ_MASTER_DATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am xporting InfoObject name, attribute and importing a table. But it gives me this error...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You attempted to pass the field "G_ATTRNM" to the formal parameter "E_TABLE"&lt;/P&gt;&lt;P&gt;but the formal parameter "E_TABLE" can accept only fields of&lt;/P&gt;&lt;P&gt;type "h". The field "E_TABLE" has the type "C".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly let me kno, why is this error coming.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgrds,&lt;/P&gt;&lt;P&gt;KK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2007 17:17:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/function-module-rsau-read-master-data/qaq-p/3170346</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-11T17:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: Function module RSAU_READ_MASTER_DATA</title>
      <link>https://community.sap.com/t5/technology-q-a/function-module-rsau-read-master-data/qaa-p/3170347#M1286604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are four ways to extract data from the FM,&lt;/P&gt;&lt;P&gt;1) Only one attribute value for a single InfoObject value&lt;/P&gt;&lt;P&gt;2) Complete attribute list of values for a single InfoObject value&lt;/P&gt;&lt;P&gt;3) An internal table output for several InfoObject values.&lt;/P&gt;&lt;P&gt;4) An internal table outpout for all InfoObject values of a master data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please specify which funtionality r u utilizing from this FM?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2007 20:49:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/function-module-rsau-read-master-data/qaa-p/3170347#M1286604</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-11T20:49:45Z</dc:date>
    </item>
    <item>
      <title>Re: Function module RSAU_READ_MASTER_DATA</title>
      <link>https://community.sap.com/t5/technology-q-a/function-module-rsau-read-master-data/qaa-p/3170348#M1286605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Vishesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply. Actually I just want to retrieve one attribute value from this FM. Can you please provide me a sample code for this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;KP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Dec 2007 04:27:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/function-module-rsau-read-master-data/qaa-p/3170348#M1286605</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-12T04:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: Function module RSAU_READ_MASTER_DATA</title>
      <link>https://community.sap.com/t5/technology-q-a/function-module-rsau-read-master-data/qaa-p/3170349#M1286606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to get the value of an attribute (e.g. 0SOLD_TO) corresponding to a characteristic value (e.g. 0SOLD_TO = 'CUST_CODE'). In this case you need to export to the function the name of the involved characteristic (parameter I_IOBJNM), its value (parameter I_CHAVL), and the name of the attribute (parameter I_ATTRNM). Notice that the parameter I_CHAVL expects a RSGENERAL-CHAVL data format. The function returns the attribute value in the parameter E_ATTRVAL.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------------------------------------------" /&gt;&lt;P&gt;DATA: CUST_CLASS,&lt;/P&gt;&lt;P&gt;SOLD_TO LIKE RSGENERAL-CHAVL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SOLD_TO = DATA_PACKAGE-SOLD_TO. " in an update rule, for instance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'RSAU_READ_MASTER_DATA'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      I_IOBJNM                      = '0SOLD_TO'&lt;/P&gt;&lt;P&gt;      I_CHAVL                       = SOLD_TO&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  I_T_CHAVL                     =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  I_DATE                        =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  I_FLG_WHOLE_TABLE             =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      I_ATTRNM                      = '0CUST_CLASS'&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  E_STRUCTURE                   =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  E_TABLE                       =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      E_ATTRVAL                     = CUST_CLASS&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      READ_ERROR                    = 1&lt;/P&gt;&lt;P&gt;      NO_SUCH_ATTRIBUTE             = 2&lt;/P&gt;&lt;P&gt;      WRONG_IMPORT_PARAMETERS       = 3&lt;/P&gt;&lt;P&gt;      CHAVL_NOT_FOUND               = 4&lt;/P&gt;&lt;P&gt;      OTHERS                        = 5&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------------------------------------------------------------------------------------------------------------" /&gt;&lt;P&gt;Notice that even for a custom attribute, the simple attribute name needs to be exported (e.g. ZATTR), and not the field name as it appears in the attribute table (e.g. /BIC/ZATTR). Remember also that the name of both the characteristic and the attribute must be upper case (i.e. is case sensitive). Lastly, the import parameter I_DATE may be used to specify the key date when a time-dependent characteristic is involved. The output attribute value will fulfil the temporal condition that the key date is in the validity time interval of the characteristic.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Dec 2007 04:33:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/function-module-rsau-read-master-data/qaa-p/3170349#M1286606</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-12T04:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: Function module RSAU_READ_MASTER_DATA</title>
      <link>https://community.sap.com/t5/technology-q-a/function-module-rsau-read-master-data/qaa-p/3170350#M1286607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thnks for the detailed explanation. I am pasting my code here. Can you please &lt;/P&gt;&lt;P&gt;check whether its as per your explanation.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------------------------" /&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;  g_iobjnm        TYPE rsdiobj-iobjnm, &lt;/P&gt;&lt;P&gt;  g_chavl         TYPE rsd_chavl,    &lt;/P&gt;&lt;P&gt;  g_date          TYPE dats,&lt;/P&gt;&lt;P&gt;  g_attrnm        TYPE rsd_attrinm,&lt;/P&gt;&lt;P&gt;  g_rc            TYPE sy-subrc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: v_result LIKE /BIC/MZHRPA9000-/BIC/ZK025000V.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; g_iobjnm = '0EMPLOYEE'.&lt;/P&gt;&lt;P&gt; g_chavl =  'EMPLOYEE'.&lt;/P&gt;&lt;P&gt; g_attrnm =  'ZK025000V'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'RSAU_READ_MASTER_DATA'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      I_IOBJNM      = g_iobjnm&lt;/P&gt;&lt;P&gt;      I_CHAVL       = g_chavl&lt;/P&gt;&lt;P&gt;      I_ATTRNM     = g_attrnm&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;          e_attrval                     = v_result&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      READ_ERROR                = 1&lt;/P&gt;&lt;P&gt;      NO_SUCH_ATTRIBUTE    = 2&lt;/P&gt;&lt;P&gt;      WRONG_IMPORT_PARAMETERS       = 3&lt;/P&gt;&lt;P&gt;      CHAVL_NOT_FOUND        = 4&lt;/P&gt;&lt;P&gt;      OTHERS                           = 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------------------------------" /&gt;&lt;P&gt;My main concern is to get Monthly salary from a Salary Master InfoObject, for an EMPLOYEE. I am not sure about what should be assigned to&lt;/P&gt;&lt;P&gt; g_iobjnm = '0EMPLOYEE'.&lt;/P&gt;&lt;P&gt; g_chavl =  'EMPLOYEE'&lt;/P&gt;&lt;P&gt;these fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;KP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Dec 2007 06:19:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/function-module-rsau-read-master-data/qaa-p/3170350#M1286607</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-12T06:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: Function module RSAU_READ_MASTER_DATA</title>
      <link>https://community.sap.com/t5/technology-q-a/function-module-rsau-read-master-data/qaa-p/3170351#M1286608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the Update Rule, within loop...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;g_iobjnm = '0EMPLOYEE'. - Main InfoObject&lt;/P&gt;&lt;P&gt;g_chavl = DATA_PACKAGE-EMPLOYEE - Runtime value of Main InfoObject&lt;/P&gt;&lt;P&gt;g_attrnm = &amp;lt;Salary Master InfoObject&amp;gt; - Attribute of Main InfoObject&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Dec 2007 06:31:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/function-module-rsau-read-master-data/qaa-p/3170351#M1286608</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-12T06:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: Function module RSAU_READ_MASTER_DATA</title>
      <link>https://community.sap.com/t5/technology-q-a/function-module-rsau-read-master-data/qaa-p/3170352#M1286609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;KK PP,&lt;/P&gt;&lt;P&gt;How have u defined v_result? It needs to be of same type as 'g_chavl'.&lt;/P&gt;&lt;P&gt;Check if it is same and confirm.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Dec 2007 14:39:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/function-module-rsau-read-master-data/qaa-p/3170352#M1286609</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-12T14:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: Function module RSAU_READ_MASTER_DATA</title>
      <link>https://community.sap.com/t5/technology-q-a/function-module-rsau-read-master-data/qaa-p/3170353#M1286610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;0SOLD_to is reference char to 0customer. You can directly read /BI0/MCUSTOMER to read attribute values.. for a particular sold to value..instead of using FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--S@A&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Dec 2007 21:19:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/function-module-rsau-read-master-data/qaa-p/3170353#M1286610</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-12T21:19:14Z</dc:date>
    </item>
  </channel>
</rss>

