Jerry 2017年4月在德國SAP的工作筆記

Created by Wang, Jerry, last modified on Apr 30, 2017

2017-04-01

  1. IS BOUND, IS INITIAL and IS ASSIGNEDHorst Keller
    Invalid References in Reference Variables
    Dangling pointer in wikipedia
    http://note.youdao.com/noteshare?id=73fe25a5c6c3d4a9787180f96462efad

For example in C#, if Cat is a subtype of Animal, then:
IEnumerable is a subtype of IEnumerable. The subtyping is preserved because IEnumerable is covariant on T.
Action is a subtype of Action. The subtyping is reversed because Action is contravariant on T.
The variance of a C# interface is determined by in (contravariant) and out (covariant) annotations on its type parameters; the above interfaces are declared as IEnumerable, Action
For example, the delegate type Func<in T, out TResult> represents a function with a contravariant input parameter of type T and a covariant return value of type TResult.
Because we can be sure that whatever the actual list contains, it can be upcasted to a Number.
because the compiler cannot determine what is the actual type of the object in the generic structure. It can be anything that extends Number (like Integer, Double, Long), but the compiler cannot be sure what,
< super T>表示包括T在內的任何T的父類

2017-04-04

  1. Try to access static private attribute via ABAP RTTI and Java Reflection
    -2,147,483,648 to +2,147,483,647
    -9,223,372,036,854,775,808 to +9,223,372,036,854,775,807

UT for mock

2017-04-06

  1. Carsten SDD

what’s the point in limiting the visibility of variables and not having everything available everywhere in your code? One advantage is that scope provides some level of security to your code. One common principle of computer security is that users should only have access to the stuff they need at a time.
Scope also solves the naming problem when you have variables with the same name but in different scopes. Remember not to confuse scope with context. They are both different features.
In the JavaScript language there are two types of scopes:
Global Scope
Local Scope
There is only one Global scope throughout a JavaScript document. A variable is in the Global scope if it’s defined outside of a function.
每個function都有一個自己的局部scope,
Global scope lives as long as your application lives. Local Scope lives as long as your functions are called and executed.
Context
Many developers often confuse scope and context as if they equally refer to the same concepts. But this is not the case. Scope is what we discussed above and Context is used to refer to the value of this in some particular part of your code. Scope refers to the visibility of variables and context refers to the value of this in the same scope. We can also change the context using function methods, which we will discuss later. In the global scope context is always the Window object.
The first phase that is the creation phase is present when a function is called but its code is not yet executed. Three main things that happen in the creation phase are:
variable object = activation object

2017-04-07

  1. SD的text determination在Sales and Distribution->Basic function->Text Control裏。

TH_GET_CONTEXT_ID
#Environment.systemField: #SYSTEM_LANGUAGE
till 153
Solution for adding text to CDS view
describe the service to be performed,includes Information about planned duration and conditions.
a product of type 01, informs the technician which spare part is required for service process.
include CRM_OBJECTTYPES_CON defines constant value for object type name,
for example gc_objtype-orderadm_h type crmt_object_type value ‘05’.
Item category - ZSRV,assigned to Object Type BUS2000131 - CRM Sales Items
Item category determination: Transaction type + Item category group = Item category

2017-04-10

public class Example {
private static class StaticHolder {
static final MySingleton INSTANCE = new MySingleton();
}

public static MySingleton getSingleton() {
return StaticHolder.INSTANCE;
}
}

Local class in ABAP, Java and JavaScript
predefined ABAP type
Predefined elementary data type. The predefined ABAP types are: b, c, d, decfloat16, decfloat34, f, i, int8, n, p, s, string, t, x, and xstring.

INT1 3 0 1-byte integer, 0 to 255 b
INT2 5 0 2-byte integer, -32,768 to 32,767 s
1.
INT4 10 0 4-byte integer, -2,147,483,648 to +2,147,483,647 i
INT8 19 0 8-byte integer, -9,223,372,036,854,775,808 to +9,223,372,036,854,775,807 int8
DEC,DF16_DEC,DF16_RAW,DF34_DEC,DF34_RAW,FLTP
Integer a = 10; //this is autoboxing
Integer b = Integer.valueOf(10); //under the hood
Integer a = Integer.valueOf(10)
Integer in ABAP, Java and JavaScript

down vote
accepted

2017-04-11

int i = 999999999;
byte b = (byte) i; // The type cast causes an explicit conversion
b = i; // Compilation error!! No implicit conversion here.
Logic of SAVE_EC function module in One Order
Index table CRMD_ORDER_INDEX and its update logic
CRM_TEXT_MAINTAIN_OW
DL CD_Design_Capability_improvement_group [email protected]
Implement Custom Syntax Check in SAP GUI
https://blogs.sap.com/2017/04/13/implement-custom-syntax-check-in-sap-gui/
method key: SEOCPDKEY

2017-04-14

  1. fill_caller_variable_name( EXPORTING is_current_method =
    CHANGING cs_method_Detail = ls_method_detail ).

method: SCR_REF
ty_method_detail
call_parameter
lv_include TYPE progname,
lv_main TYPE progname,

  1. TT_METHOD_DETAIL
    iv_container_name
    SEOREDEF

2017-04-15

  1. MT_RESULT,MT_METHOD_DETAIL,MT_SOURCE_CODE,MS_WORKING_METHOD,
    MT_CONTAINER_GENERIC_TYPE,MT_ERROR_MESSAGE
    Covariance in Java and simulation in ABAP

2017-04-16

Some developers thought it is quite easy to refact a small piece of code

2017-04-17

  1. 把文檔放share folder
    http://note.youdao.com/noteshare?id=76e55b3a32c64f2ff5149700d276b0c4
    Various Proxy Design Pattern implementation variants in Java and ABAP
    Implement CGLIB in ABAP

2017-04-18

xhtml and dhtml documentation outputs from Ixiasoft (our documentation system DITA CMS).
CRM_ORDER
CRM_ORDERADM_H_READ_OB
ZCRMS4D_SRVO_H

2017-04-20

  1. CRMD_CUSTOMER_H
    SRV_REQ_H
    ZCRMS4S_ORDERADM_H
    ZCRMS4S_SRV_REQ_H
    CRMS4S_ORDERADM_H_SRVO_H
    .INCLUDE CRMS4S_SERVICE_H_SRVO_H
    ZCRMS4D_SRVR_H
    Service request: BUS2000223 SRVR
    0090FA0D8DC21ED29A9E6E72D7F81A80
    8000003071
    CRMD_SRV_REQ_H
    ZIF_CRMS4_BTX_DATA_MODEL
    ZCL_CRMS4_BTX_ORDERADM_H_CONV
    CRM_OBJECT_NAMES_DETERMINE
  2. CRMT_SRV_REQ_H_WRK
    ZCRMS4D_SRVR_H to CRMT_SRV_REQ_H_WRK ×*
    CRM_SRV_REQ_H_PUT_DB
    ORDER: FA163E8EAB031ED682EF2F89113485EF
    5700000242 Jerry’s service order
    CRM_ORDERADM_H_ON_DATABASE_OW

2017-04-21

  1. Jerry’s Service product guid: FA163EE56C3A1EE789B8E2CDC940D4CD
    BUS2000140
  2. CRMT_CUMULAT_H_WRK
    ET_CUMULAT_H
    ZCL_CRMS4_BTX_CUMULAT_H_CONV
    CUMULAT_H
    ET_CUMULAT_H = lt_cum_h.

lt_cum_h TYPE CRMT_CUMULAT_H_WRKT.
this service order has 00163EA720041EE29F86484C5645774D cumu_h.
one item guid: FA163EE56C3A1EE789B8E2CDC940D4CD
ET_ORDERADM_I
CRMT_ORDERADM_I_WRKT
FA163E8EAB031ED682EF2F89113485EF
00163EA720001ED29D9420A624836ED3
Interact with your application server in OS level – A Small console
Xml2AbapRun
Tag(Marker) Interface in ABAP and Java
http://localhost:9098/2014-12-30-FioriODataTest/loading.gif
http://www.satsignal.eu/wxsat/msg-1-fc-40.jpg
Chrome Development Tool tips used in my daily work
Use Chrome development tool to do self-study on some JavaScript function native implementation
I joined a programming hackathon sponsored by Michelin,

2017-04-24

  1. test data: 5700000242
    item to be read: FA163EE56C3A1EE789BA15E33B2218B6 in shadow table.
    FA163EE56C3A1EE789BA15E33B2218B6
    CRMT_PRODUCT_I_INT
    header guid: FA163E8EAB031ED682EF2F89113485EF
    CRM_OPPORT_H_SAVE_EC
    LCRM_EVENT_OWF05
    Wolf Hagen Thuemmel
    IT_PRODUCT_I_DB) TYPE CRMT_PRODUCT_I_DU_TAB

DATA: lt_product_i_db_buffer TYPE crmt_product_i_du_tab.
APPEND is_wrk_structure TO lt_product_i_db_buffer.
CALL FUNCTION ‘ZCRM_PRODUCT_I_PUT_DB’
EXPORTING
it_product_i_db = lt_product_i_db_buffer.
CRM_EVENT_FILTER_PROC_TYPE_OW

Tag(Marker) Interface in ABAP and Java

2017-04-27

  1. REFERENCE(IV_OBJECT_NAME) TYPE CRMT_OBJECT_NAME
    *" REFERENCE(IV_EVENT_EXETIME) TYPE CRMT_EVENT_EXETIME
    *" REFERENCE(IV_EVENT) TYPE CRMT_EVENT
    *" REFERENCE(IT_HEADER_GUID) TYPE CRMT_OBJECT_GUID_TAB
    CRMT_OBJECT_NAME_TAB
    object_type: crmt_subobject_category_db
    ZCRMS4D_SRVO_H_T
    CRM_OBJECT_NAMES_DETERMINE
    CRM_CUMULAT_H_CHANGE_OW
    Call Function CRM_CUMULAT_H_UPD_COLLECT_EC
    service order id: 5700000242
    guid: FA163E8EAB031ED682EF2F89113485EF
    CRM_CUMULAT_H_UPD_BUFFER_EC
    CRM_CUMULAT_H_UPD_COLLECT_EC
    How to change content of object CUMULAT_H by program
    https://blogs.sap.com/2017/04/26/how-to-change-content-of-object-cumulat_h-by-program/
    +4969222210764
    it is a great honor for me to be a member of SAP mentors. I believe I can make lots of friends here and learn a lot from you guys.

2017-04-27

  1. CRMT_CUMULAT_H_DU_TAB
    CUMULAT_H
    \TYPE=CRMT_OBJECT_GUID_TAB
    CHANGED_AT, HEAD_CHANGED_AT and CRM_CHANGED_AT in order header table
    Integer in ABAP, Java and JavaScript
    Bitwise operation ( OR, AND, XOR ) on ABAP Integer
    QGS/001: Service Order 8000000072
    BT116S_SRVO
    SAPLCRM_DOC_FLOW_DB
    SAPLCPE_CRM_INT_API
    Use Proxy pattern to make better image loading behavior in UI5
    ABADR_TAB_INT4
    ABAP sort2 1,4,2,3時工作。5個就不工作了。
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章