Bsik table

Hi All,
From bsik table i have to fetch only vendor open items .
what are the fields to be considered so that i can eliminate the other items like parked , deleted......etc
and get only the open items for that vendor..
Thanks.

Hi,
to select open items for vendor you should read from table BSIK.
After this you can read table BSEG with BSIK-BUKRS, BSIK-BELNR, BSIK-GJAHR.
( Bseg is a cluster table and selections for vendor are slower than bsik)
for example:
code
select * from bsik
where bukrs = company_code
and lifnr = vendor_no
select * from bseg
where bukrs = bsik-bukrs
and belnr = bsik-belnr
and gjahr = bsik-gjahr
[/code]
https://forums.sdn.sap.com/click.jspa?searchID=11218980&messageID=853238
BestRegards,
Ramesh.

Similar Messages

  • BSIS and BSIK table Fields

    Dear Experts,
    I m coding a Vendor GL report and using bsik and bsis table.
    problem is when i check for a document ( say 1100000290 open document), i dont get any entry of prctr, bupla or secco in bsis and bsik tables. but when i chek same document in BSEG (which i don't want to use, because its a cluster table) , I get bupla, prctr and secco fields value.
    Do i need to use some other tables also ?????????
    Any suggestions.
    Regards,
    Maverick

    After selecting data from BSIS & BSIK you must be having the fields BUKRS, GJAHR, BELNR, BUZEI. Correct ?
    These fields are key fields of BSEG. You can select data from BSEG using FOR ALL ENTRIES and in the WHERE condition pass the fields BUKRS, GJAHR, BELNR, BUZEI. I don't think selecting data based on key fields from cluster tables will give any performance issues.
    Cheers,
    Suhas

  • How to find open item in bsik table

    anyone can tell me how to find open items for vendor in bsik table or it will store only open item.
    i debug the tcode fbl1n to see . but not able to find
    Kumar

    Hi
    There is no specific field name for open item in the table BSIK.Yes BSIK include a structure named ABSIK_PSO and which is a "IS-PS: Data appendix of open items vendors".
    Yes there is a field name
    BUZEI - Line Item
    EBELP - Item
    You check with your requirement again and try to use these fields,if you still facing some probs than write back to me,i will try to give the appropriate solutions.
    Thanks
    Mrutyunjaya Tripathy

  • When bsik table profit center will be populated?

    can any one tell me when bsik table profit center will get populated?.
    we r doing fb60, miro?.
    so we want to see the profit center value in bsik table.
    Thanks in advance

    Hi Suresh,
    The actual table updated will be BSEG only but you will find the same document # in BSIK table if it is a open vendor items else if it is closed (i.e. payment for the invoice has been done to vendor), you will find it in BSAK table.
    Basically, BSIK(Open items) and BSAK(Closed items) are a secondary index tables for BSEG table. Whenever you update the profit center(PRCTR) in an accounting doc, you will find it in BSEG table. But its index will also be in BSIK table if it is still an open item.
    Cheers,
    Vikram
    Pls reward for helpful replies!!

  • PO reference in BSIK table

    Hi ,
    i want the PO detials for the vendor documents posted in BSIK table,
    i could get in BSEG table but for perfoirmace reason i want to avoid it , then how to get the PO number from the BSIK tables
    or any other tables are avaialable for the same
    regards
    afzal

    Hi
    While posting MIRO give in the Ref field as PO no.12345, It will autmatically updates

  • Query on Index of BSIK table

    Hi , I am using a query which extracts data from BSIK table with where condition on budat(Posting Date in the Document). When i checked in SQL Trace (ST05) the select query is executed with index BSIK~4 ( Index 4) where Index 4 does not contain BUDAT or budat is not part of any index.So, Can any one explain me the reason behind whey the SQL optimizer picked index 4?
    Thank You,
    Regards,
    Swaroop Patri

    Down to 6 unresolved...
    None of the existing indexes supports BUDAT access, so probably the "least worst" index is chosen.
    For BUDAT access try a join of BKPF and BSIK (see existing view BKPF_BSIK). Always include BUKRS in the selection.
    Thomas

  • QBSHB not appearing in BSIK - TDS amount not appearing in BSIK Table.

    Hi Gurus,
    If I enter vendor invoice through FB60, QBSHB field is appearing in all relevant tables including BSIK. But when I am using MIRO, QBSHB field in BSIK (and also in other tables) is not updating. But in accounting document I can see correct amount going to the right GL account. When I am using FB60 T code the document type used is KR. When I am using MIRO document type used is RE.
    Please help me .
    Regards
    Santosh Hegde
    Cell: +91 99893 12365
    email : [email protected]

    hello,
    I think youuse Extended withholding tax. In extended withholding tax the table WITH_ITEM is the right place to look for TDS information. MIRO is a new transaction and directly updates the extended w/tax tables whereas the fi transactions update both the with_item as well as the older fields bseg-qbshb. The bseg fields for tds are valid only for classical w/tax and are not important in case of Extended withholding tax as they would not have the exact amount as extended w/tax can have more than 1 tax type per vendor line.
    Hope this clarifies your doubts.
    regards,
    pranav.

  • Error occured while extracting the data from BSIK Table

    Hi Experts,
    I am trying to extract the data from "BSIK"  by using generic extraction by table, I am getting the error "Invalid extractiion Structure template BSIK of Data source XXXXXX", But when i am trying the same by using VIEW, i am able to do it,
    I am getting same problem while extracting the data from other tables like "BSIK, BSAK.........."
    can some one explain me why it is throughing some error when i am doing generic extraction by using Table,
    Thanks,

    Hi,
    Can you check below link:
    Invalid extract structure template ZBW_VW_EKES of DataSource ZBW_SCN_VENDOR
    Hope this answer your question!
    Regards,
    Nilima

  • How to add a field from BSAK/BSIK table in FI_AP_4 Data source

    Hi Experts.
    I need to add a field in FI_AP_4 data source.
    Can you provide me steps in detail to do so, any sample for ABAP code too. field name is XZAHL and it is in multiple tables.
    Thanks
    mihameed

    hi Amams
    check this link
    Adding Fields to Sales order
    i think it may give u some idea
    Regards,
    Naveen

  • WBS and NPLNR for Vendor Items in BSIK and BSAK  Table

    Hi  FI Experts,
    I created a PR for Network  . While creating PO for the PR  the network values are flowing into  PS_PSP_PNR and NPLNR of EKKN fields  .
    While doing a MIGO also the WBS and NPLNR are flowing to MSEG table  appropriate fields .
    While doing a MIRO transaction for PO   the vendor line item  posted in BSIK table populated with  neither WBS nor NPLNR (Network).
    When  payment is made for Invoice the clearing document(Payment Document)  from BSAK table should be populated with either WBS or NPLNR .
    Could you  please suggest if I need to manually run some transaction to get them Popluated .
    All the above helps me in writing a Vendor and Project wise outstanding balances report .
    Thanks in Advance ..
    Regards,
    Kishore.S

    Hi Srinivas,
    The minimun field required to make a vendor posting are as follows,
            wa_vendoritem-itemno_acc  = gv_count.
            wa_vendoritem-vendor_no    =  wa_vendor-newko.
            wa_vendoritem-item_text     = wa_vendor-sgtxt.
            wa_vendoritem-comp_code  = wa_vendor-bukrs.
            wa_vendoritem-pmnttrms     = wa_vendor-zterm.
            wa_vendoritem-bline_date   = wa_vendor-zfbdt.
            wa_vendoritem-item_text    = wa_vendor-sgtxt.
            wa_vendoritem-tax_code    = wa_vendor-mwskz.
            wa_vendoritem-profit_ctr     = wa_vendor-prctr.
    I think you missed the profir centre field which is mandatory for a vendor posting,or if is a new gl, it will derive the profit centre from the cost centre of the previous line(i.e. G/L line).  if it is not a new G/l , then you need to manually find the profit centre from cost centre and put the values. So double check passing these field , it should be working. Still have doubts please contact me.
    regards,
    Shobana.K
    Edited by: Shobana k on Jan 8, 2009 8:05 AM
    Code Formatted by: Alvaro Tejada Galindo on Jan 8, 2009 4:01 PM

  • Residual payment in F-58 not appearing in table BSIK

    Good day,
    I noticed that if I made payment to vendor through residual process in F-58 the remaining outstanding payable using the new document number does not appear in table BSIK
    I have customized AP Aging report that I need to consider this document which only gather data from BSIK table.  How can I be able to consider those document that are still open but does not appear in table BSIK.
    Appreciate your help
    Thanks,
    Rod

    Hi,
    When you clear any invoice the invoice line item will disapper from the BSIK table and creates two items in the BSAK table.
    In BSAK table, for all clearing line items the field BSAK-XZAHL updates with the "X".
    If you find any entry in the BSIK table with "X" in the BSIK-XZAHL field, then that entry refers the residual item.
    and the clearing document number will be the residual document number.
    e.g.,
    1) Normal case
    Document 1001 (amoun rs.1000/-)- INVOICE
    Document 2001 (amoun rs.1000/-)- PAYMENT - here the clearing document is 2001
    2) Residucal case
    Document 1002 (amoun rs.1000/-)- INVOICE
    Document 3001 (amoun rs. 600/-)- RESIDUAL PAYMENT - here the clearing document is 3001 & also the residual invoice document is 3001
    SKS

  • Urgent: regarding vendor report(tables)

    Hi,
    I am making a report in which i have to display the status of a vendor payment is done or not. I know that there are 2 tables which are going to be used i.e. BSIK n BSAK (for open items n cleared items) . i want to know is there any necessity of other tables such as BSIS n BSAS as they are the 1nes which are on the basis of g/l account (open n clear items).
    Plzz provide me guidelines for it as help will be deifnately rewarded.

    Hi,
    Actually i have to show the status of the vendor payment is done or not. r u sure the use of BSAS n BSIS table. what is the difference b/w VENDOR LINE ITEM DISPLAY  - FBL2N and G/L Line item display -FBL3N.
    This thing is making me confuse that the necessity of the tables as i have to display the payment  of the vendors accoring to the MIGO ( in which the  vendors are mentioned. for this thing i am taking XBLNR field from MKPF as it the common field b/w BKPF and after that taking the BELNR and XBLNR from BKPF to the BSAK n BSIK table.
    Plzz tell me that i am using correct relationship among the tables also.It is really urgent to me .
    Edited by: abaper2008 on May 23, 2008 6:49 AM
    Edited by: abaper2008 on May 23, 2008 7:08 AM

  • Update Z field from BSIK into BSAK when closing

    Hi,
    I have created Z field in BSIK table using "Append structure" option. I also created identical field via same option in table BSAK. When I clear open item system "delete" that item in table BSIK and create identical item in table BSAK (BSIK - open items; BSAK-closed items), BSIK and BSAK have same structure because of this trensfer of open items from BSIK to BSAK during open item clearing. My problem - when open item is cleared and item is transferd from BSIK to BSAK my Z field is not updated by system. Is it possible to set this in customizing or is there another way to update this Z field in BSAK when someone clear open items - user exit, modification or ???.
    Thanks in advance.
    Sasa

    Hi Andreas,
    than you for your responce.
    I tried to find out suitable event for this in fibf but withouth success. Could you suggest event that will be suitable for this purpuse.
    One more thing - if I reverse clearing (via transaction FBRA) system will transfer closed item from BSAK to BSIK and during that process Z field will not be updated so I also need event to update this field durind reverse clearing.
    Thank you in advance.
    Kind regards,
    Sasa

  • F110 - Grouping the vendor invoices by BSEG table fields

    Hi,
    I want to group the vendor invoices while making the payment through F110,  based on a BSEG table field. The settings in Grouping Key configuration (OBAP) only allows me to choose the fileds from BSIK table and not possible to select the fields from BSEG table.  Is there any other way to group the vendor invoices based on BSEG fileds?  How can we achieve this requirement in SAP?
    Thanks and Regards
    Koteswararao padarti

    Hi,
    I created the substitution and also grouping key based on the BSIK-KIDNO filed. But the system is not able to group the vendor invoices by payment reference.  I already tried the following options
    Seperate Payments for each Ref in FBZP settings
    Can anyone let me know what is missing in the configuration to group the invoices for payment by payment reference.
    Regards
    Koteswararao Padarti

  • Link with EKKO and BSIK

    Dear All
    can you tell me the relation link with
    BSIK table and EKKO table.
    note that purchase order no (EBELN) not often stored
    in BSIK table
    actual i need the payment terms as per PO and need to create the report of creditor aging so please any buddy can help me?

    Hi
    Well if you want to know the relation ship between two tables
    1. Execute SQVI
    2. Enter name  and press CREATE
    3.Enter Title and in Data Source select TABLE JOIN.and enter
    4.Press Shift + F1 ans enter the table name.
    continue the step 4 and enter the table names for which you want to know the relation ship.
    EKKO-BUKRS -------- BSIK-BUKRS
    EKKO-LIFNR----------- BSIK-LIFNR
    EKKO-AEDAT--------- BSIK-AUGDT
    EKKO-EBELN--------- BSIK-EBELN
    I hope this will help you
    Regards
    Pavan

Maybe you are looking for

  • Error in Transformation file

    Hi, While processing the transformation file in TST Server i am getting the error as " Error in ABAP/4 statement when processing an internal table. table" However same transformation file works fine in DEV Server. Anurodh

  • How to read duplicate XML tag?

    Hi to all gurus, Currently I am working on XSLT transformation. I encountered a problem when I have to read a random number of xml tag with the same names. sample: <product_code_list> <product_code>12345</product_code> <product_code>12333</product_co

  • What's the maximum size a varchar2  variable can hold for and NDS Stmnt?

    What's the maximum size a varchar2 variable can hold for and NDS Statement? I read that NDS is good for doing EXECUTE IMMEDIATE on statements that aren't too big. The 10g PL/SQL manual recommends using DBMS_SQL for statements that are too large, but

  • Problem with csv

    I am trying to migrate storage for hyper-v vm's to a new csv.  When I try to move any VM's storage to the new target I get the following error.. an error occurred while moving the virtual machine storage 0x80071008 invalid parameter. I have already u

  • Changes are not reflected after editing and saving the chart in th WAD 3.5

    Hi all, I have to display the chart in the report using WAD 3.5. But after creating a chart and then when ihave to make extra changes again and save the same, the changes are not reflected. I can see only the previous changes. I am working on the cha