When selecting data from db into internal tables it is often wise to work with an upper limit, like in SE16.
This upper limit can be configured per user: Goto SE16, Settings--> User's Parameters
parameter p_mxsel type tbmaxsel obligatory default '1000'.
initialization.
select single tbmaxsel
from rseumod into p_mxsel
where uname = sy-uname.
[...]
select [...]
up to iv_tbmaxsel rows
where [...] .
Subscribe to:
Post Comments (Atom)
SAP ABAP: Determine Timezone for Plant
DATA: lt_tzone TYPE STANDARD TABLE OF tznzone WITH DEFAULT KEY, l_tzone TYPE tznzone. " get time zone for plant ...
-
Sometimes the backend doesn't return the selected rows of an SALV. For my case get_metadata( ) was the solution: go_salv-> get_met...
-
GUIDs or UUIDs can be created with the class cl_system_uuid . try . data (lv_uuid) = cl_system_uuid => if_system_uuid_static...
-
AA PR-AUF(E) Prozessauftrag (eröffnet) AB PR-AUF(F) Prozessauftrag (freigegeben) AC FE...
SELECT ...
ReplyDeleteUP TO @l_mxsel ROWS
...
" check number of selected lines and show message
DATA(l_lines) = lines( mt_list ).
IF l_lines > p_mxsel.
MESSAGE s016(es) WITH p_mxsel.
ELSE.
MESSAGE s007(rj) WITH l_lines.
ENDIF.