cancel
Showing results for 
Search instead for 
Did you mean: 

Create Internal Order using odata service in fiori

former_member592880
Participant
0 Kudos

Hello,

this is the first time I'm creating a create application in Fiori.

I have to create a custom Internal order creation application in Fiori.

I have created a UI (IMG Attached) and I need to call in OData service on the press on the create button and on press the data and attachment needs to be sent to the backend SAP System where a FM will create the IO.

so my question was how do I write a create function for OData service in SAPUI5??

P.S I referred to this blog for reference before asking here : https://archive.sap.com/discussions/thread/3759870

Accepted Solutions (0)

Answers (1)

Answers (1)

jorge_cabanas
Participant
0 Kudos

Hi,

First of all, this is not an issue, is a requirement that you are asking the community to implement for you...

Anyway, I'll give some tips:

1- Create the method which capture the press event of "Create button"
2- Get the info list and their data (What the user wrote)
3- Since we can not imagine how the attachment view is, I would say just get the model data where is attached or refered the file
4- Call the odata service using the model (e.g. "this.mymodel.create({})" ) Here the documentation assuming you are using oData v2: oData v2 Create

5- Conceals better your requirements like "issues"

Kind regards,
Jorge

former_member592880
Participant
0 Kudos
hi,

thanks for responding. I know this is not an issue but I also didn't find any blog or answer or anything that solved this issue so I asked it here so after me if any other newbie faces the same obstacle that person will also have an answer to rely on.

thanks again for your help

regards

Siddharth

jorge_cabanas
Participant
0 Kudos

Hi Siddharth,

Thanks for answering kindly. As you can understand, there are a lot of possibilities to implement something like that and we have no access to the code 🙂

Issues are easier to resolve because they are more specific.

Best regards,
Jorge.