FI-CA Open Items based on key date Business Content

Hi,
I am using BI content infocube 0FC_C07 to extract contract account open items data. Our requirement is to do the data load weekly basis based on key date.
I have enhanced the extractor and i can see data for the enhanced fields in RSA3. But now, i am not sure how to load data into BI.
At the infopackage level(PSA level)  there are 2 mandatory fields (DateID(LAUFD) and Additional Identification Characteristic(LAUFI)). Do i need to change the date every week manually? I have to create a process chain to automate the dataloads.
Also, i need to use counters for Each unique Contract Account and Contract Account Document .
For the contract Account Document number , i am thinking to us this formula(If contaract document item =1 then document counter =1 otherwise 0). But i am not sure how to count each single contract Account?
Your advise will be appreciated.
Thanks,
Priya

Hi Priya,
Go to InfoPackage selection tab.
Now in the Type select 6 which is for ABAP Routine.
This will open the ABAP Editor.
Write your code there.
Sample code.
data: l_idx like sy-tabix.
DATA : from_date type sy-datum,
       to_date type sy-datum,
       month(2) type n.
read table l_t_range with key
     fieldname = 'IDATU'.
l_idx = sy-tabix.
*if current date is suppose 14th April 2008, then this routine should
*pick values from 1st jan 2008 till
14th April 2008
clear month.
month = sy-datum+4(2).
if month = '01'.
month = '10'.
endif.
if month = '02'.
month = '11'.
endif.
if month = '03'.
month = '12'.
endif.
if month GT '03'.
month = month - 3.
endif.
concatenate sy-datum+0(4) month '01' into to_date.
l_t_range-low = to_date.
l_t_range-high = sy-datum.
l_t_range-sign = 'I'.
l_t_range-option = 'BT'.
modify l_t_range index l_idx.
p_subrc = 0.

Similar Messages

  • 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

  • A/R report u0096 Customer open items based on due date

    Hi all,
    Can anyone tell me if there is a standard report on AR side that gives me invoices due between certain dates, meaning I should be able to select due dates between 11/15/2006 and 11/30/2006 in the selection and the report should get me the customers with invoices that are due between the above dates for a company code.
    Thanks in advance
    Kumar

    Hi Kumar,
    there is no standard report which give you selection citeria to select range of due date. Since due date is calculated based on function module where it calculate Bline date+ terms of payment days.
    other std reports are:
    S_ALR_87012175 Open Items - Customer Due Date Forecast
    S_ALR_87012178 Customer Open Item Analysis by Balance of Overdue Items
    S_ALR_87012168 Due Date Analysis for Open Items
    Hope this helps.
    Please assign points as way to say thanks

  • BEX - Get Open Items with a key Date

    Hi Gurus,
    Im working with the Cube and ODS for AR Line items (0FIAR_C03- 0FIAR_O03) and i need to create a report that shows the Open items by Customer with a Key Date.
    I did the query that shows all the open items by customer, and i want to know where can i put the filter to input a key date, and only shows the open items until that date.
    Thanks in advanced, i really appreciate your help

    Hi Marcos,
    When you have created the Restricted keyfigures for Open Items, You have to add the date characteristic on which you are looking open item and add the variable there.Here you have to use a variable of type Interval and select the operator "<" the date of the Variable.If you go through, there are standard variable for keydate, which you can use directly.
    Hope you got the idea
    Regards
    Happy Tony

  • Customizing report, list all GL items open as of a key date

    Hi Experts,
    For a customizing report, i have to list all those GL items open as of a key date, though they may be cleared now.
    i m finding in GL open items table BSIS, i can find open items (uncleared) only.
    please help me in developing this logic.
    Regards,
    Apoorv

    Table BSAS has cleared items but it also includes the clearing date, so you can combine results from both tables.
    Rob

  • Table for Customer and vendor open balance on a key date

    Dear All,
    Can anyone please let me know Table for Customer and vendor open balance on a key date. We are developing one customized report.
    I have checked with the below table :
    Customer-KNC1, KNC3,BSID, BSAD
    Vendor-LFC1, LFC3, BSIK, BSAK.
    But these are not working properly for all customers and vedors. Also, in open items, there are items with clearing documents.
    Plesae let me know, how to go for it.
    Please suggest.

    Hi
    Use BSID and BSIK for open items
    And pass company code, year and from date and to date range in Posting date selection option
    Reg
    Vishnu

  • FPBW: Extract Open Items with a posting date in the future

    Dear all,
    I'm are currently searching for possibilities to extract Open Items with a posting date in the future from SAP IS-U 4.72 into SAP BW 3.5.
    Currently I'm using the Business Content extractor 0FC_OP_01 together with the mass transaction FPBW in IS-U.
    The problem I'm facing is within the mass transaction FPBW. I've have set the key date at 01.11.2007, but this job already runs for 52.000 seconds on the same database select-statement.
    Does anybody know a possible solution to improve the performance of the statement below? (I pasted it from the process overview)
    ================================
    SELECT
    /*+
      INDEX("DFKKOP" "DFKKOP~1" "DFKKOP^1" "DFKKOP____1" "DFKKOP____1__X" "DFKKOP_1")
      "BETRH" , "BETRW" , "BUDAT" , "BUKRS" , "FAEDN" , "GPART" , "GSBER" , "INKPS" , "SPART" , "VKONT" ,
      "WAERS" , "MAHNV" , "ABWBL" , "APPLK" , "AUGBD" , "AUGBL" , "AUGBT" , "AUGDT" , "AUGRD" , "AUGST" ,
      "AUGWA" , "BLART" , "BLDAT" , "EMGPA" , "GRKEY" , "HVORG" , "MANSP" , "MWSKZ" , "OPBEL" , "OPSTA" ,
      "OPUPK" , "PERSL" , "PYMET" , "QSSHB" , "SBETW" , "SPZAH" , "STUDT" , "TVORG" , "VTREF" , "XBLNR" ,
      "XMANL" , "HKONT" , "OPUPZ" , "OPUPW" , "STAKZ" , "WHGRP" , "AUGBS" , "XANZA" , "XRAGL" , "ABWTP" ,
      "ASTKZ"
    FROM
      "DFKKOP"
    WHERE
      "MANDT" = :A0 AND "AUGST" = :A1 AND "GPART" BETWEEN :A2 AND :A3 AND ( "AUGDT" = :A4 OR "AUGDT" > :A5
      AND ( "BUDAT" <= :A6 OR "AUGBD" <= :A7 ) OR "WHGRP" <> :A8 AND "OPUPW" = :A9 )
    ORDER BY
      "AUGST" , "GPART"#
    =================================
    I have already tried to create an index on the following fields (in the same order):
    - MANDT           Client
    - AUGST           Clearing status
    - GPART           Business Partner Number
    - AUGDT           Clearing date
    - BUDAT           Posting Date in the Document
    Any help would be appreciated!
    Thanks in advance,
    Steven Groot

    Hi Marcos,
    When you have created the Restricted keyfigures for Open Items, You have to add the date characteristic on which you are looking open item and add the variable there.Here you have to use a variable of type Interval and select the operator "<" the date of the Variable.If you go through, there are standard variable for keydate, which you can use directly.
    Hope you got the idea
    Regards
    Happy Tony

  • How to make a single payment for different open  items with same due date

    Hi,
    I have created a payment method  and selected "Payment per due day " option in payment method company code settings.
    Even I have selected that option, Payment will not happen grouping for the items with same due date
    for ex : I have two open items with one due date and another open item with another due date so when I am trying performing F110 system should make a single payment for the item with same due date and seperate payment for another item.
    But system making single payment for all items
    Could you please suggest anything how to make a seperate payment with due date.
    Regards
    VK GUPTA

    Hi,
    Please check Vendor Master data: FK02 ->company code data -> Payment transaction accounting: unflag 'individual payment'.
    Make a test and let me know if it's okay.
    regards

  • OPEN ITEMS based on  GL wise

    Hi Frenz,
    can any body help me in finding the standard BAPI or Function module to fetch the OPEN ITEMS based on General Ledger Acc.
    Thanks,
    Priya

    Please check the below function modules:-
    BAPI_GL_ACC_GETBALANCE         Closing balance of G/L account for chosen year
    BAPI_GL_ACC_GETCURRENTBALANCE  Closing balance of G/L account for current year
    BAPI_GL_ACC_GETPERIODBALANCES  Posting period balances for each G/L account
    Otherwise you can also code your logic in the same way as in BAPI_AR_ACC_GETOPENITEMS function module.
    Regards,
    SDNer

  • Open orders display in BEX report based on Key date

    Hello All,
    I have a requirement:
    We have an existing report which needs to have input selection as Key Date.
    The report should display the Open orders based on the key date mentioned.
    For Eg: if an item A was Opened on 20th Sept, 2010 and now CLEARED and if I run the ECC report today and mention the key date as 20th Sept, 2010, then the report will show me the item A status as OPEN
    Plz help me with the logic for the same at the earliest
    Tthanks..
    Sneha

    Hi Sneha,
    I assume you have open and crear dates in your query. So put an open date in your query filter and restrict it as less then Key date variable(which is a variable of type user-input on 0calday), then create another variable that feeds from keydate variable (it can be a replacement path or simplest user-exit).
    Note: the another variable is needed because as far as i can remember you cant use the same variable to restrict two different chars in the same query/anyway test if it's not possible - then create another variable as i mentioned.
    Take Cleardate in your query filter and restrict it as more than keydate variable andr # (not assigned). (in case if it hasnt been creared at all yet at the key date time)
    Pls let me know if this was helpfull

  • Reporting Requirement based on Key Date

    Hello Team,
    My Requirement is , User is giving a key date & I have to find the Fiscal year corresponding the date keyed in , calculating all the fiscal periods last date & then restricting a key figure with every fiscal year period last date.
    To achieve this , I have created a 1 Manual input variable on 0Calday & then 12 Customer exit variables each for last date of each fiscal year period.
    Now my issue is as 0CalDay is not mapped from anything from Source.
    So how should I prompt user to key in date .
    Please suggest .
    Thanks in advance.
    Regards,
    Pankaj

    Are you sure you want to use "Key Date" entry in Query? Because it works with Time dependent Master data only.
    If you just want to enable  user entry, you can follow Arun Thangaraj 's reply.

  • CAML Query to Sort SharePoint list items based on Modified date

    hi ,
    can we sort sharePoint list items based on 'Modified' column, the sorting should be done up to milliseconds level.
    currently i am using CAML query as below
    <OrderBy><FieldRef Name='Modified' Type='DateTime' IncludeTimeValue='TRUE' Ascending='False'/></OrderBy>but its not considering milliseconds while sorting.
    Thanks and Regards,
    venkatesh.

    Veda, thanks but I'm not really a hardcore C# coder.
    We found more elegant solution was to create a List View which returns all records that should be deleted, based on our own custom deletion criteria, and then create an very simple SSIS Package in Visual Studio using the
    Sharepoint Connectors for SSIS to delete all Sharepoint List Items returned from that List View. The Sharepoint Destination Connector has a delete operation.
    This worked for us and didn't require any coding.

  • G/L Balance based on Key Date

    Hi,
    I have a requirement to make a G/L ledger.
    Currently i want to get the g/l balance based on a particular date. 
    ex: 12.05.2008  to  15.05.2008
    How can i find the keydate balance.
    I think there is no direct way to do that. Want some suggestions on workaround.
    Varun

    >
    Muhammed Ansari Abubekkar wrote:
    > Try using the BAPI
    >
    > BAPI_AR_ACC_GETKEYDATEBALANCE
    >
    > BAPI_AP_ACC_GETKEYDATEBALANCE
    >
    > BAPI_GL_ACC_GETPERIODBALANCES
    >
    > Regards
    > Ansari
    I know. Above 2 are not used for G/L accounts
    Third one will get period balances only.

  • Creating Multiple IDOCs and Line Items based on Posting date from file

    Hi All,
    My scenario is File to IDOC(MBGMCR01)...
    Need your suggestions and help on how to go with this...
    Source file structure is
    DC61|2009-03-15|000000000001200051|00000005.00|200|0001|1234|
    DC61|2009-03-15|000000000001200363|00000001.00|300|0001|1234|
    DC61|2009-03-15|000000000001200334|00000002.00|400|0001|1234|
    DC61|2009-03-16|000000000001201145|00000001.00|200|0001|1234|
    DC61|2009-03-16|000000000001201086|00000002.00|100|0001|1234|
    DC61|2009-03-17|000000000001200051|00000003.00|200|0001|1234|
    DC61|2009-03-17|000000000001200052|00000003.00|200|0001|1234|
    DC61|2009-03-17|000000000001200053|00000003.00|200|0001|1234|
    DC61|2009-03-18|000000000001200056|00000003.00|200|0001|1234|
    And target IDOC(MBGMCR01) is
    IDOC (0u202699999)
    E1BP2017_GM_ITEM_CREATE(0u2026999999)
         Date
    For Each new Posting date(column 2) of the source a new idoc to be created and the corresponding records of each posting date to be added to E1BP2017_GM_ITEM_CREATE
    The out put for the above should be like this
    IDOC(2009-03-15)
    E1BP2017_GM_ITEM_CREATE=2009-03-15
    E1BP2017_GM_ITEM_CREATE=2009-03-15
    E1BP2017_GM_ITEM_CREATE=2009-03-15
    IDOC(2009-03-16)
    E1BP2017_GM_ITEM_CREATE=2009-03-16
    E1BP2017_GM_ITEM_CREATE=2009-03-16
    IDOC(2009-03-17)
    E1BP2017_GM_ITEM_CREATE =2009-03-17
    E1BP2017_GM_ITEM_CREATE=2009-03-17
    E1BP2017_GM_ITEM_CREATE=2009-03-17
    IDOC(2009-03-18)
    E1BP2017_GM_ITEM_CREATE=2009-03-18
    Will be thank ful if any one gives a hint....
    Thanks and regards,
    Sridhar

    I rather meant a picture of your mapping - anyways. Hope this is correct:
    Your souce structure:
    <MT_IAR>
      <IAR_Recordset>
        <IAR_Details>
          <Inv_adj_date>
        </IAR_Details>
        <IAR_Details>
          <Inv_adj_date>
        </IAR_Details>
    Than mapping should be like this:
    <Inv_adj_date>        ==> SplitbyValue        ==> IDOC
    Please confirm this doesn't work.

  • 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

Maybe you are looking for