<?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: User Exit for saving Invoice in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-for-saving-invoice/m-p/5652725#M1286111</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 this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RV60AFZZ&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;FORM &lt;/SPAN&gt;USEREXIT_PRICING_PREPARE_TKOMK&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Jan 2013 14:21:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-01-17T14:21:53Z</dc:date>
    <item>
      <title>User Exit for saving Invoice</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-for-saving-invoice/m-p/5652722#M1286108</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;My req, is I have to check billing date with order date/ delivery date while creating the invoice in VF01.&lt;/P&gt;&lt;P&gt;For that I have done codig in user exit RV60AFZZ, so it gives error ,but the billing date field get disable.&lt;/P&gt;&lt;P&gt;&amp;amp; this invoice no. alsp get created.&lt;/P&gt;&lt;P&gt;So can anybody plz tell me in which user exit i have to put my code ???&lt;/P&gt;&lt;P&gt;I have tried with RV60AFZC.But it is not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM userexit_pricing_prepare_tkomp.

*  TKOMP-zzfield = xxxx-zzfield2.



* structure for vbak
TYPES:BEGIN OF ty_vbak,
      vbeln TYPE vbak-vbeln,
      audat TYPE vbak-audat,
      END OF ty_vbak.

*likp structure
TYPES:BEGIN OF ty_likp,
      vbeln TYPE likp-vbeln,
      lfdat TYPE likp-lfdat,
      END OF ty_likp.

*vbrp structure
TYPES:BEGIN OF ty_vbrp,
      vgbel TYPE vbrp-vgbel,
      vgpos TYPE vbrp-vgpos,
      aubel TYPE vbrp-aubel,
      aupos TYPE vbrp-aupos,
      END OF ty_vbrp.

DATA:it_vbak TYPE STANDARD TABLE OF ty_vbak,
     it_likp TYPE STANDARD TABLE OF ty_likp,
     it_vbrp TYPE STANDARD TABLE OF ty_vbrp.

DATA:wa_vbak TYPE ty_vbak,
     wa_likp TYPE ty_likp,
     wa_vbrp TYPE ty_vbrp.


***** take reference document no &amp;amp; delivery no. *****
LOOP AT xvbrp.
  wa_vbrp-vgbel = xvbrp-vgbel.
  wa_vbrp-vgpos = xvbrp-vgpos.
  wa_vbrp-aubel = xvbrp-aubel.
  wa_vbrp-aupos = xvbrp-aupos.

  APPEND wa_vbrp TO it_vbrp.

ENDLOOP.

IF it_vbrp IS NOT INITIAL.
SELECT vbeln audat FROM vbak
      INTO TABLE it_vbak
      FOR ALL ENTRIES IN it_vbrp
      WHERE vbeln = it_vbrp-aubel.

SELECT vbeln lfdat from likp
       INTO TABLE it_likp
       FOR ALL ENTRIES IN it_vbrp
       WHERE vbeln = it_vbrp-vgbel.

ENDIF.
**** check for invoice date with order date *****
LOOP AT it_vbak INTO wa_vbak.

  IF xvbrk-fkdat IS NOT INITIAL AND xvbrk-fkdat &amp;lt; wa_vbak-audat.
    MESSAGE 'Invoice Date is less than Order Date' TYPE 'E'.
  ENDIF.
ENDLOOP.

**** check for invoice date with delievery date *****
LOOP AT it_likp INTO wa_likp.

  IF xvbrk-fkdat IS NOT INITIAL AND xvbrk-fkdat &amp;lt; wa_likp-lfdat.
    MESSAGE 'Invoice Date is less than Delivery Date' TYPE 'E'.
  ENDIF.
ENDLOOP.


ENDFORM.                    "USEREXIT_PRICING_PREPARE_TKOMP&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Anagha Deshmukh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2009 07:38:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-for-saving-invoice/m-p/5652722#M1286108</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-05T07:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: User Exit for saving Invoice</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-for-saving-invoice/m-p/5652723#M1286109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These are the user exits for the tcode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;J_3RSINV            Export sales&lt;/P&gt;&lt;P&gt;SDVFX007            User exit: Billing plan during transfer to Accounting&lt;/P&gt;&lt;P&gt;SDVFX008            User exit: Processing of transfer structures SD-FI&lt;/P&gt;&lt;P&gt;SDVFX009            Billing doc. processing KIDONO (payment reference number)&lt;/P&gt;&lt;P&gt;SDVFX010            User exit item table for the customer lines&lt;/P&gt;&lt;P&gt;SDVFX011            Userexit for the komkcv- and kompcv-structures&lt;/P&gt;&lt;P&gt;V05I0001            User exits for billing index&lt;/P&gt;&lt;P&gt;V05N0001            User Exits for Printing Billing Docs. using POR Procedure&lt;/P&gt;&lt;P&gt;V60A0001            Customer functions in the billing document&lt;/P&gt;&lt;P&gt;V60P0001            Data provision for additional fields for display in lists&lt;/P&gt;&lt;P&gt;V61A0001            Customer enhancement: Pricing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Keep the break point and try in the debugging in each and every exit and see which user exit is triggred.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2009 07:42:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-for-saving-invoice/m-p/5652723#M1286109</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-05T07:42:44Z</dc:date>
    </item>
    <item>
      <title>Re: User Exit for saving Invoice</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-for-saving-invoice/m-p/5652724#M1286110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using Rollback statement before giving the error message.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2009 07:45:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-for-saving-invoice/m-p/5652724#M1286110</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-05T07:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: User Exit for saving Invoice</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-for-saving-invoice/m-p/5652725#M1286111</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 this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RV60AFZZ&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;FORM &lt;/SPAN&gt;USEREXIT_PRICING_PREPARE_TKOMK&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2013 14:21:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-for-saving-invoice/m-p/5652725#M1286111</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-01-17T14:21:53Z</dc:date>
    </item>
  </channel>
</rss>

