cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with Data Types: Batch Load Data into a Custom Business Object in SAP S/4HANA Cloud

shashankagg
Explorer
226

Hi All,

I referred below Blog to upload data into Custom Business Object using EXCEL.

https://community.sap.com/t5/enterprise-resource-planning-blogs-by-sap/batch-load-data-into-a-custom...

Everything was working great except if custom business objects has any field with data types Quantity/Amount is not working while uploading data through excel.

@MartyMcCormick

API NW ABAP Gateway (OData)

View Entire Topic
AndreasMuno
Product and Topic Expert
Product and Topic Expert
0 Kudos

Thank you for your  question, @shashankagg.

I found this community blog which has some explicit code on uploading numeric data from spreadsheet, namely the part "for_numeric_value" in this line: from_row( xco_cp_xlsx=>coordinate->for_numeric_value( 2 ).

There might be other approaches: If the number you are attempting to import should have a dimension, ensure to also provide for that dimension. Decimals, if there are any, should be matching the target field's definition for decimals in every row. If the number is not treated like a number - e.g. because it is not used to calculate with, like a phone number, why not importing it as text/characters? Also, ensure the spreadsheet does not contain formula. Make it as plain as possible. 

if that helped solve your request, please mark it accordingly. Thank you.  

shashankagg
Explorer
0 Kudos

Thanks @AndreasMuno  for responding to this 🙂

I forgot to mention i am using 2SL.

shashankagg
Explorer
0 Kudos

 

@AndreasMuno I dont think i have leverage to write : from_row( xco_cp_xlsx=>coordinate->for_numeric_value( 2 ) in S4 Public Cloud 2SL.