Ansicht
Dokumentation

ABENAMDP_GRAPH_ABEXA - AMDP GRAPH ABEXA

ABENAMDP_GRAPH_ABEXA - AMDP GRAPH ABEXA

Addresses (Business Address Services)   RFUMSV00 - Advance Return for Tax on Sales/Purchases  
This documentation is copyright by SAP AG.
SAP E-Book

- Graph Processing

This example demonstrates graph processing using a graph workspace and a graph procedure.

Source Code

Execute

Description

This example accesses a graph procedure that is declared and implemented in the AMDP class CL_DEMO_AMDP_GRAPH.

The method GET_SHORTEST_PATH is a graph procedure that refers to the graph workspace CL_DEMO_AMDP_GRAPH=>GRAPH_WORKSPACE operating on a graph model which is a flight data model. The graph workspace includes the declaration of the vertex table and the edge table.

The graph procedure is a read-only procedure that is written in GraphScript. Its purpose is to return the shortest flight connection between two cities (representing two vertices). The parameter ex_weight returns the overall flight time, and the parameter ex_route returns the a table showing some details of the round trip.

The example shows that the first method call is fine. The second method call does not show any data because the target city is not contained in the graph model. The third method call shows the message that is raised. In this case, neither of the two cities is contained in the graph model






BAL_S_LOG - Application Log: Log header data   rdisp/max_wprun_time - Maximum work process run time  
This documentation is copyright by SAP AG.

Length: 2408 Date: 20240512 Time: 100548     sap01-206 ( 31 ms )