Skip to Content
0
Dec 13, 2018 at 05:19 AM

Error While Creating UDO through POSTMAN

132 Views Last edit Dec 13, 2018 at 05:36 AM 2 rev

Hello Everyone,

I just want to know that why Service Layer API for creating UDO is giving error:

Here is the APIs:

For Creating Table 1:

https://hana93:50000/b1s/v1/UserTablesMD
{ 
"TableDescription": "NewUDT", 
"TableName": "UDT01", 
"TableType": "bott_MasterData" 
}

For Creating Table 2:

https://hana93:50000/b1s/v1/UserTablesMD
{ 
"TableDescription": "NewUDT2",
"TableName": "UDT02",
"TableType": "bott_MasterDataLines" 
}

For Creating UDO:

https://hana93:50000/b1s/v1/UserObjectsMD
{ 
"Code": "UDO5353",
"Name": "UDOTest",
"TableName": "UDT01",
"UserObjectMD_ChildTables": 
                           [ 
                             { 
                              "ObjectName": "UDO Child",
                              "SonNumber": "1",
                              "TableName": "UDT02" 
                             } 
                           ] 
}

Error:

{
    "error": {
        "code": -5002,
        "message": {
            "lang": "en-us",
            "value": " [UDO1.TableName][line: 1] , 'There are values in table @UDT02'"
        }
    }
}

Problem is that there is no values in Header and Details Table still it is showing the error that table 2 contains the values in it.

Thanks & Regards.