<?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 A/R User Exit Spec and code in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-r-user-exit-spec-and-code/m-p/1637547#M284179</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The spec -&lt;/P&gt;&lt;HR originaltext="----------------------------------------------" /&gt;&lt;P&gt;1.	Canadian tax - currently based on Freight type:   Read the country(?) Ship-from (plant jurisdiction) to Ship-to(customer jurisdiction) and the inco term on the line item of the sales order and if it's not equal to 'DDP' the line item tax classification will be set to '0' exempt. (This is freight that comes into Canada from the US) &lt;/P&gt;&lt;P&gt;We will look at the shipto and shipfrom txjcd on the sales order document and billing document along with the inco term logic and we will tax freight when they are both Canada&lt;/P&gt;&lt;P&gt;Example Scenario:&lt;/P&gt;&lt;P&gt;For Freight charges where the Ship from is in Canada (Bedco, Artmedco, etc) and the Ship-to is in Canada the freight will always be taxable regardless of the inco term. This is freight that ships within Canada, no boarder crossing. &lt;/P&gt;&lt;P&gt;2.	Regular Freight - US &amp;amp; Canada:  If separate line item on sales order, it may be exempt from tax based upon state. revisit &lt;/P&gt;&lt;P&gt;a.     D.1 Freight included on the line item &lt;/P&gt;&lt;P&gt;i.	The freight is passed to the external system by populating the field FREIGHT. The freight amount is always included in the base amount. &lt;/P&gt;&lt;P&gt;ii.	An example to fill the freight using the user-exit: &lt;/P&gt;&lt;P&gt;iii.	In the customer pricing procedure (for example ZUSA01) enter &amp;#145;4&amp;#146; in the subtotal field of the freight condition type (OTC must have this configuration in the pricing procedure for the freight pricing conditions). &lt;/P&gt;&lt;P&gt;iv.	In the customer structure CI_TAX_INPUT_USER, add the field KZWI4 as in KOMP-KZWI4. &lt;/P&gt;&lt;P&gt;v.	In the user-exit, add the code CH_USER_CHANGED_FIELDS-FREIGHT_AM = I_INPUT_USER-KZWI4.&lt;/P&gt;&lt;P&gt;3.	For PO Specific A/R Tax Exemptions using material tax class of &amp;#145;2&amp;#146;, pass the TAXM1 field to the ACCOUNT_NO field in Taxware&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;oSolution:&lt;/P&gt;&lt;P&gt;For PO Specific Tax Exemptions &amp;#150; CSR will go to the line item detail &amp;#147;Billing&amp;#148; Tab, Tax Classification field (TAXM1) and change that to &amp;#147;2&amp;#148; &amp;#150; One-Time Exemption. Configuration complete.  &lt;/P&gt;&lt;P&gt;CSR will go to the &amp;#147;Text&amp;#148; Tab, Internal Item Notice and CSR will provide a brief description as to why that line is tax exempt. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This the code----&lt;/P&gt;&lt;HR originaltext="---------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: KNVV, KNA1, KOMK, MLAN, T001W, KNVI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: w_taxm1 LIKE mlan-taxm1,&lt;/P&gt;&lt;P&gt;      i_kna1 LIKE kna1,&lt;/P&gt;&lt;P&gt;      c_com_tax type com_tax,&lt;/P&gt;&lt;P&gt;      i_komk LIKE KOMK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--- if this freight comes into canada from US then set TAXM1 to 0&lt;/P&gt;&lt;P&gt;*----otherwise set TAXM1 to 2 and apply frieght charges. Set ACCNT_CLS&lt;/P&gt;&lt;P&gt;*----to 'Y' each time TAXM1 is passed to ACCNT_NO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF KNA1-LAND1 EQ 'CA'.&lt;/P&gt;&lt;P&gt;  IF C_COM_TAX-TXJCD_SF EQ C_COM_TAX-TXJCD_ST.&lt;/P&gt;&lt;P&gt;    CH_USER_CHANGED_FIELDS-FREIGHT_AM = I_INPUT_USER-KZWI4.&lt;/P&gt;&lt;P&gt;    w_taxm1 = 2.&lt;/P&gt;&lt;P&gt;    CH_USER_CHANGED_FIELDS-ACCNT_NO = W_TAXM1.&lt;/P&gt;&lt;P&gt;    CH_USER_CHANGED_FIELDS-ACCNT_CLS = 'Y'.  &lt;/P&gt;&lt;P&gt;  ELSEIF C_COM_TAX-TXJCD_SF NE C_COM_TAX-TXJCD_ST.&lt;/P&gt;&lt;P&gt;    C_COM_TAX-TXJCD_SF = C_COM_TAX-TXJCD_ST.&lt;/P&gt;&lt;P&gt;    C_COM_TAX-TXJCD_POA = C_COM_TAX-TXJCD_ST.   &lt;/P&gt;&lt;P&gt;    SELECT SINGLE * FROM KNVV&lt;/P&gt;&lt;P&gt;                    WHERE INCO1 = KOMK-INCO1&lt;/P&gt;&lt;P&gt;                    AND INCO1 NE 'DDP'.                      &lt;/P&gt;&lt;P&gt;    IF SY-SUBRC EQ 0.&lt;/P&gt;&lt;P&gt;      w_taxm1 = 0.&lt;/P&gt;&lt;P&gt;      CH_USER_CHANGED_FIELDS-ACCNT_NO = W_TAXM1.&lt;/P&gt;&lt;P&gt;      CH_USER_CHANGED_FIELDS-ACCNT_CLS = 'Y'.&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;&lt;/P&gt;&lt;P&gt;SELECT SINGLE taxkd FROM knvi INTO knvi-taxkd&lt;/P&gt;&lt;P&gt;                    WHERE kunnr = i_komk-kunwe&lt;/P&gt;&lt;P&gt;                    AND aland = i_komk-land1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-TCODE = 'VA01' OR SY-TCODE = 'VA02' OR SY-TCODE = 'VA03' OR&lt;/P&gt;&lt;P&gt;SY-TCODE = 'VF01' OR SY-TCODE = 'VF02' OR SY-TCODE = 'VF03' OR SY-TCODE&lt;/P&gt;&lt;P&gt;= 'VF04' OR SY-TCODE = 'VF05' OR SY-TCODE = 'VF05'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   SELECT SINGLE * FROM kna1 INTO i_kna1&lt;/P&gt;&lt;P&gt;                   WHERE kunnr = i_komk-kunwe.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   IF i_KNA1-land1 EQ 'CA'.&lt;/P&gt;&lt;P&gt;      C_COM_TAX-TXJCD_SF = C_COM_TAX-TXJCD_ST.&lt;/P&gt;&lt;P&gt;      C_COM_TAX-TXJCD_POA = C_COM_TAX-TXJCD_ST.&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;I am able to enter the user exit, but there is no value for KNA1-LAND1 or C_COM_TAX-TAXJCD_SF or C_COM_TAX-TAXJCD_ST. Does anyone what I am missing ? Please help. &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;N&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Sep 2006 16:18:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-12T16:18:56Z</dc:date>
    <item>
      <title>A/R User Exit Spec and code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-r-user-exit-spec-and-code/m-p/1637547#M284179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The spec -&lt;/P&gt;&lt;HR originaltext="----------------------------------------------" /&gt;&lt;P&gt;1.	Canadian tax - currently based on Freight type:   Read the country(?) Ship-from (plant jurisdiction) to Ship-to(customer jurisdiction) and the inco term on the line item of the sales order and if it's not equal to 'DDP' the line item tax classification will be set to '0' exempt. (This is freight that comes into Canada from the US) &lt;/P&gt;&lt;P&gt;We will look at the shipto and shipfrom txjcd on the sales order document and billing document along with the inco term logic and we will tax freight when they are both Canada&lt;/P&gt;&lt;P&gt;Example Scenario:&lt;/P&gt;&lt;P&gt;For Freight charges where the Ship from is in Canada (Bedco, Artmedco, etc) and the Ship-to is in Canada the freight will always be taxable regardless of the inco term. This is freight that ships within Canada, no boarder crossing. &lt;/P&gt;&lt;P&gt;2.	Regular Freight - US &amp;amp; Canada:  If separate line item on sales order, it may be exempt from tax based upon state. revisit &lt;/P&gt;&lt;P&gt;a.     D.1 Freight included on the line item &lt;/P&gt;&lt;P&gt;i.	The freight is passed to the external system by populating the field FREIGHT. The freight amount is always included in the base amount. &lt;/P&gt;&lt;P&gt;ii.	An example to fill the freight using the user-exit: &lt;/P&gt;&lt;P&gt;iii.	In the customer pricing procedure (for example ZUSA01) enter &amp;#145;4&amp;#146; in the subtotal field of the freight condition type (OTC must have this configuration in the pricing procedure for the freight pricing conditions). &lt;/P&gt;&lt;P&gt;iv.	In the customer structure CI_TAX_INPUT_USER, add the field KZWI4 as in KOMP-KZWI4. &lt;/P&gt;&lt;P&gt;v.	In the user-exit, add the code CH_USER_CHANGED_FIELDS-FREIGHT_AM = I_INPUT_USER-KZWI4.&lt;/P&gt;&lt;P&gt;3.	For PO Specific A/R Tax Exemptions using material tax class of &amp;#145;2&amp;#146;, pass the TAXM1 field to the ACCOUNT_NO field in Taxware&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;oSolution:&lt;/P&gt;&lt;P&gt;For PO Specific Tax Exemptions &amp;#150; CSR will go to the line item detail &amp;#147;Billing&amp;#148; Tab, Tax Classification field (TAXM1) and change that to &amp;#147;2&amp;#148; &amp;#150; One-Time Exemption. Configuration complete.  &lt;/P&gt;&lt;P&gt;CSR will go to the &amp;#147;Text&amp;#148; Tab, Internal Item Notice and CSR will provide a brief description as to why that line is tax exempt. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This the code----&lt;/P&gt;&lt;HR originaltext="---------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: KNVV, KNA1, KOMK, MLAN, T001W, KNVI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: w_taxm1 LIKE mlan-taxm1,&lt;/P&gt;&lt;P&gt;      i_kna1 LIKE kna1,&lt;/P&gt;&lt;P&gt;      c_com_tax type com_tax,&lt;/P&gt;&lt;P&gt;      i_komk LIKE KOMK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--- if this freight comes into canada from US then set TAXM1 to 0&lt;/P&gt;&lt;P&gt;*----otherwise set TAXM1 to 2 and apply frieght charges. Set ACCNT_CLS&lt;/P&gt;&lt;P&gt;*----to 'Y' each time TAXM1 is passed to ACCNT_NO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF KNA1-LAND1 EQ 'CA'.&lt;/P&gt;&lt;P&gt;  IF C_COM_TAX-TXJCD_SF EQ C_COM_TAX-TXJCD_ST.&lt;/P&gt;&lt;P&gt;    CH_USER_CHANGED_FIELDS-FREIGHT_AM = I_INPUT_USER-KZWI4.&lt;/P&gt;&lt;P&gt;    w_taxm1 = 2.&lt;/P&gt;&lt;P&gt;    CH_USER_CHANGED_FIELDS-ACCNT_NO = W_TAXM1.&lt;/P&gt;&lt;P&gt;    CH_USER_CHANGED_FIELDS-ACCNT_CLS = 'Y'.  &lt;/P&gt;&lt;P&gt;  ELSEIF C_COM_TAX-TXJCD_SF NE C_COM_TAX-TXJCD_ST.&lt;/P&gt;&lt;P&gt;    C_COM_TAX-TXJCD_SF = C_COM_TAX-TXJCD_ST.&lt;/P&gt;&lt;P&gt;    C_COM_TAX-TXJCD_POA = C_COM_TAX-TXJCD_ST.   &lt;/P&gt;&lt;P&gt;    SELECT SINGLE * FROM KNVV&lt;/P&gt;&lt;P&gt;                    WHERE INCO1 = KOMK-INCO1&lt;/P&gt;&lt;P&gt;                    AND INCO1 NE 'DDP'.                      &lt;/P&gt;&lt;P&gt;    IF SY-SUBRC EQ 0.&lt;/P&gt;&lt;P&gt;      w_taxm1 = 0.&lt;/P&gt;&lt;P&gt;      CH_USER_CHANGED_FIELDS-ACCNT_NO = W_TAXM1.&lt;/P&gt;&lt;P&gt;      CH_USER_CHANGED_FIELDS-ACCNT_CLS = 'Y'.&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;&lt;/P&gt;&lt;P&gt;SELECT SINGLE taxkd FROM knvi INTO knvi-taxkd&lt;/P&gt;&lt;P&gt;                    WHERE kunnr = i_komk-kunwe&lt;/P&gt;&lt;P&gt;                    AND aland = i_komk-land1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-TCODE = 'VA01' OR SY-TCODE = 'VA02' OR SY-TCODE = 'VA03' OR&lt;/P&gt;&lt;P&gt;SY-TCODE = 'VF01' OR SY-TCODE = 'VF02' OR SY-TCODE = 'VF03' OR SY-TCODE&lt;/P&gt;&lt;P&gt;= 'VF04' OR SY-TCODE = 'VF05' OR SY-TCODE = 'VF05'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   SELECT SINGLE * FROM kna1 INTO i_kna1&lt;/P&gt;&lt;P&gt;                   WHERE kunnr = i_komk-kunwe.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   IF i_KNA1-land1 EQ 'CA'.&lt;/P&gt;&lt;P&gt;      C_COM_TAX-TXJCD_SF = C_COM_TAX-TXJCD_ST.&lt;/P&gt;&lt;P&gt;      C_COM_TAX-TXJCD_POA = C_COM_TAX-TXJCD_ST.&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;I am able to enter the user exit, but there is no value for KNA1-LAND1 or C_COM_TAX-TAXJCD_SF or C_COM_TAX-TAXJCD_ST. Does anyone what I am missing ? Please help. &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;N&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2006 16:18:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-r-user-exit-spec-and-code/m-p/1637547#M284179</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-12T16:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: A/R User Exit Spec and code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-r-user-exit-spec-and-code/m-p/1637548#M284180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi NP , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which User exit ur using ? Are u talking abt MIRO or VF01.&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>Wed, 13 Sep 2006 04:27:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-r-user-exit-spec-and-code/m-p/1637548#M284180</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-13T04:27:26Z</dc:date>
    </item>
  </channel>
</rss>

