This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//get the binding for json object | |
oEvent.getSource().getBindingContext().getObject(); | |
//get the binding for the json object for a specific model | |
oEvent.getSource().getBindingContext("modelName").getObject(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Authenticate if you havent already | |
prvd authenticate | |
# Navigate to the workgroup | |
prvd baseline subject-accounts list | |
# copy the relevant subject account id for your scenario (ex: subject_account_id in protocol message) | |
# ought to be sha256 hash of workgroup.organization |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Enter the following commands in command line after creating a workflow in Shuttle | |
#More info on https://docs.provide.services/api/quickstart/cli-quickstart | |
#Authenticate using credentials you created in Shuttle | |
prvd authenticate | |
#Find the organization ID you created in Shuttle | |
prvd organizations list | |
#Generate a refresh token to a file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
report zwritebinaryfiletohttp. | |
part = client->request->add_multipart( ). | |
CALL METHOD part->set_header_field | |
EXPORTING | |
name = 'content-disposition' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
report zreadfilefromuri. | |
DATA: | |
lo_http_client TYPE REF TO IF_HTTP_CLIENT. | |
DATA: | |
lv_str TYPE XSTRING, | |
lv_i TYPE I. | |
CALL METHOD cl_http_client=>create_by_url |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
report zreadfromappserver. | |
*originally posted on https://blogs.sap.com/2020/03/19/read-an-excel-file-from-al11-directory/ | |
*Introduction : | |
*There are scenarios where the user will upload a file in the Application Server which needs to be consumed to manipulate that data (such as updating in a table or sending it as a mail). In that case, we can use the DATASET to read the file in the Application Server. | |
*Problem Statement: | |
*The user uploads an Excel File in the Application Server. That Excel file is picked from the list of files in the Application server and stored in an internal table and then the data is uploaded to a custom table in SAP. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REPORT ztest_download. | |
"&-------------------------------------------------------------* | |
"& Declarations | |
"&-------------------------------------------------------------* | |
TYPES: BEGIN OF ty_pa0001, | |
pernr TYPE pa0001-pernr, | |
bukrs TYPE pa0001-bukrs, | |
werks TYPE pa0001-werks, | |
persg TYPE pa0001-persg, | |
ename TYPE pa0001-ename, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REPORT zdynamic. | |
DATA: struct_type TYPE REF TO cl_abap_structdescr, "Structure | |
table_type TYPE REF TO cl_abap_tabledescr,"Table type | |
dataref TYPE REF TO data. "Dynamic data | |
*-Component Table and Work area | |
DATA: comp_tab TYPE cl_abap_structdescr=>component_table, | |
comp_wa LIKE LINE OF comp_tab. | |
FIELD-SYMBOLS: <t_table> TYPE STANDARD TABLE, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REMIX EXAMPLE PROJECT | |
Remix example project is present when Remix loads for the very first time or there are no files existing in the File Explorer. | |
It contains 3 directories: | |
1. 'contracts': Holds three contracts with different complexity level, denoted with number prefix in file name. | |
2. 'scripts': Holds two scripts to deploy a contract. It is explained below. | |
3. 'tests': Contains one test file for 'Ballot' contract with unit tests in Solidity. | |
SCRIPTS |
NewerOlder