Advertisement
Guest User

Untitled

a guest
Dec 18th, 2019
390
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
ABAP 0.97 KB | None | 0 0
  1. report zrep_local.
  2. types
  3.       : begin of ty_tab
  4.         , count type sy-tabix
  5.         , field type char1
  6.       , end   of ty_tab
  7.       , tt_tab type standard table of ty_tab with non-unique default key
  8.       .
  9. * Пуст имеющиеся записи, твоя mt_maintab
  10. data(lt_tab1) = value tt_tab( for i = 1 then i + 1 while i <= 10
  11.                             ( field = sy-abcde+i(1) ) ).
  12. * Тут селект, вернувший 20 записей, lt_wa_tab
  13. data(lt_tab2) = value tt_tab( for i = 1 then i + 1 while i <= 20
  14.                             ( field = sy-abcde+i(1) ) ).
  15. * Тут в первую, сохраняя первый 10 записей, вставляются пронумерованные строки из второй таблиц
  16. lt_tab1 = value tt_tab( base lt_tab1 for <ls_line> in lt_tab2 index into lv_idx
  17.                                    ( count = lv_idx
  18.                                      field = <ls_line>-field )
  19. ).
  20. break-point.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement