Skip to content

Instantly share code, notes, and snippets.

Martin Maruskin softy12

Block or report user

Report or block softy12

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@softy12
softy12 / ZMM_APD_IN_MEM
Created May 21, 2019
Find SAP BW APD processes which have Performance Settings set to Process Data in Memory
View ZMM_APD_IN_MEM
SELECT * FROM rsant_process INTO TABLE @DATA(lt_apd) WHERE objvers = 'A'.
LOOP AT lt_apd ASSIGNING FIELD-SYMBOL(<fs>).
FIND 'PROCESS_DATA_IN_MEMORY="X"' IN <fs>-xml.
IF sy-subrc = 0.
WRITE: / <fs>-process.
ENDIF.
ENDLOOP.
@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'
};
@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'
};
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 / 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,
You can’t perform that action at this time.