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
Similar Messages
-
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 GrootHi 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 -
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 Pujarihi,
please go through the below link i think it will help u.
http://sapfunctional.com/FI/GL/Balance.
Regard
Abhishek Tripathi -
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 GUPTAHi,
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 -
Clearing: how to get open items with net amount?
Hi
I need to obtain the open items for clearing <b>with the net amount</b> as it shows up in the transaction FB05 after considering any discounts that may apply. The BAPI BAPI_AR_ACC_GETOPENITEMS does not calculate the net amount.
I see that the data is calculated in SAPMF05B and saved in the internal table POSTAB which has the structure RFOPS. Basically i need to obtain the data of this internal table.
I was thinking of exporting the table in some user exit, but didn't find any suitable exit yet.
Any ideas anyone...?
Thanks for any hint.
AndreasHi All,
Thanks for the reply..
==============================================================
Basically create one ckf and two rkfs for each aging bucket
ie ckf 0-30 days = rkf 0-30 days open + rkf 0-30 days subsequently cleared
Because you need to restate the AP report to a key date - some items have changed their status since that key date but were open at the key date (ie we call those subsequently cleared)
so rkf 0-30 days open is
posting date <= key date
item status = O
net due date between variable date (cmod which reads key date) offset 0 and variable date (cmod which reads key date) offset -30
rkf 0-30 days subsequently cleared is
posting date <= key date
cleared date > variable date (which reads cmod of key date)
net due date between variable date (cmod which reads key date) offset 0 and variable date (cmod which reads key date) offset -30
========================================================================
In the above two cases, while creating restricted key figures how to design this;
net due date between variable date (cmod which reads key date) offset 0 and variable date (cmod which reads key date) offset -30
And also after creation of two rkfs i created a ckf i.e ckf = rkf1+rkf2.
Now i dragged this ckf into columns and when i checked the query it is giving error that key date variable is used more than once. ( Bcz we have used key date variable both in rkf1 and rkf2 for getting posting date <= to key date )
What is the solution for this ?
Regards,
Rao. -
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,
PriyaHi 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. -
Standard report(for open PO order items) with estimated Delivery dates
hi friends
i would like to know if there is any standard report(for open PO order items) with estimated Delivery dates on it.
thanks
alahariME2M (by material)
ME2L (by vendor)
ME2N (by number)
Use selection parameter WE101 for open GR
and scope of list EINT (scheduling lines) -
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,
ApoorvTable 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 -
S_ALR_87010007 (open items with foriegn customers)
While executing S_ALR_87010007 (open items with foriegn customers) i get the following error:
Call contained error(s): ADS (2)
This is happening after we have upgraded to ECC 6
Can anyone tell me what is the reason for this error? How do we rectify this?
Thanks and Regards,
SatyaDo we need to install ADS for this? We are able to execute this report in 4.7 version but not in ECC 6
-
Generate 2 line items with posting keys in same table while using FM .
Dear Expert ,
For T-code f-65 ,I have to park a FI Document .i tried with PRELIMINARY_POSTING_FB01 for parked Document . But i am not successfully park the document .
with the help of F-65 the data Segregate between Tables VBSEGS and VBSEGD with respecting Posting key . but with this Fm entire entry is displaying in table VBSEGS .For example it generated two line items with posting keys '15' and '40' and these both are displayed in VBSEGS whereas posting key '15' has to be displayed in VBSEGD.
when i check this Document in FBV0 Error reflect " G/L Account 0012000 1001 Does not Exist ".
Here my code -
DATA: XT_BKPF LIKE BKPF OCCURS 0 WITH HEADER LINE ,
XT_BSEG LIKE BSEG OCCURS 0 WITH HEADER LINE ,
XT_BSEG1 LIKE BSEG OCCURS 0 WITH HEADER LINE ,
XT_BSEC LIKE BSEC OCCURS 0 WITH HEADER LINE ,
XT_BSET LIKE BSET OCCURS 0 WITH HEADER LINE ,
XT_BSEZ LIKE BSEZ OCCURS 0 WITH HEADER LINE ,
XT_BKORM LIKE BKORM OCCURS 0 WITH HEADER LINE ,
XT_THEAD LIKE THEAD OCCURS 0 WITH HEADER LINE ,
XT_SPLTTAB LIKE ACSPLT OCCURS 0 WITH HEADER LINE ,
XT_SPLTWT LIKE WITH_ITEMX OCCURS 0 WITH HEADER LINE .
DATA : XTEXT_UPDATE LIKE BOOLE-BOOLE VALUE SPACE,
XTEXT_ITEM_UPDATE LIKE BOOLE-BOOLE VALUE SPACE,
XI_UF05A LIKE UF05A,
XI_XCMPL TYPE XFELD VALUE 'X',
XFS006_FB01 LIKE FS006 ,
XI_TCODE LIKE T020-TCODE VALUE 'F-65',
XI_PARGB LIKE RF05A-PARGB ,
XI_TCODE_INT TYPE TCODE .
DATA P_RETURN LIKE BAPIRET2 OCCURS 0 WITH HEADER LINE.
XT_BKPF-BUKRS = 'CP01'.
XT_BKPF-GJAHR = 2011.
XT_BKPF-BLART = 'DZ'.
XT_BKPF-BLDAT = SY-DATUM.
XT_BKPF-BUDAT = SY-DATUM.
XT_BKPF-MONAT = '06'.
XT_BKPF-CPUDT = SY-DATUM.
XT_BKPF-WWERT = SY-DATUM.
XT_BKPF-USNAM = 'ABAPER'.
XT_BKPF-TCODE = 'F-65'.
APPEND XT_BKPF.
XT_BSEG-BUKRS = 'CP01'.
XT_BSEG-GJAHR = '2011'.
XT_BSEG-BUZEI = '001'.
XT_BSEG-BSCHL = '40'.
XT_BSEG-KOART = 'S'.
XT_BSEG-SHKZG = 'S' .
XT_BSEG-GSBER = 'CPLN'.
XT_BSEG-BUPLA = 'CP01'.
XT_BSEG-WRBTR = 10000.
XT_BSEG-PSWSL = 'INR'.
XT_BSEG-ZUONR = 'CH. 123456'.
XT_BSEG-HKONT = '241000'.
APPEND XT_BSEG .
CLEAR XT_BSEG.
Vendor line item - required even for header only - BSEG table
XT_BSEG-BUKRS = 'CP01'.
XT_BSEG-GJAHR = '2011'.
XT_BSEG-BUZEI = '002'.
XT_BSEG-BSCHL = '15'.
XT_BSEG-KOART = 'S'.
XT_BSEG-SHKZG = 'H' .
XT_BSEG-GSBER = 'CPLN'.
XT_BSEG-BUPLA = 'CP01'.
XT_BSEG-WRBTR = 10000.
XT_BSEG-PSWSL = 'INR'.
XT_BSEG-ZUONR = 'CH. 123456'.
XT_BSEG-HKONT = 'PC04000001'.
APPEND XT_BSEG .
CLEAR XT_BSEG.
CALL FUNCTION 'PRELIMINARY_POSTING_FB01'
EXPORTING
TEXT_UPDATE = XTEXT_UPDATE
TEXT_ITEM_UPDATE = XTEXT_ITEM_UPDATE
I_UF05A =
I_XCMPL = XI_XCMPL
FS006_FB01 =
I_TCODE = XI_TCODE
I_PARGB =
I_TCODE_INT =
IMPORTING
XEPBBP = CHECK_A
TABLES
T_BKPF = XT_BKPF
T_BSEG = XT_BSEG
T_BSEC = XT_BSEC
T_BSET = XT_BSET
T_BSEZ = XT_BSEZ
T_BKORM =
T_THEAD =
T_SPLTTAB =
T_SPLTWT =
EXCEPTIONS
ERROR_MESSAGE = 1.
P_RETURN-ID = SY-MSGID.
P_RETURN-TYPE = SY-MSGTY.
P_RETURN-NUMBER = SY-MSGNO.
APPEND P_RETURN.
p_return-MESSAGE_V1 = XSYMSGV.
IF SY-SUBRC = 0.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = 'X'.
ENDIF.
WRITE :/ sy-subrc , sy-MSGV1 .
Thanks ,
Ashish GuptaHi Raghuram,
I found a very important SAP Note 103051, details are below.
An IDoc processed by function module IDOC_INPUT_INVOIC_MM (of category INVOIC01) must not refer to the same purchase order item in several invoice items. This is also valid if for a goods receipt-related invoice verification several delivery notes belong to the same purchase order item.
Depending on the system settings and the situation, various error messages can occur (for example, FD240 'Order item ... selected more than once' or M8050 'Balance not zero: & debits: & credits: &').
In this situation module IDOC_INPUT_INVOIC_MRM generates error message M8321 'Document contains same order item more than once'.
For example, this situation occurs if you work with individual batch valuation and the SD billing document executes a batch split for different batches which belong to the same purchase order item and delivery.
Other terms
INVOIC, SAPLIEDI, M8047, M8, 321
Reason and Prerequisites
This is because of the program design.
Solution
There is no solution for IDOC_INPUT_INVOIC_MM.
Module IDOC_INPUT_INVOIC_MRM (only as of Release 4.0) for the logistics invoice verification can distinguish different goods receipts by means of the delivery note number. For this purpose, GR-related invoice verification must be active.
Owing to this symptom, billing documents for single batch valuation with batch split cannot be settled in MM-EDI inbound processing. The settlement generates exactly the situation described (several invoice items for the same purchase order item). In this case, the only solution is to deactivate the billing of the batch sub-items in SD Customizing and to calculate the main item only.
Hope this helps.
Reward if helpful.
Thanks -
Why open items with dunning level 0 sometimes appear?
Hi All,
when I run the dun transaction (F150) sometimes in table MHND and MHNK open items with dunning level 0 appear. These are open items overdue, but not enough to level 1. Note that this problem appear only sometimes.
Do you know how to avoid this?
Many thanksCheck if deselcting the indicator for Always Dun? in dunning level configuration in FBMP ,solves your issue.
Thanks and regards
Kedar -
Charge off difference whening clearing customer open item with bank receipt
Hi,
Our company users will use F-32 to clear customer open item with bank receipt, sometimes, our invoice is 100 RMB issue to customer, the customer finally pay 99.98, then in F-32, we use charge off difference to post 0.02 difference to a account.
The user then want to control this, saying for example, if the customer pay only 90, whening using charge off differnce, the system will pop up a error message.
Can this be done in SAP, or we need to use user exit, then which user exit?
Thanks.Dear,
This is done through customer tolerance group using transaction OBA3. Here enter the maximum amount in Loss under the Permitted Payment Differences. you are able to hold tolerance for customer clearing.
Is this what you wanted?
Regards,
Chintan Joshi. -
Clearing forex open item with INR receipt
Hi,
We have a scenario were original customer invoice is in foreign currency. However, the money remitted by the customer is directly credited in the bank, not in the same foreign currency, but in Indian currency. In this case, the system is able to clear if we manually enter the forex gain or loss. But this gain or loss is calculated with reference to the current exchange rate and not with exchange rate as at the invoice posting.
Any idea how this could be handled?
Thanks
MuruLawrence,
The issue came because the user was trying to clear a Forex open item with local currency. In F-28, he was entering the local currency amount as receipt. The rate at which the receipt is converted is different from the rate maintained for forex valuation (M rate).
If the receipt is posted in the original document currency, the complication is avoided. However, I would be interested to know if you are aware of some other way of handling this.
Thanks
Muru -
I deleted gardens of time yesterday and need to get it back with the current data and progress. Is this possible?
Is that on an iPad, iPod Touch or iPhone?
Maybe you are looking for
-
What is the recommended way of opening 10.1 updated projects in 10.0.9?
Obviously you can only do it if you have saved the old version! The old project and event folders are moved into a folder such as Mac HD Old Final Cut Projects and Events In order for FCP X 10.0.9 to see them is it necessary to drag them out of the
-
When I open Firefox, it requires time to load pages. When I go in the networking, I activate "No Proxy" from "Use system settings", and each time I reopen, the System Settings is back, and the page load slow.
-
No configured airport base stations have been found
I just purchased a new Time Capsule and tried to set it up according to the included instructions. After the initial set up Airport Utility give the following error message: "No configured AirPort base stations have been found. The only way I can con
-
Hi dewangs... (most urgent)
hi dewangs... BufferedInputStream in1=new bufferedInputStream(new FileInputStream(path+"process.html")); BufferedInputStream in2=new bufferedInputStream(new FileInputStream(path+"fields.html")); BufferedInputStream in3=new bufferedInputStream(new Fil
-
My brand new HP 16X SATA Blu-ray Writer (AR482AA) in my brand new z800 quit writing to Blu-Ray disks after just 12 disks. It did continue to write to other DVD/CD media, just not Blu-Ray. There is no support information to be found -- anywhere!!! (HP