728x90 반응형 ABAP113 SELECTION SCREEN 라디오 버튼으로 파라미터 제어하기 SELECTION-SCREEN SKIP 1. SELECTION-SCREEN: BEGIN OF LINE. PARAMETERS: RB_ACTUL RADIOBUTTON GROUP RB01 DEFAULT 'X' USER-COMMAND UCOM. SELECTION-SCREEN COMMENT (15) FOR FIELD RB_ACTUL. PARAMETERS: RB_PLANN RADIOBUTTON GROUP RB01. SELECTION-SCREEN COMMENT (15) FOR FIELD RB_PLANN. SELECTION-SCREEN: END OF LINE. SELECTION-SCREEN BEGIN OF BLOCK BLOCK3 WITH FRAME TITLE TEXT-003. SELECTION-SCREE.. 2023. 2. 24. Dynamic table test TOP PARAMETERS : p_table(30) TYPE c OBLIGATORY. "입력받을 abap dictionary 테이블을 위한 파라미터 FIELD-SYMBOLS TYPE STANDARD TABLE. DATA : gv_tabname TYPE dd02t-ddtext, "테이블 텍스트 ok_code TYPE sy-ucomm. "ALV DATA : gt_fieldcat TYPE lvc_t_fcat, gs_fieldcat TYPE lvc_s_fcat. DATA : gs_variant TYPE disvariant, gs_layout TYPE lvc_s_layo.GET DATA FORM get_data . DATA gv_data TYPE REF TO data. CLEAR gv_tabname. SELECT.. 2023. 2. 24. 강제로 PBO PAI 태우기 강제로 PAI, PBO 수행 (둘 다 동일한 기능을 가짐) e_ucomm = 선택된 툴바 버튼의 Function 값. PAI로 넘어갈 때 OK_CODE,SY-UCOMM 가 e_ucomm 값으로 대체된다. PAI에서 각 버튼 로직을 수행 함. 1 CALL METHOD CL_GUI_CFW=>SET_NEW_OK_CODE EXPORTING NEW_CODE = E_UCOMM.강제로 PBO 타게함, 강제 PAI는 SAPGUI_SET_FUNCTIONCODE 2 CALL FUNCTION 'SAPGUI_SET_FUNCTIONCODE' EXPORTING functioncode = e_ucomm EXCEPTIONS function_not_supported = 1 OTHERS = 2. 2023. 2. 24. Pop up Message DATA : GV_ANSWER TYPE C. CLEAR GV_ANSWER. PERFORM CONFIRM_POPUP USING '저장 여부 확인' '선택된 데이터를 저장하시겠습니까?' SPACE SPACE CHANGING GV_ANSWER. FORM CONFIRM_POPUP USING P_TITLE P_TEXT P_CANC P_TYPE CHANGING P_ANSWER. CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING TITLEBAR = P_TITLE TEXT_QUESTION = P_TEXT TEXT_BUTTON_1 = '예' ICON_BUTTON_1 = ' ' TEXT_BUTTON_2 = '아니오&#.. 2023. 2. 24. ALV All select PERFORM SELECTED_ALL TABLES GT_LEFT USING PO_SENDER . FORM SELECTED_ALL TABLES PT_TABLE STRUCTURE GS_LEFT USING PO_GRID TYPE REF TO CL_GUI_ALV_GRID. DATA: LS_ROW TYPE LVC_S_ROW, LT_ROWS TYPE LVC_T_ROW. DESCRIBE TABLE PT_TABLE. " fills sy-tfill DO SY-TFILL TIMES. LS_ROW-INDEX = SYST-INDEX. APPEND LS_ROW TO LT_ROWS. ENDDO. CALL METHOD PO_GRID->SET_SELECTED_ROWS EXPORTING IT_INDEX_ROWS = LT_ROWS . .. 2023. 2. 24. ALV Fieldcatalog Using Field-symbol PERFORM fieldcatalog_merge USING '스트럭쳐 이름' 'GT_FIELDCAT'. PERFORM field_setting_call USING 'GT_FIELDCAT'. PERFORM alv_init USING gs_layout gs_variant gi_grid. TOP FIELD-SYMBOLS : TYPE lvc_t_fcat, TYPE lvc_s_fcat. `FORM fieldcatalog_merge USING pv_table pv_fcat. ASSIGN (pv_fcat) TO . CALL FUNCTION 'LVC_FIELDCATALOG_MERGE' EXPORTING i_structure_name = pv_table CHANG.. 2023. 2. 21. 이전 1 ··· 4 5 6 7 8 9 10 ··· 19 다음 728x90 반응형