Wrong data is showing with diff. G/L Account in Report

Hi,
When i m execting my report, it is showing output like this:--
G/L No..............PO Number..............Item..............Vendor.........Material
350000.............4500000745..............10...............10024.............ABC
350000.............4500000745..............20...............10024.............XYZ
350000.............4500000745..............20...............10024.............MNO
350000.............4500000745..............20...............10024.............PQR
With this, selection parameter was: - G/L No, PO Number & Posting date.
BUT...
If i put another G/L Number (600200) on selection screen with same PO Number...then it must not show the output...But the output is showing like it:---
G/L No..............PO Number..............Item..............Vendor.........Material
.........................4500000745..............10...............10024.............ABC
.........................4500000745..............20...............10024.............XYZ
.........................4500000745..............20...............10024.............MNO
.........................4500000745..............20...............10024.............PQR
What should be the problem here....
My code is:----
SELECT ebeln ebelp gjahr belnr bwart budat bamng xblnr lfgja lfbnr lfpos matnr werks INTO CORRESPONDING FIELDS OF TABLE itab FROM ekbe
                                WHERE ebeln IN ebeln AND ebelp IN ebelp AND gjahr IN gjahr AND bwart EQ '103' .
IF sy-subrc <> 0.
  MESSAGE 'DATA NOT FOUND.' TYPE 'I'(001).
ENDIF.
SORT itab BY ebeln ebelp.
LOOP AT itab.
  IF itab-lfbnr NE ' '.
    SELECT SINGLE belnr budat menge dmbtr waers xblnr lfgja FROM ekbe INTO (itab-belnr1, itab-budat1, itab-menge1, itab-dmbtr1, itab-waers1, itab-xblnr1, itab-lfgja1)
                                  WHERE lfbnr = itab-lfbnr AND lfgja = itab-lfgja AND bwart EQ '105' AND ebeln IN ebeln AND ebelp = itab-ebelp.
    MODIFY itab INDEX sy-tabix TRANSPORTING belnr1 budat1 menge1 dmbtr1 waers1 xblnr1 lfgja1 .
    SELECT SINGLE lifnr FROM ekko INTO itab-lifnr WHERE ebeln = itab-ebeln.
    MODIFY itab INDEX sy-tabix TRANSPORTING lifnr.
    SELECT SINGLE name1 FROM lfa1 INTO itab-name1 WHERE lifnr = itab-lifnr.
    MODIFY itab INDEX sy-tabix TRANSPORTING name1.
    SELECT SINGLE hkont FROM bsik INTO itab-hkont WHERE lifnr = itab-lifnr and hkont in hkont.
    MODIFY itab INDEX sy-tabix TRANSPORTING hkont.
ENDLOOP.
Regards..

Hi,
can you explain the PO type.
like Frame work order  or NB  doc type.
If framework order.
the you might be given G/L account w r t account assignment key.
check the OBYC what G/L accoiunt assign against the account assignment key--> account modifier.
SAM

Similar Messages

  • Data not showing with 2G/L account

    <<Do not open a second question that's the same as the one you asked earlier>>
    Hi,
    My problem is that when i m executing my report with 1 G/L account, it is running fine, but when i m running with 2 or more G/L's is not displaying any data...what is the problem....
    When I check at debugging time, it is showing data, but not after execute...
    Please check my code:---
    Edited by: Matt on Feb 20, 2009 11:59 AM

    Dont violate rules with Duplicate posts

  • Data not showing for 2 G/L accounts

    Hi Gurus,
    My problem is that when i m executing my report with 1 G/L account, it is running fine, but when i m running with 2 or more G/L's is not displaying any data...
    what is the problem in it...
    Please check my code:---
    Thanks...

    Hi Anil,
    in your code as mentioned below
    SELECT DISTINCT hkont belnr gjahr bldat budat INTO CORRESPONDING FIELDS OF TABLE itab
    FROM bsis
    WHERE bukrs = '1000'
    AND hkont = hkont---------------------------ur code
    AND hkont IN hkont----
    changed code by Azeem
    AND belnr IN belnr
    AND gjahr IN gjahr
    AND bldat IN bldat
    AND budat IN budat
    AND blart 'JV'.
    Hope its helpful.

  • Downloads with Safari show wrong date

    Hi, this is my first post and I'm stumped.
    When I download a file (i.e. PDF) via Safari on either my Imac or Macbook (4.03 and 4.02) both running Leopard 10.5.7 it shows up in my downloads folder with the wrong date: wrong year, month, and day.
    When I download the same file with Firefox the download date is correct.
    Does anyone have any suggestions to remedy this annoying problem? Thanks.

    Ok. I just downloaded a PDF via Safari that shows the creation date as: 23/12/08 1:10 AM.
    Same file downloaded via Firefox shows date correctly: today at 9:16 PM.
    The date from Safari has been all over the map... 03, 07, 00 etc. all different.
    Message was edited by: i-Mack

  • When I add a meeting invitation to ical it enters on wrong date...help!  It shows up as a random date and year, When I add a meeting invitation to ical it enters on wrong date.

    I am running Mountian Lion on a new (8 months) MBPro 13".  I recently started having iCal enter meeting invitations that I receive on the wrong dates!  Not just a day or hour off...but a year or more!  Of course at first I didn't even notice I would just click to accept and add the invite to the calendar and when I would return it was gone.  If I do a "quick look" at the invitation from within the Mail it shows the correct time and date...but it I open it, it's totally ramdom what date it picks.

    I am having a similar problem:  invitations sent (presumably from outlook), when accepted from my iPad, appear in the calendar with the wrong time zone.
    this actually happens even when the meeting is in the same time zone I'm in:  I am in GMT -5, and even when the meeting is in GMT-5, it defaults to GMT (or, in some instances, PST).  My settings have my time zone set correctly.
    Any help much appreciated.
    PS:  Using iPad original wit iOS5

  • Region Report reloading with wrong data

    Hi all,
    I'm having an odd problem with APEX that I'm hoping somebody could help with.
    I have a region report containing 30 text fields, VALUE_1 to 30. The report contains several Validation rules and when submitted with no errors it works fine. However, when any of the Validations picks up an error, the page reloads as expected with the inline error text showing fine...but the text in the VALUE_7 field has been copied into the VALUE_17 input field (so both fields are displaying the same text). The data in all of the remaining cells displays fine. I've checked all of the obvious report and column attributes but can't see anything wrong and I'm happy that the copied data in the VALUE_17 field is not coming from the database.
    Can anybody point me in the direction of things to try? Can a report become corrupted or are there known report issues with my version of APEX? (v4.0.2.00.07).
    A large amount of Googling hasn't shown any similar problems.
    Many thanks,
    ~H.
    PS: Apologies for the username, the Preferences option refuses to admit that I've changed it!

    Hi Hinden,
    Is your report based on a table or a collection? Normally if it is based on a table the report would revert back to the original values of the table, when you first went to this page, if the validation fails. If it is based on a collection then you need to check the code where you fill up your collection, my guess is you insert the wrong values there.
    Regards,
    Joni

  • Aggregate table showing wrong data

    Hello Gurus:
    I am working on an issue, where a report is showing wrong value for an aggregated fact table.
    If I try not including it in query, then results work fine. But by default BI server is pointing to aggregate table ( which it should ).
    So my questions are
    1) Does Aggregate tables are refreshed automatically with DAC?
    2) I know data is wrong in aggregate table. How do I verify?
    3) How to make a particular report hit regular table instead of aggregate table?
    Please let me know.
    Thanks.
    ~Vinay

    Alright. So I made some progress on this issue, HOWEVER it is still not solved.
    1) Aggregated tables are refreshed daily with DAC. There is a script for that on server which is created using Aggregate Persistence wizard.
    2) ONLY one column is showing wrong data. I have verified this using Toad. However I dont know why is it showing wrong data. Theoretically it should be fine.
    3) this question is still same.
    How to make a particular report hit regular table instead of aggregate table?
    Please help me out.
    Thanks.
    ~Vinay

  • Report showing wrong data

    Hi Gurus,
    When we are generating report in the answers in one column it is showing wrong data from where i have to start for this issue.
    Thanks,
    Rafi

    Pull that column alone,run report, compare the results with your manual query, and also compare the physical query.
    if all are good then try to add other column from any other dim and then do the same as above
    repeat till you know the cause.
    Pls mark if helps

  • IPhoto imports photos with wrong dates even if the dates are fine on the camera

    Hi!
    When I import photos with iPhoto, sometimes it imports them with wrong dates, even the dates are fine on the camera. It puts dates such as 2032. Does anyone know how can I fix that. As far as I know there is no way to change dates of the photos.
    Thanks!

    well that is very confusing since if the date is correct on the camera it will be correct in iPhoto
    and as to
    As far as I know there is no way to change dates of the photos.
    Try looking through your iPhto menus - two commands - adjust time and date and batch change time and date - asjust is used to correct incorrect dates like a comera setting -   Batch change for missing dates like with scans
    LN

  • I have made a burn folder with photos exported from I-photo.  It now shows in information, that the date is created and modified is different from the original digitized date.  How can I get the original date to show in the info from Finder?

    I have made a burn folder with photos exported from I-photo.  It now shows in information, that the date  created and modified is different from the original digitized date.  How can I get the original date to show in the info from Finder?

    The Finder reports File information. The date and time of the photo are in the Photo's Exif metadata. The Finder has no awareness of this. All photos apps on any system do.
    Regards
    TD

  • Calendar List view shows entries under the wrong date

    I just upgraded to iOS4 and finding that my calendar entries are appearing under the wrong date in the calendar list view when I am viewing two calendars.
    - List view is ok when viewing 1 calendar
    - Day and Month views are ok at all times (ie: viewing single or multiple calendars)
    - I have 2 Exchange accounts
    - Calendar entries are appearing in the correct order, but under the incorrect date heading.
    - When I intially added the Exchange accounts the calendar list view was fine at first (I could see both calendars correctly in list view) but after a short time later it became screwed up.
    Anyone else experience this?

    Same problem here since my upgrade to iOS4 - but I only noticed today.
    I have 3 calendars set up:
    Gmail (Exchange)
    UK Holidays (iCal)
    Birthdays
    The exchange calendar is always wrong but the other two are correct when my exchange calendar is switched off.
    It has mucked up my scheduling a bit for the next month. I only became suspicious when I noticed the Scottish Bank Holiday Monday at the beginning of August was showing on FRIDAY, 30th of July!

  • How to show Date and Time with TimeZone

    Dear All,
    I have to show Date and Time with TimeZone abbreviation,
    for example:
    1) 31 March 2011 2:30 in india standard time - it should show in screen 31 March 2011 2:30 IST.
    2) 31 March 2011 2:30 in Australia/New Zealand - Eastern time zone it should show in screen 31 March 2011 2:30 AEST.
    how can i show *Australia/New Zealand - Eastern time zone to AEST*,
    I tried with format DD MMM YYYY HH:MM zzz, and i looked time zone API too.
    Appreciate your help
    Thanks
    Daya

    Dayananda wrote:
    ok, than i have to use zzzz format, as z won't help in my case, so i have to use zzzz which display descriptive value like, Indian Standard Time i.e. ISTPer the javadocs there is a very specific reason why that is a problem especially if you intend to support many timezones in one application.
    "+For compatibility with JDK 1.1.x, some other three-letter time zone IDs (such as "PST", "CTT", "AST") are also supported. However, their use is deprecated because the same abbreviation is often used for multiple time zones (for example, "CST" could be U.S. "Central Standard Time" and "China Standard Time"), and the Java platform can then only recognize one of them+."
    Thus you have one single case where there can be many and moreover it can change (twice a year I believe.)
    There is a standard source for this information although when I tried it it appears to not work.
    If the app only needs to display one zone then provide a configuration value that allows a user to overload the display value.
    If the app needs to display many values then you MUST inform business users of the problem because there are duplicates and they, not you, need to decide specifically what happens in those cases.

  • 2900 Series Router Shows Wrong Date in Logs

    Hello All,
    Router: 2911 SIP Gateway (C2900-UNIVERSALK9-M)
    IOS Ver: Version 15.2(4)M3
    When I run the "show ntp status" command it is showing the correct date/time in with the NTP data. But when I run "show logg" the SIP messages being logged are showing a time that is 4 hours ahead of the actual time.
        *Current Time I'm writing this is 11:45'ish...
    # show ntp status
    Clock is synchronized, stratum 5, reference is 192.168.xx.x
    nominal freq is 250.0000 Hz, actual freq is 249.9996 Hz, precision is 2**21
    ntp uptime is 836292100 (1/100 of seconds), resolution is 4016
    reference time is D74AE0C1.A5C9079D (11:44:01.647 EDT Tue Jun 17 2014)
    clock offset is 1.4716 msec, root delay is 156.27 msec
    root dispersion is 252.26 msec, peer dispersion is 17.29 msec
    loopfilter state is 'CTRL' (Normal Controlled Loop), drift is 0.000001556 s/s
    system poll interval is 512, last update was 427 sec ago.
    #show logg
    1268129: Jun 17 15:53:41.146: //543358/47CDDA800000/SIP/Msg/ccsipDisplayMsg:
    As you can see the date and time of this last log message in the buffer is showing a time of "15:53:41". Which is about 4 hours ahead of the current time, which makes me think it's a timezone thing, but it looks correct in NTP status... Any idea why the correct time and time zone (*I'm in EST zone) is in NTP status, but incorrect in the log(s)?
    Any ideas how I can fix this?
    Any thoughts or suggestions would be much appreciated.
    Thanks in Advance,
    Matt
     

    Hi,
    https://supportforums.cisco.com/document/24156/router-log-timestamp-entries-are-different-system-clock-when-ntp-configured
    Add the [localtime] option to the service timestamps log command. For example, if the current configuration isservice timestamps log datetime, issue this global configuration command:
    router(config)#service timestamps log datetime localtime
    router(config)#^Z (ctrl z to exit)
    router#write mem
    The times should now be synchronized between the system clock and the log message timestamps.
    Thanks
    "Please rate the post if found useful"

  • My new macbook pro (lion) iCal has been showing the wrong date?

    My new macbook pro (lion) iCal has been showing the wrong date for stored events - even though i have put the appointment in on the right date when I look it up a week or so later it has changed?
    I think it might be showing 2011 date? How can i fix this and do I have back-up of my original dates?

    Good to hear .  Happy computing!

  • Why wont google chrome let me play you tube videos as all I get is a black scfeen with no control iocons??? ps help I've  but made n o diff. tried clearing cashe's  and browsing data but made no diff grrr

    why wont google chrome let me play you tube videos as all I get is a black scfeen with no control iocons??? ps help I've  but made n o diff. tried clearing cashe's  and browsing data but made no diff grrr

        Check  whether you are currently  in  YouTube HTML 5 trial?
         http://www.youtube.com/html5
        At the bottom  left of the page  uncheck the box for
       "You are currently in the HTML5 trial".

Maybe you are looking for

  • Microsoft SQL Server ODBC Driver 1.0 for Linux problem

    Hello! I've RedHat Linux 6 Update 1 x64 on VMware Player and MS SQL Server on real machine. My application "servernew" on RedHat. All right, but when i try connect my SQL Server: retcode = SQLDriverConnect(hdbc,NULL,string,sizeof(string),buf,sizeof(b

  • ITunes crashed during download. Now what?

    I just bought an album and while downloading iTunes crashed. So now I spent $8 and have no music to show for it. What can I do? I'm really ****** off...

  • Controlling Wi-Fi

    Does anyone know how to permanently disable the Wi-Fi on an iPhone or iPod touch? I know how to temporarily disable it (tap on "Settings", then tap on "Wi-Fi" and slide the bar to "Off"). Is it even possible to disable it permanently? Alternatively,

  • How do I update the app store so I can get IOS 6?

    I have no idea how! Please help!

  • Pen Tool - autocreate layer?

    I've been using Photoshop for about a decade now and I have yet to experience a problem like I'm having now with the pen tool. When you place your first node, it makes a layer... but in CS4 (or at least my version) it isn't. I can create the entire s