Solved

Which SQL tables make up cluster table BSET?

Posted on 2007-11-30
4
2,677 Views
Last Modified: 2013-12-08
Question:
I'm doing some work with SAP R3 v4 (installed on Microsoft SQL Server 2000) and need to get at VAT details held in cluster table BSET. Which SQL tables is the cluster table BSET comprised of (or how do I determine same)? The specific fields I'm looking for are HWBAS, FWBAS, HWSTE and FWSTE.
0
Comment
Question by:masbe
  • 2
  • 2
4 Comments
 
LVL 2

Expert Comment

by:BACR
ID: 20418511
Hi!

Question doesn't fully specify access environment.
1. Access to BSET within SAP
  You can use normal select statement to get required data.  
2. Access to BSET on DB level.
 I would strongly recommend no to do this. There are two ways to get required data:
  - RFC with interface according to your requirements;
  - ABAP report that generates file (Excel, TXT, etc) with required data.

Hope this helps.
BACR



0
 

Author Comment

by:masbe
ID: 20418769
BACR wrote:

"1. Access to BSET within SAP
  You can use normal select statement to get required data."

How do I achieve this?

"2. Access to BSET on DB level.
 I would strongly recommend no to do this."

For what reasons? (If the reasons are valid, I'll accept the recommendation!)

Thanks!
0
 
LVL 2

Accepted Solution

by:
BACR earned 250 total points
ID: 20419611
Hi!

1. Access table within SAP

The following code read data from BSET table:

select (1) from bset into table (2) where bukrs = so_bukrs and BELNR = so_belnr.

(1)
* to access all fields of table
list of required fields (preferred)

(2)
internal table with fields according to (1) option.

Access this table with other WHERE conditions (ex. BUKRS and GJAHR) will result in sequential table read, e.g. this will take a lot of time.


2. Direct access to DB table.
1. SAP licenses are usually based on "named" users as defined in the user master table. Directly accessing the database would bypass user logging procedures and therefore violate your SAP license.
2. A direct connection to the database would bypass SAP authorizations and require maintenance of table access authorizations within the database itself.
3. There are thousands of SAP tables in the database and the SAP maintains the referential integrity of those tables through standard code executed by SAP transactions. Updating any tables directly, either through ABAP code or by external access to the SAP database is highly discouraged.
4. Directly accessing the SAP database could have a negative impact on the performance of the SAP production system.
5. Access cluster table adds complexity since data are stored only in binary format that should be correct interpreted.

Hope this helps
BACR
0
 

Author Closing Comment

by:masbe
ID: 31411920
BCAR - thank you for a comprehensive answer.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
For cloud, the “train has left the station” and in the Microsoft ERP & CRM world, that means the next generation of enterprise software from Microsoft is here: Dynamics 365 is Microsoft’s new integrated business solution that unifies CRM and ERP fun…
Via a live example, show how to setup several different housekeeping processes for a SQL Server.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now