Function module for customer open item aging report

Hi all,
Please let me know the FM for customer open item aging or which FM is used in tcode S_ALR_87012178 to get the age wise open item of customer.
Thanks in advance
Regards
Puneet

<b><u>Part4</u></b><br />
<br />
<pre class="jive-pre"><code class="jive-code jive-java"><font color="red">&quot;&#38;----</font>
<font color="red">&quot;*&#38;      Form  process_data</font>
<font color="red">&quot;&#38;----</font>
FORM PROCESS_DATA .
  DATA : L_TOTAL_TMP(15). <font color="red">&quot; LIKE BSID-DMBTR. </font>
  CLEAR :  L_TOTAL,LPD_TOTALS.
<font color="red">&quot;* As per Customer accumulate the amount.</font>
<font color="red">&quot;* For overdue items.</font>
  CLEAR : L_TOTAL_TMP.
  LOOP AT L_OPENDUE_LT.
  CONDENSE L_OPENDUE_LT-DMBTR NO-GAPS.
  L_TOTAL_TMP = L_TOTAL_TMP + L_OPENDUE_LT-DMBTR.
    AT END OF KUNNR.
      LPD_TOTALS-KUNNR = L_OPENDUE_LT-KUNNR.
      LPD_TOTALS-LPD_TOTAL = L_TOTAL_TMP.
      APPEND LPD_TOTALS.
      CLEAR : L_TOTAL_TMP.
    ENDAT.
  ENDLOOP.
  CLEAR :  L_TOTAL,LOA_TOTALS.
<font color="red">&quot;* As per Customer accumulate the amount.</font>
<font color="red">&quot;* For Open Items.</font>
  CLEAR : L_TOTAL_TMP.
  LOOP AT L_OPENDUE_LE.
    CONDENSE L_OPENDUE_LE-DMBTR NO-GAPS.
    L_TOTAL_TMP = L_TOTAL_TMP + L_OPENDUE_LE-DMBTR.
    AT END OF KUNNR.
      LOA_TOTALS-KUNNR = L_OPENDUE_LE-KUNNR.
      LOA_TOTALS-LOA_TOTAL = L_TOTAL_TMP.
      APPEND LOA_TOTALS.
      CLEAR : L_TOTAL_TMP.
    ENDAT.
  ENDLOOP.
<font color="red">&quot;* Get ageing data based slabs, and duedate.</font>
  PERFORM AGEING_DATA.
  LOOP AT L_BSID.
<font color="red">&quot;* Move the data to final internal table.</font>
    MOVE L_BSID-KUNNR TO FINAL_DATA-KUNNR.
    MOVE L_LANDX TO FINAL_DATA-LANDX.
    MOVE L_PSTLZ TO FINAL_DATA-PSTLZ.
    MOVE L_NAME TO FINAL_DATA-NAME1.
    MOVE L_PHONE TO FINAL_DATA-PHONE.
    MOVE L_SORTL TO FINAL_DATA-SORTL.
    MOVE L_BSID-ZTERM TO FINAL_DATA-ZTERM.  
    MOVE L_BUSAB TO FINAL_DATA-BUSAB.        
    READ TABLE LPD_TOTALS WITH KEY KUNNR = L_BSID-KUNNR.
    IF SY-SUBRC EQ 0.
      MOVE LPD_TOTALS-LPD_TOTAL TO FINAL_DATA-LPD_TOTAL.
    ENDIF.
    READ TABLE LOA_TOTALS WITH KEY KUNNR = L_BSID-KUNNR.
    IF SY-SUBRC EQ 0.
      MOVE LOA_TOTALS-LOA_TOTAL TO FINAL_DATA-LOA_TOTAL.
    ENDIF.
    READ TABLE AGE_DATA WITH KEY KUNNR = L_BSID-KUNNR.
    IF SY-SUBRC EQ 0.
      MOVE AGE_DATA-CURAMT TO FINAL_DATA-CURAMT.
      MOVE AGE_DATA-AMT1 TO FINAL_DATA-AMT1.
      MOVE AGE_DATA-AMT2 TO FINAL_DATA-AMT2.
      MOVE AGE_DATA-AMT3 TO FINAL_DATA-AMT3.
      MOVE AGE_DATA-AMT4 TO FINAL_DATA-AMT4.
      MOVE AGE_DATA-AMT5 TO FINAL_DATA-AMT5.
      MOVE AGE_DATA-AMT6 TO FINAL_DATA-AMT6.
    ENDIF.
    ENDIF.
    APPEND FINAL_DATA.
    CLEAR: FINAL_DATA.
  ENDLOOP.
ENDFORM.                    <font color="red">&quot; process_data</font>
</code></pre>

Similar Messages

  • Function Module for GL Open Items

    Could any body from forum tell me that "there is any Function Module for General Ledge open Items".
    Rgds,
    Raju

    user exit F1040001 can be found in SMOD...and this is for
    Reserve for bad debt - calculate percentages
    This is only one available for FBL3N.
    Regards,
    Velumani

  • Customer Open Balance Aging Report S_ALR_87012178

    hello,
    we are using this report Customer Open Balance Aging Report S_ALR_87012178 but when run, it brings customers' names from VD03 search field, instead it would be handy to see full names from Name-field. I understand S_ALR_87012178 is a static report, but my question would be is there any other transaction/report which shows the same but with customers' full name?
    thanks in advance

    S_ALR_87012178 is the only standard customer aging report.
    Following two solutions I could think of to fit your requirements.
    Develop a custom report by copying standard customer reports that have full customer name and make changes according to your need.
    Or
    In report S_ALR_87012178 the customer name is populated in Address field. So you can use this field as your customer name and develop a custom report.
    Thanks

  • Inbound function module for  custom IDOC

    HI,
    I have created custom IDOC.I need to create inbound function module for that custom IDOC.Can any one send me sample
    function module for custom IDOC.(what are all the import Export,tables  parameters and exceptions  that I need  to create for function module)
    Thanks&Regards
    Rama.Mekala

    HI Rama,
    I presumed that You are talking about a FM to create inbound IDOC. So for creating inbound IDOC you can use '
        CALL FUNCTION 'IDOC_INBOUND_ASYNCHRONOUS'
        TABLES
          idoc_control_rec_40 = gt_edidc
          idoc_data_rec_40    = gt_edidd.
      IF sy-subrc NE 0.
    *    MESSAGE e000 WITH text-003.
    *  ELSE.
    *    MESSAGE i000 WITH text-004  .
      ENDIF.
    just prepare edidc and edidd record in and pass it to the FM..
    Hope this will work for you...
    Thanks

  • Report for customer open item exclude vat

    Dear Experts,
    Is there a report in SAP which can extract the customer open items with VAT amount excluded?
    Thank you

    You have to customize a report. There is no standard report for this.

  • Function module for custom report for cost center group

    Hello all,
    I wonder, if there is any SAP function module for following query:
    We have got a custom program, which evaluates cost centers. We would like to evaluate a cost center group, like it is available within the report painter - the output screen is splitted into two parts, on the left part there is the cost centre group hierarchy and on the right side, there are the values for the node, which is selected within the hierarchy.
    Is there any standard function module od do we have to program it ourself?
    Thanks in advance

    Hi Peter,
    You have a BAPI which gives you the details of cost centre group, if this is what you are looking for:
    BAPI_COSTCENTERGROUP_GETLIST
    Regards,
    Eli

  • BAPI or FM or Class for Customer open items CLEAR (F-32)

    Hi Everyone,
    Is there any BAPI or FM to CLEAR customer open items (F-32).
    Thanks,
    NK

    Hi,
    For clearing open items you can use BAPI_ACC_DOCUMENT_POST.
    but need to write extra code in BTE
    check this function module SAMPLE_INTERFACE_RWBAPI01.
    need to update below four fields of table accit.
    REBZG (document no against u want to clear)
    REBZJ (fiscal year)
    REBZZ (line item)
    REBZT
    to update these field use BTE.
    Thanks,
    Avadhut.

  • Function Module for GL open Itmes

    Could any body from forum tell me that "there is any Function Module for General Ledge open Items".
    Rgds,
    Raju

    Try the below FMs
    BAPI_AR_ACC_GETOPENITEMS -->  Customer account open items at a key date
    BAPI_AP_ACC_GETOPENITEMS -->  Vendor Account Open Items at a Key Date
    Hope this helps.
    Thanks
    Balaji

  • Function module for customer debit note/credit note

    Hi
    Can you please tell us the function module for the following:
    1. Customer debit note
    2. Customer credit note
    Also, we would like to have function module for extracting GL balances at business area/profit center level.
    Regards
    S.Radhakrishnan

    Hi
    We are looking for function module for posting FI Invoice/credit memo using FB70/FB75.
    Also, we need function module for extracting GL balances at business area/profit center level.
    Regards
    S.Radhakrishnan

  • Table for customer open items

    Hi,what is table name where we can see customer open items
    BR.AJ

    Hi,.
    I am not sure of the table name..
    U may use this transaction code to find the open items of a customer... S_ALR_87012173
    See if this is of any help to you...
    FAGL_S_RFDEPL00_LIST1
    POINTS PLZ
    Cheers
    Raghu

  • Drill down report for due date analysis for customer open items

    Hi, in transaction FDI0 i am using report 0SAPDUEAN-01 Due Date Analysis for Open Items .The reason i am using this is that s_alr_87012178 caters for only 6 intervals. With this report , i get 8 intervals:
    daily intervals Due Not Due Total OI
    0 - 30 0,00 0,00 0,00
    31 - 60 67.000,00- 0,00 67.000,00-
    61 - 90 0,00 0,00 0,00
    91 - 120 20.020,86 0,00 20.020,86
    121 - 150 3.270,00 0,00 3.270,00
    151 - 180 0,00 0,00 0,00
    181 - 210 0,00 0,00 0,00
    211 - 99999 0,00 0,00 0,00
    Total open items 43.709,14- 0,00 43.709,14-
    Is it possible to change the intervals through custo? i need intervals:
    0 - 30
    31 - 60
    91-120
    121-150
    151-365
    >365

    Hi AA
    refer this link where in I have given the screen shots
    http://img233.imageshack.us/g/86081486.jpg/
    The 1st screen shot is COPY of the Std Form
    The 2nd scren shot shows how to add new interval
    Br, Ajay M

  • BADI or function module for updating open purchase orders

    Hi all,
    Does anyone know of a BADI or function module which can be used for updating item prices in open purchase orders?
    All helpful answers are highly appreciated!
    Regards,
    MV

    1 ) execute this program  in se38 .enter the input as transaction code  for which you want list of User
    Exit.
    REPORT z_find_userexit NO STANDARD PAGE HEADING.
    *&  Enter the transaction code that you want to search through in order
    *&  to find which Standard SAP® User Exits exists.
    *& Tables
    TABLES : tstc,     "SAP® Transaction Codes
             tadir,    "Directory of Repository Objects
             modsapt,  "SAP® Enhancements - Short Texts
             modact,   "Modifications
             trdir,    "System table TRDIR
             tfdir,    "Function Module
             enlfdir,  "Additional Attributes for Function Modules
             tstct.    "Transaction Code Texts
    *& Variables
    DATA : jtab LIKE tadir OCCURS 0 WITH HEADER LINE.
    DATA : field1(30).
    DATA : v_devclass LIKE tadir-devclass.
    *& Selection Screen Parameters
    SELECTION-SCREEN BEGIN OF BLOCK a01 WITH FRAME TITLE text-001.
    SELECTION-SCREEN SKIP.
    PARAMETERS : p_tcode LIKE tstc-tcode OBLIGATORY.
    SELECTION-SCREEN SKIP.
    SELECTION-SCREEN END OF BLOCK a01.
    *& Start of main program
    START-OF-SELECTION.
    Validate Transaction Code
      SELECT SINGLE * FROM tstc
        WHERE tcode EQ p_tcode.
    Find Repository Objects for transaction code
      IF sy-subrc EQ 0.
        SELECT SINGLE * FROM tadir
           WHERE pgmid    = 'R3TR'
             AND object   = 'PROG'
             AND obj_name = tstc-pgmna.
        MOVE : tadir-devclass TO v_devclass.
        IF sy-subrc NE 0.
          SELECT SINGLE * FROM trdir
             WHERE name = tstc-pgmna.
          IF trdir-subc EQ 'F'.
            SELECT SINGLE * FROM tfdir
              WHERE pname = tstc-pgmna.
            SELECT SINGLE * FROM enlfdir
              WHERE funcname = tfdir-funcname.
            SELECT SINGLE * FROM tadir
              WHERE pgmid    = 'R3TR'
                AND object   = 'FUGR'
                AND obj_name = enlfdir-area.
            MOVE : tadir-devclass TO v_devclass.
          ENDIF.
        ENDIF.
    Find SAP® Modifications
        SELECT * FROM tadir
          INTO TABLE jtab
          WHERE pgmid    = 'R3TR'
            AND object   = 'SMOD'
            AND devclass = v_devclass.
        SELECT SINGLE * FROM tstct
          WHERE sprsl EQ sy-langu
            AND tcode EQ p_tcode.
        FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
        WRITE:/(19) 'Transaction Code - ',
        20(20) p_tcode,
        45(50) tstct-ttext.
        SKIP.
        IF NOT jtab[] IS INITIAL.
          WRITE:/(95) sy-uline.
          FORMAT COLOR COL_HEADING INTENSIFIED ON.
          WRITE:/1 sy-vline,
          2 'Exit Name',
          21 sy-vline ,
          22 'Description',
          95 sy-vline.
          WRITE:/(95) sy-uline.
          LOOP AT jtab.
            SELECT SINGLE * FROM modsapt
            WHERE sprsl = sy-langu AND
            name = jtab-obj_name.
            FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
            WRITE:/1 sy-vline,
            2 jtab-obj_name HOTSPOT ON,
            21 sy-vline ,
            22 modsapt-modtext,
            95 sy-vline.
          ENDLOOP.
          WRITE:/(95) sy-uline.
          DESCRIBE TABLE jtab.
          SKIP.
          FORMAT COLOR COL_TOTAL INTENSIFIED ON.
          WRITE:/ 'No of Exits:' , sy-tfill.
        ELSE.
          FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
          WRITE:/(95) 'No User Exit exists'.
        ENDIF.
      ELSE.
        FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
        WRITE:/(95) 'Transaction Code Does Not Exist'.
      ENDIF.
    Take the user to SMOD for the Exit that was selected.
    AT LINE-SELECTION.
      GET CURSOR FIELD field1.
      CHECK field1(4) EQ 'JTAB'.
      SET PARAMETER ID 'MON' FIELD sy-lisel+1(10).
      CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.
    2) Second way is to go to transaction code SE93 .enter transaction code click on display.
    There you will see the package. Copy that package name.
    Go to transaction code se84
    Enhancements -customer exits-enhancementsu2014enter package there and execute.
    You will get list of exits.
    3) BAPI for PO change is
    BAPI_PO_CHANGE

  • Function Module For Customer Receivable Invoice Document Wise

    Dear All,
    Is there a standard Function Module / BAPI available for calculating Customer Receivable amount invoice document wise? I will explain the scenario in greater detail:
    1) Invoice is booked against customer (FB70 / SD Interface)
    2) Receipt is made (F-28 )
    3) Matching of invoice is done at the time of receipt (either partial or residual)
    4) Customer Account Clearing is done (F-32)
    We have explored tables BSID,BSAD,BSEG and BSE_CLR, but are unable to decipher the exact logic by which the System is storing the cleared amount, invoice document wise. We have tried referring to BSEG-REBZG (Invoice Reference) and BSE_CLR for finding out the clearing document and thus arriving at the invoice document balance, but the table entries are not similar in case of partial and residual payment and hence it is creating problem in deducing the actual invoice wise open balance. Can anyone refer to some FM / API / Logic for deducing the same?
    Your inputs will be sincerely appreciated.
    Thanks and Sincere Regards,
    Amitabha

    Hi People,
    Any ideas?
    Thanks and Sincere regards,
    Amitabha

  • ABAP function module for Customer Specific Status

    I am looking for a standard ABAP function module that will return the customer specific status for a person. 
    Please let me know if any exists.
    Thanks,
    Harini

    Customer specific status for a person .
    Could you pleasee give more details...for what purpose  you are trying to get the status of a person. so that it will be easy for everyone to search

  • Remote Function Module for Change document Items.

    Hi Experts,
    I want a Remote Function Module to read Change document Items, can any please help me out. <removed by moderator>
    Thanks,
    Sridevi
    Edited by: Jan Stallkamp on Aug 25, 2008 8:25 PM

    If you are looking for the fm here it is.....
    you can check this CHANGEDOCUMENT_READ_POSITIONS fm and its documentation.
    If it is suitable for your requirement copy the same fm and make it remote enabled.
    I think it should work for you.

Maybe you are looking for

  • Apple Loops in Garageband dont work!

    In a standard garageband session i cant seem to make use of any of the apple loops in the loop finder. They are all grayed out but are still listed in full. when I try and play them a message comes up saying: "You have already initiated the installat

  • Install Canon MP470 That is connected to my Windows XP Professional PC

    I have a Canon MP470 printer that is connected to a Windows XP computer on my local network. I can get the printer connected to my Mac by going into Applications, System Preferences, Print & Fax, + Sign, Windows, etc.... BUT - There is no driver for

  • Incorrect Memory Information for Canon EOS 7D on BB

    I hate to keep pointing out your errors, but I also hate to see you have people angry at you.  I sort of didn't believe that Canon would move away from CF (compact flash) cards for this camera yet in the overview and specifications you talk about : B

  • Converting video for Pocketdish

    I got Quicktime Pro hoping to have it convert some .mp4 or .mov movies I had to the appropriate format to get them to work on Pocketdish AV500e, but the Pocketdish does not recognize the video. I was shown the specs for what the video needs to be, bu

  • == ERROR: BUILDSCRIPT is undefined! Ensure you have updated...

    I updated to the latest Pacman in testing, and when I tried to use makepkg, I got this: ==> ERROR: BUILDSCRIPT is undefined! Ensure you have updated /etc/makepkg.conf. However, I have already checked and modified the configuration, look: # /etc/makep