Instantly share code, notes, and snippets.

View demo_BAPI_params2.js
//demo prg to showcase usage of structure parameter of SAP's BAPI while called from nodejs app via SAP/node-rfc nodule
"use strict";
var rfc = require('node-rfc');
var abapSystem = {
user: 'sap_user',
passwd: 'sap_user_pwd',
ashost: 'sap.nodomain',
sysnr: '01',
client: '800'
};
View demo_BAPI_params1.js
//demo prg to showcase usage of table and variable parameters of SAP's BAPI while called from nodejs app via SAP/node-rfc nodule
"use strict";
var rfc = require('node-rfc');
var abapSystem = {
user: 'sap_user',
passwd: 'sap_user_pwd',
ashost: 'sap.nodomain',
sysnr: '01',
client: '800'
};
View ZMM_SYS_INFO.abap
REPORT ZMM_SYS_INFO.
DATA lc_cl_server_info TYPE REF TO cl_server_info.
CREATE OBJECT lc_cl_server_info TYPE cl_server_info.
CALL METHOD lc_cl_server_info->get_startup_time
RECEIVING
startup_time = DATA(lv_startup).
WRITE: / 'startup time: ', 30 lv_startup.
View zmm_check_if_pc_ran.abap
REPORT zmm_check_if_pc_ran.
PARAMETERS: p_chain TYPE rspc_chain OBLIGATORY,
p_days TYPE i OBLIGATORY DEFAULT 30.
DATA: l_v_date TYPE sydatum,
l_t_logs TYPE TABLE OF rspc_s_log_f4,
l_v_logid TYPE rspc_logid,
l_v_status TYPE rspc_state,
l_t_clog TYPE rspc_t_msg,