<?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: ALV report in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report/m-p/2380281#M528214</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;First of all you have to define internal tables to get all the data wich can be passed for ALV output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try in se38 &lt;STRONG&gt;ALV&lt;/STRONG&gt; loads of demo report are there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you define the intarnal tables then in U need to mention selection options which will be co cd &amp;amp; customer in u r case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then AT SELECTION SCREEN.&lt;/P&gt;&lt;P&gt;Validate all u r input params&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;Retrieve your data &amp;amp; Display in ALV metho. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Jun 2007 14:57:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-14T14:57:43Z</dc:date>
    <item>
      <title>ALV report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report/m-p/2380280#M528213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Im unable to write the logic for my requirement wil u please provide me the procedure according to my requirement n any other Transactions already existed&lt;/P&gt;&lt;P&gt;My reqirement is as follows,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STEP 1. Screen Field Validations:&lt;/P&gt;&lt;P&gt;o	Validate Customer Number (KUNNR) from KNA1.&lt;/P&gt;&lt;P&gt;o	Validate Company Code (BUKRS) from t001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STEP 2. Data Retrieval and Calculations.&lt;/P&gt;&lt;P&gt;1)	Get Accounting Document Number(BELNR), Posting Date (BUDAT), Document Date(BLDAT),Current(WAERS),  Debit/Credit Indicator(SHKZG), Amount in Local currency(DMBTR), Amount in Foreign Currency (WRBTR) from BSID table matching the Customer (KUNNR), Company Code (BUKRS), Special G/L Indicator (UMSKZ) as entered in the selection screen.&lt;/P&gt;&lt;P&gt;2)	Get Months 1(MON01, MON02, MON03, and MON04) Percentage details for Reserve Bad Debt (PROZ1, PROZ2, PROZ3 and PROZ4) From T030F matching the Provision method (RSMET) in the selection screen.&lt;/P&gt;&lt;P&gt;3)	Get Name1 (NAME1), Name 2 (NAME2), City (ORT01), Postal Code (PSTLZ), Street (STRAS) From KNA1 matching the Customer Account in the selection screen.&lt;/P&gt;&lt;P&gt;4)	Fetch Guaranteed amount (YYDEFGTYVAL) from KNB1 by using Customer Account and Company Code from selection screen.&lt;/P&gt;&lt;P&gt;5)	The report will print Company code Description, Company Code value, Title, Time, Date, User ID and Page Number at top of the list. &lt;/P&gt;&lt;P&gt;6)	Rule 1 mentioned above is applied to find the sign or Debit/Credit indicator and corresponding value is displayed on the report.&lt;/P&gt;&lt;P&gt;7)	Sort items retrieved from BSID by due date. Due date will calculated as sum of BSID-ZFBDT and BSID-ZDB1T.&lt;/P&gt;&lt;P&gt;8)	Number of days in arrear is calculated by difference between key date from selection screen and due date calculated in the step above. (Rule 2)&lt;/P&gt;&lt;P&gt;9)	Calculate the provision by the logic mentioned below:&lt;/P&gt;&lt;P&gt;      If T030F-PROZ1 = 100.&lt;/P&gt;&lt;P&gt;&amp;#149;	Sum up all the BSID-DMBTR for a combination of Company Code (BUKRS) and Customer (KUNNR) to get the total receivables of that particular combination.&lt;/P&gt;&lt;P&gt;&amp;#149;	IF KNB1-YYDEFGTYVAL (guaranteed amount) &amp;gt; total receivables.&lt;/P&gt;&lt;P&gt;              Do not calculate any provision&lt;/P&gt;&lt;P&gt;       ELSE.&lt;/P&gt;&lt;P&gt;         Rate = (Total receivables &amp;#150; guaranteed amount) / total receivables.&lt;/P&gt;&lt;P&gt;       Individual Provision = BSID-DMBTR * RATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;      IF T030F-PROZ1 NE 100.&lt;/P&gt;&lt;P&gt;&amp;#149;	The starting date of each group is calculated by deducting from the key date the number of months found below.&lt;/P&gt;&lt;P&gt;&amp;#149;	Read T030F-MON01 and determine the number of months. Group1 is prepared by grouping invoices falling between start date of group1 and group 2. &lt;/P&gt;&lt;P&gt;&amp;#149;	Read T030F-MON02 and determine the number of months.  Group 2 is prepared by grouping invoices falling between start date of group2 and group3. If MON02 is empty then invoices are grouped in first group.&lt;/P&gt;&lt;P&gt;&amp;#149;	Read T030F-MON03 and determine the number of months. Group 3 is prepared by grouping invoices falling between start date of group2 and group3. If MON03 is empty then invoices are grouped in second group.&lt;/P&gt;&lt;P&gt;&amp;#149;	Read T030F-MON04 and determine the number of months. Group 4 is prepared by grouping invoices falling between start date of group3 and group4. If MON04 is empty then invoices are grouped in third group.&lt;/P&gt;&lt;P&gt;&amp;#149;	First group invoices will be multiplied with T030F-PROZ1 and the percentage calculation is derived by dividing it with 100.&lt;/P&gt;&lt;P&gt;&amp;#149;	Similarly second group invoices (Document Numbers) will be multiplied with T030F-PROZ2 and the percentage calculation is derived by dividing it with 100.&lt;/P&gt;&lt;P&gt;&amp;#149;	T030F-PROZ3 is used for the percentage calculation of Group 3 document numbers.&lt;/P&gt;&lt;P&gt;&amp;#149;	Fourth group Document numbers are used against T030F-PROZ4 and thus the percentage calculation is completed.&lt;/P&gt;&lt;P&gt;{BSID-DMBTR * corresponding T030F-PROZ (n)} / 100&lt;/P&gt;&lt;P&gt;Where n is group can have values from 1 to 4.&lt;/P&gt;&lt;P&gt;&amp;#149;	Sum up all individual Provisions to give total temporary provisions.&lt;/P&gt;&lt;P&gt;&amp;#149;	Sum total amount in local currency (BISD-DMBTR) of these open receivables to get total receivables for a combination of Company Code (BUKRS) &amp;amp; Customer (KUNNR).&lt;/P&gt;&lt;P&gt;&amp;#149;	IF KNB1-YYDEFGTYVAL (guaranteed amount) &amp;gt; total temporary provisions.&lt;/P&gt;&lt;P&gt;           Do not calculate any provision&lt;/P&gt;&lt;P&gt;       ELSE.&lt;/P&gt;&lt;P&gt;          Rate = (Total temporary provision &amp;#150; guaranteed amount) / total provisions&lt;/P&gt;&lt;P&gt;    Individual Provision = BSID-DMBTR * RATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;10)	Display Report in ALV Format.&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;Tanx,&lt;/P&gt;&lt;P&gt;Sanyu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2007 14:22:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report/m-p/2380280#M528213</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-14T14:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: ALV report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report/m-p/2380281#M528214</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;First of all you have to define internal tables to get all the data wich can be passed for ALV output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try in se38 &lt;STRONG&gt;ALV&lt;/STRONG&gt; loads of demo report are there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you define the intarnal tables then in U need to mention selection options which will be co cd &amp;amp; customer in u r case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then AT SELECTION SCREEN.&lt;/P&gt;&lt;P&gt;Validate all u r input params&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;Retrieve your data &amp;amp; Display in ALV metho. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2007 14:57:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report/m-p/2380281#M528214</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-14T14:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: ALV report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report/m-p/2380282#M528215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sunanda,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                 M unable to understand my requirement from dis step please go thru dis n please tell me the if statements logic for given below,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF T030F-PROZ1 NE 100.&lt;/P&gt;&lt;P&gt;&amp;#149; The starting date of each group is calculated by deducting from the key date the number of months found below.&lt;/P&gt;&lt;P&gt;&amp;#149; Read T030F-MON01 and determine the number of months. Group1 is prepared by grouping invoices falling between start date of group1 and group 2. &lt;/P&gt;&lt;P&gt;&amp;#149; Read T030F-MON02 and determine the number of months. Group 2 is prepared by grouping invoices falling between start date of group2 and group3. If MON02 is empty then invoices are grouped in first group.&lt;/P&gt;&lt;P&gt;&amp;#149; Read T030F-MON03 and determine the number of months. Group 3 is prepared by grouping invoices falling between start date of group2 and group3. If MON03 is empty then invoices are grouped in second group.&lt;/P&gt;&lt;P&gt;&amp;#149; Read T030F-MON04 and determine the number of months. Group 4 is prepared by grouping invoices falling between start date of group3 and group4. If MON04 is empty then invoices are grouped in third group.&lt;/P&gt;&lt;P&gt;&amp;#149; First group invoices will be multiplied with T030F-PROZ1 and the percentage calculation is derived by dividing it with 100.&lt;/P&gt;&lt;P&gt;&amp;#149; Similarly second group invoices (Document Numbers) will be multiplied with T030F-PROZ2 and the percentage calculation is derived by dividing it with 100.&lt;/P&gt;&lt;P&gt;&amp;#149; T030F-PROZ3 is used for the percentage calculation of Group 3 document numbers.&lt;/P&gt;&lt;P&gt;&amp;#149; Fourth group Document numbers are used against T030F-PROZ4 and thus the percentage calculation is completed.&lt;/P&gt;&lt;P&gt;{BSID-DMBTR * corresponding T030F-PROZ (n)} / 100&lt;/P&gt;&lt;P&gt;Where n is group can have values from 1 to 4.&lt;/P&gt;&lt;P&gt;&amp;#149; Sum up all individual Provisions to give total temporary provisions.&lt;/P&gt;&lt;P&gt;&amp;#149; Sum total amount in local currency (BISD-DMBTR) of these open receivables to get total receivables for a combination of Company Code (BUKRS) &amp;amp; Customer (KUNNR).&lt;/P&gt;&lt;P&gt;&amp;#149; IF KNB1-YYDEFGTYVAL (guaranteed amount) &amp;gt; total temporary provisions.&lt;/P&gt;&lt;P&gt;Do not calculate any provision&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;Rate = (Total temporary provision &amp;#150; guaranteed amount) / total provisions&lt;/P&gt;&lt;P&gt;Individual Provision = BSID-DMBTR * RATE&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;Tanx,&lt;/P&gt;&lt;P&gt;santu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2007 04:20:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report/m-p/2380282#M528215</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-15T04:20:17Z</dc:date>
    </item>
  </channel>
</rss>

