cancel
Showing results for 
Search instead for 
Did you mean: 

Error While Creating UDO through POSTMAN

former_member374449
Participant
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

former_member374449
Participant
0 Kudos

Hi All,

I have changed "SonNumber" to 2 and UDO is created successfully.

Now what is SonNumber ?

Answers (0)