Alternative of BSEG table(Vendors related)
Hi gurus,
Please provide alternative tables of BSEG.
As per my Knowledge table are BSIK , BSAK.
is it right?
I need extact line item number(BUZEI) of document number(BELNR).
Please send code how can i get the line number based on
BSIK , BSAK.
Thanks & Regards,
Padmaja.
Hi
BSIK and BSAK are rights, so if you have the doc. number and item the code is
DATA: WA_ITEM TYPE BSIK.
Get open items
SELECT * FROM BSIK INTO WA_ITEM
WHERE BELNR = <BELNR>
AND BUZEI = <BUZEI>
ENDSELECT.
IF SY-SUBRC <> 0.
It means the item is cleared
SELECT * FROM BSAK INTO WA_ITEM
WHERE BELNR = <BELNR>
AND BUZEI = <BUZEI>.
ENDSELECT.
But you should consider the performance will be very bad if you don't use the company code and vendor code, it's very strange you have only the doc. number and item number without knowing the company code.
Max
Similar Messages
-
HI Experts,
I am making customer ledger report for FI module. I have used BSEG table to customer account details. As BSEG is big table so it takes lots of time to execute. Is there any alternative to BSEG table where I get the same data with fast processing.
urgent
Thanks
KhanThe query is as Follow if you don't want to use BSEG.
REPORT Zcustomer.
table : BSID,BSAD
Parameter : ls_bukrs for BSID-BUKRS .
Parameter : ls_keydt FOR BSID-augdt.
DATA : lt_bsid TYPE TABLE OF _bsid ,
ls_bsid LIKE LINE OF lt_bsid,
SELECT * FROM bsid INTO CORRESPONDING FIELDS OF TABLE lt_bsid
WHERE budat LE ls_keydt
AND bukrs = ls_bukrs.
SELECT * FROM bsad INTO CORRESPONDING FIELDS OF TABLE lt_bsid
WHERE budat LE ls_keydt
AND augdt GT ls_keydt
AND bukrs = ls_bukrs.
so now your internal table "lt_bsid" consist of both open & Closed line item
if you want the same for Vendor do the same replace the table's with BSIK,BSAK
if for G/L
Then BSIS,BSAS.
Reward points if it is usefull ....
Girish -
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 padartiHi,
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 -
Bapi's or Fun Modules to update vendor related tables
Hi All,
Can any one tell me the Bapi's or funtion modules to update,create or modify vendor related tables without using any call transaction.
Best answers will be rewarded nicely.
Regards,
praveen.Hi
Did below code work for you?
If not the best way to manage Vendor information for UPDATING and CREATING check below class
VMD_EI_API
Which you just use methods INITIALISE and MAINTAIN with the populated structures of vendor tables.
Regards
Tumelo Modise -
Performance Problem in using the BSEG table - Required alternative
Hi All,
Pl go thru the below program.
I am unable to change this code
It is having 46 performance errors
Pls check the code and suggest.
*To get Pmt Doc No & Posting Date
SELECT SINGLE
BELNR
ZFBDT
FROM BSEG
INTO (WA_ZFT011_FIFO-PAY_DOC_NO, WA_ZFT011_FIFO-POST_DATE)
WHERE AUGBL = W_CLR_DOC
AND AUGDT = WA_ZFT011_FIFO-CLR_DATE
AND BSCHL = '15'.
IF SY-SUBRC <> 0.
SELECT SINGLE
BELNR
ZFBDT
FROM BSEG
INTO (WA_ZFT011_FIFO-PAY_DOC_NO, WA_ZFT011_FIFO-POST_DATE)
WHERE AUGBL = W_CLR_DOC
AND AUGDT = WA_ZFT011_FIFO-CLR_DATE
AND BSCHL = '11'.
The above code is having performance error "NO field of a table Index in WHERE"
The same error repeated for 45 select statements and for all statements the "BSEG" table is used for selecting data.
But creating a secondary index on BSEG table columns will not be possible
So pls suggest me accordingly
Awaits for the Reply.
P KamalHi,
Perhaps my post here: Re: BSEG table performance issues might help you.
Regards, Gerd Rother -
XREF3 field not getting populated in BSEG table while posting MIRO
Hi,
I have one query in MIRO tcode.I have activated xref3 field in MIRO tcode using enhancement LMR1MF6Q.Now when i try to post document with some values in xref3 field on screen ,value is not getting populated in BSEG table.Please tell me what else needs to be done to achieve this ?
any hint on this?
Thanks & Regards,
Soniya S.Hi,
1.- According to SAP Note 904652 - MIRO: Different from FB60
https://service.sap.com/sap/support/notes/904652
MIRO is an independent Materials Management (MM) transaction that does not
claim to be the same as the accounting transactions (such as FB60 or FB01).
MIRO was developed to allow users to process vendor invoices within the
context of the MM procurement processes as simply as possible.
For this reason, among other differences, the field selection was limited
to the absolutely necessary. For example, the following fields from the
accounting document are not available in Transaction MIRO (this list is not
complete):
Reference key (BSEG-XREF1, -XREF 2, -XREF 3)
2.- SAP Note 1156325 - BAdIs in the Logistics Invoice Verification environment
https://service.sap.com/sap/support/notes/1156325
Have a look at badi MRM_ITEM_CUSTFIELDS.
This badi will create a new tab at item level in order to display the new fields.
I haven´t used this badi so i cannot talk from experience here.
Think twice before deciding.
Best regards. -
In which table invoices related to a purchase order are stored ?
Hi all,
We need to make an ABAP program and I need to know in which table the invoices made by MIRO related to a purchase order are stored.
I can see them in the purchase order history tab in the transaccion ME23N but giving F1 and getting the table names gives me a structure table but not the actual table in SAP database. I tried the BSEG table but it doesn't store the purchase order number. Any information will be highly appreciated.
Thanks !!Hi
You can get the Link of PUrchase order & the Invoice from Table EKBE.
You can also get the data by joining the table RBKP & RSEG, as the Purcahse order details are stored in RSEG & posting date details are stored in RBKP
Thanks & Regards
Kishore -
Hi,
I have used smartforms for generating suppler payment statement for financial department. more time duration is taken by the program when it is generating.
I think this problem comes while data fetching from BSEG table. because, it has more records for one vendor ID.
I want reduce this time duration.
Please guide me.Have you tried this selection in se16? I'm quite sure that It will take
a long time.
The problem has been explained in this group before and I think you
should search for bseg in the answers given.
As a hint: It has to do with the selection universe. You are restricting
only bukrs from the primary key (all the other restrictions in your
where clause are filters that are applied on SAP's side (not on the
database side)). The problem is that bseg isn't stored as separated
fields in the RDBMS, but as a table with the primary key and a stream of
bits in a raw field.
You should review and change the logic you're using before reading bseg.
It's the only way you'll improve the performance of this select. (for
example, you could use one or more secondary index tables - bi or ba
to retrieve belnr and access bseg with a better where clause). -
Hi,
How to update PERNR Field BSEG Table?
My scenario is to update the (Personnel Number ) PERNR Field in FB50 Transaction.
I get the following fields details from a third party system
Document Information
o I_BUKRS (Company Code) u2013 example: 0010
o I_BELNR (Document Number) u2013 example: 1700006041
o I_GJAHR (Fiscal Year) u2013 example: 2008
u2022 Final Approver ID
o I_PERNR (Personnel No.) u2013 example U0050049
For all line items of the document (represented by the key (I_BUKRS, I_BELNR, I_GJAHR)) need to update the BSEG-PERNR field in FB50.
Please let me know if you have any ideas like BAPI's or any alternative.
Thanks & Regards,
SatyaHi
Try to use below the FM's
FMUDBSEGH_UPDATE
FMUDBSEG_UPDATE
G_BKPF_BSEG_UPDATE
before to that you need to read data from FM READ_BSEG. then update.
hope it helps you
Thanks!
Edited by: Prasanth Maddela on Apr 21, 2009 6:26 PM -
Hi
Friends
we have around 50 millions records in the Bseg table.
i need to down load only 5 fields .
one our friend suggested using ABAP code we can down load.
But i would like to know from you is there any Transcation code to down load only 4 or 5 fields from bseg fro all the company codes since we have around 50 million Records inthe table.
Thanks in advance.Hi Ravindra,
Good afternoon and greetings,
In SE16 itself you can down only the selected field by choosing the User Parameters...Alternatively, you can create a query using SQVI and select only those fields for displaying and downloading.
If you require any assistance on SQVI, please let me know.
Points awarded is highly appreciated, if the above mentioned solution meets your requirement.
Thanking you
With kindest regards
Ramesh Padmanabhan
Consultant -
Material - Vendor relation in QN
Hi,
We have requirement for Notification.
At the time of creation of manual Notification (T-code: QM01). Once we enter Material & if this material is ROH then system should go in source list (t-code: ME03) to select available vendor of material. If material - vendor relation exist in source list then system should automatically display vendor code in Notification creation screen.
In other word. Once we enter ROH material in QM01, then based on Source list record system should populate vendor code automatically in QN creation screen.
If more than 1 vendor available in source list then system should populate available list, so user can select any one of that vendor.
My question is how to fulfill this requirement? Do you have any idea about user exit?
Tom.hi
Use QQMA0007
This customer enhancement allows you to define default values when you
create a quality notification.
Time of call-up:
On the initial screen (program SAPLIQS0, screen 0200) after the possible
call-up of an initial screen.
Note
If you want to add your own fields to the VIQML view, you must include
them as an APPEND structure in table QMEL. In this way, the additonal
fields are automatically copied into the view VIQMEL.
See also: EXIT_SAPMIWO0_001.
Regards
Sujit -
HI,
I am using Bseg table in one of my report, but it takes too much time to execute. SO am looking for any alternative table for BSEG table. Can Any one Please Help to sort out this problem.
Thanks
ImranBSEG always gives performance issue if you do not have indexed key fields in where condition.
1. do not try to pass every available field in where condition, only use indexed fields in where condition. you may select more data in internal table & then filter fron internal table.
2. if do not have index fields , them write select statements on other secondary indexed tables like
BSAD,BSAK,BSAS,BSID,BSIK,BSIS get all required fields & then write select on BSEG.
If you have proper where condition then select on BSEG is quite fast. -
Dear SD Gurus,
We are not able to see entries related to Material and material quantity in BSEG table. I am not sure why these entries are not coming in this table.
As far as my knowledge goes BSEG table is a cluster table and an important part of the Accounting Document Segment.
It comes in picture whenever there is a movement type of material such as 601 is involved i.e. at the time of PGI or PGR, i have my doubts over u201Chow it is skipping data insertion in this table?u201D
Could anybody let me know from where and how BSEG table fatched material and its quantity.
Thanks in advance. Suitable Text Removed
Regards
Vinod Kumar
Edited by: Lakshmipathi on Jan 28, 2011 9:16 PM
Dont offer anythingIts happening after transporting some requests in Dec 2010
In that case, you need to take the list of those requests and check which particular request relates to changes in SD table that parallely affects BSEG table.
You can also check from document flow for that Accounting document whether values are posted correctly in FI. As a random test, take a billing document for which an Accounting document is generated and check in FB03 how many line items are flowing. Next go to SE16 / BSEG and check whether you could see all those line items in this table.
Meanwhile, you can also check from those transport requests what changes were made in which SD tables.
Perhaps, you can also have a look at the following notes which may help you.
1) Note 10083 - BSIS missing for G/L account
2) Note 401646 - New DataSources for Line Items from FI-GL, FI-AP, FI-AR
3) Note 416076 - SELECT FOR UPDATE does not lock cluster tables
4) Note 608340 - SAP Cons.: No quantity update in subsequent posting from FI
5) Note 677630 - Correcting functional areas in FI documents
6) Note 685688 - Release of "old" invoices as of SAP R/3 Enterprise
7) Note 1497911 - F-26: All items not selected
In case, you could find out the root cause, please update the forum without fail which will be very helpful to all.
thanks
G. Lakshmipathi -
Hi All,
When select data from BSEG into it_bseg table and loop at it_bseg then system takes more time
and give the runtime error in the quality server.
to get data fast from BSEG into it_bseg table and run fast the loop at it_bseg.
WIPRO company did the one programe to my company , that programe displays the data very fast using
BSEG table.
Thanks.Hi,
Instead of using BSEG table use these alternate tables....
Cleared items:
BSAD Accounting: Secondary Index for Customers (Cleared Items)
BSAK Accounting: Secondary Index for Vendors (Cleared Items)
BSAS Accounting: Secondary Index for G/L Accounts (Cleared Items)
Non-cleared items:
BSID Accounting: Secondary Index for Customers
BSIK Accounting: Secondary Index for Vendors
BSIM Secondary Index, Documents for Material
BSIP Index for Vendor Validation of Double Documents
BSIS Accounting: Secondary Index for G/L Accounts
Hope its helps -
hi everyone,
i need to fetch gl account wise vendor list,i cant use bseg table since its getting time out to fetch nearly 2 laks records,is there any similar table like bsis,bsas etc.....
very urgent plz hlep.....
thanks in advance
regards,
balaji.sPlease see:
[Quickly Retrieving FI document Data from BSEG|/people/rob.burbank/blog/2007/11/12/quickly-retrieving-fi-document-data-from-bseg]
Rob
Maybe you are looking for
-
Hi All Can any one explain how we need to connect and extract data from SQL server from ODI Thanks Ranga
-
How can I transfer my iphone music to my itunes library?
I got a new laptop and I still have my music on my iphone but since my itunes library is empty I want my music to sync. But I can't figure it out. HELP ME ps - I have a mac laptop and iphones 4s
-
Hello, I 'm working with invoice and I have this source structure as XI input: Invoice -- |.... -- |.... -- |Item1 |taxcode=01 |Amount=12 --|Item2 |taxcode=08 |Amount=10 --|Item3 |taxcode=01 |Amount=24 Now my scope is to map these fields to the IDOC
-
I run Leopard on Intel Mac and I have Apple TV, which has previously worked fine. However, I have recently moved house and when I have come to set the system back up, ATV can not find the network created by the Mac, although it does manage to find ne
-
My G3 has 10.1 but when I sign in it automatically goes to 9.2 please help
My G3 always ran 9.2, recently I had the apple store install 10.1, which was working fine. then my wife put a my son's computer disc game in and for some reason everytime I sign in it automatically goes to 9.2 and I can't figure out how to put back 1