<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit/m-p/2297949#M501929</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;What is your problem?  You need post code jut give the details of &lt;/P&gt;&lt;P&gt;Enahncement/project name and User Exit name  &lt;/P&gt;&lt;P&gt;clearly write what is your requirement not code.&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ganesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 May 2007 14:08:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-14T14:08:55Z</dc:date>
    <item>
      <title>user exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit/m-p/2297947#M501927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;User Exit for the Cash Preprocessor logic needs to include the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1	Account	AVIK-KONTO&lt;/P&gt;&lt;P&gt;2	Payment Amount	AVIK-REWBTR&lt;/P&gt;&lt;P&gt;3	Payment Date	AVIK-ZALDT&lt;/P&gt;&lt;P&gt;4	Bank Number	AVIK-ZBNKL&lt;/P&gt;&lt;P&gt;5	Payee Acct No	AVIK-ZBNKN&lt;/P&gt;&lt;P&gt;6	*Check Number	AVIK-CHECT&lt;/P&gt;&lt;P&gt;22	Adv Header Text	AVIK-AVTXT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;7	Payment Amount	AVIP-NEBTR&lt;/P&gt;&lt;P&gt;8	Deduction Amount	AVIP-ABBTR&lt;/P&gt;&lt;P&gt;9	Gross Amount	AVIP-WRBTR&lt;/P&gt;&lt;P&gt;10	Reason Code	AVIP-RSTGN&lt;/P&gt;&lt;P&gt;11	Discount Amount	AVIP-WSKTO&lt;/P&gt;&lt;P&gt;12	Document Number	AVIP-BELNR&lt;/P&gt;&lt;P&gt;13	Reference	AVIP-XBLNR&lt;/P&gt;&lt;P&gt;14	Reference Key 1	AVIP-XREF1&lt;/P&gt;&lt;P&gt;15	Reference Key 2	AVIP-XREF2&lt;/P&gt;&lt;P&gt;16	PO Number	AVIP-BSTNK&lt;/P&gt;&lt;P&gt;17	Assignment	AVIP-ZUONR&lt;/P&gt;&lt;P&gt;18	Alternative Acct	AVIP-ABWKO&lt;/P&gt;&lt;P&gt;19	Text	AVIP- SGTXT&lt;/P&gt;&lt;P&gt;20	Customer	AVIP-KONTO&lt;/P&gt;&lt;P&gt;21	Payment Reference	AVIP-KIDNO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;#149;	For Like reference numbers(AVIP-XBLNR)  combine the following amounts &lt;/P&gt;&lt;P&gt;o	Payment Amount (AVIP-NEBTR), Deduction Amount (AVIP-ABBTR), Gross Amount (AVIP-WRBTR), Discount Amount (AVIP-WSKTO) &lt;/P&gt;&lt;P&gt;&amp;#149;	Populate the Payment Advice&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="5" type="ul"&gt;&lt;P&gt;Loop Through All Checks Until Finished *****&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&amp;#149;	Loop Get Next Check (from AVIK table)&lt;/P&gt;&lt;P&gt;&amp;#149;	Use the &amp;#145;Bank Number&amp;#146; (AVIK-ZBNKL) and &amp;#145;Payee Acct No&amp;#146; fields (AVIK-ZBNKN) from the Payment Advice Header (AVIK) to identify the Payer&lt;/P&gt;&lt;P&gt;o	If one and only one Payer is returned &lt;/P&gt;&lt;P&gt;&amp;amp;#61607;	Consider the Payer found  &lt;/P&gt;&lt;P&gt;&amp;amp;#61607;	Populate the Account Number (AVIK-KONTO) on the Payment Advice&lt;/P&gt;&lt;P&gt;&amp;amp;#61607;	Populate Payment Advice Header Text (AVIK-AVTXT) with &amp;#147;Payer Found Via MICR #&amp;#148;&lt;/P&gt;&lt;P&gt;&amp;amp;#61607;	Continue with Loop Get First Check Line Item&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                  Else if No Payer Returned or Multiple Payers Returned&lt;/P&gt;&lt;P&gt;&amp;#149;	Loop through  Document Numbers (AVIP-BELNR) supplied in the payment details to identify the Payer&lt;/P&gt;&lt;P&gt;o	Consider only positive payment amounts &lt;/P&gt;&lt;P&gt;&amp;#149;	Search the BSID table for the open item using the Document Number (AVIP-BELNR) and company code US39 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;#61607;	If only one Document is Returned &lt;/P&gt;&lt;P&gt;&amp;#149;	Consider the Payer found&lt;/P&gt;&lt;P&gt;&amp;#149;	Assign the Account Number (AVIK-KONTO) on the Payment Advice &lt;/P&gt;&lt;P&gt;&amp;#149;	Populate Payment Advice Header Text (AVIK-AVTXT) with &amp;#147;Payer Found Via Document #&amp;#148;&lt;/P&gt;&lt;P&gt;&amp;#149;	Continue with Loop Get First Check Line Item&lt;/P&gt;&lt;P&gt;&amp;amp;#61607;	Else Multiple Returns or None Returned&lt;/P&gt;&lt;P&gt;&amp;#149;	Consider the Check Unidentified&lt;/P&gt;&lt;P&gt;&amp;#149;	Update the Account Number (AVIK-KONTO) on the Payment Advice with a &amp;#145;*&amp;#146;&lt;/P&gt;&lt;P&gt;&amp;#149;	Populate Payment Advice Header Text (AVIK-AVTXT) with &amp;#147;Payer Not Found&amp;#148;&lt;/P&gt;&lt;P&gt;&amp;#149;	If Another Check Exists&lt;/P&gt;&lt;P&gt;o	Go To Loop Get Next Check&lt;/P&gt;&lt;P&gt;&amp;#149;	Else&lt;/P&gt;&lt;P&gt;o	Processing Complete&lt;/P&gt;&lt;P&gt;&amp;#149;	Endif&lt;/P&gt;&lt;P&gt;&amp;amp;#61607;	Endif&lt;/P&gt;&lt;P&gt;o	Endif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="5" type="ul"&gt;&lt;P&gt;Inside Each Check, Loop Through All Check Lines *****&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;o	Loop Get First Check Line Item&lt;/P&gt;&lt;P&gt;o	Assign AVIP-XBLNR to AVIP-ZUONR Assignment&lt;/P&gt;&lt;P&gt;o	Assign AVIP-XBLNR to AVIP-XREF2Ref Key 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="5" type="ul"&gt;&lt;P&gt;Logic for Non-Invoice Related Deductions *****&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;o	If Payment Amount (AVIP-NEBTR) is &amp;lt; 0 (deduction) &lt;/P&gt;&lt;P&gt;&amp;amp;#61607;	Move Payment Amount (AVIP-NEBTR) to Deduction Amount (AVIP-ABBTR) column&lt;/P&gt;&lt;P&gt;&amp;amp;#61607;	Check to see if Deduction Amount (AVIP-ABBTR) &amp;lt;= Cash Tolerance&lt;/P&gt;&lt;P&gt;&amp;amp;#61607;	For Cash Tolerance consider Company Code and Payer (AVIK-KONTO) and execute transaction XD03.  Then go into the Company Code Data View to get the Tolerance Group (KNB1-TOGRU)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;#61607;	Go to OBA3 to search the Company Code and Tolerance Group (KNB1-TOGRU) for the Tolerance Amount&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;#61607;	If Deduction Amount (AVIP-ABBTR) &amp;lt;= V_T043G-BETRS (Ref B)&lt;/P&gt;&lt;P&gt;&amp;#149;	Assign Z98 to Deduction Reason Code (AVIP-RSTGN)&lt;/P&gt;&lt;P&gt;&amp;#149;	Populate Payment Advice Text (AVIP-SGTXT) (AVIP- SGTXT) with &amp;#147;Small Balance Write-off&amp;#148;&lt;/P&gt;&lt;P&gt;&amp;amp;#61607;	Else&lt;/P&gt;&lt;P&gt;&amp;#149;	Assign Z00 Unexplained Deduction to the Deduction Reason Code (AVIP-RSTGN)&lt;/P&gt;&lt;P&gt;&amp;#149;	Populate Payment Advice Text (AVIP-SGTXT) (AVIP- SGTXT) with &amp;#147;Non-Invoice Related Deduction&amp;#148; &lt;/P&gt;&lt;P&gt;&amp;#149;	If Another Check Line exists&lt;/P&gt;&lt;P&gt;o	Loop Get Next Check Line Item&lt;/P&gt;&lt;P&gt;&amp;#149;	Else &lt;/P&gt;&lt;P&gt;o	Go To Loop Get Next Check until all checks have been processed&lt;/P&gt;&lt;P&gt;&amp;#149;	Endif&lt;/P&gt;&lt;P&gt;&amp;amp;#61607;	Endif&lt;/P&gt;&lt;P&gt;o	Endif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="5" type="ul"&gt;&lt;P&gt;Logic for Invoice Related Payments *****&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;o	If Payment Amount (AVIP-NEBTR) &amp;gt; 0 (payment)&lt;/P&gt;&lt;P&gt;o	Use the Document Number (AVIP-BELNR) Company Code provided to locate the open item in BSID&lt;/P&gt;&lt;P&gt;o	Capture list of Alt Payers (BSID-KUNNR) using transaction XD03 with Payer (AVIK-KONTO) and Company Code  US39&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;o	Execute SE16 on table BSID for Company Code US39, Customer (BSID-KUNNR) and Document Number (AVIP-BELNR)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;o	If one and only one document number can be found using a wild card search &amp;#145;&lt;STRONG&gt;#######&lt;/STRONG&gt;&amp;#146; for the Payer or Alt Payer group&lt;/P&gt;&lt;P&gt;&amp;amp;#61607;	Move the Payer to into the Alternative Acct Field AVIP-ABWKO&lt;/P&gt;&lt;P&gt;&amp;amp;#61607;	Move BSID Amount into AVIP-WRBTR Move the BSID Document Number into AVIP-BELNR&lt;/P&gt;&lt;P&gt;&amp;amp;#61607;	Go to Document Number Found  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;o	Else if Document Number Not Found &lt;/P&gt;&lt;P&gt;&amp;amp;#61607;	Execute SE16 on table BSID for Company Code US39, Customer (BSID-KUNNR) and Reference Number (AVIP-XBLNR)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;#61607;	Perform wild card search &amp;#145;&lt;STRONG&gt;########&lt;/STRONG&gt;&amp;#146; on the Reference Number (AVIP-XBLNR)&lt;/P&gt;&lt;P&gt;&amp;#149;	If one and only one Reference Number is returned&lt;/P&gt;&lt;P&gt;o	Move the Payer to into the Alternative Acct AVIP-ABWKO &lt;/P&gt;&lt;P&gt;o	Move BSID Amount into AVIP-WRBTR&lt;/P&gt;&lt;P&gt;o	Move the BSID Document Number into AVIP-BELNR&lt;/P&gt;&lt;P&gt;o	Go to Document Number Found&lt;/P&gt;&lt;P&gt;&amp;#149;	Else&lt;/P&gt;&lt;P&gt;o	Place an &amp;#145;*&amp;#146; in the first position of the Document Number (AVIP-BELNR&lt;/P&gt;&lt;P&gt;o	Populate Payment Advice Text (AVIP-SGTXT) (AVIP- SGTXT) with &amp;#147;Invoice Not Found&amp;#148;&lt;/P&gt;&lt;P&gt;o	Loop Through All Check Lines until all items are processed&lt;/P&gt;&lt;P&gt;&amp;#149;	Endif&lt;/P&gt;&lt;P&gt;&amp;amp;#61607;	Endif&lt;/P&gt;&lt;P&gt;o	Endif&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2007 11:30:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit/m-p/2297947#M501927</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-14T11:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: user exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit/m-p/2297948#M501928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;as tommorrow is the final day for my object.&lt;/P&gt;&lt;P&gt;iam requesting any experts to help me in writing the code or the flow of the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanking you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2007 13:47:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit/m-p/2297948#M501928</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-14T13:47:29Z</dc:date>
    </item>
    <item>
      <title>Re: user exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit/m-p/2297949#M501929</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;What is your problem?  You need post code jut give the details of &lt;/P&gt;&lt;P&gt;Enahncement/project name and User Exit name  &lt;/P&gt;&lt;P&gt;clearly write what is your requirement not code.&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ganesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2007 14:08:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit/m-p/2297949#M501929</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-14T14:08:55Z</dc:date>
    </item>
    <item>
      <title>Re: user exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit/m-p/2297950#M501930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ganesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;actually this an user exit for Transactions FLB1, FB01, FB05.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we need to write an substitute exit(FM).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my requirement is that the user asked me to loop the table AVIK using fields &amp;#145;Bank Number&amp;#146; (AVIK-ZBNKL) and &amp;#145;Payee Acct No&amp;#146; fields (AVIK-ZBNKN) and get the customers(payers).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my question is we will goto KNBK and get all Customer no's.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but he is asking to check if there is one customer -&lt;/P&gt;&lt;HR originaltext="-------" /&gt;&lt;P&gt; logic&lt;/P&gt;&lt;P&gt;			      many customers------- logic&lt;/P&gt;&lt;P&gt;			      no customers----&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt; logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;iam afraid how to write the code for differentiating them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help me in this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TQ.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 10:25:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit/m-p/2297950#M501930</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-15T10:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: user exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit/m-p/2297951#M501931</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;After you  fetching the data check sy-subrc &lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.  &lt;/P&gt;&lt;P&gt;1. Records are existing&lt;/P&gt;&lt;P&gt;2. in the internal table to find how many rows write the below code.&lt;/P&gt;&lt;P&gt;    DESCRIBE TABLE ITAB LINES INTO V_LINES&lt;/P&gt;&lt;P&gt;   IF v_line &amp;gt; 1. &lt;/P&gt;&lt;P&gt;      write logic for many rows. &lt;/P&gt;&lt;P&gt;   else.&lt;/P&gt;&lt;P&gt;      write logic for one row.&lt;/P&gt;&lt;P&gt;   ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;follow above steps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if any doubts reply&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ganesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 13:51:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit/m-p/2297951#M501931</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-15T13:51:03Z</dc:date>
    </item>
  </channel>
</rss>

