<?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 Error message in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/3078337#M730013</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working on an interface and whn i chked my code using tran SLIN I got this message &lt;/P&gt;&lt;P&gt;"No read access to field L_TYPE1"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have defined this in my program as: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;      documentheader like bapiache09,&lt;/P&gt;&lt;P&gt;      l_type1       like documentheader-OBJ_TYPE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you pleas tell me what the error is. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Rajeev&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Nov 2007 00:49:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-29T00:49:45Z</dc:date>
    <item>
      <title>Error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/3078337#M730013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working on an interface and whn i chked my code using tran SLIN I got this message &lt;/P&gt;&lt;P&gt;"No read access to field L_TYPE1"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have defined this in my program as: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;      documentheader like bapiache09,&lt;/P&gt;&lt;P&gt;      l_type1       like documentheader-OBJ_TYPE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you pleas tell me what the error is. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Rajeev&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2007 00:49:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/3078337#M730013</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-29T00:49:45Z</dc:date>
    </item>
    <item>
      <title>Re: Error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/3078338#M730014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But you haven't used that L_TYPE1 variable.&lt;/P&gt;&lt;P&gt;To find out it, go to the program, click on the find button.. put L_TYPE1 and see how many results you are getting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can remove this variable if you don't want it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2007 01:15:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/3078338#M730014</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2007-11-29T01:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: Error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/3078339#M730015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Naimesh, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used that variable:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      DOCUMENTHEADER = documentheader&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      OBJ_TYPE       = l_type1&lt;/P&gt;&lt;P&gt;      OBJ_KEY        = l_key1&lt;/P&gt;&lt;P&gt;      OBJ_SYS        = l_sys1&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      ACCOUNTGL      = glaccount&lt;/P&gt;&lt;P&gt;      ACCOUNTPAYABLE = ap&lt;/P&gt;&lt;P&gt;      CURRENCYAMOUNT = currencyamount&lt;/P&gt;&lt;P&gt;      RETURN         = return1.&lt;/P&gt;&lt;P&gt;  read table return1 with key type = 'S'.&lt;/P&gt;&lt;P&gt;  if syst-subrc eq 0.&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'&lt;/P&gt;&lt;P&gt;     IMPORTING&lt;/P&gt;&lt;P&gt;       RETURN        = return2.&lt;/P&gt;&lt;P&gt;so can you please tell me where exactly the problem is. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Rajeev&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2007 01:21:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/3078339#M730015</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-29T01:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: Error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/3078340#M730016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would just ignore it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2007 03:16:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/3078340#M730016</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-29T03:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: Error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/3078341#M730017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;even I would have done that...but my team lead wants this message to get away !!! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Rajeev&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2007 03:23:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/3078341#M730017</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-29T03:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: Error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/3078342#M730018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
  EXPORTING
    documentheader = documentheader
  IMPORTING
*   obj_type       = l_type1      "&amp;lt;====
*   obj_key        = l_key1       "&amp;lt;====
*   obj_sys        = l_sys1       "&amp;lt;====
  TABLES
    accountgl      = glaccount
    accountpayable = ap
    currencyamount = currencyamount
    return         = return1.
READ TABLE return1 WITH KEY type = 'S'.
IF syst-subrc EQ 0.
  CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    IMPORTING
      return = return2.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I commented them all out, but if you are using the others, then leave them in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2007 03:33:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/3078342#M730018</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-29T03:33:49Z</dc:date>
    </item>
    <item>
      <title>Re: Error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/3078343#M730019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajeev,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ideally you should ignore the message as its just a warning message &amp;amp; not an error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if at all you want to remove that error from SLIN, then add a clear statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR : l_type, " Clear the field&lt;/P&gt;&lt;P&gt;              l_key1,&lt;/P&gt;&lt;P&gt;              l_sys1.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;DOCUMENTHEADER = documentheader&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;OBJ_TYPE = l_type1&lt;/P&gt;&lt;P&gt;OBJ_KEY = l_key1&lt;/P&gt;&lt;P&gt;OBJ_SYS = l_sys1&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;ACCOUNTGL = glaccount&lt;/P&gt;&lt;P&gt;ACCOUNTPAYABLE = ap&lt;/P&gt;&lt;P&gt;CURRENCYAMOUNT = currencyamount&lt;/P&gt;&lt;P&gt;RETURN = return1.&lt;/P&gt;&lt;P&gt;read table return1 with key type = 'S'.&lt;/P&gt;&lt;P&gt;if syst-subrc eq 0.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;RETURN = return2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2007 03:35:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/3078343#M730019</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-29T03:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: Error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/3078344#M730020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply rob.....u have commented those but will it work properly, I mean will my program give me the same output as it was giving me before.&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;Rajeev&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2007 04:24:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/3078344#M730020</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-29T04:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: Error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/3078345#M730021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajeev,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   The message occured for the variable l_type1,.... is not used anywhere in the program. i.e.,l_type1 value is not displayed anywhere. If you really want to avoid this message then try to display the value, (WRITE l_type1).&lt;/P&gt;&lt;P&gt;Check the below code :&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;DOCUMENTHEADER = documentheader&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;OBJ_TYPE = l_type1&lt;/P&gt;&lt;P&gt;*OBJ_KEY = l_key1&lt;/P&gt;&lt;P&gt;*OBJ_SYS = l_sys1&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;ACCOUNTGL = glaccount&lt;/P&gt;&lt;P&gt;ACCOUNTPAYABLE = ap&lt;/P&gt;&lt;P&gt;CURRENCYAMOUNT = currencyamount&lt;/P&gt;&lt;P&gt;RETURN = return1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE: l_type1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2007 04:43:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/3078345#M730021</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-29T04:43:43Z</dc:date>
    </item>
    <item>
      <title>Re: Error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/3078346#M730022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes - if you aren't going to use the variables, there's no need to return them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2007 14:26:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/3078346#M730022</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-29T14:26:35Z</dc:date>
    </item>
  </channel>
</rss>

