Giter VIP home page Giter VIP logo

abap-file-uploader's Introduction

ABAP File Uploader

REUSE status

Description

The ABAP File Uploader is designed to allow an ABAP developer to upload data from a file directly into a target database table in SAP Business Technology Platform ABAP Environment instance. This utility expects a json file for the uploaded data with attributes that match the column names in the database table.

Video Introduction here: https://youtu.be/PpXNP3ciGOc

Requirements

Make sure to fulfill the following requirements:

  • You have access to an SAP Business Technology Platform ABAP Environment instance (see here for additional information).
  • Note: The XCO APIs are available automatically in trial systems and require no further steps. In productive accounts: "The XCO library is currently only available via feature toggle. If you are interested in using this new feature, please contact SAP." https://help.sap.com/doc/43b304f99a8145809c78f292bfc0bc58/Cloud/en-US/98bf747111574187a7c76f8ced51cfeb.html For more general information on XCO: https://blogs.sap.com/2020/05/17/the-rap-generator
  • You have downloaded and installed ABAP Development Tools (ADT). Make sure to use the most recent version as indicated on the installation page.
  • You have created an ABAP Cloud Project in ADT that allows you to access your SAP Business Technology Platform ABAP Environment instance (see here for additional information). Your log-on language is English.
  • You have installed the abapGit plug-in for ADT from the update site http://eclipse.abapgit.org/updatesite/.

Download and Installation

Use the abapGit plug-in to install the ABAP File Uploader Examples by executing the following steps:

  1. In your ABAP cloud project, create an ABAP package for the demo content to be downloaded (leave the suggested values unchanged when following the steps in the package creation wizard).
  2. To add the abapGit Repositories view to the ABAP perspective, click Window > Show View > Other... from the menu bar and choose abapGit Repositories.
  3. In the abapGit Repositories view, click the + icon to clone an abapGit repository.
  4. Enter the following URL of this repository: https://github.com/SAP-samples/abap-file-uploader and choose Next.
  5. Create a new transport request that you only use for this demo content installation (recommendation) and choose Finish to link the Git repository to your ABAP cloud project. The repository appears in the abapGit Repositories View with status Linked.
  6. Right-click on the new ABAP repository and choose pull to start the cloning of the repository contents. Note that this procedure may take a few minutes.
  7. Once the cloning has finished, the status is set to Pulled Successfully. Then refresh your project tree.

As a result of the installation procedure above, the ABAP system creates an inactive version of all artifacts from the demo content

To activate all development objects from this sample:

  1. Click the mass-activation icon (Activate Inactive ABAP Development Objects) in the toolbar.
  2. In the dialog that appears, select all development objects in the transport request (that you created for the demo content installation) and choose Activate.
  3. Once the imported handler class is activated, you must then manually create an HTTP Service and attach this handler class to the service. Again, make sure the handler class is activated first!! Then in ADT, right-click on your package and choose New > Other ABAP Repository Object.
    1
  4. In the dialog, click Connectivity, then choose HTTP Service. Click Next.
    2
  5. Give the name of the HTTP Service as ZABAP_FILE_UPLOADER, the Handler Class should prepopulate with the correct name. Click Next, then Finish.
    3
  6. After a couple minutes, the HTTP Service should be ready(Until all underlying objects are generated you could possiblly get a 403 error when launching the application). Click on the URL link in the service to launch the tool.
    4

Known Issues

How to obtain support

This project is provided "as-is": there is no guarantee that raised issues will be answered or addressed in future releases.

License

Copyright (c) 2024 SAP SE or an SAP affiliate company. All rights reserved. This project is licensed under the Apache Software License, version 2.0 except as noted otherwise in the LICENSE file.

abap-file-uploader's People

Contributors

btbernard avatar jung-thomas avatar rich-heilman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

abap-file-uploader's Issues

Inquiry about File Uploading through Service Deployment

Hello,

I am wondering if it is still recommended to use service deployment for file uploading in the current state of RAP development. Additionally, I would appreciate any suggestions on how to better handle file uploading and building RAP applications.

Thank you for your assistance. I look forward to your response.

Please use only whitelisted stuff, otherwise this is unusable

https://blogs.sap.com/wp-content/uploads/2020/06/2020-06-20_13h53_50.png
Use of Class CL_XCO_ASQL_CONSTRAINT_FACTORY is not permitted. zcl_abap_file_uploader.aclass /NSC_EN/.adt/classlib/classes/zcl_abap_file_uploader/zcl_abap_file_uploader.aclass line 38 ABAP Activation Problem
Use of Class CL_XCO_ASQL_CONSTRAINT_FACTORY is not permitted. zcl_abap_file_uploader.aclass /NSC_EN/.adt/classlib/classes/zcl_abap_file_uploader/zcl_abap_file_uploader.aclass line 38 ABAP Activation Problem
Use of Class XCO_CP_ABAP is not permitted. zcl_abap_file_uploader.aclass /NSC_EN/.adt/classlib/classes/zcl_abap_file_uploader/zcl_abap_file_uploader.aclass line 40 ABAP Activation Problem
Use of Class XCO_CP_ABAP is not permitted. zcl_abap_file_uploader.aclass /NSC_EN/.adt/classlib/classes/zcl_abap_file_uploader/zcl_abap_file_uploader.aclass line 40 ABAP Activation Problem
Use of Class XCO_CP_ABAP is not permitted. zcl_abap_file_uploader.aclass /NSC_EN/.adt/classlib/classes/zcl_abap_file_uploader/zcl_abap_file_uploader.aclass line 40 ABAP Activation Problem
Use of Class XCO_CP_ABAP_REPOSITORY is not permitted. zcl_abap_file_uploader.aclass /NSC_EN/.adt/classlib/classes/zcl_abap_file_uploader/zcl_abap_file_uploader.aclass line 37 ABAP Activation Problem
Use of Class XCO_CP_ABAP_REPOSITORY is not permitted. zcl_abap_file_uploader.aclass /NSC_EN/.adt/classlib/classes/zcl_abap_file_uploader/zcl_abap_file_uploader.aclass line 37 ABAP Activation Problem
Use of Interface IF_XCO_AD_TABLE is not permitted. zcl_abap_file_uploader.aclass /NSC_EN/.adt/classlib/classes/zcl_abap_file_uploader/zcl_abap_file_uploader.aclass line 44 ABAP Activation Problem
Use of Interface IF_XCO_AR_TABL_API_OBJECT is not permitted. zcl_abap_file_uploader.aclass /NSC_EN/.adt/classlib/classes/zcl_abap_file_uploader/zcl_abap_file_uploader.aclass line 89 ABAP Activation Problem
Use of Interface IF_XCO_AR_TABL_API_OBJECT is not permitted. zcl_abap_file_uploader.aclass /NSC_EN/.adt/classlib/classes/zcl_abap_file_uploader/zcl_abap_file_uploader.aclass line 89 ABAP Activation Problem
Use of Interface IF_XCO_AR_TABL_API_OBJECT is not permitted. zcl_abap_file_uploader.aclass /NSC_EN/.adt/classlib/classes/zcl_abap_file_uploader/zcl_abap_file_uploader.aclass line 89 ABAP Activation Problem
Use of Interface IF_XCO_CP_AR_API_OBJECTS is not permitted. zcl_abap_file_uploader.aclass /NSC_EN/.adt/classlib/classes/zcl_abap_file_uploader/zcl_abap_file_uploader.aclass line 39 ABAP Activation Problem
Use of Interface IF_XCO_CP_AR_API_OBJECTS is not permitted. zcl_abap_file_uploader.aclass /NSC_EN/.adt/classlib/classes/zcl_abap_file_uploader/zcl_abap_file_uploader.aclass line 39 ABAP Activation Problem
Use of Interface IF_XCO_DATABASE_TABLE is not permitted. zcl_abap_file_uploader.aclass /NSC_EN/.adt/classlib/classes/zcl_abap_file_uploader/zcl_abap_file_uploader.aclass line 90 ABAP Activation Problem

ABAP File uploader

Hi Thomas,

I have created new Http connection and created new repository but i am facing same issue

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.