<?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: statement is not accessible in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/statement-is-not-accessible/m-p/6886933#M1479439</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;where in SAPMV45A, you put this code?  I believe its in any of the forms in the  MV45AFZZ include .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also let me know what is the error messgage you are getting ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;constants: c_objectclas type cdpos-objectclas value 'VERKBELEG', &lt;/P&gt;&lt;P&gt;           c_tabname type tabname value 'VBAP',&lt;/P&gt;&lt;P&gt;           c_vbtyp_so type vbak-vbtyp value 'C', &lt;/P&gt;&lt;P&gt;           c_va02 type sy-tcode value 'VA02',&lt;/P&gt;&lt;P&gt;           c_va02x type sy-tcode value 'VA02X'. " Let me know what is this T.code. ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of ty_cdpos, &lt;/P&gt;&lt;P&gt;       tabkey type cdpos-tabkey, &lt;/P&gt;&lt;P&gt;       end of ty_cdpos. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of ty_vbap,&lt;/P&gt;&lt;P&gt;       posnr type vbap-posnr,&lt;/P&gt;&lt;P&gt;       end of ty_vbap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: t_cdpos type standard table of ty_cdpos, &lt;/P&gt;&lt;P&gt;       st_cdpos type ty_cdpos, &lt;/P&gt;&lt;P&gt;       t_vbap_curr type standard table of ty_vbap, &lt;/P&gt;&lt;P&gt;      st_vbap_curr type ty_vbap, &lt;/P&gt;&lt;P&gt;      w_high_posnr type posnr. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if vbak-vbtyp eq c_vbtyp_so and ( sy-tcode eq c_va02 or sy-tcode eq c_va02x ).&lt;/P&gt;&lt;P&gt;  refresh: t_cdpos.&lt;/P&gt;&lt;P&gt;  clear: w_high_posnr. &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;  select tabkey &lt;/P&gt;&lt;P&gt;  from cdpos &lt;/P&gt;&lt;P&gt;  into table t_cdpos &lt;/P&gt;&lt;P&gt;  where objectclas eq c_objectclas &lt;/P&gt;&lt;P&gt;    and objectid eq vbak-vbeln&lt;/P&gt;&lt;P&gt;    and tabname eq c_tabname.&lt;/P&gt;&lt;P&gt; if sy-subrc eq 0 and not t_cdpos[] is initial. &lt;/P&gt;&lt;P&gt; sort t_cdpos by tabkey descending. &lt;/P&gt;&lt;P&gt; read table t_cdpos into st_cdpos index 1. &lt;/P&gt;&lt;P&gt; if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt; w_high_posnr = st_cdpos-tabkey+13(6). &lt;/P&gt;&lt;P&gt;  if w_high_posnr gt xvbap_high_posnr. &lt;/P&gt;&lt;P&gt;   xvbap_high_posnr = w_high_posnr. &lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt; endif. &lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;refresh t_vbap_curr[]. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select posnr from vbap &lt;/P&gt;&lt;P&gt;into table t_vbap_curr &lt;/P&gt;&lt;P&gt;where vbeln eq vbak-vbeln. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0 and not t_vbap_curr[] is initial. &lt;/P&gt;&lt;P&gt;sort t_vbap_curr by posnr descending. &lt;/P&gt;&lt;P&gt;read table t_vbap_curr into st_vbap_curr index 1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0 and st_vbap_curr-posnr gt xvbap_high_posnr. &lt;/P&gt;&lt;P&gt;xvbap_high_posnr = st_vbap_curr-posnr. &lt;/P&gt;&lt;P&gt;endif. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif. &lt;/P&gt;&lt;P&gt;endif.&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;Sai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 May 2010 12:11:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-05-04T12:11:13Z</dc:date>
    <item>
      <title>statement is not accessible</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/statement-is-not-accessible/m-p/6886924#M1479430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to copy some code from old system 4.5 to new ecc6 instead of transporting. But it is giving this error at first if stment &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any suggestions would be helpfull &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance. &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;Ritika&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 May 2010 11:28:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/statement-is-not-accessible/m-p/6886924#M1479430</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-04T11:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: statement is not accessible</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/statement-is-not-accessible/m-p/6886925#M1479431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if give some code here it will be helpful to understand.&lt;/P&gt;&lt;P&gt;By the way did u declare all the variables?&lt;/P&gt;&lt;P&gt;Is your program executable or Include program?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Parvin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 May 2010 11:31:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/statement-is-not-accessible/m-p/6886925#M1479431</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-04T11:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: statement is not accessible</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/statement-is-not-accessible/m-p/6886926#M1479432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where is this if condition used? Is that a include, top include or in between 2 forms...endforms? This error can occur in various situations. It wont be of much help without showing us the relevant portion of the code and details&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikranth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 May 2010 11:31:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/statement-is-not-accessible/m-p/6886926#M1479432</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-04T11:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: statement is not accessible</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/statement-is-not-accessible/m-p/6886927#M1479433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just add start-of-selection event before that if statement.&lt;/P&gt;&lt;P&gt;If it doest not rectify your problem, please paste the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards and Best wishes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 May 2010 11:37:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/statement-is-not-accessible/m-p/6886927#M1479433</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-04T11:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: statement is not accessible</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/statement-is-not-accessible/m-p/6886928#M1479434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ritika,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem seems to be some formating problem.&lt;/P&gt;&lt;P&gt;Please check proper space settings in this conditional loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regds,&lt;/P&gt;&lt;P&gt;Anil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 May 2010 11:38:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/statement-is-not-accessible/m-p/6886928#M1479434</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-04T11:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: statement is not accessible</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/statement-is-not-accessible/m-p/6886929#M1479435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the quick response. &lt;/P&gt;&lt;P&gt;This the code i want to copy from old system to new. in se80 i have created and include in program SAPMV45A.&lt;/P&gt;&lt;P&gt;Let me know if any more details are required&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;constants: c_objectclas type cdpos-objectclas value 'VERKBELEG',
              c_tabname    type tabname          value 'VBAP',
              c_vbtyp_so   type vbak-vbtyp       value 'C',
              c_va02       type sy-tcode         value 'VA02',
              c_va02x      type sy-tcode         value 'VA02X'.
   types: begin of ty_cdpos,
            tabkey type cdpos-tabkey,
          end of ty_cdpos.
   types: begin of ty_vbap,                                
       posnr type vbap-posnr,                              
     end of ty_vbap.                                       
   data: t_cdpos      type standard table of ty_cdpos,
         st_cdpos     type ty_cdpos,
         t_vbap_curr  type standard table of ty_vbap,     
         st_vbap_curr type ty_vbap,                         
         w_high_posnr type posnr.
   if vbak-vbtyp  eq c_vbtyp_so
   and ( sy-tcode eq c_va02 or sy-tcode eq c_va02x ).
     refresh: t_cdpos.
     clear: w_high_posnr.
     select tabkey
       from cdpos
       into table t_cdpos
      where objectclas eq c_objectclas
        and objectid   eq vbak-vbeln
        and tabname    eq c_tabname.
     if sy-subrc eq 0
     and not t_cdpos[] is initial.
       sort t_cdpos by tabkey descending.
       read table t_cdpos into st_cdpos index 1.
       if sy-subrc eq 0.
         w_high_posnr = st_cdpos-tabkey+13(6).
         if w_high_posnr gt xvbap_high_posnr.
           xvbap_high_posnr = w_high_posnr.
         endif.
       endif.
     endif.                                                 
          refresh t_vbap_curr[].                           
     select posnr                                           
       from vbap                                            
       into table t_vbap_curr                               
      where vbeln eq vbak-vbeln.                           
     if sy-subrc eq 0                                    
     and not t_vbap_curr[] is initial.                     
       sort t_vbap_curr by posnr descending.               
       read table t_vbap_curr into st_vbap_curr index 1.   
       if sy-subrc eq 0                                     
       and st_vbap_curr-posnr gt xvbap_high_posnr.          
         xvbap_high_posnr = st_vbap_curr-posnr.            
       endif.                                               
     endif.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ritika&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: ritika red on May 4, 2010 12:42 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: ritika red on May 4, 2010 12:44 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 May 2010 11:42:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/statement-is-not-accessible/m-p/6886929#M1479435</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-04T11:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: statement is not accessible</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/statement-is-not-accessible/m-p/6886930#M1479436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you please format the code in readable format? It looks messy and difficult to understand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the error? Which &lt;STRONG&gt;IF&lt;/STRONG&gt; statement is not accessible. Please be specfic.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 May 2010 11:50:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/statement-is-not-accessible/m-p/6886930#M1479436</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-04T11:50:34Z</dc:date>
    </item>
    <item>
      <title>Re: statement is not accessible</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/statement-is-not-accessible/m-p/6886931#M1479437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This formatted code. &lt;/P&gt;&lt;P&gt;Code you please suggest something.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;constants: c_objectclas type cdpos-objectclas value 'VERKBELEG', 
                           c_tabname type tabname value 'VBAP', 
c_vbtyp_so type vbak-vbtyp value 'C', 
c_va02 type sy-tcode value 'VA02', 
c_va02x type sy-tcode value 'VA02X'.
 types: begin of ty_cdpos, 
tabkey type cdpos-tabkey,
 end of ty_cdpos. 
types: begin of ty_vbap, 
posnr type vbap-posnr, 
end of ty_vbap.
 data: t_cdpos type standard table of ty_cdpos, 
        st_cdpos type ty_cdpos, 
        t_vbap_curr type standard table of ty_vbap, 
st_vbap_curr type ty_vbap, 
w_high_posnr type posnr. 
if vbak-vbtyp eq c_vbtyp_so 
       and ( sy-tcode eq c_va02 or sy-tcode eq c_va02x ). 
refresh: t_cdpos.
 clear: w_high_posnr. 
select tabkey from cdpos into table t_cdpos 
where objectclas eq c_objectclas and objectid eq vbak-vbeln and tabname eq c_tabname. 
if sy-subrc eq 0 and not t_cdpos[] is initial. 
sort t_cdpos by tabkey descending. 
read table t_cdpos into st_cdpos index 1.
 if sy-subrc eq 0. 
w_high_posnr = st_cdpos-tabkey+13(6). 
if w_high_posnr gt xvbap_high_posnr. 
xvbap_high_posnr = w_high_posnr.
 endif.
 endif.
 endif.
 refresh t_vbap_curr[]. 
select posnr from vbap into table t_vbap_curr 
where vbeln eq vbak-vbeln. 
if sy-subrc eq 0 and not t_vbap_curr[] is initial. 
sort t_vbap_curr by posnr descending. 
read table t_vbap_curr into st_vbap_curr index 1.
 if sy-subrc eq 0 and st_vbap_curr-posnr gt xvbap_high_posnr. 
xvbap_high_posnr = st_vbap_curr-posnr.
 endif.
 endif.
 endif.&lt;/CODE&gt;&lt;/PRE&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;Ritika&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 May 2010 12:07:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/statement-is-not-accessible/m-p/6886931#M1479437</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-04T12:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: statement is not accessible</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/statement-is-not-accessible/m-p/6886932#M1479438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the issue/error you are facing in this code?&lt;/P&gt;&lt;P&gt;Which statement is not accessible?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 May 2010 12:10:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/statement-is-not-accessible/m-p/6886932#M1479438</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-04T12:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: statement is not accessible</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/statement-is-not-accessible/m-p/6886933#M1479439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;where in SAPMV45A, you put this code?  I believe its in any of the forms in the  MV45AFZZ include .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also let me know what is the error messgage you are getting ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;constants: c_objectclas type cdpos-objectclas value 'VERKBELEG', &lt;/P&gt;&lt;P&gt;           c_tabname type tabname value 'VBAP',&lt;/P&gt;&lt;P&gt;           c_vbtyp_so type vbak-vbtyp value 'C', &lt;/P&gt;&lt;P&gt;           c_va02 type sy-tcode value 'VA02',&lt;/P&gt;&lt;P&gt;           c_va02x type sy-tcode value 'VA02X'. " Let me know what is this T.code. ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of ty_cdpos, &lt;/P&gt;&lt;P&gt;       tabkey type cdpos-tabkey, &lt;/P&gt;&lt;P&gt;       end of ty_cdpos. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of ty_vbap,&lt;/P&gt;&lt;P&gt;       posnr type vbap-posnr,&lt;/P&gt;&lt;P&gt;       end of ty_vbap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: t_cdpos type standard table of ty_cdpos, &lt;/P&gt;&lt;P&gt;       st_cdpos type ty_cdpos, &lt;/P&gt;&lt;P&gt;       t_vbap_curr type standard table of ty_vbap, &lt;/P&gt;&lt;P&gt;      st_vbap_curr type ty_vbap, &lt;/P&gt;&lt;P&gt;      w_high_posnr type posnr. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if vbak-vbtyp eq c_vbtyp_so and ( sy-tcode eq c_va02 or sy-tcode eq c_va02x ).&lt;/P&gt;&lt;P&gt;  refresh: t_cdpos.&lt;/P&gt;&lt;P&gt;  clear: w_high_posnr. &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;  select tabkey &lt;/P&gt;&lt;P&gt;  from cdpos &lt;/P&gt;&lt;P&gt;  into table t_cdpos &lt;/P&gt;&lt;P&gt;  where objectclas eq c_objectclas &lt;/P&gt;&lt;P&gt;    and objectid eq vbak-vbeln&lt;/P&gt;&lt;P&gt;    and tabname eq c_tabname.&lt;/P&gt;&lt;P&gt; if sy-subrc eq 0 and not t_cdpos[] is initial. &lt;/P&gt;&lt;P&gt; sort t_cdpos by tabkey descending. &lt;/P&gt;&lt;P&gt; read table t_cdpos into st_cdpos index 1. &lt;/P&gt;&lt;P&gt; if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt; w_high_posnr = st_cdpos-tabkey+13(6). &lt;/P&gt;&lt;P&gt;  if w_high_posnr gt xvbap_high_posnr. &lt;/P&gt;&lt;P&gt;   xvbap_high_posnr = w_high_posnr. &lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt; endif. &lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;refresh t_vbap_curr[]. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select posnr from vbap &lt;/P&gt;&lt;P&gt;into table t_vbap_curr &lt;/P&gt;&lt;P&gt;where vbeln eq vbak-vbeln. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0 and not t_vbap_curr[] is initial. &lt;/P&gt;&lt;P&gt;sort t_vbap_curr by posnr descending. &lt;/P&gt;&lt;P&gt;read table t_vbap_curr into st_vbap_curr index 1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0 and st_vbap_curr-posnr gt xvbap_high_posnr. &lt;/P&gt;&lt;P&gt;xvbap_high_posnr = st_vbap_curr-posnr. &lt;/P&gt;&lt;P&gt;endif. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif. &lt;/P&gt;&lt;P&gt;endif.&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;Sai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 May 2010 12:11:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/statement-is-not-accessible/m-p/6886933#M1479439</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-04T12:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: statement is not accessible</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/statement-is-not-accessible/m-p/6886934#M1479440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is showing the line number of first if stmt.&lt;/P&gt;&lt;P&gt;Say Statement not accessible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes it is part of include which is part of MV45AFZZ.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have checked the code to me it looking same. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can code the exit thorugh se80 i believe of this could be the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 May 2010 12:30:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/statement-is-not-accessible/m-p/6886934#M1479440</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-04T12:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: statement is not accessible</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/statement-is-not-accessible/m-p/6886935#M1479441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;have you uncommented the MODULE names: ???&lt;/P&gt;&lt;P&gt;*MODULE ZZEXAMPLE OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I mean have you written it inside some OUTPUT module with name starting with ZZ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ags.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: ags on May 4, 2010 6:09 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 May 2010 12:38:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/statement-is-not-accessible/m-p/6886935#M1479441</guid>
      <dc:creator>agnihotro_sinha2</dc:creator>
      <dc:date>2010-05-04T12:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: statement is not accessible</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/statement-is-not-accessible/m-p/6886936#M1479442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;"yes it is part of include which is part of MV45AFZZ."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you put the name of the include ( Your Z*** include program ) in the MV45AFZZ program on the top.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thnaks,&lt;/P&gt;&lt;P&gt;Sai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 May 2010 12:50:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/statement-is-not-accessible/m-p/6886936#M1479442</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-04T12:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: statement is not accessible</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/statement-is-not-accessible/m-p/6886937#M1479443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have include names which needs to be copied to new system from old system.&lt;/P&gt;&lt;P&gt;It can be part of include or it can be part of user exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I m comparing se80 and coding.&lt;/P&gt;&lt;P&gt;Let me know if i m following the correct process&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;Ritika&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 May 2010 14:21:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/statement-is-not-accessible/m-p/6886937#M1479443</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-04T14:21:20Z</dc:date>
    </item>
  </channel>
</rss>

