2lis_02_scl extract records with wrong posting date for Good Receipts.

Hi Experts,
We are currently having issue of mismatch between BW Schedule Line data with R/3 values for the Goods Receipts posting date updating incorrectly in to BW.
Example.
In table EKBE purchase order history we have following records.
MANDT EBELN        EBELP   ZEKKN VGABE GJAHR BELNR      BUZEI BEWTP BWART BUDAT      MENGE
501   5600453404   00010   00    1     2010  5012473031 0001  E     101   23.01.2010        1.250,000
501   5600453404   00010   00    1     2010  5012473031 0002  E     101   23.01.2010        1.250,000
501   5600453404   00010   00    1     2010  5012473031 0003  E     101   23.01.2010        1.250,000
501   5600453404   00010   00    1     2010  5012693310 0001  E     101   26.02.2010        1.250,000
Which means we have on posting date of 23.01.2010 1250*3 i.e. 3750 quantity of Goods Receipts.
However when we check the extractor we get multiple records in internal table C_T_DATA and in psa.
Line BWV ETENR   SLFDT              MENGE    ROCA BEDAT                            BUDAT          EBELN
       ORG                                                        NCEL
1     001     0001     20100125     3750.000          20100113     ZNB     F     00000000     5600453404
2     001     0002     20100226     1250.000          20100113     ZNB     F     00000000     5600453404
3     002     0001     20100125     3750.000     X     20100113     ZNB     F     20100123     5600453404
4     002     0001     20100125     3750.000          20100113     ZNB     F     20100123     5600453404
5     003     0001     20100125     3750.000     X     20100113     ZNB     F     20100127     5600453404
6     003     0001     20100125     3750.000          20100113     ZNB     F     20100127     5600453404
7     002     0001     20100125     3750.000     X     20100113     ZNB     F     20100226     5600453404
8     002     0001     20100125     3750.000          20100113     ZNB     F     20100226     5600453404
9     002     0002     20100226     1250.000     X     20100113     ZNB     F     20100226     5600453404
As can be seen we have record no 8 for ETENR (Schedule line 1) with posting date 26.02.2010 and another record with posting date 23.01.2010.
Since we are getting 2 records the record with incorrect posting date overwrites the record with correct one.
Any idea if this could be a standard extractor problem or any other way to resolve this issue.
Any help would be appreciated.

First of all, are you using a staging DSO? (You should ideally)
If yes, is it a Write Optimized DSO? (Again, this is ideal)
If its a standard DSO, the values maybe over-writing upon activation.
You have 3 records (quantity = 1250 * 3) that have been receipted on 23.01.2010, where Posting Date = 23.01.2010.
You also have a record (quantity = 1250 * 1) that has been receipted on 26.01.2010. Posting date = 26.01.2010.
Now, in RSA3 & in PSA you can see more records than intended.
This is because you have before & after images. (ROCANCEL = X or blank).
ROCANCEL = X --> Before Image (record before change)
ROCANCEL = blank --> After Image (record after change)
This is a standard property of the extractor.
Now, we also have something known as BWVORG (Process Keys). Each process, i.e. creating a PO, Goods Receipt, Invoice etc.. have different Process Keys.
Creation - 001
Goods Rcpt. - 002
Invoice - 003
We can see that record 8, i.e. BWVORG = 002 (GR) has been modified on 26.01.2010.
That is why there is before image and after image.
Which one should be the correct posting date? 23.01.2010?
Normally in a Write optimized DSO, you will have all the records (before and after images & others as well).
I hope this helps.
Please let me know if otherwise.

Similar Messages

  • Problem with the Posting Date of Goods Receipt or Invoice Receipt for PO

    Hi All,
    I am working on 2LIS_02_SCL - Purchasing Data (Schedule Line Level),
    For our report, we should get the scheduled PO quantity,actual PO qty, Scheduled date and actual date in the report.
    we are getting all these fields from the above extractor...
    For a PO which is opened (Delivery Completion indicator not set) - we where getting all field as in ECC(ME23N)
    But for a PO which is finished(Delivery completion indicator is set) - we where are getting actual GR qty,planned qty,planned or scheduled date at schedule line level.But we are not getting the Posting Date of Goods Receipt or Invoice Receipt for PO from history EKBE for all the schedule line.
    ex:
    for open PO
    PO num         item num   schedule line    Planned date   actual date  difference  actual qty  planned qty  difference
    450002432   10                        1              01/10/2011    02/10/2011       1 day          100             100             0
                                                     2              02/10/2011    04/10/2011       2 days        200             400            200
                                                     3              03/10/2011    07/10/2011       4 days         300            300              0
    For the same PO when it is Finished or completed(Delivery completion indicator is set)
    PO num         item num   schedule line    Planned date   actual date  difference  actual qty  planned qty  difference
    450002432   10                        1              01/10/2011    07/10/2011       6 day          100             100             0
                                                     2              02/10/2011    07/10/2011       5 days        200             400            200
                                                                    03/10/2011    07/10/2011       4 days         300            300              0
    for all the schedule line its displaying the last posting date(i think its taking from EKKO table)
    Is there any possibility to get that posting date history ....

    You can have multiple receipts against a PO schedule line, but this extractor is not meant to go to that level of granularity.  Please try to use 2lis_02_sgr instead which provides goods receipts per PO schedule line.

  • 2LIS_02_SCL / Getting both Posting dates of goods receipt & invoice receipt at the same time

    Hi,
    I have created a DSO based on the schedule lines standard extractor 2LIS_02_SCL.
    The keys of this DSO are PO Number, PO Item and Schedule Line number.
    I have succeed to get some key figures like PO Quantity, GR Quantity and Invoice Receipt Quantity according to the Process Key value.
    Furthermore, I'd like to get too the goods receipt date (Process Key = 02,12,22).
    In order to do that I wrote a small routine in the transformation rule for my target field which fill it only if the process key is 02, 12 or 22.
    The problem is that it doesn't work well because of the invoice records in my source package...
    Indeed when there is an invoice in my PSA for a schedule line, my target field (GR date char) is empty (for these schedule lines, last record is Invoice Receipt type). So it means my transformation rule works but is overwritten by an blank value when there is a process key 03,13 or 23 (invoice Receipt type).
    Do you have a idea to solve my issue ?
    Thank you very much

    Hi.
    You have to write start or end routines for this scenario, not the field level routine since it gets overwrite with last record values....
    overall logic is:
    Collect GR date per PO Num, PO Item and PO SCH. Lin num..like you have internal table with PO number, PO Item and PO Sch line number and GR date. First you have to go through source_package or result_package and fill up that temporary internal table
    And than again go through source_package or result_package and READ that temporary table and fill GR date for all records of same PO sch. lines ..hope this resolves the issue.
    I would prefer end routine if you have posting date in DSO or target structure
    this is little bit complex, so you need ABAP skills....

  • How to block wrong serial numbers for goods receipt.

    "while doing grn via migo t code serial numberes are entered wrongly.
    means current serial number is 4 digits 2000,2001,2002,,, but  8 digit serial numbers(20002001) are entered wrongly in migo  ,101m type. when i am going to do grn for that materiall it is taking 8 digit serial number
    how to block those 8 digit serial numbers? How to continue current serial number series as(2000)"
    how to initialize serial numbers for a particular material

    This means that you are not mapped as a worker in the system
    Go to HRMS resp..create employment...then go to sysadmin user form and query the user for which u want to associate..
    then in the person field map the user which u created employment
    Then you should be able to access the all the purchasing forms
    Mahendra

  • Filter records with month and date

    Hi,
    i have records as follows in the table.
    custno trn_dt amount
    1 01-jan-06 100
    1 10-jan-06 200 --->
    1 15-feb-06 300
    2 15-dec-06 111
    2 15-jan-06 222 --->
    2 01-fen-06 333
    If i specify the runtime parameter as JAN-06 the output of the report should be with 2 records indicated with arrows above.
    the query should pick up the record with the highest date for a specific customer.
    in the above example for customer "1" 10-jan-06 is highest date and for customer "2" 15-jan-06 is the highest date.
    hope the requirement is clear.
    thanks in advance

    SELECT custno, trn_dt, amount
    FROM TABLE
    WHERE (custno,trn_dt) IN
    (SELECT custno, MAX(trn_dt)
    FROM TABLE
    GROUP BY custno)
    There are many examples on this in SQL and PL/SQL forum.

  • 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

  • Issue with the Posting Date of the Purchase Order.

    Hi All,
    There are fields in BW like SSL1: Time OK, SSL2: Qty OK, SSL3: Time & Qty Ok, SSL4: Days Late (Routines are written to calculate). These fields will indicate whether the delivery against a GR is OK or not with respect to Time, Quantity and the No. of Days..
    But here the issue I am facing is
    If there is only1 delivery/ GR against a single item the calculation in BW are correct - i.e. for a particular PO if there is only one delivery the above fields like SSL1: Time Ok, SSL2: Qty OK will show like the delivery is done within the specified time and everything is OK (in case if it is delivered within the allotted time)
    But if there are multiple deliveries or multiple GR's  posted for one PO item, the calculations are going wrong i.e. even if the delivery is done well within the specified time it is showing the wrong calculations like it is delievered too late. Because in this case the earlier dates are overwritten.
    Can anyone throw me some light on how can I go about solving this issue.
    I am thinking of declaring the Posting Date as the KeyField of the DSO as of now it is a Data field  I also want to know the impact of assigning this as a Keyfield.
    Thanks in advance,
    Prasapbi

    Hi,
    As I understand, you have a DSO based on Purchase Order and your key field is PO and its line item. The problem as you stated will always be there if you have multiple deliveries/GRs created for a single line item because the system will overwrite the entries for same key.
    Problem with adding Posting date as keyfield will be that then your key will be PO-PO Lineitem-Date. When PO will be created, the Posting date will be blank(correct me here if I am wrong), therefore you will have one entry for same PO-line item combination. One without date and other with date, which again would be incorrect. If my assumption about Posting date was wrong, even then your data may not be correct because then you may have many entries with same posting date which again would overwrite each other.
    If there is any direct link between PO line item and number of deliveries that will get created for them, then you can bring that field in DSO as keyfield. But I don't think there is any such field.
    Looking at your report requirement, I would suggest that you make a DSO based on Goods Receipts and then calculate these keyfigures by comparing the dates between GR posting date and PO line item date.
    Else you can change the way your datasource works(if its generic one based on function module). Since your main requirement is to check whether the GR posting date has met your SLA or not, you should fetch all the details only when GR is created and make your key field as PO-PO Line item-GR

  • Need BAPI to update posting date for parked documents in transaction FBV2?

    Hi All,
    I am retrieving records from table VBKPF and I have to update the posting date for parked documents in transaction FBV2.
    I am doing it with BDC , working fine in foreground, but it is not workung fine in back ground.I want to do this with bapi.
    Can any one suggest me corrct BAPI?
    TYPES : BEGIN OF It_vbkpf,
             bukrs LIKE vbkpf-bukrs,            "Company Code
             belnr LIKE vbkpf-belnr,            "document number
             gjahr LIKE vbkpf-gjahr ,           "Fiscal year
             budat LIKE vbkpf-budat,            "Posting date
             bldat LIKE vbkpf-bldat,            "Document date
             blart LIKE vbkpf-blart,            "Document type
             xblnr LIKE vbkpf-xblnr,            "Reference
             tcode LIKE vbkpf-tcode,            "Transaction Code
             bktxt LIKE vbkpf-bktxt,            "Document header text
             usnam LIKE vbkpf-usnam,            "User Name
             xwffr LIKE vbkpf-xwffr,            "Release necessary
             xprfg LIKE vbkpf-xprfg,            "Document complete
             xfrge LIKE vbkpf-xfrge,            "Release takes place
            END  OF it_vbkpf.
    Thanks,
    Suresh.

    Hi ,
    Thanks for your response.
    PRELIMINARY_POSTING_UPDATE seems working good,But my requirement here , to update the posting date with last working day . how can i do this?
    thanks,
    Suresh.

  • Finding the record with the latest date

    Post Author: sconlon
    CA Forum: General
    Hi,I am using CR 8 with an Access database which has a table that holds (multiple) sales records for each of our clients. I want to create a report that lists only the latest sale from each client.  I am thinking that I first need to group by client and then create a sub-report that prints the necessary details of sales record with the latest date of sale.  It's this last bit that I cannot figure out how to do.  Can anyone suggest a way of doing this?Many thanks,sconlon

    Post Author: Jagan
    CA Forum: General
    Charliy's suggestion if fine, and does require sorting and displaying in the group header/footer according to the sort order. In case it's not clear, when you print in the group header you are using the first record's data; when you print in the group footer you are using the last record's data (first and last within the group that is).
    Personally, I'd group on the client have a group selection formula of:
    {table.date_field} = maximum({table.date_field}, {table.client_id})
    so that there's no date sort required as you'll only get one record per client group - assuming that each record has a unique date of course. I'd probably still suppress the details section and display in the group footer, but it wouldn't matter if you use the details section either.
    I believe the benefit with the group selection formula is that any summary formulas, running totals etc. you use would only have the one record per client to work on, rather than including all of the suppressed records too.

  • Payment run with future posting date

    Hi,
    There might be a straight forward answer to this question, but for some reason I cannot get it to work the way I believe it should work!
    Instead of processing payment runs every day we want to create the payment run only twice a week. However the value date in the payment instruction to the  bank should be the actual due date of each invoice. This could result in 2 payment lines to one supplier.
    I have found that by setting the indicator "Payment per due date" in the payment method it will generate these 2 payment lines.
    The problem is that we also want the clearing document to be split into 2 documents each with the posting date to be equeal to the value date - for some reason I cannot get this to work?
    I have looked at substitutionrules and activating an enhancement, but looks like is not possible.
    I would have thought this is a standard requirement, but ?
    Thanks for helping

    Hi,
    It seems to be that you have to create 2 payment runs.
    Regards,
    Svetlin

  • Please put a cost object with valid JV data for GL accoutnt (line 001)

    Dear All,
    When the user is trying to post ASKBN, They are getting an error saying "Please put a cost object with valid JV data for GL accoutnt (line 001)"
    So we tried to look up the error, and the WBS, Cost center, profit center and JVA details are all available in place. Still cant understand why this error comes. And why the system is asking to put JV details when they are available.
    On checking, WBS has an AUC and AUC has the cost center which has the JV details and PC details. So I think everything is in place.
    Can someone help please and let us know if we are missing anything else that needs to be checked ?
    Thanks,
    Hari Dharen

    Dear Hari Dharen,
    if something else in missung you'll get a error message if you run ASKBN in testmodus.
    regards Bernhard
    Edited by: Bernhard Kirchner on Oct 5, 2010 8:55 AM

  • Cannot reverse document with future posting date

    Hi,
    When I tried to reverse a document with future posting date, system gives error F5362 Posting date must not be smaller than XX.XX.XXXX (x = future posting date).
    Is it possible to do this in SAP?

    Hello,
    You need to use reversal reason configured accordingly.
    Configure the reversal reason for your purpose:
    IMG => Financial Accounting => Business Transactions => Adjustment Posting / Reversal / Define Reasons for Reversal
    Make SURE that you have ticked Alt.Pos.dt (Alternative Posting Date) check box.
    Save it.
    Now use this reversal reason for your posting and give a fugure date.
    Make sure that the future posting period is opened but NOT closed.
    Please also read F1 on alternative posting date check box:
    Indicator: Alternative posting date allowed
    Indicator as to whether you are allowed to specify an alternative posting date for the relevant reversal reason.
    Use
    When you use the reversal reason, the system checks that reversal is not carried out using an alternative posting date and therefore possibly in a later posting period or in a later fiscal year.
    Examples
    If you want to use negative postings during reversal but only if the reversal is posted in the same period, you can define two reversal reasons:
    1st reason: No alternative date allowed, generate negative posting
    2nd reason: Alternative date allowed, do not generate negative posting
    Regards,
    Ravi

  • SYSTEM ERROR:NO Posted data for 5_CPR_EXTID 5(INCLUDE LCATS_ITSF 10)

    Hello Experts,
    CAN you please help me Regarding this error ,its very urjent for me.
    The problem is we are not able to create timesheet through ESS CATW transaction. In the below the link to the ESS Create Time sheet CATW is giving. Use the link to enter the ESS timesheet. Ignore all columns and use only A/A column and give any leave type.  When we enter the timesheet with A/A any vacation type and give number of hours and when we try to save or save and release button it gives a error message and it locks the user.
    The error message it gives is :
    <b>SYSTEM ERROR:NO Posted data for 5_CPR_EXTID 5(INCLUDE LCATS_ITSF 10)</b>
    Please Help me ....
    Thank you and regards,
    Durga.K

    Hi Durga,
    We have exactly the same error. Were you able to fix this? Any help is appreciated.
    Thanks,
    Doug

  • System error: NO posted data for 4_CPR_OBJGEXTID 4 (Include LCATS_ITSF10)

    Dear experts!
    I use internet service transaction catw in release 6.0 and the following error occurs:
    System error: NO posted data for 4_CPR_OBJGEXTID 4 (Include LCATS_ITSF10) .
    Thank you in advance!
    Vana Sounta

    CATw is not supported in ECC 600 , You need to use new service of CATS, called record working time
    Please read the note 870126 and also refer help.sap.com about record working time

  • Display stock on posting date for a consignment stock

    Dear guru.
    I want to display the stock on posting date for a consignment stock (special stock indicator = "W" ) to display this stock and the linked movements  for a specific customer.
    MB5B donu2019t have the field customer in the selection view.
    What transaction can I use ?
    Thanks in advance.

    Hi,
    In MB5B in special stocks indicator you select W
    and select special stock
    You will get it
    BR
    Diwakar
    Edited by: diwakarnd deshpande on May 20, 2008 7:02 PM

Maybe you are looking for

  • Double clicking on file doesn't open file in Photoshop

    I've tried all the well-known fixes for this and they don't work. I'm on a Power Mac G5, 2MHz, running OS X 10.4.11, and Photoshop CS. I've been through the fixes for "can't open in Photoshop from double clicking file on desktop"-reinstalling Photosh

  • Issue in automatic delivery creation

    Hello, This is to reframe the issue again and give you some more details on this issue – As per SAP standard we have configured our salers order for immediate delivery creation with a default delivery block – XX. Hence as per config whenever we creat

  • Adobe Premiere Pro CC Crashing Upon Startup

    Hello, this is my first post on this forum and I am doing this because I have a reoccurring problem:      Whenever I start up Premiere Pro CC, it does one of two things: 1. Stops responding at the startup screen and I am forced to close it.  or  2. I

  • Upgrade from Sol 10 to 10 1/06

    I have never checked this: when doing an upgrade (from Sol 10 to 10 1/06, in this case), is much extra disk space required beyond that needed for any new packages that are chosen for installation? I've got 2 4GB drives in my U60, with 161MB free on /

  • Is general account user really needed?

    Hi. Is there really a must to creat a general user account? Or the default account with password is enough? 90% of my software comes from Mac App Store, expect Steam, Perian, Flash and Nikon Capture NX 2. I download all of them from their official si