2020 Jun 22 3:16 PM
Hello,
We have a requierement that provides to store a purchase requisition programmatically, ie, without using any transaction.
It's to launch via an external application.
The solution that we thought about is to insert into EBAN table via a webservice using Java for example.
The problem is that we don't know the origin of each column value. (eg. is banfn incremental? Does it have a specific form?).
For example: Assuming the existance of a purchase requistion having the following infomation below:
2020 Jul 23 11:02 AM
To create a purchase requisition from an external application, I called the function module BAPI_REQUISTION_CREATE using the interface RFC (Remote Function Call).
I use Java language, so the library that I used is JCo.
Best regards.
You should never insert data into standard table directly, because it will have dependencies to other tables and so much business logic, validations are doing before creating a purchase requisition.
The only choice you have is to use BAPI
https://answers.sap.com/questions/3931804/how-to-create-pr-using-bapiprcreate.html
Ps: update ur tag to abap, this question is not related to abap restful programming model
2020 Jun 22 4:03 PM
You should never insert data into standard table directly, because it will have dependencies to other tables and so much business logic, validations are doing before creating a purchase requisition.
The only choice you have is to use BAPI
https://answers.sap.com/questions/3931804/how-to-create-pr-using-bapiprcreate.html
Ps: update ur tag to abap, this question is not related to abap restful programming model
2020 Jun 23 11:03 AM
Thank you very much for yor answer.
Is it possible to use an out of the box API (Restful or SOAP)?
2020 Jun 23 8:57 PM
Malek Guenichi Current best practice is to create an odata service for it. I doubt if any out of box solution is available for it. Try this, it's a 2006 blog, not sure if it is even possible now:
2020 Jul 23 11:02 AM
To create a purchase requisition from an external application, I called the function module BAPI_REQUISTION_CREATE using the interface RFC (Remote Function Call).
I use Java language, so the library that I used is JCo.
Best regards.
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |