SAP Managed Tags: ABAP Development If you much confused in building a dyn where clause, the call RH_DYNAMIC_WHERE_BUILD to build the condition.The table parameter where_clause return it yo you. after that just call the select query for ex:...
SPLIT itab_sql-line AT space INTO select_key etc. IF select_key = 'SELECT'. MESSAGE i433 WITH 'Donot support select syntax!^~^'. stop. * hehe~~Don't bother myself. ELSEIF select_key = 'DELETE' OR select_key = 'UPDATE' OR select_key = 'INSERT'. update_flag = 'X'. ENDIF....
tabix_count TYPE i, select_key(10) TYPE c, etc(80) TYPE c, update_flag TYPE c, line_cnt TYPE i, prog(8) TYPE c, msg(120) TYPE c, msg_text(72) TYPE c, confirm_flag TYPE c. DATA: itab_sql LIKE abapsource OCCURS 0 WITH HEADER LINE, itab_prog LIKE abapsource OCCURS 0 WIT...
SAP Managed Tags: ABAP Development Hi, What is meant by dynamic selections in ABAP HR report using a LDB? 1 ACCEPTED SOLUTION Former Member 2008 Dec 249:40 AM 0Kudos 86 SAP Managed Tags: ABAP Development hi, Refer to this link... ...
select * into TABLE itab from ('sflight' ) where ( where_str). 注意where_str是个内表,行类型是字符串。 而且结合上例中取得表中的各个字段名,可以实现如SE16的效果。 PS: 主要为field symbol与RTTS的使用,因为动态编程中只有到运行期才确定,所以会带来性能上的下降并且会避开语法检查阶段,如果不是特别...
SAP Managed Tags: ABAP Development How to perform a SELECT MAX query where the column is dynamic in abap program? This is how the code looks like: FORM get_max_ref_field USING p_tabname p_field CHANGING p_max_date. SELECT MAX( p_field ) INTO p_max_date FROM (p_tabname). ENDFO...
TYPE tstct-sprsl DEFAULT sy-langu.SELECT-OPTIONS s_tcode FOR tstct-tcode.SELECTION-SCREEN END OF BLOCK xavery.*** 执行程序事件 Executing the program's events ***INITIALIZATION.PERFORM sub_init_cond.START-OF-SELECTION.PERFORM sub_query_tstc.END-OF-SELECTION.PERFORM sub_create_container.*&-...
sub_query_tstc .SELECT tstct~tcodetstct~sprsltstct~ttexttstc~pgmnatstc~dypnotstc~menuetstc~cinfotstc~arbgbFROM tstc INNER JOIN tstct ON tstc~tcode = tstct~tcodeINTO TABLE gt_resultWHERE tstc~tcode IN s_tcode ANDtstct~sprsl EQ p_sprsl.ENDFORM. " SUB_QUERY_TSTC*&---**&...
* Object type Selector PARAMETER : p_objtyp TYPE char10 AS LISTBOX VISIBLE LENGTH 30 USER-COMMAND v_obj . * * TABBED Selection screen for displaying the screen SELECTION-SCREEN : BEGIN OF TABBED BLOCK mytab FOR 7 LINES , TAB ( 20 ) seltab USER-COMMAND push1 , ...
SAP Managed Tags: ABAP Development You do not need dynamic code for this - use a DO VARYING loop. See the following sample code: REPORT test1. DATA: l_struc LIKE glt0, l_val LIKE glt0-tsl01, l_tot LIKE glt0-tsl01. PARAMETERS p_period(2) TYPE n. START-OF-SELECTION. SELECT * ...