0 Kudos 1,943 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...
为避免这种情况可以使用内表进行操作。语法为:SPLIT s_source AT sep into table itab.这样会根据字串数目生n内内表。LOOP AT 循环输出内表的每行数据。 DATA: text type string, itab type table of string. text = 'ABAP is a programming language'. SPLIT text AT space INTO TABLE itab. LOOP AT ...
下面主角登场了,SAP提供了一个类CL_ABAP_CONTAINER_UTILITIES,里面有两个方法, 方法read_container_c-用来读取EXTENSIONIN, 方法fill_container_c用来填充EXTENSIONIN。 例子代码当然不能少了,下面这一小段代码就是先将EXTENSIONIN中的值读出来,然后再加入一个自定义字段 zsfyg的值,再回写EXTENSIONIN。 LOOPATet_extensi...
Solved: Hi, In Unicode, I have used the CLASS cl_abap_char_utilities for type x '09' as Horizontal_tab . Can somebody let me know how to use this class for other values
SAP Managed Tags: ABAP Development Hi Athreya, I have tried all below mentioned approach already. REPLACE ALL OCCURRENCES OF cl_abap_char_utilities=>horizontal_tab IN lv_string WITH space. CONDENSE lv_string. REPLACE ALL OCCURRENCES OF cl_abap_char_utilities=>newline IN lv_string WITH space...
,EXTENSIONIN怎么才能赋值呢?下面主角登场了,SAP提供了一个类CL_ABAP_CONTAINER_UTILITIES,里面有两个方法,方法read_container_c-用来读取EXTENSIONIN,方法fill_container_c用来填充EXTENSIONIN。 例子代码当然不能少了,下面这一小段代码就是先将EXTENSIONIN中的值读出来,然后再加入一个自定义字段zsfyg的值,再回写EXTENSIO...
1) MOVE CL_ABAP_CHAR_UTILITIES=>cr_lf TO TREC-STRING+298(2). gave the same result with CRLF in the file. Solution, 2) MOVE 'CR' to TREC-STRING+298(2). physically put the character 'CR' in the file with no carriage return which is not the intended result. Thanks! Reply ...
cl_abap_li..*越来越多的SAP系统会采用Unicode,并且SAP将最终舍弃Non-Unicode。**在Unicode中,汉字与英文字符的长度是相同的,即一个汉字和一个英文字符的长度都是1,这给SAP系统与No
BIN LGPBE CHAR 10 MIN MINBE QUAN 13 MAX MABST QUAN 13 I do a CALL METHOD CL_ABAP_CONTAINER_UTILITIES=>FILL_CONTAINER_C EXPORTING IM_VALUE = <fs> IMPORTING EX_CONTAINER = p_lit_IDOCData-sdata EXCEPTIONS ILLEGAL_PARAMETER_TYPE = 1 others = 2 It is not properly converting the quantit...
1431Views Conversion using method cl_abap_container_utilitie...- (2013 Sep 274:57 AM) Application Development Blog Posts byvtsuchidakon2013 Sep 274:57 AM 0Replies 6627Views View all Top Tagged Conversion using method cl_abap_container_utilitie...- (2013 Sep 274:57 AM) ...