数据处理包括有连接,分割,查找子串,字串位移等。 连接字符串 将几个字符串连接起来的使用的是CONCATENATE语句。语法格式是:concatenate s1···sn into s_dest [separted by sep]. tips:如果目标字符的长度小于 连接的字符串,则会被截断。为避免截断可以设置目标字符类型为string,该类型在操作过程中可以自适应长度。
下面主角登场了,SAP提供了一个类CL_ABAP_CONTAINER_UTILITIES,里面有两个方法, 方法read_container_c-用来读取EXTENSIONIN, 方法fill_container_c用来填充EXTENSIONIN。 例子代码当然不能少了,下面这一小段代码就是先将EXTENSIONIN中的值读出来,然后再加入一个自定义字段 zsfyg的值,再回写EXTENSIONIN。 LOOPATet_extensi...
下面主角登场了,SAP提供了一个类CL_ABAP_CONTAINER_UTILITIES,里面有两个方法,方法read_container_c-用来读取EXTENSIONIN,方法fill_container_c用来填充EXTENSIONIN。 例子代码当然不能少了,下面这一小段代码就是先将EXTENSIONIN中的值读出来,然后再加入一个自定义字段zsfyg的值,再回写EXTENSIONIN。 LOOP AT et_extensio...
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 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...
lv_body= lv_body && cl_abap_char_utilities=>newline.END-OF-DEFINITION.DATA:lo_http_clientTYPEREFTOif_http_client, lv_statusTYPEi, lt_fieldsTYPEtihttpnvp, lv_sysubrcTYPEsysubrc.CALLMETHODcl_http_client=>create_by_urlEXPORTINGurl=''IMPORTINGclient=lo_http_clientEXCEPTIONSargument_not_found=1pl...
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
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
lv_body = lv_body && cl_abap_char_utilities=>newline. END-OF-DEFINITION. DATA:lo_http_client TYPE REF TO if_http_client, lv_status TYPE i, lt_fields TYPE tihttpnvp, lv_sysubrc TYPE sysubrc. CALL METHOD cl_http_client=>create_by_url ...
REPLACE ALL OCCURRENCES OF cl_abap_char_utilities=>vertical_tab IN lv_string WITH space. CONDENSE lv_string. none of them removed the garbage values. Regards, Sandeep Reply Go to solution Former Member Options Mark as New Bookmark Subscribe Mute Subscribe to RSS Feed Permalink Print Repor...