TO get BSEG Entries

Hello,
I need to get fields from KOART ALTKT XBILK GVTYP from BSEG based on BKPF entries. Is there any other table that I can get these details from Because its taking a lot of time to get the entries from BSEG. Please suggest.
Thanks
Vik

Please see this   Query for getting data from the   BSEG  Based  on the BKPF  internal table data  ... it was  Performed  tuned   already ..
Code to demonstrate select command
*Code to demonstrate select into internal table command
TYPES: BEGIN OF t_bkpf,
*  include structure bkpf.
  bukrs LIKE bkpf-bukrs,
  belnr LIKE bkpf-belnr,
  gjahr LIKE bkpf-gjahr,
  bldat LIKE bkpf-bldat,
  monat LIKE bkpf-monat,
  budat LIKE bkpf-budat,
  xblnr LIKE bkpf-xblnr,
  awtyp LIKE bkpf-awtyp,
  awkey LIKE bkpf-awkey,
END OF t_bkpf.
DATA: it_bkpf TYPE STANDARD TABLE OF t_bkpf INITIAL SIZE 0,
      wa_bkpf TYPE t_bkpf.
TYPES: BEGIN OF t_bseg,
*include structure bseg.
  bukrs     LIKE bseg-bukrs,
  belnr     LIKE bseg-belnr,
  gjahr     LIKE bseg-gjahr,
  buzei     LIKE bseg-buzei,
  mwskz     LIKE bseg-mwskz,         "Tax code
  umsks     LIKE bseg-umsks,         "Special G/L transaction type
  prctr     LIKE bseg-prctr,         "Profit Centre
  hkont     LIKE bseg-hkont,         "G/L account
  xauto     LIKE bseg-xauto,
  koart     LIKE bseg-koart,
  dmbtr     LIKE bseg-dmbtr,
  mwart     LIKE bseg-mwart,
  hwbas     LIKE bseg-hwbas,
  aufnr     LIKE bseg-aufnr,
  projk     LIKE bseg-projk,
  shkzg     LIKE bseg-shkzg,
  kokrs     LIKE bseg-kokrs,
END OF t_bseg.
DATA: it_bseg TYPE STANDARD TABLE OF t_bseg INITIAL SIZE 0,
      wa_bseg TYPE t_bseg.
*Select FOR ALL ENTRIES command
SELECT bukrs belnr gjahr bldat monat budat xblnr awtyp awkey
  UP TO 100 ROWS
  FROM bkpf
  INTO TABLE it_bkpf.
IF sy-subrc EQ 0.
* The FOR ALL ENTRIES comand only retrieves data which matches
* entries within a particular internal table.
  SELECT bukrs belnr gjahr buzei mwskz umsks prctr hkont xauto koart
         dmbtr mwart hwbas aufnr projk shkzg kokrs
    FROM bseg
    INTO TABLE it_bseg
    FOR ALL ENTRIES IN it_bkpf
    WHERE bukrs EQ it_bkpf-bukrs AND
          belnr EQ it_bkpf-belnr AND
          gjahr EQ it_bkpf-gjahr.
ENDIF.
reward  points if it is usefull.....
Girish

Similar Messages

  • Why do I get duplicate entries in iCal on my iTouch?

    I get duplicate entries on the same day in ICal on my iTouch? Is there a way to remedy this problem?

    Sound like you're syncing via iCloud AND via the iPod sync mechanism.  Connect to iTunes and go to the Info tab.  Uncheck the box:

  • Get first entry of a table (return parameter of procedure)

    Hello Community,
    I created a procedure with a couple of projections and one join.
    The procedure returns the result as a parameter (o_result).
    In the calling procedure, I get the result.
    But I need to do further processing based on the first row of the result.
    Is this possible with SAP Hana SQL Script?
    Many thanks in advance.
    Regards, Rolf

    Hi Rolf,
    Your question is not very clear. May be you explain what you want to achieve after getting first entry of table.
    In your calling procedure you would make a call and bind the output table like this
    call proc1 ( :input_param, output_tab);
    On the returing output_tab you could just write something like
    output_top1 = select top 1 * from :output_tab;
    You could use this table for whatever processing you want to do further.
    If you want to get values into some scalar variables that is also possible.
    e.g
    declare lv_column1 nvarchar(10);
    select column1 into lv_column1 from :output_top1;
    Thanks
    Sagar

  • Get Latest Entry for each Item

    I have a table that has items with multiple entries per item.  Each entry has a date of when it was entered.  I want to get unique entries with the latest date. For example,
    From this:
    item
    date
    item1 12/13/2014
    item1 12/15/2014
    item2 12/10/2014
    item2 12/19/2014
    To this:
    item
    date
    item1 12/15/2014
    item2 12/19/2014
    Thanks in advance.

    Give this a try:
    DECLARE @items TABLE (itemName VARCHAR(20), itemDate DATE)
    INSERT INTO @items (itemName, itemDate) VALUES ('item1', '12/13/2014'),('item1', '12/15/2014'),('item2', '12/10/2014'),('item2', '12/19/2014')
    SELECT *
    FROM @items i
    WHERE i.itemDate = (
    SELECT MAX(itemDate)
    FROM @items
    WHERE i.itemName = itemName

  • How to get initial entries of sales orders to go into CDHDR/CDPOS

    When a sales order is first created and saved, we do not get an entry in CDHDR and/or CDPOS for it.
    People have suggested looking at ERDAT and ERZET, but I have found that those entries may be false - especially if a person doesn't press save for a while.
    A followup question to this is that when I use SE16N to look at field CHNGIND in table CDPOS, one of the possible values is J.  It appears to work just like E does for deletes, but I cannot find a way to turn it on.  I have been successful in using SCDO to turn on values for deletes which I needed ( thus turning the D's into E's ).  A "J" appears to be an insert with the value of the field.
    Is there some transaction in the system which will force the system to log the initial creation and thus assign it a change number ?  I have a workaround of using a user exit to create an entry in a table, but I hate to have to do that if I don't have to.  And what do I use to get the system to log the individual values on inserts ?  It would help immensely if we had the values on the fields when they are inserted as a lot of logic is going towards determining those values.

    To anyone who reads this thread.
    We ended up adding code to userexit_save_document in MV45AFZZ to create records in a custom table with a field that indicates that the entry needs to be processed.  It got us around the date issue in the fact that the query looks for unprocessed entries and thus avoids the whole buffering thing.  The only fields we had in the table were VBELN, POSNR, and a single character processing flag ( initial if not processed, 'X' if processed ).
    There definitely is some kind of buffering going on so that our date/time went by and got missed.
    I never did find any answers to my last two questions - if I ever do I will post it here.  If anyone else finds out the answers, please post and I will award credit.

  • Which field ,table gets the entry when we refresh cube statistics

    Hey,
    I just want to know  into which field or table entry is made when we Refresh statistics using the manage tab of the Infocube.. I saw the fields of the table RSDCUBE , there are two includes as given below and their fields, Im noy able to quite figure out which field gets the entry when i click on refresh statistics button in the Performance tab.
    1) RSDCUBEDBFLAGS (InfoCube: DB Performance Flags): which has the following fields namely
    CLEAR_INDEX     Boolean
    DELTA_INDEX     Boolean
    REBUILD_STAT     Boolean
    DELTA_STAT     Boolean
    PERCENTAGE     internal use
    NULLCOMP     Zero elimination in the summarization module
    COMP_DISJ     Flag: only disjunct records
    REFUPDATE     No update of the non-cumulative marker
    2)RSDCUBEBWSTAT (InfoCube: BW Statistics)
    BWSTATISTICS     Boolean
    BWSTATWHM     Boolean
    However , when i click on refresh statics, there is a job which runs from my id which triggers the program RSDSTAT1 with variant as the cube name..
    its kinda urgent...  helllpp
    Thanks,
    vaish

    Hey,
    I just want to know  into which field or table entry is made when we Refresh statistics using the manage tab of the Infocube.. I saw the fields of the table RSDCUBE , there are two includes as given below and their fields, Im noy able to quite figure out which field gets the entry when i click on refresh statistics button in the Performance tab.
    1) RSDCUBEDBFLAGS (InfoCube: DB Performance Flags): which has the following fields namely
    CLEAR_INDEX     Boolean
    DELTA_INDEX     Boolean
    REBUILD_STAT     Boolean
    DELTA_STAT     Boolean
    PERCENTAGE     internal use
    NULLCOMP     Zero elimination in the summarization module
    COMP_DISJ     Flag: only disjunct records
    REFUPDATE     No update of the non-cumulative marker
    2)RSDCUBEBWSTAT (InfoCube: BW Statistics)
    BWSTATISTICS     Boolean
    BWSTATWHM     Boolean
    However , when i click on refresh statics, there is a job which runs from my id which triggers the program RSDSTAT1 with variant as the cube name..
    its kinda urgent...  helllpp
    Thanks,
    vaish

  • How to get the entry point in the ActiveX/COM adaptor

    below is the description of the Demo of using the ActiveX/COM to call new seq . 
    API Demo
    1. Manually add a Message Popup step to the MainSequence of a
    new sequence file. Save the sequence file as launch.seq.
    2. Create another sequence file and save the file as caller.seq.
    3. In the MainSequence of the caller.seq file, add Action steps
    using the ActiveX/COM Adapter to call into the TestStand API and
    launch the launch.seq file in a new execution.You might need the
    following two methods to complete this step.
    . Engine.GetSequenceFileEx
    . Engine.NewExecution
    so the question as follows:
    1.i call the method of get sequencefileEx
    2. call the method of getmodlesequenceFile
    3.call the method of evalEntryPointNameExpression
    4.call the method of NewExecution.
    but at the step of 3. i haven't get the entry point.
    so how to solve this issue? thanks
    Attachments:
    QQ图片20140115200924.jpg ‏58 KB
    QQ图片20140115201708.jpg ‏100 KB

    This is a duplicate post of this:
    http://forums.ni.com/t5/NI-TestStand/How-to-get-the-entry-point-in-the-ActiveX-COM-adaptor/m-p/27005...

  • HT1349 how do I get duplacate entries out of my phone contacts

    how do i get duplacate entries out of my phone contacts

    the only place one can move apps in and out of is folders
    if you tab and hold until it begin to wiggle then you can move it to the edge of the folder and that moves it out of it

  • GET: bseg not returning what I need - urgent

    Hi all,
    I have a major problem with my get: bseg statement for logical database SDF. I need to fetch all documents for a G/L account for a specified fiscal year and period.
    The problem is that only documents with a clearing date is returned by the get: bseg. I need to include those documents which are still open, such as clearing date (bseg-augdt = '00000000'). Why are these records omitted by my get statement?
    Help is hugely appreciated!
    Thomas
    Message was edited by: Thomas Kjelsrud

    put like this
    in  the selection screen u have to put augdt eq SPACE and where in Where Clause U have to put BSEG-AUGDT = '00000000'.
    Regards
    Prabhu

  • Hi, i am using SAP by Design in india. I am trying to get GL entry report in which i require a field "Approved by" but unable to find - please suggest.

    Hi, i am using SAP by Design in india. I am trying to get GL entry report in which i require a field "Approved by" but unable to find - please suggest.

    Hi hanmant,
    You could find GL Line item report under General ledger WOC => Reports => List=> G/L Line Item Report, but this report does not have filter parameter "Approved by".
    May I know what was the use case behind "Approved by" field?
    BR, Rakesh

  • When trying to update flash..getting "procedure entry point setdiidirectoryw could not be located in the dynamic link library kernel32.dll"

    When trying to update flash..getting "procedure entry point setdiidirectoryw could not be located in the dynamic link library kernel32.dll"

    this is a mere adobe bug - they changed the installer & it wont support installation on windows 2000 system any longer. adobe doesn't seem as it is going to fix this bug, see [https://bugbase.adobe.com/index.cfm?event=bug&id=3120661].
    you might want to try this installation method provided by a 3rd-party-site: [http://www.ortwinpinke.de/en/2012/03/13/install-adobe-flash-player-11110262-and-later-under-windows-2000/]
    please note that mozilla firefox won't support the windows 2000 platform any longer after the release of version 12 of the browser & the system is no longer supported or kept up to date with security fixes by microsoft too. in order to keep your computer & personal information on it safe you may consider upgrading to a newer system.

  • In BDCP table I am not getting any entries for EKKO,EKPO,EKBE,EKET,EBAN

    In BDCP table I am not getting any entries for EKKO,EKPO,EKBE,EKET,EBAN tables.
    But there are entries for many other tables.
    I have got objects for EKKO,EKPO,EKBE,EKET,EBAN tables from TCDOB tables.

    Hi Avishek,
       Let me explain the meaning of Change pointers.
    If you have entry in BDCP table for MARA, that means everytime a material is created in MARA table in one system, a corresponding Material is created in another system which is connected to the current system VIA ALE. and whenever you change that material in your source system, then the change is propagated to the target system also(If you have done the change pointer set up).
    The you do not have entries for other tables becuase the configuration for change pointers is not done for those Objects(In your case the change pointers are not defined for Purchase Orders and hence no entries in BDCP table).
    Regards,
    Ravi kanth Talagana

  • Why do I get 2 entries in System Tray for a LV executable

    For every executable produced by Labview, I get two entries in the System Tray. Am I doing something wrong? One entry is all gray with only the name of the executable, the other has the Labview Icon then the name of the Executable.
    Takes up a lot of space making it hard for the user to know what they are.
    Thanks for any insite. Not earth shaking, but a nuisance.
    Thanks again, Bob

    In the ini file for your executable create a section with the same name as the executable and put the follwing key in it:
    HideRootWindow=True
    That will get rid of the second Task bar listing.
    Joe.
    "NOTHING IS EVER EASY"

  • I get double entries when I back up calendar and contacts.   Why?

    I get double entries when I back up calendar and contacts.   Why?

    may you using different apple ID's on your different systems ? In that case, you might have more than one icloud ID and syncing/mounting any calendars in one view, so you have the same entry doubled 

  • Why do I get double entries when synching calendar with Google calendar?

    Since I have different iCloud passwords on my iPad 2 and iPhone 4s, I synch the calendars with Google calendar.  It works - to a point.  The problem I'm getting double entries in my IOS calendars.  Any suggestions?

    I too was having this issue recently.  I decided to look into it and discovered that www.google.com and all of the search results accessed through using a google search engine toolbar were currupt.  I believe I solved this problem by updating my firmware of my router. 
    Type in your IP address in your Address Bar (search using Yahoo what your default IP router address is if you haven't changed it since you got it.)  You'll then need to navigate to your router's website (ex: I search Cisco and Linksys and found mine).
    Most logins to the router are
    Name: admin
    Password: password
    You will then download a .bin file and go to your administrator page in your router's control panel and go to Firmware Upgrade.  Click the "find file" (or whatever it says) and click upgrade.  This worked for me.
    If this doesn't solve it, reset the router to it's default settings by either using it's control panel or holding the reset button on the back of it in for several seconds.  This will reset any port forwarding you may have set up as well as your Wifi password.
    Hope this helps,
    Seaspider1

Maybe you are looking for

  • How do you export & print photos that have been cropped/rotated/angled?

    I have found that if I straighten a photo in Lightroom and then export it, it will not print correctly.  The photo will print with the edges of the photo not straight with the borders of the paper.  The angle the photo is printed askew is the same an

  • TableView and horizontal scroll bar

    Hi I need to show horizontal scroll bar in my TableView - there are many columns in my view. I tried to put it into the ScrollPane but it takes no any effect.. Is there any ability to make scrollable treeview via FXML layout file? My code is <ScrollP

  • IPhone 4S bottom speaker not working

    My iPhone 4S bottom speaker isn't working. Headphone jack still works. When my phone is on speaker people can hear me but I can't hear them. There's no sound when my phone rings or when I'm typing. It's driving me nuts. I've been to sprint & I've cal

  • Internationalization -ADF- PhaseListener

    Dear all, I have successfully internationalized my application prompts/messages etc in Greece/English using Frank's Nimphius instructions on Chapter 18 of Oracle Fusion Developer Guide! (excellent) But I have not managed to switch dynamically the dat

  • Aperture asks for serial number on each restart my mac

    Everytime I restart my macbook pro, Aperture asks me to enter my serial number. I first have to enter my serial number for Aperture 3 upgrade. And then I have to enter my serial number for Aperture 2. After that Aperture works fine until I restart th