<?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>topic Re: Reading Master data from table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-master-data-from-table/m-p/2889600#M679000</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ashish, in the routine i have sent you &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ZACCOUNT-name of the table&lt;/P&gt;&lt;P&gt;/BIC/OIZAC_DESC-name of the field in the table&lt;/P&gt;&lt;P&gt;ZAC_DESC is the info object into which the data from the above filed has to be read&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and /BIC/M0GL_ACCT: is the communication structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have no clue of ABAP so i dont think any information on statements would help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Priya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Oct 2007 03:36:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-18T03:36:05Z</dc:date>
    <item>
      <title>Reading Master data from table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-master-data-from-table/m-p/2889592#M678992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have added an attribute ZAC_DESC to my master data info object 0GL_ACCT. I dont have any objects in the source to map it with in the transfer rules but i have a table in which this data is maintained (ZACCOUNT table). I need to write a routine in my transfer rules to bring the data from the ZAC_DESC field in the table to my attribute. Can someone give me the complete routine. By the way that table does not contain 0GL_ACCT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Priya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2007 00:36:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-master-data-from-table/m-p/2889592#M678992</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-18T00:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: Reading Master data from table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-master-data-from-table/m-p/2889593#M678993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;While creating Transfer rule for this info object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can code in this way. Start coding and if you face any problem, i will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the transfer routine of ZAC_DESC -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single zac_desc &lt;/P&gt;&lt;P&gt;  into &amp;lt;info object ZAC_DESC&amp;gt; &lt;/P&gt;&lt;P&gt;  from zaccount  &lt;/P&gt;&lt;P&gt;  where gl_acct = &amp;lt;Transfer structure-gl_acct&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here you are extracting ZAC_DESC from table ZACCOUNT using condition GL_ACCT = transfer structure-Account no.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ashish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2007 00:39:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-master-data-from-table/m-p/2889593#M678993</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-18T00:39:54Z</dc:date>
    </item>
    <item>
      <title>Re: Reading Master data from table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-master-data-from-table/m-p/2889594#M678994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot for your reply. But can you also give me the exact syntax, what i have to declare for tables, data etc. Once i know what to put in that i will start coding and will let you know if any issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Priya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2007 00:45:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-master-data-from-table/m-p/2889594#M678994</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-18T00:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: Reading Master data from table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-master-data-from-table/m-p/2889595#M678995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have given you exact code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single zac_desc&lt;/P&gt;&lt;P&gt;into &amp;lt;b&amp;gt;&amp;lt;info object ZAC_DESC&amp;gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;from zaccount&lt;/P&gt;&lt;P&gt;where gl_acct = &amp;lt;b&amp;gt;&amp;lt;Transfer structure-gl_acct&amp;gt;&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You just need to replace text marked in bold with your transfer structure name, GL ACCount field name from your transfer structure as well as infoobject name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ashish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2007 00:48:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-master-data-from-table/m-p/2889595#M678995</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-18T00:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: Reading Master data from table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-master-data-from-table/m-p/2889596#M678996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is the code i have put and i am getting the following error "E:Field "ZAC_DESC" is unknown. It is neither in one of the specified in tables nor defined by a "DATA" statement. "DATA" statement. "DATA" statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code I have put is this, please correct it if any error exists.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;select single ZAC_DESC&lt;/P&gt;&lt;P&gt;into ZAC_DESC&lt;/P&gt;&lt;P&gt;from ZACCOUNT&lt;/P&gt;&lt;P&gt;where 0gl_acct = /BIC/M0GL_ACCT&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Priya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2007 03:00:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-master-data-from-table/m-p/2889596#M678996</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-18T03:00:46Z</dc:date>
    </item>
    <item>
      <title>Re: Reading Master data from table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-master-data-from-table/m-p/2889597#M678997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check my comments here -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single ZAC_DESC &amp;lt;This should be the field name from table ZACCOUNT&amp;gt;&lt;/P&gt;&lt;P&gt;into ZAC_DESC &amp;lt;This should be your infoobject name&amp;gt;&lt;/P&gt;&lt;P&gt;from ZACCOUNT&lt;/P&gt;&lt;P&gt;where 0gl_acct = /BIC/M0GL_ACCT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are extracting value of ZAC_DESC from ZACCOUNT into info object ZAC_DESC.&lt;/P&gt;&lt;P&gt;Is your info object name correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please check and confirm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also your ZACCOUNT taqble should have field 0GL_ACCT. Otherwise whatever is the fieldname, that you need to place here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ashish&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Ashish Gundawar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2007 03:04:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-master-data-from-table/m-p/2889597#M678997</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-18T03:04:20Z</dc:date>
    </item>
    <item>
      <title>Re: Reading Master data from table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-master-data-from-table/m-p/2889598#M678998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I dont have the GL Account Number in the Look Up table and I have modified the code but i am still getting the same error,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Modified Code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;select single /BIC/OIZAC_DESC.&lt;/P&gt;&lt;P&gt;into ZAC_DESC.&lt;/P&gt;&lt;P&gt;from ZACCOUNT&lt;/P&gt;&lt;P&gt;where gl_acct = /BIC/M0GL_ACCT&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you help,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Priya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2007 03:21:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-master-data-from-table/m-p/2889598#M678998</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-18T03:21:24Z</dc:date>
    </item>
    <item>
      <title>Re: Reading Master data from table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-master-data-from-table/m-p/2889599#M678999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you do not have GL Account no in look up table then the WHERE condition will not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check if field /BIC/OIZAC_DESC is present in table ZAC_DESC. Goto SE11, enter ZAC_DESC and search for /BIC/OIZAC_DESC. IT should be present in the table in order to use in SELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second point - when you use INTO ZAC_DESC, i believe ZAC_DESC is your info object / attribute name in which you want the value to be stored. So make sure the name is correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single /BIC/OIZAC_DESC.&lt;/P&gt;&lt;P&gt;into ZAC_DESC.&lt;/P&gt;&lt;P&gt;from ZACCOUNT&lt;/P&gt;&lt;P&gt;where gl_acct = /BIC/M0GL_ACCT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In above command, i see '.' after SELECT and INTO line. Please remove those and put one '.' at the end after /BIC/M0GL_ACCT.&lt;/P&gt;&lt;P&gt;Will it help if i pass some information on SELECT statement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ashish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2007 03:27:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-master-data-from-table/m-p/2889599#M678999</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-18T03:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: Reading Master data from table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-master-data-from-table/m-p/2889600#M679000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ashish, in the routine i have sent you &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ZACCOUNT-name of the table&lt;/P&gt;&lt;P&gt;/BIC/OIZAC_DESC-name of the field in the table&lt;/P&gt;&lt;P&gt;ZAC_DESC is the info object into which the data from the above filed has to be read&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and /BIC/M0GL_ACCT: is the communication structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have no clue of ABAP so i dont think any information on statements would help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Priya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2007 03:36:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-master-data-from-table/m-p/2889600#M679000</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-18T03:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: Reading Master data from table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-master-data-from-table/m-p/2889601#M679001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then this statement should work -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single /BIC/OIZAC_DESC&lt;/P&gt;&lt;P&gt;into ZAC_DESC&lt;/P&gt;&lt;P&gt;from ZACCOUNT&lt;/P&gt;&lt;P&gt;where gl_acct = /BIC/M0GL_ACCT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just one more clarification - ZAC_DESC has a field with name GL_ACCT, correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you still getting an error?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where did you place this code? This needs to be placed in the place for transfer rules for ZAC_DESC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ashish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2007 03:40:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-master-data-from-table/m-p/2889601#M679001</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-18T03:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: Reading Master data from table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-master-data-from-table/m-p/2889602#M679002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;0GL_ACCT is the info object to which ZAC_DESC is an attribute. And the communication structure in which 0GL_ACCT and ZAC_DESC are there is  /BIC/M0GL_ACCT. &lt;/P&gt;&lt;P&gt;I am placing this is the transfer routine of ZAC_DESC but remember i does not have a source field to which it is mapped. The routine has to read the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;does this change anything in the code. Also dont we need to do declaration in the beginning of the code for TABLES or DATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Priya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2007 03:45:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-master-data-from-table/m-p/2889602#M679002</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-18T03:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: Reading Master data from table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-master-data-from-table/m-p/2889603#M679003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First of all you do not need to declare data or tables as we are not using any variable or any table buffer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single /BIC/OIZAC_DESC&lt;/P&gt;&lt;P&gt;into ZAC_DESC&lt;/P&gt;&lt;P&gt;from ZACCOUNT&lt;/P&gt;&lt;P&gt;where gl_acct = /BIC/M0GL_ACCT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In above select, i understand that /BIC/M0GL_ACCT is from communication structure. So here you need to add communication structure name something like DATA_PACKAGE or so.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rest all looks okay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2007 03:49:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-master-data-from-table/m-p/2889603#M679003</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-18T03:49:33Z</dc:date>
    </item>
  </channel>
</rss>

