Oct 4

Using Value Mapping in Groovy

import com.sap.it.api.ITApiFactory
import com.sap.it.api.mapping.ValueMappingApi
def valueMapApi = ITApiFactory.getApi(ValueMappingApi.class, null)
def value = valueMapApi.getMappedValue('source-agency', 'source-identifier', 
                                       'source-value',
                                       'target-agency', 'target-identifier')


阅读全文...

Aug 25

sap cloud connector

1) Download

https://tools.hana.ondemand.com/#cloud

2) Operation

sudo systemctl start sapcc_daemon
sudo systemctl stop sapcc_daemon
sudo systemctl status sapcc_daemon


阅读全文...

Aug 11

AMDP Practices 2

CLASS zcl_amdp_gzn_ps DEFINITION   PUBLIC   FINAL   CREATE PUBLIC .   PUBLIC SECTION.     INTERFACES: if_amdp_marker_hdb, if_oo_adt_classrun.     TYPES:       BEGIN OF ty_result,         code TYPE char1,       END OF ty_result,       ty_result_tab TYPE STANDARD TABLE OF ty_result.     METHODS:       chk_inst_3k IMPORTING VALUE(iv_pid)    TYPE z9pieces                             VALUE(iv_plant)  TYPE werks_d      &nbs

阅读全文...

July 1

s/4 HANA Start & Stop

sapcontrol -nr XX -function Start
sapcontrol -nr XX -function Stop
sapcontrol -nr XX -function GetProcessList


阅读全文...

June 15

SAP Dynamic Function Call

CALL METHOD cl_fb_function_utility=>meth_get_interface
       EXPORTING
         im_name             = LV_FM          "FM name
       IMPORTING
         ex_interface        = lt_interface
       EXCEPTIONS
         error_occured       = 1
         object_not_existing = 2
         OTHERS              = 3.

CALL FUNCTION - parameter_tables


阅读全文...