<?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: sap scripts in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-scripts/m-p/2052859#M423418</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i think by default SAPFM06P print prog assigned to MEDRUCK..&lt;/P&gt;&lt;P&gt;just check &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INCLUDE FM06PF01&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INCLUDE FM06PF02&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;shiba dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Mar 2007 05:02:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-19T05:02:38Z</dc:date>
    <item>
      <title>sap scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-scripts/m-p/2052856#M423415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   i ve a task to add taxes in purchase order form for every material ,  evrything is fine with po form except taxes , how can i do that and in which include i can do that and help me with some coding for calculating taxes for each material.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Mar 2007 13:45:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-scripts/m-p/2052856#M423415</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-17T13:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: sap scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-scripts/m-p/2052857#M423416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kannan,&lt;/P&gt;&lt;P&gt; Find out the field for tax and use AT NEW statement. For every new meterial SUM. Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2007 04:47:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-scripts/m-p/2052857#M423416</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-19T04:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: sap scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-scripts/m-p/2052858#M423417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;Write an external subroutine to get the tax related amounts for that PO and Material;&lt;/P&gt;&lt;P&gt;Two ways to get them:&lt;/P&gt;&lt;P&gt;first check in KONV table by passing the EKKO-KNUMV field to the table. search by KSCHL field whether the required taxes exist in that table or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;second method:&lt;/P&gt;&lt;P&gt;With the help of condition type for that Taxes(KSCHL), Vendor(LIFNR) and Material(MATERIAL) taxes will be stored in some A* tables(Like A021), pass these 3 fields and get the KNUMH field and pass that field to KONP table and get the Tax values:&lt;/P&gt;&lt;P&gt;see the sample routine to be written in script and program:&lt;/P&gt;&lt;P&gt;REPORT ZMPO1 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form get_freight tables in_par structure itcsy out_par structure itcsy.&lt;/P&gt;&lt;P&gt; tables: ekko,konv,t685t.&lt;/P&gt;&lt;P&gt; data: begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;         ebeln like ekko-ebeln,&lt;/P&gt;&lt;P&gt;         knumv like ekko-knumv,&lt;/P&gt;&lt;P&gt;       end of itab.&lt;/P&gt;&lt;P&gt; data: begin of itab1 occurs 0,&lt;/P&gt;&lt;P&gt;         knumv like konv-knumv,&lt;/P&gt;&lt;P&gt;         kposn like konv-kposn,&lt;/P&gt;&lt;P&gt;         kschl like konv-kschl,&lt;/P&gt;&lt;P&gt;         kbetr like konv-kbetr,&lt;/P&gt;&lt;P&gt;         waers like konv-waers,&lt;/P&gt;&lt;P&gt;         kwert like konv-kwert,&lt;/P&gt;&lt;P&gt;       end of itab1.&lt;/P&gt;&lt;P&gt; data: begin of iout occurs 0,&lt;/P&gt;&lt;P&gt;         kschl like konv-kschl,&lt;/P&gt;&lt;P&gt;         vtext like t685t-vtext,&lt;/P&gt;&lt;P&gt;         kbetr like konv-kbetr,&lt;/P&gt;&lt;P&gt;         kwert like konv-kwert,&lt;/P&gt;&lt;P&gt;       end of iout.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; data v_po like ekko-ebeln.&lt;/P&gt;&lt;P&gt; read table in_par with key 'EKKO-EBELN'.&lt;/P&gt;&lt;P&gt; if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;   v_po = in_par-value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   select&lt;/P&gt;&lt;P&gt;     ebeln&lt;/P&gt;&lt;P&gt;     knumv&lt;/P&gt;&lt;P&gt;  from ekko &lt;/P&gt;&lt;P&gt;  into table itab&lt;/P&gt;&lt;P&gt;  where ebeln = v_po.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    loop at itab.&lt;/P&gt;&lt;P&gt;      select&lt;/P&gt;&lt;P&gt;        knumv&lt;/P&gt;&lt;P&gt;        kposn&lt;/P&gt;&lt;P&gt;        kschl&lt;/P&gt;&lt;P&gt;        kbetr&lt;/P&gt;&lt;P&gt;        waers&lt;/P&gt;&lt;P&gt;        kwert&lt;/P&gt;&lt;P&gt;      into table itab1&lt;/P&gt;&lt;P&gt;      from konv&lt;/P&gt;&lt;P&gt;      where knumv = itab-knumv and&lt;/P&gt;&lt;P&gt;            kappl = 'M'.&lt;/P&gt;&lt;P&gt;    endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    loop at itab1.&lt;/P&gt;&lt;P&gt;      if itab1-kposn &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;        select single * from t685t&lt;/P&gt;&lt;P&gt;                          where kschl = itab1-kschl&lt;/P&gt;&lt;P&gt;                            and kappl = 'M'&lt;/P&gt;&lt;P&gt;                            and spras = 'EN'.&lt;/P&gt;&lt;P&gt;        iout-vtext = t685t-vtext.&lt;/P&gt;&lt;P&gt;        iout-kschl = itab1-kschl.&lt;/P&gt;&lt;P&gt;        iout-kbetr = itab1-kbetr.&lt;/P&gt;&lt;P&gt;        iout-kwert = itab1-kwert.&lt;/P&gt;&lt;P&gt;        append iout.&lt;/P&gt;&lt;P&gt;        clear iout.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;    endloop.&lt;/P&gt;&lt;P&gt;    sort itab1 by kposn.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    loop at iout.&lt;/P&gt;&lt;P&gt;      sort iout by kschl.&lt;/P&gt;&lt;P&gt;      if ( iout-kschl eq 'GSDC' OR&lt;/P&gt;&lt;P&gt;           iout-kschl eq 'GSFR' OR&lt;/P&gt;&lt;P&gt;           iout-kschl eq 'GSIR' ).&lt;/P&gt;&lt;P&gt;        at end of kschl.&lt;/P&gt;&lt;P&gt;          read table iout index sy-tabix.&lt;/P&gt;&lt;P&gt;          sum.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         write:/ iout-kschl,iout-vtext,iout-kwert.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      out_par-name = 'A1'.&lt;/P&gt;&lt;P&gt;      out_par-value = iout-vtext.&lt;/P&gt;&lt;P&gt;      append out_par.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      out_par-name = 'A2'.&lt;/P&gt;&lt;P&gt;      out_par-value = iout-kwert.&lt;/P&gt;&lt;P&gt;      append out_par.&lt;/P&gt;&lt;P&gt;          endat.&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;      endloop.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IN THE FORM I AM WRITING THIS CODE.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/:DEFINE &amp;amp;A1&amp;amp; = ' '&lt;/P&gt;&lt;P&gt;/:DEFINE &amp;amp;A2&amp;amp; = ' '&lt;/P&gt;&lt;P&gt;/:PERFORM GET_FREIGHT IN PROGRAM ZMFORM_PO1&lt;/P&gt;&lt;P&gt;/:USING &amp;amp;EKKO-EBELN&amp;amp;&lt;/P&gt;&lt;P&gt;/:CHANGING &amp;amp;A1&amp;amp;&lt;/P&gt;&lt;P&gt;/:CHANGING &amp;amp;A2&amp;amp;&lt;/P&gt;&lt;P&gt;/:ENDPERFORM&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;&amp;amp;A1&amp;amp;&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;&amp;amp;A2&amp;amp;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This Code is to be written in the PO form under ADDRESS window.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/:DEFINE &amp;amp;A1&amp;amp; = ' '&lt;/P&gt;&lt;P&gt;/:DEFINE &amp;amp;A2&amp;amp; = ' '&lt;/P&gt;&lt;P&gt;/:DEFINE &amp;amp;A3&amp;amp; = ' '&lt;/P&gt;&lt;P&gt;/:DEFINE &amp;amp;A4&amp;amp; = ' '&lt;/P&gt;&lt;P&gt;/:DEFINE &amp;amp;A5&amp;amp; = ' '&lt;/P&gt;&lt;P&gt;/:DEFINE &amp;amp;A6&amp;amp; = ' '&lt;/P&gt;&lt;P&gt;/:PERFORM GET_VENDOR IN PROGRAM ZMFORM_PO&lt;/P&gt;&lt;P&gt;/:USING &amp;amp;EKKO-EBELN&amp;amp;&lt;/P&gt;&lt;P&gt;/:CHANGING &amp;amp;A1&amp;amp;&lt;/P&gt;&lt;P&gt;/:CHANGING &amp;amp;A2&amp;amp;&lt;/P&gt;&lt;P&gt;/:CHANGING &amp;amp;A3&amp;amp;&lt;/P&gt;&lt;P&gt;/:CHANGING &amp;amp;A4&amp;amp;&lt;/P&gt;&lt;P&gt;/:CHANGING &amp;amp;A5&amp;amp;&lt;/P&gt;&lt;P&gt;/:CHANGING &amp;amp;A6&amp;amp;&lt;/P&gt;&lt;P&gt;/:ENDPERFORM&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;&amp;amp;A1&amp;amp;&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;&amp;amp;A2&amp;amp;&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;&amp;amp;A3&amp;amp;&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;&amp;amp;A4&amp;amp;&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;&amp;amp;A5&amp;amp;&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;&amp;amp;A6&amp;amp;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if useful.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2007 04:54:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-scripts/m-p/2052858#M423417</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-19T04:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: sap scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-scripts/m-p/2052859#M423418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i think by default SAPFM06P print prog assigned to MEDRUCK..&lt;/P&gt;&lt;P&gt;just check &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INCLUDE FM06PF01&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INCLUDE FM06PF02&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;shiba dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2007 05:02:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-scripts/m-p/2052859#M423418</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-19T05:02:38Z</dc:date>
    </item>
  </channel>
</rss>

