?
Solved

Which SQL tables make up cluster table BSET?

Posted on 2007-11-30
4
Medium Priority
?
3,004 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 1000 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Viewers will learn how the fundamental information of how to create a table.
Suggested Courses

840 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