下面主角登场了,SAP提供了一个类CL_ABAP_CONTAINER_UTILITIES,里面有两个方法,方法read_container_c-用来读取EXTENSIONIN,方法fill_container_c用来填充EXTENSIONIN。 例子代码当然不能少了,下面这一小段代码就是先将EXTENSIONIN中的值读出来,然后再加入一个自定义字段zsfyg的值,再回写EXTENSIONIN。 LOOP AT et_extensio...
例子代码当然不能少了,下面这一小段代码就是先将EXTENSIONIN中的值读出来,然后再加入一个自定义字段 zsfyg的值,再回写EXTENSIONIN。 LOOPATet_extensionin ASSIGNING <fs_ext>WHEREstructure='BAPI_TE_MEPOITEM'.*读取自定义字段值CALLMETHODcl_abap_container_utilities=>read_container_cEXPORTINGim_container= <fs_...
SAP Managed Tags: ABAP Development Try this way. Instead of field symbols use data : ZEMM_EXTEND_PLANT like ZEMM_EXTEND_PLANT. P_LIT_IDOCDATA STRUCTURE EDI_DD40. CALL METHOD CL_ABAP_CONTAINER_UTILITIES=>FILL_CONTAINER_C EXPORTING IM_VALUE = ZEMM_EXTEND_PLANT IMPORTING EX_CONTAINER = p_li...
查找字符串模式 SEARCH语句用于查找,SEARCH c for str.找到了sy-subrc将返回0,找不着返回4.(SY-SUBRC = 0: 至少有一行数据 SY-SUBRC = 4: 没有数据),模式查找则可以理解为数据库中的模糊查询。 示例:SY-FDPOS表示单词出现的位置: DATA string1(30) type c value 'this is a testing sentence.'. write...
*越来越多的SAP系统会采用Unicode,并且SAP将最终舍弃Non-Unicode。**在Unicode中,汉字与英文字符的长度是相同的,即一个汉字和一个英文字符的长度都是1,这给SAP系统与Non-Unicode系统的数据交换带来困难。**SAP提供了一个Class来解决这些问题,这个Class名为CL_ABAP_LIST_UTILITIES。**例如取得字符串的显示长度:...
A journey into space ^H^H^H^H^H project system (2)- (2016 Jul 065:31 PM) Additional Blogs by Members byEnnoWulffon2016 Jul 065:31 PMLatest post on2017 Sep 1812:55 PMbyFormer Member 1Reply 1431Views Conversion using method cl_abap_container_utilitie...- (2013 Sep ...
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_RETURN. in the loop. try and let me know Thanks Reply Former...
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...
A Comprehensive Guide to Using OLE Objects in SAP ABAP 1 aATP 1 ABAP 41 ABAP 7.4 2 ABAP API 1 ABAP BAPI BAPI_FIXEDASSET_CREATE1 1 ABAP BTP 1 ABAP CDS VIEW 2 ABAP CDS Views 12 ABAP CDS Views - BW Extraction 3 ABAP CDS Views - CDC (Change Data Capture) 3 ABAP Cl...
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