Für Z.B. RFC_READ_TABLE mit SELECT-OPTIONS
- Code: [Select all] [Expand/Collapse] [Download] (Untitled.txt)
- SELECT-OPTIONS s_tobj FOR ts_stxh-tdobject.
- SELECT-OPTIONS s_tname FOR ts_stxh-tdname.
- SELECT-OPTIONS s_tid FOR ts_stxh-tdid.
- SELECT-OPTIONS s_tspras FOR ts_stxh-tdspras.
- CLEAR ls_sel.
- ls_sel-shlpfield = 'TDOBJECT'.
- LOOP AT s_tobj.
- CLEAR ls_sel.
- ls_sel-shlpfield = 'TDNAME'.
- LOOP AT s_tname.
- CLEAR ls_sel.
- ls_sel-shlpfield = 'TDID'.
- LOOP AT s_tid.
- CLEAR ls_sel.
- ls_sel-shlpfield = 'TDSPRAS'.
- LOOP AT s_tspras.
- CALL FUNCTION 'F4_CONV_SELOPT_TO_WHERECLAUSE'
- * EXPORTING
- * GEN_ALIAS_NAMES = ' '
- * ESCAPE_ALLOWED = ' '
- IMPORTING
- where_clause = gv_where
- selopt_tab = lt_sel.
- * SPLIT gv_where AT ' ' INTO TABLE gt_opt.
- GeSHi ©