QUery BSID BSAD

Hi Everyone
I create a query follow the next steps:
- I create an infoset and associate it to user group (SQ03)
-I add in the infoset the tables BSID and BSAD and i choose the fields that i need (sQ02)
STCEG
BUKRS
KUNNR
GJAHR
BELNR
- I generate it and also save
-After that i create a Query in SQ01
Actually is working but it doesnt show all information in the tables for example y want run the query with the field STCEG cover and it show me the KUNNR but my query just show some customers and any Vat number..
I check in the tables using the SE16.. and it has information but it isnt the same that i see when i run the query.
Any idea how can i fix it?
thank you
Regards,

Hi, it called 'additional' feature, read here http://help.sap.com/saphelp_47x200/helpdata/en/d2/cb41fb455611d189710000e8322d00/frameset.htm  (in Infoset). You need basic knowledge of abap
And this The specified item was not found.
Also if you need eg select by customer, you can select LFA1 from BSID and BSAD.

Similar Messages

  • How to read open customer items from Archive system i.e BSID & BSAD tables

    Hi,
    We have a requirement to get the customer line items data that were open as of key date from archive system and present it as customer aging through a custon report. Example,in SAP R/3 we have data for last 3 yrs and beyod that the data is in archive system. Based on teh Key date, we need to got o archive system get the customer open items i.e from BSID & BSAD tables.
    If you anyone has already dealt with this kind of requirement, please help me out with directions like simple way to ge the data. There is a standard report FBL5N with the option to choose datasources as , Database or archive system which used the logical database DDF.
    Regards,
    Abhi

    - First take a look at the [Archive Development Kit (BC-CCM-ADK)|http://help.sap.com/SAPHELP_NW04S/helpdata/en/2a/fa0391493111d182b70000e829fbfe/content.htm] and for coding sample at [Archiving Class|http://help.sap.com/SAPHELP_NW04S/helpdata/en/2a/fa03f9493111d182b70000e829fbfe/frameset.htm] and report BC_SFLIGHT_READ_DB_AR_BY_INDEX.
    - Look also at archive object FI_DOCUMNT via transaction AOBJ.
    Regards,
    Raymond

  • 0FI_AR_4 Enhance with fields common in BSID, BSAD

    Greetings,
    I have a question about enhancing 0FI_AR_4.  I have read the note 410799.
    The fields I want to add to the datasource are common in both BSID and BSAD tables.
    I see a structure CI_BSID in the extract structure but none for BSAD.
    So say if I want to add a field A from both BSID and BSAD, how do I do it?

    Hi,
    I think  its not possible to get the data to A field from two tables (BSID.BSAD)
    1. Check the field data in Both tables.
    2. If the filed data is same in both tables then you can fill the data from any one of table (BSID/BSAD)
    Regards.

  • 0FI_AR_4 and BSID/BSAD

    Hello All,
    I am currently working with 0FI_AR_4, and I see that it takes data from both BSID and BSAD, can anyone tell me how, are they connected. Like will my extractor pull all records from BSID and BSAD . Or there is a logic.
    0FI_AR_4 = BSID + BSAD records? or it picks the common ones.
    I have a calculation on a amount field and requirement is summation of BSID-DMBTR + BSAD-DMBTR, I thought my extarctor will automatically give me this?Also let me know how do I know which field in my extarctor comes from which table.
    Please advice,
    Tina.

    It will fetch from both the tables.
    Open Items from BSID and Closed Items from BSAD.
    Figures pulled out by extractor will match to those in BSID and BSAD.
    But there are various things which you need to consider here:
    1. If you are not pulling data real time then figures for today's key date might not tie up.
    2. With data in this cube you can differentiate between BSID and BSAD by using the item status indicator (Open/Closed).
    3. With this extractor you can do AR line item analysis, aging report....
    Let me know if this helps..
    Assign points if helpful.

  • OXK3  add  custom field  to  bseg  bsid bsad

    Hi  all ,
    I have  a  custom  field  added to  bseg table using  transactioin OCK3,  but  i dont  see  this  field in  others  tables BSID,BSAD . Can someone  tell  me the way  to  add   this field in the others tables using  tcode  OCK3 .
    Thanks in advance,
    Karim

    This field will not be automatically added to secondary indexes (only BSEG, CI_COBL and CI_COBL_BI). You may manually add this field to the secondary indexes via append structure, it will be automatically copied as those tables are filled via move-corresponding like statements. (source [Note 62435 - F-03: Selection by purchasing documents|https://service.sap.com/sap/support/notes/62435])
    Regards,
    Raymond

  • Update BSID/BSAD XZAHL

    Hi friends
    Anybody knows where and when BSID/BSAD XZAHL field in AP is updated with 'X'?
    Can anyone help me out?
    Thanks....

    Hi,
    F1 help for the field BSAD-XZAHL:
    Indicator: Is the posting key used in a payment transaction?
        Indicator that postings with the displayed posting key are transactions
        which deal with payments.
    Procedure
        Set this indicator in the posting keys for incoming payments, outgoing
        payments, payment differences (residual items) and payment clearing.
        Refer to the posting key settings delivered with the standard system as
        examples.
    On one system I have had a look, if posting key (BSAD-BSCHL) is "15" XZAHL = X if its "01" XZAHL was initial.
    Best regards, Christian

  • BSID & BSAD

    Hello Experts,
    I m developng FI report in which i need data Business Area wise..
    I want customer open documents, i know data need get populated in BSID.
    But, my probelm is when i m checking my report with std report FBL5N, selecting open items tab,
    i m getting some open documents, that r in BSAD but not in BSID.
    Plz suggest,what to do.
    Regards,
    Aastha

    Dear Aastha ,
    Try to reform your select query as follows :
      SELECT kunnr bukrs belnr gjahr buzei blart shkzg dmbtr
               INTO TABLE it_data
      FROM bsid
      WHERE bukrs = p_bukrs
      AND   kunnr IN s_kunnr
      AND   budat IN p_budat
      AND   hkont = p_hkont
      AND   gsber = p_gsber
      AND   bstat = space
      AND   umskz = space.
      SELECT kunnr bukrs belnr gjahr buzei blart shkzg dmbtr
               APPENDING TABLE it_data
      FROM bsad
      WHERE bukrs = p_bukrs
      AND   kunnr IN s_kunnr
      AND   budat IN p_budat
      AND   hkont = p_hkont
      AND   gsber = p_gsber
      AND   bstat = space
      AND   umskz = space.
    BSAD table contains all those documents which are cleared where as BSID contains the documents that are open. So as to get all the documents ( Cleared as well as open ) for a customer at one place you need to reform your query as above.
    Hope this will help you.
    Regards,
    Nikhil

  • Joinning BSID BSAD

    Hi everyone!
    I am working on some reports (SAP Query) and I have unsuccessefully tried to obtsin a report from BSID and BSAD. I included BKPF in the join but I still receive the message (No results selected).
    I even tried BSEG, but I got it may no be used on joins (not even alone);
    I also tried a standard DB (GLU4), but got the same message (No results selected).
    All those tables have values.
    Has anyone done something like that? Any suggestions beside an ABAP
    program?
    Naej

    You cannot join BSID and BSAD, a "debitor"  line is cleared or it is not, so it is never in both tables. You should not use a JOIN but an UNION (alas not in OPEN SQL). So read from BSID and then from BSAD appending results of first select.
    In a SQ01 query, try to build an Infoset from logical database DDF (like transaction FBL5N) or VDF.
    Regards,
    Raymond

  • Trouble creating a open items report (BSID and BSAD tables)

    Hi guys,
    im creating a report that must display open items for an especific date, and i do it very well with a query from BSID table.
    The problem comes when u use a date on the past, example last week.
    if u do that, the items are now closed and are no longer stored in BSID table, so i think that they must be now in BSAD table, but i dont know how to relate wich ones are recently closed...
    i also tried to do a query from BSAD with augdt >= last week date, and i almost get the items that i needed(this items plus the ones from BSID), but is not exactly because u can close an item with a date in the past..
    is there any way to relate that 2 tables, or what exactly happens when an items change from bsid to bsad??
    any ideas?

    Hi;
    I think the best way to recive the necessary information is using logical data base DDF.  You can use report RFITEMAR to see how use the logical data base.
    Some months ago I've read the data in my report in following way:
    1. make Z-copy of report RFITEMAR
    2. in Z-copy after end-of-selection insert
    export it_pos to memory id 'POS_TABLE'.
    3. In your report write a form similar to my form below:
    *&      Form  submit_zrfitemar
    FORM submit_zrfitemar  tables    rkunnr  type trgr_kunnr
                                     it_pos  type it_rfposxext
                           using     ibukrs  type bukrs
                                     idatsd  type sy-datum.
       data: rspar    type table of rsparams,
             l_rspar  type rsparams,
             l_pos    type rfposxext,
             akunnr  type kunnr.
       l_rspar-selname = 'DD_KUNNR'.
       l_rspar-kind    = 'S'.
       loop at rkunnr.
           move-corresponding rkunnr to l_rspar.
           if l_rspar-high = ''.
               l_rspar-option  = 'EQ'.
               else.
               l_rspar-option  = 'BT'.
           endif.
           append l_rspar to rspar.
        endloop.
        clear: l_rspar.
        l_rspar-selname = 'DD_BUKRS'.
        l_rspar-kind    = 'S'.
        l_rspar-sign    = 'I'.
        l_rspar-option  = 'BT'.
        l_rspar-low  = ibukrs.
        append l_rspar to rspar.
        clear: l_rspar.
        l_rspar-selname = 'PA_STIDA'.
        l_rspar-kind    = 'S'.
        l_rspar-sign    = 'I'.
        l_rspar-option  = 'BT'.
        l_rspar-low  = idatsd.
        append l_rspar to rspar.
        clear: it_pos[].
      submit ZRFITEMAR
      with selection-table rspar
      and return.
      import it_pos from memory id 'POS_TABLE'.
    ENDFORM.                    " submit_zrfitemar
    You find the necessary data in table IT_POS.
    JS
    Edited by: John Smith on Oct 9, 2008 5:42 PM

  • Auto update of Ztable when ever BSID or BSAD tables updated

    Auto update of Ztable when ever DB table updated     
    Hi experts
    I want my Ztable get updated automatically when ever a record is created or updated in BSID or BSAD tables.
    Here clear requirement
    Generally using Company code & Allocation number  ( 18 char ) my programs access BSID & BSAD tables it is taking very long time for execution almost more than 30 minutes ( data in millions ).
    Step 1.
    I created a new Ztable with limited fields Company Code, Customer, Document, Allocation Number and Posting date.
    Step 2.
    Before look into BSID or BSAD my program searches Ztable for Customer number & Document number using Allocation field and Company code.
    Step 3.
    Once get the Customer & Document numbers accessing BSID & BSAD table is very easy (now just taking less than 1 minute).
    Created a new program to update Ztable every day but BSID and BSAD are live table so I want my Ztable get updated immediately when any entry posted in BSID or BSAD
    Please help me
    Satya
    Singapore

    You need to check what is the procedure (T-Code) from which the data gets updated into these tables.
    For example
    when we craete a material from MM01 the data gets updated in the corresponding table i.e. EKPO.
    In same way you need to find the process and then you can use BTE (Busineess transaction events) for that process. BTE are only for FI module and these tables are also related to FI .

  • Performance Issues on BSID and BSAD

    Hello guys,
    for a custom report I need the balance data of a couple of vendors for different keydates. Therefor I tried to use function 'BAPI_AR_ACC_GETKEYDATEBALANCE' which works fine but takes a lot of performance time when getting data for more than one vendor or more than one key date. The function mainly reads BSID and BSAD tables which is enough for my report, so I tried to get it faster with creating my own select.
    When looking at the popular SAP boards you get different opinions about the best way for the performance in SELECTS. So can you please tell me what you think would be the best way for tables BSID and BSAD?
    I got the key fields company code as parameter and customer as range. I also need only normal documents (BSTAT = ' ') and only documents until one or more keydates as range (BUDAT <= keydate).
    So what would be the best way?
    (1) Moving the whole BSID/BSAD fields into local BSID/BSAD table or just the fields that I need (see example)?
    (2) Doing one SELECT for every vendor no. in the range or getting all vendor no in one select?
    Any other performance hints? :-)
       SELECT bukrs kunnr budat shkzg dmbtr pswsl pswbt FROM bsid
         INTO CORRESPONDING FIELDS OF TABLE gt_bsid
         WHERE bukrs EQ pa_bukrs
         AND   kunnr IN gr_kunnr
         AND   budat LE pa_stich-high
         AND   bstat EQ ''.
       SELECT bukrs kunnr augdt budat shkzg dmbtr pswsl pswbt FROM bsad
         INTO CORRESPONDING FIELDS OF TABLE gt_bsad
         WHERE bukrs EQ pa_bukrs
         AND   kunnr IN gr_kunnr
         AND   budat LE pa_stich-high
         AND   augdt GT pa_stich-high
         AND   bstat EQ ''.
    Thanks a lot!
    Regards
    Michael

    Almost always prefer one SELECT to a SELECT IN LOOP.
    Another solution could be reading also some total table :
    KNC1 (no special G/L, Balance Carried Forward + total DB/CR per period, one record per Fiscal Year)
    KNC3 for special G/L (one record per fiscal year and special G/L indicator, only one total per year)
    Only restrict access to BSID/BSAD for dates that are not end of period (or don't allow those...)
    NB: From my experience, you can keep the INTO CORRESPONDING, just define a structure with only required fields, the actual generated SQL statement will only ask for those fields (read also Why "INTO CORRESPONDING" is much better than its reputation)
    Regards,
    Raymond

  • How to create ABAP Query for vendor open items

    HI,
    My client has requested me to create ABAP Query for vendor open items . So that it will be usefull for the users . Could anyone help me with this. I will assign you points.Thanks in advance.

    Hello,
    Use Table BSIK <Open Items of AP > & BSAK <AP Cleared items>......
    For Query you can use SQ01.
    USE BSID & BSAD for AR open/clear items...
    LFA1, LFB1 are vendor master data tables
    This is FYI
    Hope this helps.
    Rgds
    Rajendra

  • ST05 Trace on a select query on BSEG table

    hi all,
    this is my select query on table BSEG table:
      SELECT bukrs
             belnr
             gjahr
             buzei
             KOART
             mwskz
             kostl
             lifnr
             aufnr
             werks
             ebeln
             txjcd
             projk FROM bseg
                   INTO TABLE i_bseg
                   FOR ALL ENTRIES IN i_ad_tab
                  WHERE bukrs EQ i_ad_tab-bukrs  AND
                        belnr EQ i_ad_tab-belnr  AND
                        gjahr EQ i_ad_tab-gjahr.
    when i m doing SQL trace ST05 on this query and in the detail statement showed the following query
    SELECT
      "MANDT" , "BUKRS" , "BELNR" , "GJAHR" , "PAGENO" , "TIMESTMP" ,
      "PAGELG" , "VARDATA"
    FROM
      "RFBLG"
    WHERE
      "MANDT" = ? AND  "BUKRS" = ? AND  "BELNR" = ? AND  "GJAHR" = ?
    ORDER BY
      "MANDT" , "BUKRS" , "BELNR" , "GJAHR" , "PAGENO"
    what is RFBLG table in SE11, but could not find it.
    what is RFBLG?also, the above select query giving me performance issues.. the "for all entries" clause is used as per norms...
    please suggest a solution..

    hi
    good
    The famous BSEG table is a cluster table.
    It is as was correctly stated part of the Accounting Document Segment. It is part of the Pool cluster RFBLG and lives in the package: FBAS (Financial accounting 'Basis').
    You can't read a cluster table exactly the way you read a database (old speak, transparent table).
    You can use a program to read called RFPPWF05
    Note 435694: Display BSEG item by calling FB09D (modified FB09)
    Other possiblity: Other possibility: CALL DIALOG 'RF_ZEILEN_ANZEIGE', but since this is a dialog I don't think this would work.
    In any event go to FBAS Package (development class) to see your business objects, class library and functions.
    you must use keyfields bukrs , belnr, gjahr
    (so 1st select table bkpf) to select bseg.
    or use secondary index tables:
    bsas, bsis, bsik, bsak, bsid, bsad
    Regards,
    Raj.

  • ABAP QUERY REPORT on Sales Revenue.

    Dear SAP Experts!
    Can anyone tell me the step by step procedure to create the new additional feilds in Sq02 extras , The Feilds and the Code for the following report.
    I am working on the Total Sales Revenue.
    Tables Used :BSID BSAD
    I want to Show a the difference of the Credit-debit amount (BSID-WRBTR) in a user defined feild.
    Please tell me the step by step proceudre for entering the new feilds from extras in SQ02 and what code to be written.
    regards,
    A  S

    Dear GSL,
    I have Done as Stated.
    In the extras I have taken BSID-WBRTR as the name of the New Feild as BAL.
    Now I have Defined in the code as follows:
    bal= bsid-wrbtr - bsad-wrbtr.
    The error is as follows.
    Field "BAL" is unknown. It is neither in one of the specified tables
    nor defined by a "DATA" statement . . . . . . . . . .
    Please suggest what is to be done.
    How to get the following
    BSID-wbrtr (Credit entries) - BSID-wbrtr (Debit entries).
    regards,
    A S

  • Query using field MWSKZ without using BSEG

    Hi,
    I'm trying to create an Infoset (t-code SQ02) that will contain the field MWSKZ (Tax on sales/purchases code).
    This field is located in the table BSEG and I get the message: «Table BSEG cannot be used in a join» when I try to create an infoset using BSEG.
    Is MWSKZ (Tax on sales/purchases code) located in any other table?
    Thanks,
    Julien

    BSIK, BSAK, BSID, BSAD.
    But I'm not sure how useful these tables will be in a JOIN.
    Rob
    Edited by: Rob Burbank on Apr 23, 2009 2:53 PM

Maybe you are looking for

  • All FF versions above 3.6.3 crash on startup. No window, just the process is running.

    I still do have the problem - as posted elsewhere - that I cannot install 3.6.4 or any other version after that. FF will never start - not even in safe mode - only the process is running and needs to be stopped via the task manager. The bug responsib

  • Problem in generating a PDF From XSTRING From RFC

    Hi All, I have done the ADS Configuration successfully. When I try to create empty interactive using one text field, and deployed it, the application displays the PDF form. Now I want to display a PDF report, for this I am calling a RFC which returns

  • Flash not playing nicely with IE favorites bar

    I administer a website ( http://womenscenter.uconn.edu/new_site/ ) which on its main page has a Flash movie looping. It also has a left menu bar for navigation, and everything is blissful until one turns on the favorites bar in Internet Explorer. The

  • Subsets of ssid on LWAP on same controller

    I was wondering if it is possible to determine which SSID's are available on a group of LWAP. If I want a special SSID to only appear in a certain small group of LWAP (say a single building), but there are many more LWAP on the same WLC that I dont w

  • Job - Corpus Christi TX

    Hello, Probado Technologies Small 8a Company is looking for an Authorware developer in Corpus Christi TX. Experience: Macromedia Authorware Courseware Author needed to create interactive computer-based training for the Navy. 2-3 Years of experience.