cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Ex Subj : My requirement is Excel file upload in Build apps. On Submit create SO in S4 system

0 Likes
845

Hello Experts, 

I need to design File Upload so user can upload excel with Order details and I can map it using API and create Sales Order in S4 system. 

As of now i need help with design part and Mapping part in Build apps. 

Best regards, 

KC 

 

Accepted Solutions (0)

Answers (1)

Answers (1)

Sankara1
Product and Topic Expert
Product and Topic Expert
0 Likes

To upload an Excel file in SAP Build Apps and create a record, you can follow these steps:

Steps to Upload and Process Excel File

  1. File Upload Component:

    • Use a file upload component to allow users to select and upload the Excel file. This component can be added to your SAP Build Apps project.
  2. Backend Processing:

    • Once the file is uploaded, you need to process the file in the backend. You can use a service action to handle the file upload and parsing.
    • For parsing the Excel file, you can use libraries such as xlsx in Node.js or Java. This will help you read the content of the Excel file and convert it into a format that can be processed.
  3. Creating Records:

    • After parsing the Excel file, you can create records in your database. You can use batch inserts to efficiently handle large amounts of data.
    • Implement an optimized procedure for mass operations to avoid performance issues. Here is an example of how you can define and handle such an action in CAP (Cloud Application Programming):
service MyService {
  action massOperations(x: YourParameters) returns String;
}

srv.on('massOperations', async req => {
  // implement optimized procedure
  return "Success";
});
nikh22ita344
Associate
Associate
0 Likes
Can u explain where exactly we need to do the backend processing in the SAP build apps