BSIK BSAK Link
Hello,
I have an Open Item in BSIK which moves to BSAK when cleared. When the clearing document is reversed, the initial document moves to the BSIK table as it is now an open item. For reporting purposes, I need to establish a link between the open document in BSIK table and the initial clearing document in BSAK. Please let me know if you ahve any information on the same.
Link both these tables to BKPF using the doc#, company code, and fiscal year.
Similar Messages
-
Update the correct profit center in tables BSEG / BSAS / BSIS / BSIK / BSAK
Hi FI Gurus,
I am looking after a Support Project in SAP IS-Retail. I am from the FI functional and possess very limited knowledge in FI.
My client has done the sales posting in SAP using IDOC's. During the postings, it was found that wrong Profit Centers were assigned. Due to this, the sales reports based on Profit Center are coming wrong. It was suggested to the client to reverse the IDOCs, do necessary changes in Profit Centers and re-post the IDOCs. The client wanted a short method to get the reports right. A senior consultant (Non FI) in the Company and the Management are forcing me to write a ABAP program to update certain (not all) FI tables. According to me, it will have some negative impact on the system for which reason I am not ready to take the call as a Project Manager. The management wants me to do the following (I am quoting the same mail which I received from the consultant ) :
We need to update the correct profit center in tables BSEG / BSAS / BSIS / BSIK / BSAK / BSID / BSAD, wherever the records exists against billing document numbers provided.
BAPI for updating profit center in Accounting documents: BAPI_ACC_DOCUMENT_POST
Function Module : 'BAPI_DOCUMENT_CHANGE'
Also look at SAP Note: Note 966428 - FB02: Functional area (FKBER) can be changed on coding block
Based on the above, the ABAPer has written the program, the program will update the tables BSEG, BSIS, BSIK, according to the selection criteria of document number, company code and line item number with the new profit centers.
Please clarify me about the following :
1. This program is updating profit center in just the FI tables (BSEG, BSIS, BSIK etc.), but the New GL tables (faglflexa and faglflext) which have approx. 65 lakh entries in PRD do not get updated with the correct profit center.
2. The Controlling tables also do not get updated with this program yet. Also since the previoius updation of Profit centers did not happen correctly, most of the times the controlling document has not been generated at all. Since we will be updating the profit center in just the FI tables, the controlling document will not be created still. Though there are SAP notes suggesting re-creation of the Controlling documents, which is still an option you can choose. Please confirm.
3. The Special GL also does not get updated because of this.
This is a very critical and hot issue. My job is at Stake as the Management has threatened me of sacking if I do not follow their directives as they are only concerned with their money.
Is the consultant who suggested this change RIGHT ?
Your early replies will help me take the decision.
RegardsHi,
There is no standard program or BAPI that would update profit centre in a posted document. You should either develop your own process for it,which is not recommended, but sometimes is essential, or reverse the existing documents and post them with the correct profit centre.
Regards,
Eli -
BSAK link to BSIS and BSAS...
Hello Experts,
I am doing 2 FOR ALL ENTRIES to get records from BSIS and BSAS based on the records
that I got in BSAK. Currently, I only know of 3 fields to link which is BUKRS, BELNR, AND GJAHR
but I is still any more fields that I can link to BSAK from BSIS and BSAS? Because we are
experiencing performance issues in my program. I am using index for the 3 tables but still it gives us
performance issues. Below is my code:
* Get previous year
lv_year = p_gjahr - 1.
* Get records from PAYR
SELECT zbukr vblnr gjahr lifnr zaldt
FROM payr
INTO TABLE gt_payr
WHERE zbukr = p_bukrs
AND gjahr IN (lv_year, p_gjahr).
DELETE gt_payr WHERE zaldt+4(2) > p_monat.
SORT gt_payr BY zbukr vblnr gjahr lifnr zaldt.
DELETE ADJACENT DUPLICATES FROM gt_payr COMPARING zbukr vblnr gjahr lifnr zaldt.
IF NOT gt_payr[] IS INITIAL.
* Get records from BSAK
SELECT bukrs blart gjahr monat belnr lifnr dmbtr shkzg
FROM bsak
INTO TABLE gt_bsak
FOR ALL ENTRIES IN gt_payr
WHERE lifnr = gt_payr-lifnr
AND bukrs = gt_payr-zbukr
AND augdt = gt_payr-zaldt
AND augbl = gt_payr-vblnr
AND gjahr = gt_payr-gjahr.
ENDIF.
DELETE gt_bsak WHERE monat > p_monat.
DELETE gt_bsak WHERE shkzg <> 'H'.
gt_payments[] = gt_bsak[].
IF NOT gt_payments[] IS INITIAL.
* Get records from BSIS(Open items)
SELECT bukrs blart gjahr monat dmbtr hkont
FROM bsis
INTO TABLE gt_bsis
FOR ALL ENTRIES IN gt_payments
WHERE bukrs = gt_payments-bukrs
AND belnr = gt_payments-belnr
AND gjahr = gt_payments-gjahr
AND blart IN (lc_su, lc_px).
* Get records from BSAS(Cleared items)
SELECT bukrs blart gjahr monat dmbtr hkont
FROM bsas
INTO TABLE gt_bsas
FOR ALL ENTRIES IN gt_payments
WHERE bukrs = gt_payments-bukrs
AND belnr = gt_payments-belnr
AND gjahr = gt_payments-gjahr
AND blart IN (lc_su, lc_px).
ENDIF.
Hope you can help me guys. Thank you and take care!In a statement with a SELECTstatement with FOR ALL ENTRIES, the addition ORDER BY can only be used with the addition PRIMARY KEY
bsis
select MANDT
BUKRS
HKONT
AUGDT
AUGBL
ZUONR
GJAHR
BELNR
BUZEI
bsak
select MANDT
BUKRS
LIFNR
UMSKS
UMSKZ
AUGDT
AUGBL
ZUONR
GJAHR
BELNR
BUZEI
bsas
select MANDT
BUKRS
HKONT
AUGDT
AUGBL
ZUONR
GJAHR
BELNR
BUZEI
Message was edited by:
Karthikeyan Pandurangan -
Hi SAP Experts,
When I create an invoice (FB60) I need to update into the header text (BKPF-BKTXT) some information that I need to include into tables BSIK and BSAK in order to use it in transactions like F110 and FBL1N.
I already create a u201CZu201D structure into tables BSIK and BSAK in order to put on them the field BKTXT.
Every time that I create a vendor invoice or a payment the header text copied into the table BSIK, but when I change the field in the document, the value in table BSIK is not updated.
Does anyone can help me to find a solution to this.
Thanks in advance
Oscar Valdés.Hi Yogesh,
I need the field Bktxt In transaction F110 because I have to use as selection parameter and the only way that I found was adding to BSIK table.
I know about to use the field BKTXT in the filter of FBL1N, but I need as selection parameter.
Thanks for your response.
Oscar Valdé -
FI Tables - BSID,BSID,BSEG,BSIK,BSAK etc
Hi,
Can anyone tell me where and why do we use these tables?
Please explain in detail
Thanks,
SahajHi,
When ever you need to pull any report from your R/3 system which is not there is SAP standard report. We will use these tables.
BKPF:- Accounting Document Header
BSEG:-accounint document segment lien items
BSIK : vendor openitemes
BSAK - vendor cleareditems
BSID : Cstomer openitems
BSAD:- Custoemr Cleard Items
Best Regards
Ashish Jain -
Which table is better? BSEG or BSIS,BSAK or BSIK
Hi,
i want to know whihc table is better for the reterival of data for whether the payment of vendor is done or not?
Which table should i use for the reterival of data? BSEG or BSIK,BSAK n BSIS.
I am asking bcoz BSEG is cluster table and it will conatin the data whoes qty is large.
plzz suggest me whihc tables should i use?
1 thing i know is there is a field called KOART (A/C Type) = 'K','M'.HI to all,
actaully my problem is i have to display the payment of material document is done or not? in mat. doc there are vendor payemnt also.
soo i have to display them. dats why i am aksing for these tables.
I am now able to develop the code for the BSIK,BSAK, N BSIS.
the problem is when i define AWTYP = 'MKPF', 'RMRB' N 'BKPF'.
it give s the right data but when i check the MBLNR field which eq to
AWKEY(10) ,it shows the 'bkpf N rmrp' .
here's d code:-
SELECT BUKRS BELNR GJAHR AWKEY BUDAT AWTYP
FROM BKPF
INTO (ITBKPF-BUKRS,ITBKPF-BELNR,ITBKPF-GJAHR,
ITBKPF-AWKEY,ITBKPF-BUDAT,ITBKPF-AWTYP)
WHERE AWTYP EQ 'MKPF' OR AWTYP EQ 'RMRP' OR
AWTYP EQ 'BKPF'.
I have to do this bcoz i have to show d data for open n clear items.
Edited by: abaper2008 on Jun 3, 2008 10:14 AM -
Link required for the payment made and PO
Hi
I made payment to one vendor. He sent three invoices. I did MIGO and then MIRO for the same. Then i did my payment to all the invoices.
Now i want a report which says amount paid, MIRO documnet number, PO number. Is there any standard report / table from where i can get this data.
I tried for BSIK and BSAK. But there was no relevant link i was able to find between the items i mentioned above.
Edited by: Meenu_ND on Aug 18, 2010 7:55 PM
Edited by: Meenu_ND on Aug 18, 2010 7:56 PMDear Meenu,
There is no standard report available which fulfills your requirement. Hence please take EKKO,EKBE,BSEG,BSET,BSIK,BSAK,etc. to have a complete report.
Please take Material document as your base, then find out the PO, then find out the Vendor details(EKKO), GR and Invoice details(EKBE), Paid / unpaid items (BSAK/BSIK), Tax items (BSET) and payment details (BSEG).
I hope this will be helpful in finding a solution to your problem.
Regards -
Dear All,
Can you let us know the table(s) where can i find the link between F-47 & F-48.
Regards,Hi
BKPF and BSEG tables
See the link below for more
BSAK and BSIK tables link to BSEG
that means you can also pull the field values by selecting the field selection( Settings->field selection)
regards,
ramanuja chary
Edited by: Ramanuja Chary Sripada on Feb 26, 2010 6:35 PM
Edited by: Ramanuja Chary Sripada on Feb 26, 2010 7:10 PM -
Hi,
I have a requirement to extract the data from the transaction FBL1N ( i.e. from BSIK & BSAK) to get the details of XBLNR-Reference Document & WRBTR-Amount in Document Currency to display in the MM-Purchasing reports. In MM-Purchasing tables we are using ( EKKO, EKPO, EKBE) tables. Bothe FBL1N & the MM-Purchasing custom report runs based on Vendor & Company code.
Please provide how to link these two.
Regards,
Kiran.LHi,
You can link the two tables using joins.
Here's one simple example.
Select matnr ersda mtart maktx into corresponding fields of table itab1 from mara as a inner join makt as b on amatnr = bmatnr.
If you want to use outer join use outer join in place of inner join.
Hope its helpful.
Reward points if found helpful...
Cheers,
Chandra Sekhar. -
How to link MM Purchasing & FICO
Hi,
I have a requirement to extract the data from the transaction FBL1N ( i.e. from BSIK & BSAK) to get the details of XBLNR-Reference Document & WRBTR-Amount in Document Currency to display in the MM-Purchasing reports. In MM-Purchasing tables we are using ( EKKO, EKPO, EKBE) tables. Bothe FBL1N & the MM-Purchasing custom report runs based on Vendor & Company code.
Please provide how to link these two.
Regards,
Kiran.L
Message was edited by:
KIRAN KUMAR LEKKALAHi Kiran,
I am not sure if you are trying to create a MM based report with FI details but standard report MIR6 or MIR5 shows the details of the amount and reference document from the invoice but little PO information related.
If you are creating a new report and are using EKBE as one of your tables, then the missing link would be to utilize table RBKP- Document Header: Invoice Receipt. This table contains the reference and gross amount information with reference to the MM invoice document.
Hope this helps. -
Link between inv. number and accounting document number
Hi Frnds,
When i receive a partial receipt (of an invoice) from a customer, i am getting the link between invoice number and accounting document number from a table (BSEG), but when i am receiving the final settlement amount from the customer, i m not getting the link between the inv. no. and accounting document number. Can anyone tell me how can i get the same?Hello,
Try to prepare query based on tables BSIK, BSAK and BSEG. (Transaction code SQVI)
Regards,
Ravi -
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 -
Relation between BSIK,BSIK and BSEG
Hi all ,
1. what we mean by the open items table (BSIK) and item table (BSAK).
2. What is the realtion between BSIK,BSAK with mm tables ..please give me the realtionship.
3. when we post in FB01 which are tables are updated
4. IF BSEG is the superset of all the tables then why we need this..as we have smaller tables
5. what is relation ship between bSIK,BSAK and BSEGHi.
There are a series of related tables which are quite easy to understand if you look at the table name prefixes and suffixes... the BSI prefixed tables are open items and BSA are cleared items... and the suffix is like the account type field, KOART i.e. K = "Kreditor" (vendor), D - "Debtor" (customer) items, and S = GL (can't remember the German equivalent)... thus BSAD = Cleared "Debtor" (Customer) items.
Their purpose is to act as index tables for searches - BSEG is a cluster table that cannot have indexes created directly in the database so these other tables provide access paths to the BSEG data for specific searches. They contain a blend of data from BSEG (line data) and BKPF (header data). Each pair of tables is similar to each other, and has an extensive primary key to allow access from the relevant master record i.e. you would normally only go to BSIK if you know the company & vendor number, BSAS if you have the company & GL... you would not go to BSIK if you already had the BSEG entry because the data is already available to you in BSEG (plus BKPF).
BSIK - Contains Open line items of vendors
BSAK - for vendor cleared item -
Report with the exemption of all obsolete concepts.
Hi
can any any one gimme some example of report with the exemption of all the obsolete concepts.
Plz dont send send any external link except sdn links.
Thanks and Regards,
Arundoes your client use MM-PUR?
you must select all freight-items from bseg and use BELNR of found items to search in table BSIK/BSAK to find vendor-items
A. -
HI Expert,
My client want to prepare on Functional Specification for identifying the Duplicate Entries in GL, Vendor and Customer A/c. there is already Standard report available in SAP but they needed other than that. Here the client is using SAP as database and Spooling the report in other interface (ACL report tool for Auditor).
My question is if I will use BSID/BSAD,BSIS/BSAS and BSIK/BSAK table what should be the logic apply by me to identifying the duplication of Data. Or which Feild should i Link for the Above.Your client needs to provide business requirement for what exactly is considered a "duplicate" in their business settings. Then a functional analyst needs to analyze the business requirements and prepare a functional specification for an ABAP developer. Which, in turn, should use his/her own intelligence and expertise to create a technical spec and do the development.
If you're expecting the community members to perform these tasks for you, then I think we need to discuss the compensation for our consulting services first.
Maybe you are looking for
-
Video playback stops when a push notification arrives.
I'm finding that any video playing whether it is in netflix or any other app will stop playback when a push notification arrives. Is there any way to stop this as it really gets annoying especially when settling into watch a long film via netflix.
-
External Procedure call from Trigger
I'd like to call an external C Procedure from an Oracle Trigger. In trying to get an example to work, after setting up the listener and tnsnames.ora for external procedures, the following SQL*Plus command behaves strangely: CREATE LIBRARY TTest as "c
-
Transactional Replication error
Hi, I have configured Transactional Replication, I have Encountered some error the data is not sync the error is 'Agent is retrying after an error. 361 retries attempted. See agent job history in the Jobs folder for more details.' when i see in the
-
What is the best practice for Enumeration for ADF?
Dear All, What is the best practice for Enumeration for ADF? I need to add enumeration to my application. ex: Gender, Marital Status. How to provide? Custom Declarative Components or are there any other way? Thank you. Erdenebayar
-
Conversion from varchar(20) - to_date
HI if any one could help me on the below query please, SCEANRIO IS THIS: conversion from varchar(20) - > to_date EX: SUSR4 = VARCHAR(20) SUSR4 = 25-MAY-2011 i need to convert this varcahar(20) to to_date as follows Result coms..: SUSR4 = to_date('25/