메뉴 건너뛰기

SAP 한국 커뮤니티

Report Z14_04

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

*&---------------------------------------------------------------------*
*& 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 44
362 Report Z14_06 전통주막 2025.09.17 70
361 Report Z14_05 전통주막 2025.09.17 54
» Report Z14_04 전통주막 2025.09.17 55
359 Report Z14_03 전통주막 2025.09.17 55
358 Report Z14_02 전통주막 2025.09.17 62
357 Report Z14_01 전통주막 2025.09.17 59
356 REPORT Z99_48 전통주막 2025.07.28 68
355 REPORT z16_09 sapjoy 2025.07.20 72
354 REPORT Z99_140 전통주막 2024.12.04 76
353 REPORT Z99_139 전통주막 2024.12.04 53
352 REPORT Z99_138 전통주막 2024.12.04 69
351 REPORT Z99_137 전통주막 2024.12.04 55
350 REPORT Z99_136 전통주막 2024.12.04 69
349 REPORT Z99_135 file 전통주막 2024.12.04 75
348 REPORT Z99_134 전통주막 2024.12.04 38
347 REPORT Z99_133 전통주막 2024.12.04 54
346 REPORT Z99_132 전통주막 2024.12.04 43
345 REPORT Z99_131 전통주막 2024.12.04 64
344 REPORT Z99_130 전통주막 2024.12.04 71