如何创建ABAP的text table (1) create a main table as usual: define the key field CHANNEL: (2) create another table which will be used as text table. Ensure a field with data element SPRAS is included as primary key. The primary key CHANNEL of main table must also be included in the t...
(1) create a main table as usual: define the key field CHANNEL: (2) create another table which will be used as text table. Ensure a field with data element SPRAS is included as primary key. The prim…
(1) create a main table as usual: define the key field CHANNEL: (2) create another table which will be used as text table. Ensure a field with data element SPRAS is included as primary key. The primary key CHANNEL of main table must also be included in the text table. (3) mark fi...
You can create only one text table for each table.The system checks this when you attempt to activate a table with text foreign keys for the corresponding table. Example Table Ais a text table ofTable Bif the key ofAcomprises the key ofBand an additional language key field.Table Acan contai...
*2、设置文本框的内容44*PS: set_text_as_stream 无法设置多行,需要设置多行,用 set_text_as_r3table4546FORMfrm_set_textUSINGpi_textTYPEchar100 .47DATA:48BEGINOFls_text ,49lineTYPEchar255,50ENDOFls_text ,51lt_textLIKETABLEOFls_text .5253CHECKpi_textISNOTINITIAL.54ls_text-line =pi_text ...
sy-tfill:返回当前内表(Internal Table)内的记录数。 但是要小心,那些字段随各自的内表(Internal Table)改变。例:如果你循环(Loop at)(读取)itab,sy-tfill返回itab的记录数。 如 果你在循环(Loop at)(读取)内表(Internal Table)itab的内部嵌套循环(Loop at)(读取)内表(Internal Table)jtab,sy-tfill返...
創建步驟:先定义动态结构體,然後用系統標準的方法:cl_alv_table_create=>create_dynamic_table,生成動態內表赋值。遍歷动态结构,获取指定的字段,然后给指定的字段赋值。顯示。遍歷动态结构,获取指定的字段,然后读取对应字段的值。 TABLES: ekbe. SELECT-OPTI...
ls_fieldcat-coltext = &2."文本 * ls_fieldcat-no_zero = &3."去掉前导零 ls_fieldcat-ref_table = &3. ls_fieldcat-ref_field = &4. APPEND ls_fieldcat TO gt_fieldcat. CLEAR ls_fieldcat. END-OF-DEFINITION. %%append_fieldcat: ...
INSERT spfli FROM TABLE i_tab. CATCH cx_sy_open_sql_db INTO lcx_error. err_text = lcx_error->get_text( ). "得到错误信息 sy-subrc = 4. "改变系统变量 ENDTRY. IF sy-subrc <> 0. WRITE :/ '数据更新失败!'. WRITE err_text. ...
这个FM用的传统的做法,把三个k split到一个internal table里,然后READ TABLE INDEX 1,2,3的方式分别取出每个key。用了42行代码。 其实1行代码就搞定所有的事情: 而且后者比前者快3~6倍:因为FIND REGEX是用c++实现的,比在ABAP端做要高效。