Skip to content

Instantly share code, notes, and snippets.

Martin Maruskin softy12

View GitHub Profile
@softy12
softy12 / zmm_check_if_pc_ran.abap
Last active Apr 10, 2018
SAP BW: program to check whether Process Chain ran successfully, see notes on http://blog.maruskin.eu/2017/09/how-to-get-notification-whether-process.html
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,
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.
@softy12
softy12 / demo_BAPI_params1.js
Created Apr 17, 2018
SAP/node-rfc nodule: usage of table and variable parameters of SAP's BAPI
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'
};
@softy12
softy12 / demo_BAPI_params2.js
Last active Apr 17, 2018
SAP/node-rfc nodule: usage of table and variable parameters of SAP's BAPI
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'
};
You can’t perform that action at this time.