SAP-samples / cloud-abap-rap

This repository contains several examples how to develop with the ABAP RESTful Application Programming Model (RAP) in SAP BTP, ABAP environment.
Apache License 2.0
214 stars 61 forks source link

RAP Objects cannot be created - PUT Operation failed, BDEF cannot be assigned to package #35

Open MatthiasWagenbreth opened 2 weeks ago

MatthiasWagenbreth commented 2 weeks ago

Hi Andre,

I downloaded last Friday (21st of June) the RAP generator into our system. Today, I wanted to create a Business Configuration which has Multi-Inline-Edit capability. After maintaining everything and starting to generate the objects we get these messages in the log:

The generated json is this one:

{
    "namespace": "/XXXX/",
    "package": "/XXXX/CATE_CHEM_CLASS",
    "dataSourceType": "table",
    "bindingType": "odata_v4_ui",
    "implementationType": "managed_semantic",
    "prefix": "",
    "suffix": "",
    "draftEnabled": true,
    "multiInlineEdit": true,
    "isCustomizingTable": false,
    "addBusinessConfigurationRegistration": true,
    "transportRequest": "ACDK901296",
    "publishservice": true,
    "addbasiciviews": false,
    "isextensible": false,
    "addsapobjecttype": false,
    "hierarchy": {
        "entityname": "ChemClassif",
        "dataSource": "/XXXX/A_CLASSIFI",
        "objectid": "CLASSIF",
        "uuid": "",
        "parentUUID": "",
        "rootUUID": "",
        "etagMaster": "LOCALCHANGED_AT",
        "totalEtag": "CHANGED_AT",
        "lastChangedAt": "CHANGED_AT",
        "lastChangedBy": "CHANGED_BY",
        "localInstanceLastChangedAt": "LOCALCHANGED_AT",
        "createdAt": "CREATED_AT",
        "createdBy": "CREATED_BY",
        "draftTable": "/XXXX/CHEMCLA00D",
        "cdsInterfaceView": "/XXXX/I_ChemClassifTP",
        "cdsInterfaceViewBasic": "",
        "cdsRestrictedReuseView": "/XXXX/R_ChemClassifTP",
        "cdsProjectionView": "/XXXX/C_ChemClassifTP",
        "metadataExtensionView": "/XXXX/C_ChemClassifTP",
        "behaviorImplementationClass": "/XXXX/BP_R_ChemClassifTP",
        "sapobjectnodetype": "",
        "extensioninclude": "",
        "extensionincludeview": "",
        "draftqueryview": "",
        "extensibilityElementSuffix": "",
        "serviceDefinition": "/XXXX/UI_ChemClassif",
        "serviceBinding": "/XXXX/UI_ChemClassif_O4",
        "sapobjecttype": "/XXXX/",
        "controlStructure": "",
        "customQueryImplementationClass": "",
        "mapping": [
            {
                "dbtable_field": "CLASSIF",
                "cds_view_field": "Classif"
            },
            {
                "dbtable_field": "DESCRIPTION",
                "cds_view_field": "Description"
            },
            {
                "dbtable_field": "CREATED_BY",
                "cds_view_field": "CreatedBy"
            },
            {
                "dbtable_field": "CREATED_AT",
                "cds_view_field": "CreatedAt"
            },
            {
                "dbtable_field": "CHANGED_BY",
                "cds_view_field": "ChangedBy"
            },
            {
                "dbtable_field": "LOCALCHANGED_AT",
                "cds_view_field": "LocalchangedAt"
            },
            {
                "dbtable_field": "CHANGED_AT",
                "cds_view_field": "ChangedAt"
            }
        ]
    }
}

There are no more details to the error messages.

Hint: In Edit mode it is even possible to change the log!

Please help to solve the issue.

Best regards, Matthias