<?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 Requirement Routine in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/requirement-routine/m-p/8624691#M1664240</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have written a routine for requirement-pricing.&lt;/P&gt;&lt;P&gt;it is working fine, it calculate value of z condition type depending on other condition values record from ztables and quantity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but that routine is getting executed every time means for every sales process,&lt;/P&gt;&lt;P&gt;now if a sales order is created or changed it will calculate value of z cond type depending on values present in ztable at that instant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;same thing happen for invoice, now what i want once invoice is made, i.e. vf01 is saved my routine should not get executed for that invoice again, including its delivey and sales order or scheduling agreement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope i am clear in explaining where i am getting trouble,&lt;/P&gt;&lt;P&gt;please suggest if anyone has idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Amar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Feb 2012 10:58:32 GMT</pubDate>
    <dc:creator>former_member925838</dc:creator>
    <dc:date>2012-02-29T10:58:32Z</dc:date>
    <item>
      <title>Requirement Routine</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/requirement-routine/m-p/8624691#M1664240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have written a routine for requirement-pricing.&lt;/P&gt;&lt;P&gt;it is working fine, it calculate value of z condition type depending on other condition values record from ztables and quantity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but that routine is getting executed every time means for every sales process,&lt;/P&gt;&lt;P&gt;now if a sales order is created or changed it will calculate value of z cond type depending on values present in ztable at that instant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;same thing happen for invoice, now what i want once invoice is made, i.e. vf01 is saved my routine should not get executed for that invoice again, including its delivey and sales order or scheduling agreement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope i am clear in explaining where i am getting trouble,&lt;/P&gt;&lt;P&gt;please suggest if anyone has idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Amar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Feb 2012 10:58:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/requirement-routine/m-p/8624691#M1664240</guid>
      <dc:creator>former_member925838</dc:creator>
      <dc:date>2012-02-29T10:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: Requirement Routine</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/requirement-routine/m-p/8624692#M1664241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;restrict routin for transaction level like check sy-tcode = 'VF01'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Feb 2012 11:03:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/requirement-routine/m-p/8624692#M1664241</guid>
      <dc:creator>former_member194152</dc:creator>
      <dc:date>2012-02-29T11:03:01Z</dc:date>
    </item>
    <item>
      <title>Re: Requirement Routine</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/requirement-routine/m-p/8624693#M1664242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for your reply,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, i have done that by checking vf02 and vf03.&lt;/P&gt;&lt;P&gt;but now what problem is if someone open closed sales order for reference it will again calculate that zcondition depending on current data. i want everything blocked once invoice for that cycle is created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Amar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Feb 2012 11:13:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/requirement-routine/m-p/8624693#M1664242</guid>
      <dc:creator>former_member925838</dc:creator>
      <dc:date>2012-02-29T11:13:05Z</dc:date>
    </item>
    <item>
      <title>Re: Requirement Routine</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/requirement-routine/m-p/8624694#M1664243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are checking for VF02 and VF03 so close order will always execute the piece of code, but if you check with VF01 then an order can create once only, so second time that routine will not execute&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Feb 2012 11:19:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/requirement-routine/m-p/8624694#M1664243</guid>
      <dc:creator>former_member194152</dc:creator>
      <dc:date>2012-02-29T11:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: Requirement Routine</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/requirement-routine/m-p/8624695#M1664244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok means you are saying if i check it against vf01 then the code will not execute for any other sale cycle including  vf02 vf03 vl02n vl03n after saving invoice?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Feb 2012 11:38:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/requirement-routine/m-p/8624695#M1664244</guid>
      <dc:creator>former_member925838</dc:creator>
      <dc:date>2012-02-29T11:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: Requirement Routine</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/requirement-routine/m-p/8624696#M1664245</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;Try &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-TCODE = 'VF01'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Your code&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&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;If sy-tcode is not equal to VF01, it will not execute the code at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Harish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Feb 2012 11:47:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/requirement-routine/m-p/8624696#M1664245</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-29T11:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: Requirement Routine</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/requirement-routine/m-p/8624697#M1664246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gagan,&lt;/P&gt;&lt;P&gt;I have included vf01 but it is still executing for closed sales orders, it is not just executing for vf01,vf02 and vf03.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Feb 2012 12:10:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/requirement-routine/m-p/8624697#M1664246</guid>
      <dc:creator>former_member925838</dc:creator>
      <dc:date>2012-02-29T12:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: Requirement Routine</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/requirement-routine/m-p/8624698#M1664247</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;&lt;/P&gt;&lt;P&gt;then write a select statement to fetch the data from table &lt;STRONG&gt;VBFA&lt;/STRONG&gt; check whether invoice is done for the sales order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if invoice is created don't execute the code.&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;Sateesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Feb 2012 14:48:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/requirement-routine/m-p/8624698#M1664247</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-29T14:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: Requirement Routine</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/requirement-routine/m-p/8624699#M1664248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not getting you exactly, routine will always execute weather it will VF01,VF02 or VF03, but if your code is written in prior check like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-tcode = 'VF01' &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;your code&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then your code will not execute for VF02 and VF03 or closed invoice display, its doesn;t matter if routine is executing, but aim is your code should not execute, isn't it what u are looking for?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2012 06:41:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/requirement-routine/m-p/8624699#M1664248</guid>
      <dc:creator>former_member194152</dc:creator>
      <dc:date>2012-03-01T06:41:02Z</dc:date>
    </item>
    <item>
      <title>Re: Requirement Routine</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/requirement-routine/m-p/8624700#M1664249</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;&lt;/P&gt;&lt;P&gt;are able to restrict users from changing the SO once invoice raised for it ? , if you able to do it then you wont have any issues ...&lt;/P&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;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2012 06:47:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/requirement-routine/m-p/8624700#M1664249</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-01T06:47:22Z</dc:date>
    </item>
    <item>
      <title>Re: Requirement Routine</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/requirement-routine/m-p/8624701#M1664250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;thanks gagan and prabhu for the replies.&lt;/P&gt;&lt;P&gt;yes actually i was thinking wrong about what is happening, i will tell u what exact my requirement is..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for a material price is maintained for PR00 and ZCON.&lt;/P&gt;&lt;P&gt;what i need to do is fetch 1 value from ztable depending on material let say zvalue then i need to do&lt;/P&gt;&lt;P&gt;ZCON = (PR00 - ZCON + ZVALUE ) * quantity ( all are maintained in system)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now i get new value for zcon, which i need to save while VF01, actually i was working in wrong direction for solving problem the problem is not with TCODE vf01 or vf02 or anything else, what happening is when I do VF01 new value for ZCON is calculated and displayed. but when invoice is saved only the actual value of ZCON which is already maintained is saved in database not the one which i calculate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg:  PR00 - 100&lt;/P&gt;&lt;P&gt;      ZCON - 50 &lt;/P&gt;&lt;P&gt;     ZVALUE - 10&lt;/P&gt;&lt;P&gt;    quantity - 5 .&lt;/P&gt;&lt;P&gt;i need ZCON  rate as 60 and amount 300 after routine execution&lt;/P&gt;&lt;P&gt;actual is 50 and 250.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i do vf01 it displays 60 300&lt;/P&gt;&lt;P&gt;and saves 50 250?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am posting my routine here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM KOBED_604.&lt;/P&gt;&lt;P&gt;*{   INSERT         DEVK900117                                        1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: it_komv TYPE TABLE OF komv,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         wa_komv TYPE komv,&lt;/P&gt;&lt;P&gt;         kbetr TYPE kbetr,&lt;/P&gt;&lt;P&gt;         fkbetr TYPE kbetr,&lt;/P&gt;&lt;P&gt;         fkwert TYPE kwert,&lt;/P&gt;&lt;P&gt;         vbeln TYPE vbfa-vbeln,&lt;/P&gt;&lt;P&gt;         flag TYPE c,&lt;/P&gt;&lt;P&gt;         kwert TYPE kwert.&lt;/P&gt;&lt;P&gt;        amt TYPE zprice-rate.&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;    if sy-tcode ne 'VF02'.&lt;/P&gt;&lt;P&gt;      if sy-tcode ne 'VF03'.&lt;/P&gt;&lt;P&gt;       it_komv[] = tkomv[].&lt;/P&gt;&lt;P&gt;     if it_komv[] IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;    loop at tkomv WHERE kschl = 'ZROH'.&lt;/P&gt;&lt;P&gt;      kbetr = tkomv-kbetr.&lt;/P&gt;&lt;P&gt;      kwert = tkomv-kwert.&lt;/P&gt;&lt;P&gt;      READ TABLE it_komv INTO wa_komv with key kschl = 'ZPR0' kposn = tkomv-kposn.&lt;/P&gt;&lt;P&gt;     select single rate from zprice into rate where matnr = komp-matnr.&lt;/P&gt;&lt;P&gt;      fkbetr = wa_komv-kbetr - kbetr + rate..&lt;/P&gt;&lt;P&gt;      fkwert = fkbetr * komp-MGLME.&lt;/P&gt;&lt;P&gt;      tkomv-kbetr = fkbetr.&lt;/P&gt;&lt;P&gt;      tkomv-kwert = fkwert / 1000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     BREAK abapuser.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      MODIFY tkomv.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;*&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;   endif.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   sy-subrc = 0.&lt;/P&gt;&lt;P&gt;*}   INSERT&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2012 07:18:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/requirement-routine/m-p/8624701#M1664250</guid>
      <dc:creator>former_member925838</dc:creator>
      <dc:date>2012-03-01T07:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: Requirement Routine</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/requirement-routine/m-p/8624702#M1664251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can anyone help?&lt;/P&gt;&lt;P&gt;what might be the problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2012 09:16:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/requirement-routine/m-p/8624702#M1664251</guid>
      <dc:creator>former_member925838</dc:creator>
      <dc:date>2012-03-01T09:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: Requirement Routine</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/requirement-routine/m-p/8624703#M1664252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2012 13:04:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/requirement-routine/m-p/8624703#M1664252</guid>
      <dc:creator>former_member925838</dc:creator>
      <dc:date>2012-03-01T13:04:23Z</dc:date>
    </item>
  </channel>
</rss>

