SAP MESH AMDP ABEXA



Get Example source ABAP code based on a different SAP table
  



ABAP_AMDP - Filling a Mesh with SQLScript
This example demonstrates how a mesh is filled with a database procedure.

ABAP_SOURCE_CODE
DEMO CL_DEMO_AMDP_FILLING_MESH

ABAP_DESCRIPTION
The AMDP class CL_DEMO_AMDP_MESH has a private AMDP method SELECT_HDB called by the public method SELECT if the current standard database is the SAP HANA database. For all other databases, the private method SELECT_ABAP_SQL is called. Both methods return the same results, which is ensured by a unit test in the class.
The methods fill the nodes of a mesh for sales orders whose type is declared in the AMDP class. The number of sales orders is restricted using a ranges table. In both methods subqueries are used that access local data. In ABAP SQL, the subqueries access internal tables.

SQLScript Implementation of the AMDP Method
METH CL_DEMO_AMDP_MESH=>SELECT_HDB

ABAP Implementation of the Regular Method
METH CL_DEMO_AMDP_MESH=>SELECT_ABAP_SQL



Latest notes:

This is a syntax example for AMDP. The same function can be achieved with the same efficiency in AB_SQL . AMDP is not needed in simple cases like this.
NON_V5_HINTS
ABAP_HINT_END