下面主角登场了,SAP提供了一个类CL_ABAP_CONTAINER_UTILITIES,里面有两个方法, 方法read_container_c-用来读取EXTENSIONIN, 方法fill_container_c用来填充EXTENSIONIN。 例子代码当然不能少了,下面这一小段代码就是先将EXTENSIONIN中的值读出来,然后再加入一个自定义字段 zsfyg的值,再
下面主角登场了,SAP提供了一个类CL_ABAP_CONTAINER_UTILITIES,里面有两个方法,方法read_container_c-用来读取EXTENSIONIN,方法fill_container_c用来填充EXTENSIONIN。 例子代码当然不能少了,下面这一小段代码就是先将EXTENSIONIN中的值读出来,然后再加入一个自定义字段zsfyg的值,再回写EXTENSIONIN。 LOOP AT et_extensio...
CALL METHOD CL_ABAP_CONTAINER_UTILITIES=>FILL_CONTAINER_C EXPORTING IM_VALUE = ZEMM_EXTEND_PLANT IMPORTING EX_CONTAINER = p_lit_IDOCData-sdata a® Reply naimesh_patel Active Contributor 2008 May 30 7:13 PM 0 Kudos 1,684 SAP Managed Tags: ABAP Development Try to use the ...
将几个字符串连接起来的使用的是CONCATENATE语句。语法格式是:concatenate s1···sn into s_dest [separted by sep]. tips:如果目标字符的长度小于 连接的字符串,则会被截断。为避免截断可以设置目标字符类型为string,该类型在操作过程中可以自适应长度。 separated by sep是用于连接拼接字符串的字符,可选。 示例...
*越来越多的SAP系统会采用Unicode,并且SAP将最终舍弃Non-Unicode。**在Unicode中,汉字与英文字符的长度是相同的,即一个汉字和一个英文字符的长度都是1,这给SAP系统与Non-Unicode系统的数据交换带来困难。**SAP提供了一个Class来解决这些问题,这个Class名为CL_ABAP_LIST_UTILITIES。**例如取得字符串的显示长度:...
The class CL_ABAP_CHAR_UTILITIES provides attributes and methods that affect the properties of single characters. The components of this class are all static and public. The attributes are write-protected and are initialized in the class constructor method. CHARSIZE attribute CHARSIZE TYPE I. The...
Methoden CALC_WIDTH4DDLBBYKEY Methode für die Berechnung der idealen Breite für einDropDownByKey-UI-Element anhand der Liste der Einträge. SET_WIDTH_4DDLBBYKEY Methode für das Berechnen und Setzen der idealen Breite für einDropDownByKey-UI-Element anhand der Liste der Einträge. ...
SAP Managed Tags: ABAP Development Hi, DATA: BEGIN OF TREC, STRING(299), CARRIAGE_RETURN(1) TYPE c, --->instead of this try this crlf(1) type c value cl_abap_char_utilities=>CR_LF, END OF TREC. and no need to do MOVE CL_ABAP_CHAR_UTILITIES=>cr_lf TO TREC-CARRIAGE_...
0 Kudos 2,960 SAP Managed Tags: ABAP Development This is generally used when we need to pass the HORIZENTAL TAB in the string field. You can use CONCATENATE ITAB-FLD1 ITAB-FLD2 INTO L_STRING SEPERATED BY cl_abap_char_utilities=>horizontal_tab. Regards, Naimesh Patel Reply All...
Solved: Hi, can somebody else demonstrate with a sniplet the impact (effect )of CL_ABAP_CHAR_UTILITIES=>NEW_LINE or CL_ABAP_CHAR_UTILITIES=>CR_LF since I couldn't