SAP - BI
How to Create an InfoObject Catalog in SAP BI/BW
Step 1) Go to transaction code RSA1 to go to the Data Warehouse Workbench. Click the OK button....
In ABAP/4 programming language, there are two types of SQL being used.
Native SQL allows you to use database-specific SQL statements in an ABAP/4 program. This means that you can use database tables that are not administered by ABAP dictionary, and therefore integrate data that is not part of the R/3 system.
Open SQL consists of a set of ABAP statements that perform operations on the central database in the R/3 system. The results of the operations and any error messages are independent of the database system in use. Open SQL thus provides a uniform syntax and semantics for all of the database systems supported by SAP. ABAP programs that only use Open SQL statements will work in any R/3 system, regardless of the database system in use. Open SQL statements can only work with database tables that have been been created in the ABAP dictionary.
TABLES SBOOK. DATA C TYPE CURSOR, WA LIKE SBOOK. OPEN CURSOR C FOR SELECT * FROM SBOOK WHERE CARRID = 'LH ' AND CONNID = '0400' AND FLDATE = '19950228' ORDER BY PRIMARY KEY. DO. FETCH NEXT CURSOR C INTO WA. IF SY-SUBRC <> 0. CLOSE CURSOR C. EXIT. ENDIF. WRITE: / WA-BOOKID, WA-CUSTOMID, WA-CUSTTYPE, WA-SMOKER, WA-LUGGWEIGHT, WA-WUNIT, WA-INVOICE. ENDDO.
Output the passenger list for the Lufthansa flight 0400 on 28-02.1995:
SY-SUBRC
After every Open SQL statement, the system field SY-SUBRC contains the value 0 if the operation was successful, a value other than 0 if not.
SY-DBCNT
After an Open SQL statement, the system field SY-DBCNT contains the number of database lines processed.
To use Native SQL statement, you must precede it with the EXEC SQL statement, and follow it with the ENDEXEC statement.
Syntax
EXEC SQL [PERFORMING <form>]. <Native SQL statement> ENDEXEC.There is no period after Native SQL statements. Furthermore, using inverted commas (") or an asterisk (*) at the beginning of a line in a native SQL statement does not introduce a comment as it would in normal ABAP syntax. You need to know whether table and field names are case-sensitive in your chosen database.
In Native SQL statements, the data is transported between the database table and the ABAP program using host variables. These are declared in the ABAP program, and preceded in the Native SQL statement by a colon (:). You can use elementary structures as host variables. Exceptionally, structures in an INTO clause are treated as though all of their fields were listed individually.
As in Open SQL, after the ENDEXEC statement, SY-DBCNT contains the number of lines processed. In nearly all cases, SY-SUBRC contains the value 0 after the ENDEXEC statement.
Keep the Result Set Small
Step 1) Go to transaction code RSA1 to go to the Data Warehouse Workbench. Click the OK button....
Invoice verification is done via MIRO transaction. Step 1) Enter transaction code MIRO. Choose...
Course Summary SAP BI (Business Intelligence) is a leading data warehousing and reporting tool. It...
What is a Business Transaction? Business Processes in SAP CRM: For various processes of a company,...
What is Pricing Procedure? Pricing procedure in MM module is a way to determine prices in...
We can get stock overview of a particular material across various organization levels by T-Code –...