Is there a list of open items at key date per customer?

Hello,
In FBL5N you can get a list of open items for a customer at some specific date.
I'm looking for a summarized list that would give me a list of sums  of open items for some customer per day, so I would see for example for one month what was the sum of open items for this customer on each day.
Is there already some similar report in SAP?
Thanks and best regards,
David

Hi,
I still don't think we understand each other.
If I run FBL5N I have option to select:
- Items that are or were open at the key date are displayed on one date
- All items posted on the posting date specified fromde date1 to date2.
- Items that were cleared at the clearing date specified
I would like a list of all items from option 1 (Items that are or were open at the key date are displayed on one date) so items that are or were STILL open and not yet cleared on one date, but not just for one date but for more days.
If I use your suggestion I get what items opened or cleared on one day not how many items were still open on particular day.
So a list of how many opened items were there at the day, and notjust items that were opened on that day but also all previous items that were not yet cleared at that day.

Similar Messages

  • FBL5N - Open Item at key date

    Hi All
    For transcation FBL5N, for Open Item at key date, field name ALLGSTID which is a structure component, I want to know where actually the field value is stored, in which table.
    Regards
    AJ

    Hi,
    May be you can add the validation on clearing document in your query. e.g. <b>augbl <> SPACE .</b> ..
    And even if you are considering Invoices there are two different tables like
    BSIK or BSID - Open Items
    BSAK or BSAD - Cleared Items
    Hope this will solve your probelm.
    Assign points if it helps.
    -Gaurang

  • FBL1N - field for open item at key date

    Hi All,
    we are developing a customising report like FBL1N.
    for vendor open itesm, we have table BSIK. In that table, we could not find field for open items at key date.
    Could you please suggest which field we can use in table BSIK for that.
    Regards
    Deepak

    Hi
    You may find a list of some famous  tables on FI.. honestly i do not know which one is the required ? \\
    Accounting documents
        BKPF                Accounting documents
        BSEG               item level
        BSID                 Accounting: Secondary index for customers        
        BSIK                 Accounting: Secondary index for vendors          
        BSIM                 Secondary Index, Documents for Material          
        BSIP                 Index for vendor validation of double documents  
        BSIS                 Accounting: Secondary index for G/L accounts
        BSAD               Accounting: Index for customers (cleared items)
        BSAK                Accounting: Index for vendors (cleared items)  
        BSAS                Accounting: Index for G/L accounts (cleared items)
    Regards
    Mahmoud EL Nady

  • Open Items at key date

    Hello,
    I am not really an FI guy, but have a FI request that i am trying to fulfil.
    The request is as follows, basically the report FDK43 would be the ideal one if it had the option to choose open items at Key Date, from what i understand and see, it only shows the open items on the  current date.
    but since the report does not have that ,  i like to know if it is possible to create a query by joining tables or in the worst case scenario an z report.
    The 3 fields that are necessary to the users are, Credit Limit, AR balance, & Credit Exposure, and these should be able to pull up for say what 3 and 6 months prior to today date.
    the above report is for the comparison on what is the status today,and what it was 3 months and what it was 6 months ago.
    s_alr_87012178, & FBl5n does give the open items on the key date, but the credit limit and the credit exposure is not available on those reports.
    Hope i am able to spell out the request.
    Thanks in advance.
    Regards

    Hello PBB,
    It is close but that is not it, it is giving the 6 months and 12 months balance, but what we are looking for is the snap shot for a specific date the AR, credit limit, and credit exposure.
    as i mention before, the s_alr_87012178 report is giving that snap shot on a specify date for the AR, but does not have the credit limit and the credit exposure in that screen.
    regards

  • Table for vendor open item at key date

    Hi
    Could you please tell me the table which shows me the vendor open item at the date i want. I know BSIK shows open item at current date, but i need the table which shows open item at date i want.
    Thanks
    Sweta

    Dear Sweta,
    I think there is no such a table, as you expect, existing in SAP. As I know here are the
    most popular table about Accounting documents.
        Accounting documents
        BKPF                Accounting documents
        BSEG               item level
        BSID                 Accounting: Secondary index for customers         
        BSIK                 Accounting: Secondary index for vendors           
        BSIM                 Secondary Index, Documents for Material           
        BSIP                 Index for vendor validation of double documents   
        BSIS                 Accounting: Secondary index for G/L accounts
        BSAD               Accounting: Index for customers (cleared items) 
        BSAK                Accounting: Index for vendors (cleared items)   
        BSAS                Accounting: Index for G/L accounts (cleared items)
    If you need information about open line items of a certain day, you have to use ABAP.
    Regards.
    Maxielight.

  • FBL5N - Invoice History by Open Items at Key Date

    Hi Experts.
    I have a doubt. Is it posible in FBL5N to get the invoice status information by " Open Items: Open at key date" ?
    e.g. if I change the baseline date or House Bank information in 08/25/2010 and I get the report using the date: 08/24/2010, how can I get the information in that date?
    In my case, the system always show the last change, and not the invoice situation in specific date.
    Thanks .

    Yes, The system dislays the data with the current details (After changes).
    For open item key date, it consider the posting date (Which can not be changes, once document is posted).
    Regards,
    Gaurav

  • FBL5 FIAR - exception aggregation - count customers with open items at key

    Hello gurus,
    I have read the information about counting all values in reference to a characteristic. I manage to count how many customers have a FIAR open item 'billing status' = Open in my FIAR cube.
    Now I am asked to replicate transaction FBL5 of R3. This transaction will give you open items at a given key date by adding
    the items with
    A) Item status = 'O' and posting date <= key date
    and the items with
    B) Item status = 'C' and posting date < =key date and clearing date > key date.
    I calculate the net value by creating 2 restricted key figures and then adding them in a CKF.
    But for counting I have a problem. I can count how many customer make up the open items (case A)
    and how many customers makeup items that where cleared between key date and today.(case B).
    But I cannot sum the two numbers as there might be customers that are counted in both cases.
    For example I have 4 customers that correspond to case A : 1000 1011, 1012 and 1014
    And I have 3 customers that correspond to case B  1000 , 1011 and 1013
    I would like to get 5 as the number of customers that verify either case A or case B (or both).
    Is there a way to do this with the exception 'aggregation 'and 'count all values' property of CKF ?
    Claudio

    Hi,
    The logic given in the above post may be a bit confusing to you. Check out this explanation and try to understand what I mean.
    Posting Date - PD
    Key Date - KD
    Clearing Date - CD
    PD--KD--
    CD
    -O(Status)-C--O-----C
    -5107-----8
    Let me explain the above table.
    Between PD & KD there are 5 count with status'O' and 10 counts with status 'C'.
    Between KD & CD there are c counts with status 'O' & 8 counts with status 'C'.
    This means 5 with status 'C' becomes 7 between KD & CD.
    Similarly, 10 status with 'O' becomes 8.
    The logic I am trying to say is..
    If you don't want to get counts with status 'C'(repeated) as I understood) 7-5 = 2. Show this 2 as count for status 'C' between KD & CD.
    So the table will become like this now.
    PD--KD--
    CD
    -O(Status)-C--O-----C
    -5102(7)---2(8).
    In braces shown are the total with status 'O'/'C' for the dates.
    I hope this will solve your problem.
    Message was edited by: AVR - IGA

  • Customer open item clearing based on the customer PO no in Sales order

    Hi,
    Is it possible to clear customer open item based on teh customer PO number eneterd in the sales order BSTKD.
    Points will assigned for any useful answer.
    Thanks
    Vamsi

    Hi this i spossible and cleared.Thanks

  • Migration of Open Items with Old/New Vendor/Customer number

    Hi All,
    We are currently working on conversion of Open items. We already have data extracted from legacy system.
    Question : I understood that open items extract will have vendor number from legacy and conversion of vendor master will generate new vendor numbers. So what is the best way to update open items extract with new vendor numbers.
    Should be done via ABAP program using custom table to store old and new vendor numbers?
    What is the best approach to old/new number updation as this issue will again pop up during other conversion objects.
    Any help on this will be highly appreciated.
    Thanks,
    Dharmesh

    Hi Dharmesh
    In relation to your question about what is the best approach to  the old/new recoding, I donu2019t know it exactly.
    One option is yours: the custom table to store old and new vendor numbers.
    Another is to use the u201CSearch termu201D field in vendor master to store the old vendor number, and the ABAP program will look for the conversion in it. Furthermore in the future the user will be able to know the old code in case he/she needs to consult something in the legacy system. If you choose this option, I would recommend make this field only u201CDisplayu201D (not u201Centryu201D) in order to prevent the user from modifying it, once you have loaded the master.
    Other option could be to respect the legacy vendor numbers. It depends on the goodness of the legacy coding, technical-wise. If you selected this option, you must define the number range with u201Cnumber range flagu201D = external. In this way, when you register your vendors, you have to assign the vendor number, in this case this would be the legacy code. After the vendor loading process, you have to change the u201Cnumber range flagu201D = internal, and to change the u201Ccurrent numberu201D, typing the bigger vendor number. From that moment on, the system will assign vendor numbers automatically.
    I donu2019t know if I have helped you a little. If you want me to explain some aspect better, donu2019t hesitate to ask it to me.
    Best regards.
    PacoM

  • Dunning - sort open items by due date

    Dear experts,
    please help, havenu2019f found the right answer in the sap support channel or here.
    My question: I want to sort the result table of the dunning open items
    special on its due date.
    Any ideasu2026
    Thanks and regards..

    More information about my problem:
    I have setted my field under environment  > sort fields > dunning notice items
    New sort variant 50 u2013 for a test have tried the
    Sequence 1 u2013 budat
    Sequence 2 u2013 bldatu2026 (not necessary for test only )
    Also under environment I have changed the company code datau2026
    As:
    Comp code     Sort MHNK          sort MHND
    K1 (unchanged)     50 (new u2013 changed)     
    But still the dunning print will not react to the settingsu2026

  • Task list , Mtc plan staratagy change & Key date weekly plan?

    Dear
    I dont think as a std SAP transactions will allow my below req.
    1. I have created task list mtc stratagy as XXX. but i need to change as YYY.
    2. The same mentioned above for MTc plan
    3. I would like call the Mtc order on key date
    Example Pump has weekly, monthly tasks.
    1. Weekly schdules i need for every month 1st, 8th, 15th,22th no need 29th .
    2. We can call the monthly ops thro Key date . Here if i have mentioned in stratagy as 28 days instead of 30 days it will call?
    Pls any one have the soln
    Thanks
    Thenna

    hi
    i think it is not possible to change the maintenance strategy once assinged to task list,other option just try in the task list select the operation and select the maintenace package ,here delesect all the maintenance package alloted and then try to change it
    regards
    thyagarajan

  • Ap open items

    Hi please help me
    My object is to fetch AP open items(vendor)
    These are my output fields
           bukrs    TYPE lfb1-bukrs,                      "Company Code
           lifnr    TYPE lfa1-lifnr,                          "Vendor Account
           blart    TYPE bsik-blart,                        "Document Type
           name1    TYPE lfa1-name1,                   "Vendor Name
           ktokk    TYPE lfa1-ktokk,                       "Account Group
           belnr    TYPE bsik-belnr,                        "Invoice
           ebeln    TYPE bsik-ebeln,                        "Purchasing Order
           bldat    TYPE bsik-bldat,                        "Document Date
           wrbtr1   TYPE bsik-wrbtr,                       " amount
    and there are some other fields from bsik. and bsega.
    My selection screen has bukrs    bukrs(Company Code), lifnr (Vendor Account)
    and ketdate(sy-date).
    I am using bapi BAPI_AP_ACC_GETOPENITEMS
    CALL FUNCTION 'BAPI_AP_ACC_GETOPENITEMS'
          EXPORTING
            companycode = st_vendor-bukrs
            vendor      = st_vendor-lifnr
            keydate     = p_astid
          TABLES
            lineitems   = gt_lineitem.
    Which gives me all the fields .
    except   ebeln   ( "Purchasing Order) .
    Please help me how to get this.

    Hi,
    If you are not familiar with BAPI
    why can't you write a select statement for BSIK and BSAK table to fetch and display.
    see the sample code:
    REPORT  zfi_vendor_ageing
            NO STANDARD PAGE HEADING
            LINE-COUNT 58
           line-size 168
            MESSAGE-ID zh_msg.
           D A T A B A S E  T A B L E S   D E C L A R A T I O N
    TABLES: lfa1,           " Vendor Master (General)
            t001,           " Company Codes
            rfpdo.
         I N T E R N A L  T A B L E S  D E C L A R A T I O N S           *
    Internal Table for Vendor Open Items Data
    DATA: BEGIN OF int_bsik OCCURS 0,
            lifnr   LIKE bsik-lifnr,         " Vendor Number
            name1   LIKE lfa1-name1,         " Vendor Name
            shkzg   LIKE bsik-shkzg,         " Dr/Cr Indicator
            belnr   LIKE bsik-belnr,         " Document Number
            xblnr   LIKE bsik-xblnr,         " Ref Doc No
            blart   LIKE bsik-blart,         " Document Type
            zfbdt   LIKE bsik-zfbdt,         " Base Line Date
            zbd1t   LIKE bsik-zbd1t,         " Due date1
            zbd2t   LIKE bsik-zbd2t,         " Due Date2
            zbd3t   LIKE bsik-zbd3t,         " Due Date3
            waers   LIKE bsik-waers,         " Currency
            dmbtr   LIKE bsik-dmbtr,         " Amount in Local Curr
          END OF int_bsik.
    Internal Table for Amounts Sum Up Data
    DATA: BEGIN OF int_final OCCURS 0,
            lifnr   LIKE bsik-lifnr,         " Vendor Number
            name1   LIKE lfa1-name1,         " Vendor Name
            total1  LIKE bsik-dmbtr,         " Amount in Local Curr
            total2  LIKE bsik-dmbtr,         " Amount in Local Curr
            total3  LIKE bsik-dmbtr,         " Amount in Local Curr
            total4  LIKE bsik-dmbtr,         " Amount in Local Curr
            total5  LIKE bsik-dmbtr,         " Amount in Local Curr
            total6  LIKE bsik-dmbtr,         " Amount in Local Curr
            total   LIKE bsik-dmbtr,         " Amount in Local Curr
          END OF int_final.
               D A T A  D E C L A R A T I O N S
    DATA : v_flag,                          " Flag
           v_gtotal1     LIKE bsik-dmbtr,   " Amount Totals
           v_gtotal2     LIKE bsik-dmbtr,   " Amount Totals
           v_gtotal3     LIKE bsik-dmbtr,   " Amount Totals
           v_gtotal4     LIKE bsik-dmbtr,   " Amount Totals
           v_gtotal5     LIKE bsik-dmbtr,   " Amount Totals
           v_gtotal6     LIKE bsik-dmbtr,   " Amount Totals
           v_gtotal      LIKE bsik-dmbtr,   " Amount Totals
           v_subtotal1   LIKE bsik-dmbtr,   " Amount Totals
           v_subtotal2   LIKE bsik-dmbtr,   " Amount Totals
           v_subtotal3   LIKE bsik-dmbtr,   " Amount Totals
           v_subtotal4   LIKE bsik-dmbtr,   " Amount Totals
           v_subtotal5   LIKE bsik-dmbtr,   " Amount Totals
           v_subtotal6   LIKE bsik-dmbtr,   " Amount Totals
           v_subtotal    LIKE bsik-dmbtr,   " Amount Totals
           v_date        LIKE bsik-zfbdt,   " Due Date
           v_tage1(4),                      " Age 30 days
           v_tage2(4),                      " Age 60 days
           v_tage3(4),                      " Age 90 days
           v_fir(15),                       " Column Text1
           v_sec(15),                       " Column Text2
           v_thir(15),                      " Column Text3
           v_four(17),                      " Column Text4
           v_fidd(4),                       " Days field1
           v_sedd(4),                       " Days field2
           v_thdd(4),                       " Days field3
           v_fodd(4),                       " Days field4
           v_str  TYPE  SY-LISEL,           " String
           v_str1(11),                      " String
           v_tage(3),                       " String
           v_date1(10).                     " Date field
         R A N G E   D E C L A R A T I O N S
    RANGES: r_date1 FOR bsik-zfbdt,      " Date Range 1
            r_date2 FOR bsik-zfbdt,      " Date Range 2
            r_date3 FOR bsik-zfbdt,      " Date Range 3
            r_date4 FOR bsik-zfbdt.      " Date Range 4
             S E L E C T I O N  S C R E E N                      *
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    SELECT-OPTIONS: s_lifnr FOR lfa1-lifnr. "Vendor account
    PARAMETERS:     p_bukrs LIKE t001-bukrs. "Co. Code
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
    PARAMETERS:   p_allgst LIKE rfpdo-allgstid OBLIGATORY DEFAULT sy-datum.
    "Open items at key date
    SELECTION-SCREEN END OF BLOCK b2.
    SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-003.
    PARAMETERS: p_tage1 LIKE rfpdo1-allgfael DEFAULT '30',
                p_tage2 LIKE rfpdo1-allgfael DEFAULT '60',
                p_tage3 LIKE rfpdo1-allgfael DEFAULT '90',
                p_tage4 LIKE rfpdo1-allgfael DEFAULT '120'.
    SELECTION-SCREEN END OF BLOCK b3.
                  A T  S E L E C T I O N  S C R E E N                   *
    AT SELECTION-SCREEN.
    Validate the screen fields
      PERFORM validate_flds.
                   S T A R T  O F  S E L E C T I O N                    *
    START-OF-SELECTION.
    Fetch main data
      PERFORM fetch_data.
                           T O P  O F  P A G E
    Header
    TOP-OF-PAGE.
      PERFORM header.
                           E N D  O F  P A G E
    Footer
    END-OF-PAGE.
      ULINE.
       T O P  O F  P A G E  D U R I N G  L I N E  S E L E C T I O N     *
    Top of Page in Secondary List
    TOP-OF-PAGE DURING LINE-SELECTION.
      PERFORM header1.
                  A T  L I N E  S E L E C T I O N                    *
    AT LINE-SELECTION.
    Perform Line Selections
      PERFORM line_selection.
                     E N D  O F  S E L E C T I O N
    END-OF-SELECTION.
    List generation
      PERFORM basic_list.
    *&      Form  validate_flds
    Validation of Selection Screen fields
    FORM validate_flds .
    Validate Vendor Code
      CLEAR lfa1-lifnr.
      SELECT lifnr UP TO 1 ROWS
          INTO lfa1-lifnr
          FROM lfa1
          WHERE lifnr IN s_lifnr AND
                spras = sy-langu.
      ENDSELECT.
      IF sy-subrc <> 0.
        MESSAGE e000 WITH 'Invalid Vendor Code range'(023).
      ENDIF.
    Validate Company Code
      CLEAR t001-bukrs.
      SELECT bukrs  UP TO 1 ROWS
          INTO t001-bukrs
          FROM t001
          WHERE bukrs =  p_bukrs AND
                spras = sy-langu.
      ENDSELECT.
      IF sy-subrc <> 0.
        MESSAGE e021.      " Invalid Company Code range
      ENDIF.
      IF ( p_tage1 > p_tage2 ) OR ( p_tage1 > p_tage3 ) OR
          ( p_tage1 > p_tage4 ).
        MESSAGE e999 WITH 'Column 1 greater'(004)
                    'than Column# 2 or 3 or 4'(005).
      ENDIF.
    *column 2
      IF ( p_tage2 > p_tage3 ) OR ( p_tage1 > p_tage4 ).
        MESSAGE e999 WITH 'Column 2 greater'(006)
                    'than Column# 3 or 4'(007).
      ENDIF.
    *column3
      IF ( p_tage3 > p_tage4 ).
        MESSAGE e999 WITH 'Column 3 greater'(008)
                    'than Column#4'(009).
      ENDIF.
    ENDFORM.                    " validate_flds
    *&      Form  fetch_data
    Fetching Data from Database Tables
    FORM fetch_data .
    Date Range Population
      r_date1-sign   = 'I'.
      r_date1-option = 'BT'.
      r_date1-low    = p_allgst.
      r_date1-high    = r_date1-low + p_tage1.
      APPEND r_date1.
      r_date2-sign   = 'I'.
      r_date2-option = 'BT'.
      r_date2-low    =  r_date1-high + 1.
      r_date2-high    = r_date1-low + p_tage2.
      APPEND r_date2.
      r_date3-sign   = 'I'.
      r_date3-option = 'BT'.
      r_date3-low    = r_date2-high + 1.
      r_date3-high    = r_date1-low + p_tage3.
      APPEND r_date3.
      r_date4-sign   = 'I'.
      r_date4-option = 'BT'.
      r_date4-low    = r_date3-high + 1.
      r_date4-high    = r_date1-low + p_tage4.
      APPEND r_date4.
    Select the Vendor Open Items data from BSIK
      SELECT l~lifnr
             l1~name1
             b~waers
             b~dmbtr
             b~zfbdt
             b~zbd1t
             b~zbd2t
             b~zbd3t
             b~belnr
             b~xblnr
             b~shkzg
             b~blart
       INTO CORRESPONDING FIELDS OF TABLE int_bsik
       FROM lfb1 AS l INNER JOIN lfa1 AS l1
                    ON llifnr  = l1lifnr
           INNER JOIN   bsik AS b
             ON llifnr  = blifnr AND
                lbukrs  = bbukrs
             WHERE l~lifnr  IN s_lifnr AND
                   l~bukrs = p_bukrs and
                   b~zfbdt le p_allgst.
      IF SY-SUBRC <> 0.
        MESSAGE i000 WITH 'No Data found'(027).
      ENDIF.
    Removing the date limit to get the due items in the past
      DELETE int_bsik WHERE
                  ( blart  NE 'RE' AND blart  NE 'KR' ) OR
                    shkzg  NE 'H'.
      SORT int_bsik BY lifnr.
    ENDFORM.                    " fetch_data
    *&      Form  header
    Display the Report Columns
    FORM header .
      v_tage1 = p_tage1 + 1.
      v_tage2 = p_tage2 + 1.
      v_tage3 = p_tage3 + 1.
      v_fidd = p_tage1.
      v_sedd = p_tage2.
      v_thdd = p_tage3.
      v_fodd = p_tage4.
      MOVE v_fodd0(4) TO v_fodd1(3).
      v_fodd+0(1) = space.
      CONCATENATE '1 to'(010) v_fidd INTO v_fir.
      CONCATENATE v_tage1 ' to '(011) v_sedd INTO v_sec.
      CONCATENATE v_tage2 ' to '(011) v_thdd INTO v_thir.
      CONCATENATE v_tage3 ' to '(011) space v_fodd INTO v_four.
    Standard header
      clear: v_date1, v_str, v_str1, v_tage.
      write p_allgst to v_date1.
      Move  p_tage4 to v_tage.
      concatenate '>' v_tage text-025 into v_str1.
      concatenate
      'Summary of Ageing Analysis for Vendor Open Invoices as on'(013)
       v_date1 into v_str separated by space.
      FORMAT COLOR OFF.
      WRITE  : /1(168) sy-uline.
      FORMAT COLOR 1 INTENSIFIED.
      WRITE :/1 sy-vline, 13 sy-vline, 49 sy-vline,
            50(101) 'Invoices Due For(In Days)'(014) CENTERED,
           151 sy-vline, 168 sy-vline .
      WRITE :/1 sy-vline,  2(11)  'Vendor#'(015) CENTERED,
             13 sy-vline ,14(35) 'Vendor Name'(016) CENTERED,
             49 sy-vline,
             50(101) sy-uline,151 sy-vline,
            152(16) 'Total'(017) CENTERED,
            168 sy-vline.
      WRITE : /1 sy-vline,13 sy-vline,      49 sy-vline,
              50(16) v_fir CENTERED,        66 sy-vline,
              67(16) v_sec CENTERED,        83 sy-vline,
              84(16) v_thir CENTERED,      100 sy-vline,
             101(16) v_four CENTERED,      117 sy-vline,
             118(16) v_str1 centered,      134 sy-vline,
             135(16) 'Already Overdue'(018) CENTERED,151 sy-vline,
             168 sy-vline.
      FORMAT COLOR OFF.
      WRITE  : /1(168) sy-uline.
    ENDFORM.                    " header
    *&      Form  basic_list
    Display the Basic List
    FORM basic_list .
      NEW-PAGE LINE-SIZE 168.
      LOOP AT int_bsik.
        CLEAR v_date.
        IF int_bsik-zbd3t <> ' '.
          v_date = int_bsik-zfbdt + int_bsik-zbd3t.
        ELSE.
          IF int_bsik-zbd2t <> ' '.
            v_date = int_bsik-zfbdt + int_bsik-zbd2t.
          ELSE.
            v_date = int_bsik-zfbdt + int_bsik-zbd1t.
          ENDIF.
        ENDIF.
        IF int_bsik-zbd1t = ' '.
          v_date = int_bsik-zfbdt.
        ENDIF.
        IF v_date IN r_date1.
          int_final-total1 =   int_final-total1 +  int_bsik-dmbtr.
        ELSEIF v_date IN r_date2.
          int_final-total2 =   int_final-total2 +  int_bsik-dmbtr.
        ELSEIF v_date IN r_date3.
          int_final-total3 =   int_final-total3 +  int_bsik-dmbtr.
        ELSEIF v_date IN r_date4.
          int_final-total4 =   int_final-total4 +  int_bsik-dmbtr.
        ELSEif v_date > r_date4-high.
          int_final-total5 =   int_final-total5 +  int_bsik-dmbtr.
        ELSEif v_date < p_allgst.
          int_final-total6 =   int_final-total6 +  int_bsik-dmbtr.
        ENDIF.
        AT END OF lifnr.
          v_flag = 1.
        ENDAT.
        IF v_flag = 1.
          int_final-lifnr = int_bsik-lifnr.
          int_final-name1 = int_bsik-name1.
          int_final-total =   int_final-total1 + int_final-total2 +
           int_final-total3 + int_final-total4 + int_final-total5 +
           int_final-total6.
          APPEND int_final.
          v_gtotal1 = v_gtotal1 + int_final-total1.
          v_gtotal2 = v_gtotal2 + int_final-total2.
          v_gtotal3 = v_gtotal3 + int_final-total3.
          v_gtotal4 = v_gtotal4 + int_final-total4.
          v_gtotal5 = v_gtotal5 + int_final-total5.
          v_gtotal6 = v_gtotal6 + int_final-total6.
          v_gtotal = v_gtotal + int_final-total.
          WRITE: /1 sy-vline,
                  2 int_final-lifnr COLOR 4 INTENSIFIED ON,
                 13 sy-vline,
                 14 int_final-name1 COLOR 4 INTENSIFIED ON,
                 49 sy-vline.
          DATA : v_rem.
          v_rem = sy-tabix MOD 2.
          IF v_rem NE 0.
            FORMAT COLOR 2 INTENSIFIED.
            WRITE :    50 int_final-total1 CURRENCY int_bsik-waers,
                       66 sy-vline,
                       67 int_final-total2 CURRENCY int_bsik-waers,
                       83 sy-vline,
                       84 int_final-total3 CURRENCY int_bsik-waers,
                      100 sy-vline,
                      101 int_final-total4 CURRENCY int_bsik-waers,
                      117 sy-vline,
                      118 int_final-total5 CURRENCY int_bsik-waers,
                      134 sy-vline,
                      135 int_final-total6 CURRENCY int_bsik-waers,
                      151 sy-vline,
                      152 int_final-total CURRENCY int_bsik-waers,
                      168 sy-vline.
          ELSE.
            WRITE :    50 int_final-total1 CURRENCY int_bsik-waers,
                       66 sy-vline,
                       67 int_final-total2 CURRENCY int_bsik-waers,
                       83 sy-vline,
                       84 int_final-total3 CURRENCY int_bsik-waers,
                      100 sy-vline,
                      101 int_final-total4 CURRENCY int_bsik-waers,
                      117 sy-vline,
                      118 int_final-total5 CURRENCY int_bsik-waers,
                      134 sy-vline,
                      135 int_final-total6 CURRENCY int_bsik-waers,
                      151 sy-vline,
                      152 int_final-total CURRENCY int_bsik-waers,
                      168 sy-vline.
          ENDIF.
          FORMAT COLOR OFF.
          HIDE int_final.
          CLEAR int_final.
          v_flag = 0.
        ENDIF.
        AT LAST.
          WRITE  : /1(168) sy-uline.
          FORMAT COLOR 3 INTENSIFIED.
          WRITE : /1 sy-vline,  2(47) 'GRAND TOTAL'(022) CENTERED,
                  49 sy-vline, 50 v_gtotal1 CURRENCY int_bsik-waers,
                  66 sy-vline, 67 v_gtotal2 CURRENCY int_bsik-waers,
                  83 sy-vline, 84 v_gtotal3 CURRENCY int_bsik-waers,
                 100 sy-vline,101 v_gtotal4 CURRENCY int_bsik-waers,
                 117 sy-vline,118 v_gtotal5 CURRENCY int_bsik-waers,
                 134 sy-vline,135 v_gtotal6 CURRENCY int_bsik-waers,
                 151 sy-vline,152 v_gtotal CURRENCY int_bsik-waers,
                 168 sy-vline.
          HIDE :  v_gtotal1,
                  v_gtotal2,
                  v_gtotal3,
                  v_gtotal4,
                  v_gtotal5,
                  v_gtotal6,
                  v_gtotal.
        ENDAT.
        FORMAT COLOR OFF.
      ENDLOOP.
      WRITE  : /1(168) sy-uline.
    ENDFORM.                    " basic_list
    *&      Form  line_selection
    When double clicked on the line display the seconday list
    FORM line_selection .
      NEW-PAGE LINE-SIZE 206.
    Sy-lsind = 1.
      DATA : v_rem,v_cnt LIKE sy-tabix.
      v_cnt = 0.
      SORT int_bsik BY belnr zfbdt.
      LOOP AT int_bsik WHERE lifnr EQ int_final-lifnr.
        v_rem = v_cnt MOD 2.
        CLEAR v_date.
        IF int_bsik-zbd3t <> ' '.
          v_date = int_bsik-zfbdt + int_bsik-zbd3t.
        ELSE.
          IF int_bsik-zbd2t <> ' '.
            v_date = int_bsik-zfbdt + int_bsik-zbd2t.
          ELSE.
            v_date = int_bsik-zfbdt + int_bsik-zbd1t.
          ENDIF.
        ENDIF.
        IF int_bsik-zbd1t = ' '.
          v_date = int_bsik-zfbdt.
        ENDIF.
        IF v_rem NE 0.
          format color 2 intensified.
          WRITE :/1 sy-vline, 2 int_bsik-belnr,
                 12 sy-vline,13 int_bsik-lifnr,
                 23 sy-vline,24 int_bsik-name1,
                 59 sy-vline,60 int_bsik-xblnr,
                 76 sy-vline,77 int_bsik-zfbdt,
                 87 sy-vline.
          WRITE : 104 sy-vline,121 sy-vline,
                  138 sy-vline,155 sy-vline,
                  172 sy-vline, 189 sy-vline,
                  190 int_bsik-dmbtr CURRENCY int_bsik-waers,
                  206 sy-vline.
          IF v_date IN r_date1.
            v_subtotal1 =   v_subtotal1 +  int_bsik-dmbtr.
            WRITE : 88 int_bsik-dmbtr  CURRENCY int_bsik-waers.
          ELSEIF v_date IN r_date2.
            v_subtotal2 =   v_subtotal2 +  int_bsik-dmbtr.
            WRITE : 105 int_bsik-dmbtr CURRENCY int_bsik-waers.
          ELSEIF v_date IN r_date3.
            v_subtotal3 =   v_subtotal3 +  int_bsik-dmbtr.
            WRITE : 122 int_bsik-dmbtr CURRENCY int_bsik-waers.
          ELSEIF v_date IN r_date4.
            v_subtotal4 =   v_subtotal4 +  int_bsik-dmbtr.
            WRITE : 139 int_bsik-dmbtr CURRENCY int_bsik-waers.
          ELSEif v_date > r_date4-high.
            v_subtotal5 =   v_subtotal5 +  int_bsik-dmbtr.
            WRITE : 156 int_bsik-dmbtr CURRENCY int_bsik-waers.
          ELSEif v_date < p_allgst.
            v_subtotal6 =   v_subtotal6 +  int_bsik-dmbtr.
            WRITE : 173 int_bsik-dmbtr CURRENCY int_bsik-waers.
          ENDIF.
          format color off.
        ELSE.
          WRITE :/1 sy-vline, 2 int_bsik-belnr,
                 12 sy-vline,13 int_bsik-lifnr,
                 23 sy-vline,24 int_bsik-name1,
                 59 sy-vline,60 int_bsik-xblnr,
                 76 sy-vline,77 int_bsik-zfbdt,
                 87 sy-vline.
          WRITE : 104 sy-vline,121 sy-vline,
                  138 sy-vline,155 sy-vline,
                  172 sy-vline,189 sy-vline,
                  190 int_bsik-dmbtr CURRENCY int_bsik-waers,
                  206 sy-vline.
          IF v_date IN r_date1.
            v_subtotal1 =   v_subtotal1 +  int_bsik-dmbtr.
            WRITE : 88 int_bsik-dmbtr CURRENCY int_bsik-waers.
          ELSEIF v_date IN r_date2.
            v_subtotal2 =   v_subtotal2 +  int_bsik-dmbtr.
            WRITE : 105 int_bsik-dmbtr CURRENCY int_bsik-waers.
          ELSEIF v_date IN r_date3.
            v_subtotal3 =   v_subtotal3 +  int_bsik-dmbtr.
            WRITE : 122 int_bsik-dmbtr CURRENCY int_bsik-waers.
          ELSEIF v_date IN r_date4.
            v_subtotal4 =   v_subtotal4 +  int_bsik-dmbtr.
            WRITE : 139 int_bsik-dmbtr CURRENCY int_bsik-waers.
          ELSEif v_date > r_date4-high.
            v_subtotal5 =   v_subtotal5 +  int_bsik-dmbtr.
            WRITE : 156 int_bsik-dmbtr CURRENCY int_bsik-waers.
          ELSEif v_date < p_allgst.
            v_subtotal6 =   v_subtotal6 +  int_bsik-dmbtr.
            WRITE : 173 int_bsik-dmbtr CURRENCY int_bsik-waers.
          ENDIF.
        ENDIF.
        FORMAT COLOR OFF.
        v_cnt = v_cnt + 1.
      ENDLOOP.
      WRITE : /1(206) sy-uline.
      v_subtotal = v_subtotal1 + v_subtotal2 + v_subtotal3
                  + v_subtotal4 + v_subtotal5 + v_subtotal6.
      FORMAT COLOR 3 INTENSIFIED.
      WRITE : /1 sy-vline,
                 2(85) 'Total'(017) CENTERED CURRENCY int_bsik-waers ,
                 87 sy-vline,
                 88 v_subtotal1 CURRENCY int_bsik-waers,
                104 sy-vline,
                105 v_subtotal2 CURRENCY int_bsik-waers,
                121 sy-vline,
                122 v_subtotal3 CURRENCY int_bsik-waers,
                138 sy-vline,
                139 v_subtotal4 CURRENCY int_bsik-waers,
                155 sy-vline,
                156 v_subtotal5 CURRENCY int_bsik-waers,
                172 sy-vline,
                173 v_subtotal6 CURRENCY int_bsik-waers,
                189 sy-vline,
                190 v_subtotal CURRENCY int_bsik-waers,
                206 sy-vline.
      FORMAT COLOR OFF.
      WRITE : /1(206) sy-uline.
      CLEAR : v_subtotal,v_subtotal1,v_subtotal2,v_subtotal3,
              v_subtotal4,v_subtotal5,v_gtotal1,v_gtotal2,v_gtotal3,
              v_gtotal4, v_gtotal5,v_gtotal,v_subtotal6,v_gtotal6.
    ENDFORM.                    " line_selection
    *&      Form  header1
    Secondary List Header
    FORM header1 .
    Standard header
      clear: v_date1, v_str, v_str1, v_tage.
      write p_allgst to v_date1.
      Move  p_tage4 to v_tage.
      concatenate '>' v_tage text-025 into v_str1.
      concatenate
       'Details of Ageing Analysis for Vendor Open Invoices as on'(024)
        v_date1 into v_str separated by space.
      FORMAT COLOR 1 intensified.
      WRITE  :/1(206) sy-uline.
      WRITE  :/1 sy-vline,12 sy-vline ,
              23 sy-vline,59 sy-vline,76 sy-vline,87 sy-vline,
              88(101) 'Invoices Due For(In Days)'(014) CENTERED,
             189 sy-vline,206 sy-vline.
      WRITE  : /1 sy-vline,  2(10) 'Doc Number'(021) CENTERED,
               12 sy-vline, 13(10) 'Vendor#'(015) CENTERED,
               23 sy-vline, 24(35) 'Vendor Name'(016) CENTERED,
               59 sy-vline, 60(16) 'Ref invoice#'(019) CENTERED,
               76 sy-vline, 77(10) 'Inv dt'(020) CENTERED,
               87 sy-vline, 88(101) sy-uline,
              189 sy-vline,190(16) 'Total'(017) CENTERED,
              206 sy-vline.
      WRITE : /1 sy-vline, 12 sy-vline,
               23 sy-vline,59 sy-vline,
               76 sy-vline,87 sy-vline,
               88(16) v_fir CENTERED, 104 sy-vline,
              105(16) v_sec CENTERED, 121 sy-vline,
              122(16) v_thir CENTERED, 138 sy-vline,
              139(16) v_four CENTERED, 155 sy-vline,
              156(16) v_str1 CENTERED,
              172    sy-vline,
              173(16) 'Already Overdue'(018) CENTERED,
              189 sy-vline,
              206 sy-vline.
              format color off.
      WRITE  : /1(206) sy-uline.
    ENDFORM.                                                    " header1
    reward points if useful
    regards
    Anji

  • Open Items Count not matching in FBL3N

    Hi All,
    Kindly help with below urgent issue:
    My client is using the Bank Reconciliation process (Manual). They have done the reconciliation for the SBI bank till 10th April 2014. They are using only three accounts : Main bank, Payment  and Receipt Account.
    Now want a clarification in in the FBL3N report, when they see the Payment account.
    The issue is as follows:
    1. When the user sees the Open Items as on 10.04.2014, he can see 17 items.
    2. But when he sees All Items Posted till 10.04.2014, he can see 16 open items. Once Items less that got cleared on 24th April.
    So if it got cleared on 24th April, it should show in the Open Items also when the users tries to see All Items posted till 10th April 2014.
    I have attached all the necessary screenshots.
    Below is the user comment  " In FBL3N, If you see the GL 2000151052, in open item dated 10.04.2014, it shows 17 items. But with all item from 01.04.2014 to 10.0402014, it shows 16 items."
    Kindly advice.

    Hello,
    Yes. You are right. All items would show all the documents that have posting date in the given range.
    Even if you create a document today with pas posting date, it would come in all items list.
    If a document is cleared on a particular day, it would come in cleared list as on that date. If you give one day before, it would show as open item.
    Technically, an item is open and cleared on clearing date.
    EG: At 10 am, item is open. You clear the item after 10 am, status would be cleared after 10. Since SAP dont track clearing time, item would be shown as cleared as on clearing date.
    Note: All items option will always show current status of the item. If you want the status as on particular date, please try open items at key date/cleared items at key date options.
    Post a doc on 15.04.14 with posting date 01.04.14, clear it on 16.04
    Open items option as on 01.04 or 15.04-Shown open
    Cleared item option as on 01.04 or 15.04- No result, as on 16.04, cleared
    All items as on 01.4 to 15.04 (Run on 15.04) -Shows Open, Run on 16.04 with same dates-Shows cleared (Current status)
    You can try posting one document and run with different options to understand better.
    Hope the concept is clear
    Thanks,
    V V

  • G/L A/C OUTSTANDING SHOWING CLEARED IN ALL ITEMS ON SAME DATE

    Dear Expert
    G/L A/C outstanding documents are showing cleared transactions in all items category
    using the same date in FBL1N.
    To illustrate in detail when we click on the radio button with
    open item with date 17.11.2009 i  m getting certain uncleared
    documents, now when I am using the radio button with all items with
    same date i m getting all those docs which were uncleared showing
    cleared.While in the database documents are showing in BSAK table only.
    What are the causes for the same .
    Thanks - Viral

    The items that you are questioning most likely were cleared after 17.11.2009.  When you run FBL1N for open items with key date 17.11.2009, SAP will show you all items that were open as of that date - even if the items have since been cleared.  When you run FBL1N for all items, their clearing status is displayed as of the current date.  For example, if an item was cleared on 18.11.2009, then it was open as of 17.11.2009, but is cleared as of today.
    Regards,
    Shannon

  • Attachment indicator in the open items list (TA: FBL5N)

    Hello,
    We need in the transaction FBL5N in the list open items a column with an indicator for attachments.
    Attachments are for example PDF documents, which we attach in a booking document.
    Ist there a possiblility to have in the list for open items an indicator for attachments?
    Thank you for response.
    Kind regards
    Ina Morgenstern

    Hi Ina,
    I think I saw something on the forum quite a while back about using BADI FI_ITEMS_MENU01 or something like that. There you might be able to create an icon that calls the object services with your attached documents. Have a search through the forums.
    Kris

Maybe you are looking for

  • Error message when trying to download an app

    All of the sudden when I try to log in on my iPad to buy an app II get an unknown error message.  I can still log in on my iPhone.  I tried shutting down and restarting my iPad twice with no success.  Any other suggestions?

  • Trying to create MPEG-2 with .mpg extension

    A client requires an MPEG-2 file with .mpg extension, less than 10 Mbps bit rate, twin channel mono audio. Can I create this in compressor from a .mov? If I choose multiplexed audio and then manually change the extension from m2t to mpg will this wor

  • Remove Zeroes in Sales Quotation PLD

    Hi Members, I have designed the sales quotation PLD in which i have configured for two decimal places. If i use suppress zeroes option in PLD, The decimal places zeroes are also not getting displayed. example if the amount is 256.00,if i use suppress

  • How to Debug During Event Linkage( Reciever Function Module )

    Hi all,        If anybody knows how to debug a reciever function module in event linkage method then please respond.The scenario is that whenever service order is changed the change event will fire the custom business object which has a supertype BUS

  • Master data Synchronizing program in BCS

    Hi, When i executing Master data Synchronizing program:UGMD_BATCH_SYNC .Where i got the selections and i have given below selection conditions to run the program. application = 10 application area = FL Field Name = /1FB/COMPANY Synchronization Mode:Y