CALL METHODgo_class_matl1->test_parameter EXPORTING iv_name=gv_i_name"method importing parameter IMPORTING ev_name=gv_e_name"method exporting parameter CHANGING cv_name=gv_c_name"method changing parameter RECEIVING rv_name=gv_r_name."method returning parameter "Print parameters WRITE:/'gv_i_na...
类的实行:关键字CLASSclassIMPLEMENTATION. 子类的定义:关键字CLASSsubclassDEFINITIONINHERITINGFROMsuperclass. 方法的定义:关键字METHOD method.(方法定义在类中,并在类中执行) 公共变量的定义:关键字PUBLICSECTION. data: 保护变量的定义:关键字PROTECTEDSECTION. data: 私有变量的定义:关键字PRIVATESECTION. data: 上面...
IfCURRENTis specified, the session variable is set to its default value, that is, to the nominal value of the ABAP system fieldsy-mandtor theclientof the currentlogon. In this case there can be no input parameters with the namecurrent. ...
OPTIONAL or DEFAULT can be used to define input parameters and input/output parameters as optional parameters, where DEFAULT can be used to specify a replacement parameter def1, def2, ... No actual parameter needs to be specified for an optional parameter when the method is called. The ...
control_parameters = ls_control_param output_options = ls_composer_param IMPORTING job_output_options = outopt EXCEPTIONS formatting_error = 1 internal_error = 2 send_error = 3 user_canceled = 4 OTHERS = 5. IF sy-subrc <> 0. MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno ...
ENDMETHOD. ENDCLASS. START-OF-SELECTION. DATA: go_test TYPE REF TO cl_test. "在每一次使用类时,静态的构造函数会自动调用 CREATE OBJECT go_test. 运行后: 2,非静态构造方法 语法: 1 2 3 METHODS constructor [FINAL] [IMPORTING parameters [PREFERRED PARAMETER p]] ...
PARAMETERS: p_BUKRS LIKE ZFIE003_ACT-BUKRS OBLIGATORY MEMORY ID buk ," CHAR 4 0公司代码 p_SAKNR LIKE ZFIE003_ACT-SAKNR OBLIGATORY." CHAR 10 0总帐科目编号 "### CLASS lcl_event_receiver DEFINITION DEFERRED. DATA:i_ZFIE003_ACT LIKE TABLE OF ZFIE003...
Notes: Class CL_SSI_DISPATCH is primarily controlling the server dispatch logic. Function Module RS_ABAP_PARALLEL is used internally for executing the parallel tasks. RUN Method parameters of CL_ABAP_PARALLEL P_IN_TAB Table of XSTRING values used as input for the parallel dialog tasks One input...
4.CLASS-DATA,类静态变量; 语法:CLASS-DATA attr [options]. 5.METHODS,方法; 示例: "5.METHODS "语法: "通用实例方法 *1. METHODS meth [ABSTRACT|FINAL] * [IMPORTING parameters [PREFERRED PARAMETER p]] * [EXPORTING parameters] * [CHANGING parameters] * [{RAISING exc1|RESUMABLE(exc1) exc2|RE...
li_xtabTYPEcpt_x255.DATAlst_rcgrepfileTYPEcps_x255.DATA:l_file_contentTYPExstring.DATA:BEGINOFgt_tabOCCURS0,a1TYPEstring,a2TYPEstring,a3TYPEstring,ENDOFgt_tab.DATAe_file_sizeTYPEdrao-orln.DATAe_linesTYPEi.SELECTION-SCREENBEGINOFBLOCKblkWITHFRAMETITLETEXT-s01.PARAMETERS:rb_01RADIOBUTTONGROUPgp1...