In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly explains "how to use SAP ABAP's OPEN SQL". Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to use SAP ABAP's OPEN SQL.
When the CDS view in SELECT is accessed using the name of the CDS entity as the data source, and the view publishes associations _ assoc in its SELECT list for external use, these associations can be used as the root element of the path expression. The same statement. In the path expression, the association name _ assoc1,_assoc2,... Separated by a backslash (\). The association specified after the root element must be published in the destination data source that is directly prefixed in the path expression. Path expressions cannot be split across multiple lines of source code.
When you compile SELECT statements with path expressions, the connections represented by those expressions are implicitly added to the FROM clause of the statement. The additional data source generated is implicitly evaluated when the path expression appears. This respects the association's connection conditions and other conditions of the CDS view. You can use path expressions:
In the column specified in the SELECT statement. The path expression represents the left outer join (LEFT OUTER JOIN).
Serves as the data source for the FROM clause in the SELECT statement. The path expression represents an inner join (INNER JOIN).
Some restrictions apply to path expression associations in Open SQL.
AbapCatalog.sqlViewName: 'SAP_Technical' @ AccessControl.authorizationCheck: # NOT_REQUIRED define view sap_technical (_ spfli_scarr, id, carrier, flight, departure, destination) as select from spfli association [1.. 1] to scarr as _ spfli_scarr on $projection.carrid = _ spfli_scarr.carrid {_ spfli_scarr, key spfli.carrid, key _ spfli_scarr.carrname, key spfli.connid Spfli.cityfrom, spfli.cityto}
The program DEMO_CDS_ASSOCIATION uses the simple path\ _ _ spfli_scarr of the following SELECT statement and view and compares it with access to data that works in the same way.
SELECT id,\ _ spfli_scarr-carrname AS carrier, flight, departure, destination FROM sap_technical INTO TABLE @ DATA (result).
The SELECT statement that accesses the complete SELECT list of the view produces the same result as the SELECT statement that accesses the view with the same type of connection.
At this point, I believe you have a deeper understanding of "how to use SAP ABAP's OPEN SQL". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.