메뉴 건너뛰기

SAP 한국 커뮤니티

Report Z14_04

전통주막 2025.09.17 21:48 조회 수 : 0

*&---------------------------------------------------------------------*
*& Report Z14_04
*&---------------------------------------------------------------------*
*&
*&---------------------------------------------------------------------*
REPORT Z14_04.

CLASS lcl_example DEFINITION.
  PUBLIC SECTION.
    DATA : l_str TYPE string.

    METHODS : concat_string IMPORTING p_str1 TYPE string p_str2 TYPE string,
      get_concat EXPORTING p_result TYPE string.
ENDCLASS.

CLASS lcl_example IMPLEMENTATION.
  METHOD concat_string.
    l_str = p_str1 && '-' && p_str2.
  ENDMETHOD.

  METHOD get_concat.
    p_result = l_str.
  ENDMETHOD.
ENDCLASS.

DATA: go_cref TYPE REF TO lcl_example,
      gv_res  TYPE string.

START-OF-SELECTION.
  CREATE OBJECT go_cref.

  CALL METHOD go_cref->concat_string
    EXPORTING
      p_str1 = 'Easy'
      p_str2 = 'ABAP'.

  CALL METHOD go_cref->get_concat
    IMPORTING
      p_result = gv_res.

  WRITE gv_res.

번호 제목 글쓴이 날짜 조회 수
363 Report Z14_07 전통주막 2025.09.17 0
362 Report Z14_06 전통주막 2025.09.17 0
361 Report Z14_05 전통주막 2025.09.17 0
» Report Z14_04 전통주막 2025.09.17 0
359 Report Z14_03 전통주막 2025.09.17 0
358 Report Z14_02 전통주막 2025.09.17 0
357 Report Z14_01 전통주막 2025.09.17 3
356 REPORT Z99_48 전통주막 2025.07.28 3
355 REPORT z16_09 sapjoy 2025.07.20 6
354 REPORT Z99_140 전통주막 2024.12.04 4
353 REPORT Z99_139 전통주막 2024.12.04 1
352 REPORT Z99_138 전통주막 2024.12.04 0
351 REPORT Z99_137 전통주막 2024.12.04 0
350 REPORT Z99_136 전통주막 2024.12.04 1
349 REPORT Z99_135 file 전통주막 2024.12.04 2
348 REPORT Z99_134 전통주막 2024.12.04 1
347 REPORT Z99_133 전통주막 2024.12.04 0
346 REPORT Z99_132 전통주막 2024.12.04 1
345 REPORT Z99_131 전통주막 2024.12.04 2
344 REPORT Z99_130 전통주막 2024.12.04 1