<?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 unable to find error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-find-error/m-p/2726892#M632883</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear friends,&lt;/P&gt;&lt;P&gt;the following is the code i wrote, it is crossing the select statement, and giving sy-subrc = 0 , but  it  is getting struck at the update and never coming  out  , i  dont  know  what is wrong in the stmt,  can some one help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single * from vbuk into in_vbuk where VBELN  = '0088011467'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE VBUK SET: WBSTK  = 'C',&lt;/P&gt;&lt;P&gt;                 GBSTK  = 'C'&lt;/P&gt;&lt;P&gt;              WHERE VBELN  = '0088011467'.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write:/ ' error: the doc number for vbuk doesnot exist '.&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;thank you.&lt;/P&gt;&lt;P&gt;sanjana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Sep 2007 14:57:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-04T14:57:45Z</dc:date>
    <item>
      <title>unable to find error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-find-error/m-p/2726892#M632883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear friends,&lt;/P&gt;&lt;P&gt;the following is the code i wrote, it is crossing the select statement, and giving sy-subrc = 0 , but  it  is getting struck at the update and never coming  out  , i  dont  know  what is wrong in the stmt,  can some one help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single * from vbuk into in_vbuk where VBELN  = '0088011467'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE VBUK SET: WBSTK  = 'C',&lt;/P&gt;&lt;P&gt;                 GBSTK  = 'C'&lt;/P&gt;&lt;P&gt;              WHERE VBELN  = '0088011467'.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write:/ ' error: the doc number for vbuk doesnot exist '.&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;thank you.&lt;/P&gt;&lt;P&gt;sanjana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2007 14:57:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-find-error/m-p/2726892#M632883</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-04T14:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: unable to find error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-find-error/m-p/2726893#M632884</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;select single * from vbuk into table in_vbuk where VBELN = '0088011467'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE VBUK SET: WBSTK = 'C',&lt;/P&gt;&lt;P&gt;GBSTK = 'C'&lt;/P&gt;&lt;P&gt;WHERE VBELN = '0088011467'.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write:/ ' error: the doc number for vbuk doesnot exist '.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will work now&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; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2007 14:59:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-find-error/m-p/2726893#M632884</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-04T14:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: unable to find error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-find-error/m-p/2726894#M632885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you for the reply sudhir,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i  wanted  to make  sure  that  was the error, because, it  is  crossing over select  stmt and also has sy-subrc = 0,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one more point  is that, the above  code  which i wrote  perfectly  updated  in development,  but  is  giving the above error  only in production.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks  once  again for the reply.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2007 15:04:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-find-error/m-p/2726894#M632885</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-04T15:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: unable to find error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-find-error/m-p/2726895#M632886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Sanjana,&lt;/P&gt;&lt;P&gt;There is no error in the code and it should update the Document number '0088011467'. even you can check the UPDATE statment with the SY-SUBRC &lt;/P&gt;&lt;P&gt;&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; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2007 15:08:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-find-error/m-p/2726895#M632886</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-04T15:08:42Z</dc:date>
    </item>
    <item>
      <title>Re: unable to find error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-find-error/m-p/2726896#M632887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;but never change SAP-Data in this way in product-system?!?!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Dieter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2007 15:11:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-find-error/m-p/2726896#M632887</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-04T15:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: unable to find error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-find-error/m-p/2726897#M632888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi sanjana&lt;/P&gt;&lt;P&gt; what sudhir sid is correct as : if select fails u don't need to use the update and just display the no record info or err message &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;well please awards points(atlest to sudhir ) (-:  if the answer is helpful .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2007 15:12:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-find-error/m-p/2726897#M632888</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-04T15:12:02Z</dc:date>
    </item>
    <item>
      <title>Re: unable to find error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-find-error/m-p/2726898#M632889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you friends  for  so many replies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;firstly  sudhir, to  check for sy-subrc at update command,  it  should  first  cross over that update command, but  it  is  not,&lt;/P&gt;&lt;P&gt;it  is  just  getting struck  not  moving  from there infinitely, so  we cant  check the sy-subrc,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;secondly, grohn, yes  you  are right, we  should never  do  this  way in production, but&lt;/P&gt;&lt;P&gt;we  had  multiple trials  done through various  ways, and finally, a conference  agreed  this way, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks again for the replies.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2007 15:21:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-find-error/m-p/2726898#M632889</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-04T15:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: unable to find error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-find-error/m-p/2726899#M632890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi  grohn,&lt;/P&gt;&lt;P&gt;by  meaning that  multiple  trials, we tried table  maint  , etc..&lt;/P&gt;&lt;P&gt;but  every time  we got the same  problem, access denied,&lt;/P&gt;&lt;P&gt;might be  that  this  time  too, it  is  giving the same error, thats  why  it  is  getting struck  at  production only.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2007 15:23:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-find-error/m-p/2726899#M632890</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-04T15:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: unable to find error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-find-error/m-p/2726900#M632891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I hope SAP was included in that conference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that your code is trying to set WBSTK = 'C' for &amp;lt;b&amp;gt;every order in your system&amp;lt;/b&amp;gt;. Is that your intention?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2007 15:32:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-find-error/m-p/2726900#M632891</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-04T15:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: unable to find error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-find-error/m-p/2726901#M632892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi  rob, &lt;/P&gt;&lt;P&gt;thanks for the reply,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;actually my intention was to update only  that  perticular record with  the given vbeln, &lt;/P&gt;&lt;P&gt;by changing the WBSTK to 'C'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2007 16:23:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-find-error/m-p/2726901#M632892</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-04T16:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: unable to find error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-find-error/m-p/2726902#M632893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Of course, but since it is trying to update all records, that's why it is taking so long.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you saying that you are running this in your production system without testing in QA or development?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you check with SAP before setting out on this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2007 16:31:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-find-error/m-p/2726902#M632893</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-04T16:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: unable to find error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-find-error/m-p/2726903#M632894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See the oss notes and we had same type of requirement :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Symptom&lt;/P&gt;&lt;P&gt;The goods issue for a delivery was posted and a material document created. However, the billing document for the delivery cannot be created because the system generates a message that the delivery is not yet posted for the goods issue.&lt;/P&gt;&lt;P&gt;However, the material document is contained in the document flow of the delivery.&lt;/P&gt;&lt;P&gt;Additional key words&lt;/P&gt;&lt;P&gt;Goods issue, GI, VL01, VL02, goods movement status, post GI, delivery, delivery note, VBUK-WBSTK, VBUP-WBSTA.&lt;/P&gt;&lt;P&gt;Cause and prerequisites&lt;/P&gt;&lt;P&gt;The goods movement status on header level (VBUK-WBSTK) and on item level (VBUP-WBSTA) was not set to 'C', but to 'A'.&lt;/P&gt;&lt;P&gt;Solution&lt;/P&gt;&lt;P&gt;With the ABAP/4 report specified below you can convert the goods movement status to 'C'. You can then bill the delivery with transaction VF01.&lt;/P&gt;&lt;P&gt;Preconditions:&lt;/P&gt;&lt;P&gt;1. The goods issue actually must have been carried out.&lt;/P&gt;&lt;P&gt;2. After executing the report, you should check the required conversion    only with transaction SE16.&lt;/P&gt;&lt;P&gt;Source code corrections&lt;/P&gt;&lt;P&gt;REPORT ZZBRE003.&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                                                                     *&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  This report changes the goods movement status for delivery.        *&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  You can change the status from A to C or vice versa. (VBUP + VBUK) *&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                                                                     *&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Notice: All positions and header will get the same status !        *&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ===========================================================        *&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                                                                     *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                                                                     *&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  After changing the status with this report do not use VL02 / VL03  *&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  to watch the effect. This would change the goods movement status   *&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  again!!!!!                                                         *&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Please use transaction SE16!                                       *&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                                                                     *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                                                                     *&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Invoice for this delivery should be done with VF01!                *&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                                                                     *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                                                                     *&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Please check this report with an example in your development system*&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  before using it in productive system!                              *&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                                                                     *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;TABLES: VBUP,&lt;/P&gt;&lt;P&gt;        VBUK,&lt;/P&gt;&lt;P&gt;        LIPS,&lt;/P&gt;&lt;P&gt;        VBFA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;input parameters filled by user&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;PARAMETERS: BELNR LIKE LIKP-VBELN,      "BELNR = delivery number&lt;/P&gt;&lt;P&gt;            WBSTS LIKE VBUP-WBSTA.      "WBSTS = goods movement status&lt;/P&gt;&lt;P&gt;DATA:       COUNTER1 TYPE I,&lt;/P&gt;&lt;P&gt;            COUNTER2 TYPE I.&lt;/P&gt;&lt;P&gt;CLEAR:      COUNTER1, COUNTER2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRANSLATE WBSTS TO UPPER CASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;has user filled the field for delivery note?&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;IF BELNR IS INITIAL.&lt;/P&gt;&lt;P&gt;   FORMAT COLOR 6.&lt;/P&gt;&lt;P&gt;   FORMAT INVERSE ON.&lt;/P&gt;&lt;P&gt;   SKIP.&lt;/P&gt;&lt;P&gt;   WRITE: 'Please insert number of delivery note'.&lt;/P&gt;&lt;P&gt;   EXIT.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;change goods movement type in vbuk&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;SELECT SINGLE * FROM VBUK WHERE VBELN EQ BELNR.&lt;/P&gt;&lt;P&gt;       IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;       VBUK-WBSTK = WBSTS.&lt;/P&gt;&lt;P&gt;       UPDATE VBUK.&lt;/P&gt;&lt;P&gt;       ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;change goods movement type in vbup&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;SELECT * FROM VBUP WHERE VBELN EQ BELNR.&lt;/P&gt;&lt;P&gt;       IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;       VBUP-WBSTA = WBSTS.&lt;/P&gt;&lt;P&gt;       COUNTER1 = COUNTER1 + 1.&lt;/P&gt;&lt;P&gt;       UPDATE VBUP.&lt;/P&gt;&lt;P&gt;       ENDIF.&lt;/P&gt;&lt;P&gt;ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;show the result to user&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;FORMAT COLOR 1.&lt;/P&gt;&lt;P&gt;WRITE: 'Delivery: ', BELNR.&lt;/P&gt;&lt;P&gt;SKIP.&lt;/P&gt;&lt;P&gt;FORMAT COLOR 3.&lt;/P&gt;&lt;P&gt;WRITE: / 'Number of postions:', (3) COUNTER1.&lt;/P&gt;&lt;P&gt;WRITE: 'changed to goods movement status', WBSTS.&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;Seshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2007 17:21:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-find-error/m-p/2726903#M632894</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-04T17:21:02Z</dc:date>
    </item>
    <item>
      <title>Re: unable to find error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-find-error/m-p/2726904#M632895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi rob and seshu,&lt;/P&gt;&lt;P&gt;thanks for replies,&lt;/P&gt;&lt;P&gt;but rob,&lt;/P&gt;&lt;P&gt;as  you  were saying its updating all the records, but  when i checked there were just one record to be updated with  this  vbeln value. and also i  successfully  updated the development system, with in a fraction of second. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and seshu&lt;/P&gt;&lt;P&gt;regarding your program which u gave , &lt;/P&gt;&lt;P&gt;actually, i was approached by  functional people and just asked me the above requirement, gave me no more  details  , and so  might  be i cannot  use  your  program, thak you very much for your  precious reply,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2007 17:53:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-find-error/m-p/2726904#M632895</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-04T17:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: unable to find error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-find-error/m-p/2726905#M632896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sanjana - because of the colon and comma, the statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
UPDATE VBUK SET: WBSTK = 'C',
                 GBSTK = 'C'
  WHERE VBELN = '0088011467'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is interpreted as the following two statements:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
UPDATE VBUK SET WBSTK = 'C'.

UPDATE VBUK SET GBSTK = 'C'
  WHERE VBELN = '0088011467'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the WHERE is only on the second statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see from an earlier response that you did test in your development system. Please check your results there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2007 18:16:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-find-error/m-p/2726905#M632896</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-04T18:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: unable to find error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-find-error/m-p/2726906#M632897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sanjana - don't be so quick to dismiss the program shown by Seshu. It has one important point. It is updating two tables. You are only updating one. It is very important to keep SAP tables in synch with each other.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just because functinal people gave you the specs doesn't mean they have thought the situation through.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I were you, I'd close this thread and open an OSS message with your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS - Seshu - notes are SAP copyright and I don't think were supposed to post them.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2007 19:27:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-find-error/m-p/2726906#M632897</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-04T19:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: unable to find error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-find-error/m-p/2726907#M632898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi rob,&lt;/P&gt;&lt;P&gt;you are right,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i changed  it to  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single * from vbuk where VBELN  = '0088011467'.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE VBUK SET WBSTK  = 'C'&lt;/P&gt;&lt;P&gt;                 GBSTK  = 'C'&lt;/P&gt;&lt;P&gt;              WHERE VBELN  = '0088011467'.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;write:/ ' error: the doc number for vbuk doesnot exist '.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i removed the colon and comma,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it  should  work  correctly  right,&lt;/P&gt;&lt;P&gt;i  only  need to  change the data of that specific vbeln, &lt;/P&gt;&lt;P&gt;remaining  untouched.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2007 21:35:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-find-error/m-p/2726907#M632898</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-04T21:35:55Z</dc:date>
    </item>
    <item>
      <title>Re: unable to find error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-find-error/m-p/2726908#M632899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No - what about VBUP?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2007 21:40:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-find-error/m-p/2726908#M632899</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-04T21:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: unable to find error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-find-error/m-p/2726909#M632900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi  rob,&lt;/P&gt;&lt;P&gt;thanks  for the reply,&lt;/P&gt;&lt;P&gt;i made similar changes to VBUP ,&lt;/P&gt;&lt;P&gt;the syntax and remaining  are  all correct  right?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2007 22:36:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-find-error/m-p/2726909#M632900</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-04T22:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: unable to find error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-find-error/m-p/2726910#M632901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sanjana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just remove hardcode values like vbeln = 'value',instead of passing hardcode values,just use selection-screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I saw your code and looks good.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I noted ,hereafter i will not paste oss message,Thank you &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2007 22:46:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-find-error/m-p/2726910#M632901</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-04T22:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: unable to find error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-find-error/m-p/2726911#M632902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi seshu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i was specifically  asked to put the value  , so that no other record  is  touched  even by chance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2007 03:43:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-find-error/m-p/2726911#M632902</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-05T03:43:41Z</dc:date>
    </item>
  </channel>
</rss>

