Tuesday, 9 August 2016

Example for Sorted Internal Table- >With Non-Unique Key

Steps

  • Go to Transaction Code SE38.
  • Enter the program name which start's with Y or Z < program name > and click on Create Button.
  • Enter the Title.
  • Select the Attribute Type as Executable Program.
  • Click on SAVE.

Source Code



data it_makt type SORTED  table of makt with NON-UNIQUE key spras
with header line.

select-options s_matnr for it_makt-matnr.

select from makt into table it_makt where matnr in s_matnr.

loop at it_makt .

write / it_makt-matnr it_makt-spras ,it_makt-maktx.

endloop.

  • Save -> Check -> Activate.
  • Execute ( F8 ).

Input

  • Enter the input values.
  • Execute ( F8 ).

Output



No comments:

Post a Comment