Function module for Opening Balance day wise

Hi,
I am preparing vendor ledger report for day wise .
For example : i/p fields are : Lifnr , Budat,Bukrs
O/p fields are : Opening balance ( Before the date of lifnr Closing balance ).
                      Debit
                      Credit
                      Closing Balance ( Opening balance + D/C).
For this Opening balance i require the function module .
Please help me .
Regards
Nandan.

Hi,
My requirement is Vendor balance Report according to Posting date wise.
o/p fields are
blart budat augdt belnr openingbalance  ClosingBalance Credit Debit
Credit is when schkz is 'H'.
Debit is when schkz is 'S'.
Closing Balance = Opening Balance + Credit / Debit
Regards
Nandan.

Similar Messages

  • GL account opening balance day wise

    HI,
        I am working on FI report, where i need to calculate the G/L account closing balance on a daily basis, which will be used as the opening balance for the next day, please help me out with some sample report or logic to claculate the closing balance day wise.
    u can mail me to :[email protected]
    Regards
    Soyunee.

    Hi,
    You have to make use of many tables for this purpose.
    1. You have to claculate the previuos period and finscal year for the given date..
    2. You have to calculate the G/L balances for this period for the given G/L account from table GLT0.(You can use some of the standard function modules for the same)
    3. You have get the line items from the various tables like BSIS,BSAS,BSIK, BASK, BSID and BSAD for the dates from the begining of the month to the given date-1. sum upthis amount with the amount retrieved from step 2 .This will be the opening balance for the given date.
    4.retrieve the data from he same tables like step 3 for the given date. This will the transactions of the given date.
    5. sum up  the amounts from step 4 with step 3. this will be the closing balance for that date.
    let me know id you want any further info..
    Reward the points if i answered your question..

  • Function Module for Opnning Balance

    Hello All,
    Is there any Function Module for getting Openning Balance of Customer and Vendor on a particuler Date.
    Point Assured.
    Thanks & Regards,
    Message was edited by:
            SAPLOVER

    Hi
    Check the fun module
    K_CO_OBJECT_BALANCE_GET
    use the tables BSID and BSAD to get the Customer Opening Balances
    and BSIK and BSAK for the Vendor opening Balances
    Regards
    Anji
    Message was edited by:
            Anji Reddy Vangala

  • Function Module for open Purchase Order & Sales Order?

    Hi, commonly I read the data from tables and calculate the open quantity for sales order and purchase order, but I want to know, are there any standard function modules for getting the list of open "purchase order" and "sales order" respectively?
    Thanks and Regards.

    hi Ren,
    u can check all these bapi's related to salesorder
    BAPI_SALESORDER_CHANGE Sales order: Change Sales Order
    BAPI_SALESORDER_CONFIRMDELVRY Sales Order: Confirmation of Delivery; Document Flow Update
    BAPI_SALESORDER_CREATEFROMDAT1 Sales order: Create Sales Order
    BAPI_SALESORDER_CREATEFROMDAT2 Sales order: Create Sales Order
    BAPI_SALESORDER_CREATEFROMDATA Create Sales Order, No More Maintenance
    BAPI_SALESORDER_GETLIST Sales order: List of all Orders for Customer
    BAPI_SALESORDER_GETSTATUS Sales Order: Display Status
    BAPI_SALESORDER_SIMULATE Sales Order: Simulate Sales Order
    May be this FM can help you
    MB_ADD_PURCHASE_ORDER_QUANTITY (Reading and adding open purchase order quantities)
    Regards,
    Naveen

  • Function module for getting starting day of a week form current data

    Hi ,
    Is there any function module that gives starting day of week when we give a particular date
    eg: today date is 19-12-2007
    if i give this date as input i should get 16-12-2007 because this is starting day of this week .

    Hi,
    Use FM  GET_WEEK_INFO_BASED_ON_DATE
    You will get the first day of the week in export parameter MONDAY
    Lokesh

  • Function module for open sales order and open PO

    hi all,
    can anyone please tell me that is there any function module to get open sale order  and also for open purchase order?
    regards saurabh.

    Hi ,
    In EKPO Table u select this fields  Purchase Document no and Item no of Purchsing Document , Material no , and Purchase Order Qty.
    In MSEG Table u select this fields Purchase Document no and Item no of Purchsing Document , Material no , and  Qty.
    Both Tables having  Purchase Document  no , So  Purchase Doucment no throguh  u will get the Material and qty , Finally u Subract the both Material Qty's .
    u will get the Open Po For particular Material.
    If ur not getting ,Inform me .
    Regards ,
    Shankar GJ

  • Function module for Open Sales Orders.

    Can u any one tell me is there any standard function module to
    retrieve OPEN-SALES orders. I tried to debug VA05 but not of use...
    Thanks in advance,
    Sanjay.

    hi
      you can get open sales orders from vbuk and vbup
        SELECT
             A~VBELN
             A~GBSTK
             B~GBSTA FROM VBUK AS A
             INNER JOIN VBUP AS B
             ON AVBELN = BVBELN  INTO TABLE T_OPENS
             FOR ALL ENTRIES IN T_VBELN WHERE A~VBELN = T_VBELN-VBELN
            AND  A~GBSTK IN ('A','B')
             AND B~GBSTA IN ('A','B').
    in t_vebeln table is haveing sales orders by user selection you can get it like this
    regards,
    varma

  • Function modules for open quantity

    Hi Experts,
    I am having requirement,i have to calculate the open quantity for particular item in the range of dates like 01/02/2008 to 28/02/2008 and 05/03/2008 to 05/04/2008(depending on the user input).
    I have searched function modules:
    MONTHS_BETWEEN_TWO_DATES
    FIMA_DAYS_BETWEEN_TWO_DATES
    Please suggest me,Which of this function modules suits for my requirement?
    Is there any bapi for calculating open quantity for particular period of time?
    Regards,
    Bharath.

    Hi ,
    Open Qty of  particular item  ? is that PO or SO?...
    regards
    Prabhu

  • Function module for vendor balance

    i m creating a creditor report for that i use any bapi as well as function module available in sap for better perfomance and better quality of report.
    waiting for reply
    thanking you in advance

    Hi,
         use FM BAPI_VENDOR_GETDETAIL
    Regards
    amole

  • Function module for calculating next day's date

    Dear all,
    We have a requirement of displaying transaction validity date on SAP smart form. The date input is available from the transaction.
    We need to add 1 day to this to get correct date printed in the output. We applied the logic of 'input date +1', but this logic does not give correct output when the final date co-incides with change in month (i.e 1st of next month).
    Is there any function module available which would do the addition in proper date format and calculate next day's date correctly?
    Regards,
    DS

    Use FM RP_CALC_DATE_IN_INTERVAL
    Example :
    data: v_curr type sy-datum,
    v_next type sy-datum.
    v_curr = '20080415'.
    CALL FUNCTION 'RP_CALC_DATE_IN_INTERVAL'
    EXPORTING
    DATE = v_curr
    DAYS = '01'
    MONTHS = '0'
    SIGNUM = '+'
    YEARS = 0
    IMPORTING
    CALC_DATE = v_next.
    write:/5 'Current date', v_curr.
    write:/5 'Future date', v_next.

  • FUnction Module For OPen Reservation

    Dear All,
    CAn you give me details of a fuction module which will return me details of open reservation items.
    deepak

    Hi ,
    In EKPO Table u select this fields  Purchase Document no and Item no of Purchsing Document , Material no , and Purchase Order Qty.
    In MSEG Table u select this fields Purchase Document no and Item no of Purchsing Document , Material no , and  Qty.
    Both Tables having  Purchase Document  no , So  Purchase Doucment no throguh  u will get the Material and qty , Finally u Subract the both Material Qty's .
    u will get the Open Po For particular Material.
    If ur not getting ,Inform me .
    Regards ,
    Shankar GJ

  • Function module for vendor balances

    Hello all,
    Need ur help on below requirement.
    For a perticuler vendor & Company code, for previous N months(say 15 months), balances needs to be read into an internal table.
    PLease suggest a FunctionModule for this, if any.
    And one more question.
    In transaction FK10n (also in table LFC1), I could see 16 periods. What does it mean ? For an year, there are 12 months.. Then how 16 periods ? Please explain.
    Thanks in advance.

    hi,
    please try this FM
    BAPI_VENDOR_GETDETAIL

  • Function Modules to get First day of week, month, Year

    Can anyone name the Function Modules for getting First day of week, month ,year.

    to get first day of week use this function;   WEEK_GET_FIRST_DAY
          CALL FUNCTION 'WEEK_GET_FIRST_DAY'
               EXPORTING
                    WEEK         = '201107'
               IMPORTING
                    DATE         = l_date
               EXCEPTIONS
                    WEEK_INVALID = 1
                    OTHERS       = 2.
    with DATE_COMPUTE_DAY function you can get date number in week.
    CALL FUNCTION 'DATE_COMPUTE_DAY'
           EXPORTING
                DATE = workdate
           IMPORTING
                DAY  = day_of_week_num
           EXCEPTIONS
                OTHERS  = 8.
      CASE day_of_week_num.
        WHEN 1.
          hold_day_of_week = 'Monday'.
        WHEN 2.
          hold_day_of_week = 'Tuesday'.
        WHEN 3.
          hold_day_of_week = 'Wednesday'.
        WHEN 4.
          hold_day_of_week = 'Thursday'.
        WHEN 5.
          hold_day_of_week = 'Friday'.
        WHEN 6.
          hold_day_of_week = 'Saturday'.
        WHEN 7.
          hold_day_of_week = 'Sunday'.
        WHEN OTHERS.
          hold_day_of_week = 'invalid'.
      ENDCASE.

  • Function module for GL account open items at a key date

    Is there a function module for "GL account open items at a key date" similar to following for customer and vendor accounts?
    BAPI_AR_ACC_GETOPENITEMS Customer account open items at a key date
    BAPI_AP_ACC_GETOPENITEMS Vendor account open items at a key date
    If not, please suggest any alternatives. I am looking to capture the output of FBL3N (GL account line item display) in a program.
    Thank you in advance.
    Prasanna Pujari

    hi,
    please go through the below link i think it will help u.
    http://sapfunctional.com/FI/GL/Balance.
    Regard
    Abhishek Tripathi

  • 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

Maybe you are looking for

  • Strange sounds - mid 2010 iMac 27'' i7

    Hi all, I have my new iMac for almost a month now and today I started hearing some strange sounds every 5 to 10 minutes. What I hear is something like a rat in the mac scratching its fingers on the aluminium: chk---chk--chk-chk-chk-chk. It goes like

  • REP in Oracle Database

    Hi, I have REP report. Using this generating PDF output for Orders. Is it possible to run the REP file in Oracle Database procedure. If yes please suggest how to do. Please do the needful. Below are the versions: Forms and Reports : 10g version Edite

  • Safari quits when I try to sign in to pages or fill in forms and push send

    Safari crashes when ever i fill in an form and hit enter. Cant log on to any pages or fill in my adress and so on. Can anyone help me?! latest crash report: Process:         Safari [14488] Path:            /Applications/Safari.app/Contents/MacOS/Safa

  • Can a Sorry server be a content rule?

    Hello I want to direct all my traffic to server A and if that fails I want to send all my traffic to server B. This I can do by directing all traffic to service A and having server B defined as a primarySorryServer. If these two fail I want my Second

  • I can't click the "icloud icon" to download my purchase in the itunes store.

    I am trying to download purchased music on my computer that my daughter purchased on her itouch (her iTouch broke).  I see the icloud icon to download, but i can't click it.  Help!