Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Glue API allows SAP schema discovery through endpoint /sap-objects. It returns a list of SAP objects for which the user has authorizations.

Example of REST API call: 

GET

http://servername:portnumber/dvd/glue/api/v3_1/sap-objects?sap-client=

800 

clientnumber

ExpandtitleExample of the REST API output: 

Code Block
languagejson
{
    "objects": [
        {
            "name": "ZSCD_BW2_OBJTAB",
            "type": "TRANSP"
        },
        {
            "name": "ZTH_TEST_TABMAIN",
            "type": "TRANSP"
        },
        {
            "name": "/ASU/V_SSMFOLDR",
            "type": "VIEW"
        },
        {
            "name": "/ASU/V_SSMFOLDRC",
            "type": "VIEW"
        },
         {
            "name": "/IMO/D/SD10",
            "type": "ADSO"
        }

    ]
}

 Functionality is implemented in the SAP class /DVD/GL_EXT2_API_SAP_OBJECTS.