on 2017 Mar 29 7:37 AM
Request clarification before answering.
I give up the "Submit" to call FM(RSAQ_QUERY_CALL)
Note the example:
DATA: LT_SELECTIONS TYPE TABLE OF RSPARAMS,
LS_SELECTIONS TYPE RSPARAMS.
FIELD-SYMBOLS: <lt_data> TYPE table,
<l_data> TYPE data.
FIELD-SYMBOLS: <fs_field> .
LS_SELECTIONS-SELNAME = 'P_WERKS'.
LS_SELECTIONS-KIND = 'P'.
LS_SELECTIONS-SIGN = 'I'.
LS_SELECTIONS-OPTION = 'EQ'.
LS_SELECTIONS-LOW = I_WERKS.
LS_SELECTIONS-HIGH = ''.
APPEND LS_SELECTIONS TO LT_SELECTIONS.
CALL FUNCTION 'RSAQ_QUERY_CALL'
EXPORTING
WORKSPACE = 'G'
query = 'ZPP_PUR_TRACK'
usergroup = 'ZPP040'
* VARIANT = ' '
* DBACC = 0
SKIP_SELSCREEN = 'X'
DATA_TO_MEMORY = 'X'
* FREE_SELECTIONS =
IMPORTING
REF_TO_LDATA = ls_data
TABLES
SELECTION_TABLE = LT_SELECTIONS
EXCEPTIONS
NO_USERGROUP = 1
NO_QUERY = 2
QUERY_LOCKED = 3
GENERATION_CANCELLED = 4
NO_SELECTION = 5
NO_VARIANT = 6
JUST_VIA_VARIANT = 7
NO_SUBMIT_AUTH = 8
NO_DATA_SELECTED = 9
DATA_TO_MEMORY_NOT_POSSIBLE = 10
OTHERS = 11.
IF sy-subrc = 0.
* Implement suitable error handling here
IF ls_data is BOUND.
ASSIGN ls_data->* TO <lt_data>.
ENDIF.
ENDIF.
.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
11 | |
9 | |
8 | |
7 | |
5 | |
4 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.