<?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 report in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/1807908#M346645</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;I have one requirement.&lt;/P&gt;&lt;P&gt;I am dealing with VA02.&lt;/P&gt;&lt;P&gt;if anybody wants to change the payment terms it has show the message 'you are not authorised to change'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for this i have  written the code like this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF t_vbkd OCCURS 100,&lt;/P&gt;&lt;P&gt;        vbeln LIKE vbkd-vbeln,&lt;/P&gt;&lt;P&gt;        posnr LIKE vbkd-posnr,&lt;/P&gt;&lt;P&gt;        zterm LIKE vbkd-zterm,&lt;/P&gt;&lt;P&gt;       END OF t_vbkd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'Z_0CS_USEREXIT_CHECK'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    p_include        = 'ZEGVI_MV45AFZZ_PAYMENT_TERMS'&lt;/P&gt;&lt;P&gt;    p_form           = 'USEREXIT_MOVE_FIELD_TO_VBKD'&lt;/P&gt;&lt;P&gt;    p_key1           = sy-tcode&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  P_KEY2           =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  P_KEY3           =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    p_val1           = 'VA02'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  P_VAL2           =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  P_VAL3           =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   not_active       = 1&lt;/P&gt;&lt;P&gt;   OTHERS           = 2         .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;  SELECT vbeln posnr zterm&lt;/P&gt;&lt;P&gt;  FROM vbkd&lt;/P&gt;&lt;P&gt;  into table t_vbkd&lt;/P&gt;&lt;P&gt;  WHERE vbeln EQ vbak-vbeln.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the problem is after select query i have to compare the old value of zterm&lt;/P&gt;&lt;P&gt; ( meanst_vbkd-zterm)  with  the newly changed value of zterm if the user enters the SAVE after changing zterm on VA02.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please tell me how to write code for this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Dec 2006 09:43:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-29T09:43:47Z</dc:date>
    <item>
      <title>report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/1807908#M346645</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;I have one requirement.&lt;/P&gt;&lt;P&gt;I am dealing with VA02.&lt;/P&gt;&lt;P&gt;if anybody wants to change the payment terms it has show the message 'you are not authorised to change'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for this i have  written the code like this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF t_vbkd OCCURS 100,&lt;/P&gt;&lt;P&gt;        vbeln LIKE vbkd-vbeln,&lt;/P&gt;&lt;P&gt;        posnr LIKE vbkd-posnr,&lt;/P&gt;&lt;P&gt;        zterm LIKE vbkd-zterm,&lt;/P&gt;&lt;P&gt;       END OF t_vbkd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'Z_0CS_USEREXIT_CHECK'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    p_include        = 'ZEGVI_MV45AFZZ_PAYMENT_TERMS'&lt;/P&gt;&lt;P&gt;    p_form           = 'USEREXIT_MOVE_FIELD_TO_VBKD'&lt;/P&gt;&lt;P&gt;    p_key1           = sy-tcode&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  P_KEY2           =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  P_KEY3           =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    p_val1           = 'VA02'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  P_VAL2           =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  P_VAL3           =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   not_active       = 1&lt;/P&gt;&lt;P&gt;   OTHERS           = 2         .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;  SELECT vbeln posnr zterm&lt;/P&gt;&lt;P&gt;  FROM vbkd&lt;/P&gt;&lt;P&gt;  into table t_vbkd&lt;/P&gt;&lt;P&gt;  WHERE vbeln EQ vbak-vbeln.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the problem is after select query i have to compare the old value of zterm&lt;/P&gt;&lt;P&gt; ( meanst_vbkd-zterm)  with  the newly changed value of zterm if the user enters the SAVE after changing zterm on VA02.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please tell me how to write code for this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Dec 2006 09:43:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/1807908#M346645</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-29T09:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/1807909#M346646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;  Use the exit include MV45AFZZ to write your code.&lt;/P&gt;&lt;P&gt; i.e. in this include write code to compare the values of t_vbkd-zterm and VBKD-ZTERM( or use the related screen field name) values and raise the appropriate error message.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Srini&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Dec 2006 09:53:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/1807909#M346646</guid>
      <dc:creator>srinivas_akiri</dc:creator>
      <dc:date>2006-12-29T09:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/1807910#M346647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1.Check out if there is any parameter id assigned to that field&lt;/P&gt;&lt;P&gt;2.If it is there then try with&lt;/P&gt;&lt;P&gt;       GET PARAMETER ID 'XXX' field v_var.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now ur v_var will contain the old value&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Dec 2006 09:53:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/1807910#M346647</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-29T09:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/1807911#M346648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks to all&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Dec 2006 12:24:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/1807911#M346648</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-29T12:24:37Z</dc:date>
    </item>
  </channel>
</rss>

