<?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: Aging Interval for an Order Document in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/aging-interval-for-an-order-document/m-p/1346945#M174550</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;GOOD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GO THROUGH THIS REPORT&lt;/P&gt;&lt;P&gt;REPORT ZAP01 NO STANDARD PAGE HEADING .&lt;/P&gt;&lt;P&gt;TABLES: RBKPB,&lt;/P&gt;&lt;P&gt;        RBKP,&lt;/P&gt;&lt;P&gt;        lfa1,&lt;/P&gt;&lt;P&gt;        lfc1,&lt;/P&gt;&lt;P&gt;        bsIS,&lt;/P&gt;&lt;P&gt;        bsik.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : ITAB LIKE RBKP OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;data : dat1 like rbkp-BUDAT.&lt;/P&gt;&lt;P&gt;data : dat2 like rbkp-zfbdt.&lt;/P&gt;&lt;P&gt;data : days(10).&lt;/P&gt;&lt;P&gt;data : CONAME like LFA1-NAME1.&lt;/P&gt;&lt;P&gt;DATA  :TOT LIKE RBKP-KURSF.&lt;/P&gt;&lt;P&gt;DATA : TOTAL LIKE RBKP-rmwwr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen begin of block a with frame title T.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options : INVOICE for  rbkp-BUDAT.&lt;/P&gt;&lt;P&gt;selection-screen end of block a.&lt;/P&gt;&lt;P&gt;loop at INVOICE.&lt;/P&gt;&lt;P&gt;  CASE INVOICE-SIGN.&lt;/P&gt;&lt;P&gt;    WHEN 'I'.&lt;/P&gt;&lt;P&gt;  CASE INVOICE-OPTION.&lt;/P&gt;&lt;P&gt;    WHEN 'EQ'.&lt;/P&gt;&lt;P&gt;  SELECT * FROM RBKP APPENDING CORRESPONDING FIELDS OF TABLE ITAB WHERE&lt;/P&gt;&lt;P&gt;BUDAT = INVOICE-LOW ORDER BY LIFNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    WHEN 'BT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM RBKP APPENDING CORRESPONDING FIELDS OF TABLE ITAB WHERE&lt;/P&gt;&lt;P&gt;BUDAT  BETWEEN INVOICE-LOW AND INVOICE-HIGH ORDER BY LIFNR.&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write :/5 'MIMOS',&lt;/P&gt;&lt;P&gt;        40 'INVOICE AGAING REPORT',&lt;/P&gt;&lt;P&gt;        75 'REPORT DATE:',SY-DATUM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write:/75 'PAGE NO:',SY-PAGNO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SKIP 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE:/1 'Invoice',&lt;/P&gt;&lt;P&gt;       15 'Due ',&lt;/P&gt;&lt;P&gt;       25 'Due ',&lt;/P&gt;&lt;P&gt;       35 'Unpaid',&lt;/P&gt;&lt;P&gt;       50 'Amount',&lt;/P&gt;&lt;P&gt;       65 'Current',&lt;/P&gt;&lt;P&gt;       75 '0-30 Days',&lt;/P&gt;&lt;P&gt;       90 '31-60 Days',&lt;/P&gt;&lt;P&gt;       105 '61-90 Days'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE:/1 'Number',&lt;/P&gt;&lt;P&gt;       15 'Date',&lt;/P&gt;&lt;P&gt;       25 'Days',&lt;/P&gt;&lt;P&gt;       35 'Amount',&lt;/P&gt;&lt;P&gt;       50 'Remaining',&lt;/P&gt;&lt;P&gt;       65 'Invoice'.&lt;/P&gt;&lt;P&gt;WRITE:/ SY-ULINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;skip 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : D1 like itab-BUDAT,&lt;/P&gt;&lt;P&gt;       D2 like itab-zfbdt,&lt;/P&gt;&lt;P&gt;       T1 TYPE T VALUE '091010',&lt;/P&gt;&lt;P&gt;       T2 TYPE T VALUE '121010',&lt;/P&gt;&lt;P&gt;       D3 TYPE P,&lt;/P&gt;&lt;P&gt;       T3 TYPE P.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'SD_DATETIME_DIFFERENCE'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;        DATE1            = D1&lt;/P&gt;&lt;P&gt;        TIME1            = T1&lt;/P&gt;&lt;P&gt;         DATE2            = D2&lt;/P&gt;&lt;P&gt;         TIME2            = T2&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;         DATEDIFF         = D3&lt;/P&gt;&lt;P&gt;         TIMEDIFF         = T3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;         INVALID_DATETIME = 1&lt;/P&gt;&lt;P&gt;         OTHERS           = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from lfc1&lt;/P&gt;&lt;P&gt;    where lifnr = lfc1-lifnr.&lt;/P&gt;&lt;P&gt;    endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from BSIS&lt;/P&gt;&lt;P&gt;      where BELNR = BSIS-BELNR.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from BSIk&lt;/P&gt;&lt;P&gt;      where BELNR = BSIk-BELNR.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE:/ ITAB-BELNR,&lt;/P&gt;&lt;P&gt;        12 itab-zfbdt,&lt;/P&gt;&lt;P&gt;        22 d3,&lt;/P&gt;&lt;P&gt;        35 itab-kursf,&lt;/P&gt;&lt;P&gt;        45 itab-rmwwr,&lt;/P&gt;&lt;P&gt;        60 lfc1-um01s,&lt;/P&gt;&lt;P&gt;        80  lfc1-um02s,&lt;/P&gt;&lt;P&gt;        100 lfc1-um03s.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;skip 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write:/ sy-uline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THANKS&lt;/P&gt;&lt;P&gt;MRUTYUN&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 May 2006 05:22:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-05-05T05:22:14Z</dc:date>
    <item>
      <title>Aging Interval for an Order Document</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/aging-interval-for-an-order-document/m-p/1346944#M174549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;What is the logic used to calculate the Aging Interval of an Order. I believe it is based on the Payment due date in the Billing Document. Can someone give input as to how to check the Aging Interval for an Order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Raj.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 May 2006 05:15:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/aging-interval-for-an-order-document/m-p/1346944#M174549</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-05T05:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: Aging Interval for an Order Document</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/aging-interval-for-an-order-document/m-p/1346945#M174550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;GOOD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GO THROUGH THIS REPORT&lt;/P&gt;&lt;P&gt;REPORT ZAP01 NO STANDARD PAGE HEADING .&lt;/P&gt;&lt;P&gt;TABLES: RBKPB,&lt;/P&gt;&lt;P&gt;        RBKP,&lt;/P&gt;&lt;P&gt;        lfa1,&lt;/P&gt;&lt;P&gt;        lfc1,&lt;/P&gt;&lt;P&gt;        bsIS,&lt;/P&gt;&lt;P&gt;        bsik.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : ITAB LIKE RBKP OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;data : dat1 like rbkp-BUDAT.&lt;/P&gt;&lt;P&gt;data : dat2 like rbkp-zfbdt.&lt;/P&gt;&lt;P&gt;data : days(10).&lt;/P&gt;&lt;P&gt;data : CONAME like LFA1-NAME1.&lt;/P&gt;&lt;P&gt;DATA  :TOT LIKE RBKP-KURSF.&lt;/P&gt;&lt;P&gt;DATA : TOTAL LIKE RBKP-rmwwr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen begin of block a with frame title T.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options : INVOICE for  rbkp-BUDAT.&lt;/P&gt;&lt;P&gt;selection-screen end of block a.&lt;/P&gt;&lt;P&gt;loop at INVOICE.&lt;/P&gt;&lt;P&gt;  CASE INVOICE-SIGN.&lt;/P&gt;&lt;P&gt;    WHEN 'I'.&lt;/P&gt;&lt;P&gt;  CASE INVOICE-OPTION.&lt;/P&gt;&lt;P&gt;    WHEN 'EQ'.&lt;/P&gt;&lt;P&gt;  SELECT * FROM RBKP APPENDING CORRESPONDING FIELDS OF TABLE ITAB WHERE&lt;/P&gt;&lt;P&gt;BUDAT = INVOICE-LOW ORDER BY LIFNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    WHEN 'BT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM RBKP APPENDING CORRESPONDING FIELDS OF TABLE ITAB WHERE&lt;/P&gt;&lt;P&gt;BUDAT  BETWEEN INVOICE-LOW AND INVOICE-HIGH ORDER BY LIFNR.&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write :/5 'MIMOS',&lt;/P&gt;&lt;P&gt;        40 'INVOICE AGAING REPORT',&lt;/P&gt;&lt;P&gt;        75 'REPORT DATE:',SY-DATUM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write:/75 'PAGE NO:',SY-PAGNO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SKIP 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE:/1 'Invoice',&lt;/P&gt;&lt;P&gt;       15 'Due ',&lt;/P&gt;&lt;P&gt;       25 'Due ',&lt;/P&gt;&lt;P&gt;       35 'Unpaid',&lt;/P&gt;&lt;P&gt;       50 'Amount',&lt;/P&gt;&lt;P&gt;       65 'Current',&lt;/P&gt;&lt;P&gt;       75 '0-30 Days',&lt;/P&gt;&lt;P&gt;       90 '31-60 Days',&lt;/P&gt;&lt;P&gt;       105 '61-90 Days'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE:/1 'Number',&lt;/P&gt;&lt;P&gt;       15 'Date',&lt;/P&gt;&lt;P&gt;       25 'Days',&lt;/P&gt;&lt;P&gt;       35 'Amount',&lt;/P&gt;&lt;P&gt;       50 'Remaining',&lt;/P&gt;&lt;P&gt;       65 'Invoice'.&lt;/P&gt;&lt;P&gt;WRITE:/ SY-ULINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;skip 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : D1 like itab-BUDAT,&lt;/P&gt;&lt;P&gt;       D2 like itab-zfbdt,&lt;/P&gt;&lt;P&gt;       T1 TYPE T VALUE '091010',&lt;/P&gt;&lt;P&gt;       T2 TYPE T VALUE '121010',&lt;/P&gt;&lt;P&gt;       D3 TYPE P,&lt;/P&gt;&lt;P&gt;       T3 TYPE P.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'SD_DATETIME_DIFFERENCE'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;        DATE1            = D1&lt;/P&gt;&lt;P&gt;        TIME1            = T1&lt;/P&gt;&lt;P&gt;         DATE2            = D2&lt;/P&gt;&lt;P&gt;         TIME2            = T2&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;         DATEDIFF         = D3&lt;/P&gt;&lt;P&gt;         TIMEDIFF         = T3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;         INVALID_DATETIME = 1&lt;/P&gt;&lt;P&gt;         OTHERS           = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from lfc1&lt;/P&gt;&lt;P&gt;    where lifnr = lfc1-lifnr.&lt;/P&gt;&lt;P&gt;    endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from BSIS&lt;/P&gt;&lt;P&gt;      where BELNR = BSIS-BELNR.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from BSIk&lt;/P&gt;&lt;P&gt;      where BELNR = BSIk-BELNR.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE:/ ITAB-BELNR,&lt;/P&gt;&lt;P&gt;        12 itab-zfbdt,&lt;/P&gt;&lt;P&gt;        22 d3,&lt;/P&gt;&lt;P&gt;        35 itab-kursf,&lt;/P&gt;&lt;P&gt;        45 itab-rmwwr,&lt;/P&gt;&lt;P&gt;        60 lfc1-um01s,&lt;/P&gt;&lt;P&gt;        80  lfc1-um02s,&lt;/P&gt;&lt;P&gt;        100 lfc1-um03s.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;skip 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write:/ sy-uline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THANKS&lt;/P&gt;&lt;P&gt;MRUTYUN&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 May 2006 05:22:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/aging-interval-for-an-order-document/m-p/1346945#M174550</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-05T05:22:14Z</dc:date>
    </item>
    <item>
      <title>Re: Aging Interval for an Order Document</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/aging-interval-for-an-order-document/m-p/1346946#M174551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mrutyun,&lt;/P&gt;&lt;P&gt;Thanks for the reply, &lt;/P&gt;&lt;P&gt;But what I am looking for is how do I check the Ageing Interval if I have the Billing Document Number and Sales Order Number. Should I be using Transaction VF03/VA03/Any Other Transaction. And which fields should I check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rajagopal.G&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 May 2006 06:05:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/aging-interval-for-an-order-document/m-p/1346946#M174551</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-05T06:05:22Z</dc:date>
    </item>
  </channel>
</rss>

