pacroy / abap-rest-api Goto Github PK
View Code? Open in Web Editor NEWSimple ABAP REST API
License: MIT License
Simple ABAP REST API
License: MIT License
https://marketing-71130.medium.com/calling-rest-api-from-sap-abap-695cd89171b9
BEGIN OF LS_API, "Create structure for API output
statuscode TYPE string,
data TYPE TABLE OF ls_data,
END OF LS_API.
error1:
data TYPE TABLE OF ls_data,
You cannot use generic type definitions within structures.
error2:
lo_client->request->set_version( if_htttp_request=>co_protocol_version_1_1 ).
Type "IF_HTTTP_REQUEST" is unknown
Thanks
Hello @pacroy
We are following your blog (Continuous Integration in ABAP using Jenkins) and the way you have explained is very nice. We are looking forward to do the CI/CD process first by using ECC system and github, according to your blog.
We have a linux vm with jenkins.
We installed ABAPGIT and it is working fine.
We cloned your repository and there we are facing issues,
with json and jenkinsfile,
We have updated the files with the details simply, but still facing the same issue on every change.
Please help us out.
Warm Regards
Passing along this info that was a little hard to come by on including keys/ids in the URI template. Figured it might be nice to make a PR to improve the overall example and save people time trying to find it elsewhere.
I recently discovered you can process keys passed in the URI (ex: SalesOrder/40001 reading the the SO with ID 40001. This can be done while attaching the root handler
lo_router->attach( iv_template = '/SalesOrder/{ID}' iv_handler_class = 'ZCL_SALESORDERHANDLER' ).
In the handler class itself you would read the ID as follows
DATA(lt_uriattributes) = mo_request->get_uri_attributes( ).
READ TABLE lt_uriattributes WITH KEY name = 'ID' ASSIGNING FIELD-SYMBOL(<fs_salesorderid>).
In this example <fs_salesorderid>-value would then contain the passed ID value.
You can include regex in iv_template as well to enforce some character restrictions/validations.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.